:root {
  color-scheme: dark;
  --bg: #050b12;
  --panel: rgba(18, 31, 43, 0.88);
  --panel-soft: rgba(18, 31, 43, 0.68);
  --line: rgba(151, 174, 194, 0.16);
  --ink: #f4f7fb;
  --muted: #aab7c6;
  --green: #4bd66d;
  --green-soft: rgba(75, 214, 109, 0.16);
  --purple: #a26bff;
  --amber: #ffb84d;
  --red: #ff7373;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --mx: 50vw;
  --my: 20vh;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 6%, rgba(75, 214, 109, 0.1), transparent 24rem),
    linear-gradient(135deg, #07111a 0%, #050b12 56%, #071421 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle 520px at var(--mx) var(--my), rgba(75, 214, 109, 0.18), transparent 62%),
    linear-gradient(transparent 95%, rgba(75, 214, 109, 0.09) 96%),
    linear-gradient(90deg, transparent 95%, rgba(75, 214, 109, 0.07) 96%);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 84%);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.aurora-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-field span {
  position: absolute;
  width: 42vw;
  height: 42vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.16;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-field span:nth-child(1) {
  left: 16%;
  top: -18%;
  background: #4bd66d;
}

.aurora-field span:nth-child(2) {
  right: -8%;
  top: 18%;
  background: #a26bff;
  animation-delay: -6s;
}

.aurora-field span:nth-child(3) {
  left: 38%;
  bottom: -28%;
  background: #18d8ff;
  animation-delay: -10s;
}

@keyframes drift {
  from {
    transform: translate3d(-5%, 2%, 0) scale(0.9);
  }
  to {
    transform: translate3d(7%, -4%, 0) scale(1.12);
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(12, 23, 34, 0.78);
  backdrop-filter: blur(18px);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  background: linear-gradient(180deg, rgba(75, 214, 109, 0.12), transparent);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 14px;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #06120d;
  background: linear-gradient(135deg, #63ed7d, #20bb60);
  clip-path: polygon(8% 100%, 20% 0, 50% 52%, 80% 0, 92% 100%, 60% 64%, 50% 92%, 40% 64%);
  font-size: 0;
  filter: drop-shadow(0 0 16px rgba(75, 214, 109, 0.62));
  animation: logoBreathe 3.5s ease-in-out infinite;
}

@keyframes logoBreathe {
  50% {
    filter: drop-shadow(0 0 28px rgba(75, 214, 109, 0.9));
    transform: scale(1.04);
  }
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
h3,
h4 {
  margin: 0;
}

.brand h1 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.brand strong {
  color: var(--green);
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-label {
  margin: 12px 14px 4px;
  color: #6e7f92;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.nav-item,
.primary,
.secondary,
.today-pill,
.ghost-icon,
.profile-chip {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-item[hidden] { display: none !important; }
.nav-item {
  justify-content: flex-start;
  padding: 0 14px;
  background: transparent;
  color: #d7e0eb;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.nav-item:hover {
  transform: translateX(4px);
  border-color: rgba(75, 214, 109, 0.18);
}

.nav-item:hover::after {
  transform: translateX(130%);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(75, 214, 109, 0.22), rgba(75, 214, 109, 0.07));
  border-color: rgba(75, 214, 109, 0.22);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-item b {
  margin-left: auto;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #06120d;
  font-size: 0.68rem;
}

svg {
  width: 18px;
  height: 18px;
}

.daily-progress {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 12px;
}

.daily-progress p {
  justify-self: start;
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.ring {
  --percent: 0%;
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) var(--percent), rgba(115, 132, 150, 0.2) 0);
  box-shadow: 0 0 36px rgba(75, 214, 109, 0.2);
  animation: ringPulse 3.4s ease-in-out infinite;
}

@keyframes ringPulse {
  50% {
    box-shadow: 0 0 56px rgba(75, 214, 109, 0.34);
  }
}

.ring::before {
  content: "";
  position: absolute;
  width: 110px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0b1722;
}

.ring div {
  position: relative;
  text-align: center;
}

.ring strong {
  display: block;
  font-size: 2rem;
}

.ring span,
.daily-progress small,
.welcome-line,
small {
  color: var(--muted);
}

.goal-panel,
.surface,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.surface::before,
.metric::before,
.goal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--card-x, 50%) var(--card-y, 0%), rgba(75, 214, 109, 0.15), transparent 58%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.surface::after,
.metric::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.12) 48%, transparent 60% 100%);
  transform: translateX(-120%);
  opacity: 0.55;
}

.surface:hover,
.metric:hover {
  border-color: rgba(75, 214, 109, 0.32);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.44), 0 0 32px rgba(75, 214, 109, 0.08);
}

.surface:hover::before,
.metric:hover::before,
.goal-panel:hover::before {
  opacity: 1;
}

.surface:hover::after,
.metric:hover::after {
  animation: scanCard 1.3s ease;
}

@keyframes scanCard {
  to {
    transform: translateX(120%);
  }
}

.goal-panel {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.panel-title,
.section-head,
.list-head,
.metric-head,
.topbar,
.top-actions,
.profile-chip,
.goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.goal-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 14, 22, 0.78);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(75, 214, 109, 0.65);
  box-shadow: 0 0 0 3px rgba(75, 214, 109, 0.14);
}

.primary {
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(75, 214, 109, 0.95), rgba(32, 168, 88, 0.85));
  color: #06120d;
  border-color: rgba(75, 214, 109, 0.45);
  font-weight: 800;
  box-shadow: 0 0 26px rgba(75, 214, 109, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(75, 214, 109, 0.34);
}

.secondary {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-color: var(--line);
  font-weight: 700;
}

.secondary:hover {
  color: var(--red);
  border-color: rgba(255, 115, 115, 0.35);
}

.full {
  width: 100%;
}

.main {
  padding: 26px 32px 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  min-width: 0;
}

.topbar h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.welcome-line {
  margin: 8px 0 0;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.today-pill,
.ghost-icon,
.profile-chip {
  background: rgba(16, 29, 42, 0.9);
  border-color: var(--line);
  color: #dce6f1;
  padding: 0 14px;
  white-space: nowrap;
}

.ghost-icon {
  width: 48px;
  padding: 0;
  position: relative;
}

.ghost-icon span {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #06200f;
  font-size: 0.68rem;
  font-weight: 900;
}

.profile-chip span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #26384a, #111e2c);
  border: 1px solid var(--line);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewIn 420ms ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 18px;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.metric-head span {
  color: #c8d4e2;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.metric-head svg {
  color: var(--green);
}

.metric-head.purple svg {
  color: var(--purple);
}

.metric-head.amber svg {
  color: var(--amber);
}

.metric strong {
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(133, 151, 171, 0.22);
}

.bar div {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--green);
  transition: width 600ms cubic-bezier(.2, .8, .2, 1);
  position: relative;
  overflow: hidden;
}

.bar div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: barGlide 2.4s linear infinite;
}

@keyframes barGlide {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.bar.purple div {
  background: var(--purple);
}

.bar.amber div {
  background: var(--amber);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.surface {
  padding: 18px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h3 {
  text-transform: uppercase;
  font-size: 0.95rem;
}

.hero-program {
  min-height: 200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(250px, 0.52fr);
  gap: 18px;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 15, 24, 0.95), rgba(8, 15, 24, 0.42)),
    url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1400&q=80") center / cover;
  min-height: 252px;
  padding: 24px;
  isolation: isolate;
}

.hero-program > *:not(.portal-stage) {
  position: relative;
  z-index: 2;
}

.portal-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 900px;
}

.portal-core {
  position: absolute;
  left: 56%;
  top: 12%;
  width: 122px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(117, 255, 167, 0.86);
  box-shadow: 0 0 24px rgba(75, 214, 109, 0.9), inset 0 0 30px rgba(75, 214, 109, 0.42);
  animation: portalFloat 4.5s ease-in-out infinite;
}

.portal-core span {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(75, 214, 109, 0.15) 38%, transparent 70%);
  animation: corePulse 2.6s ease-in-out infinite;
}

.portal-orbit {
  position: absolute;
  left: calc(56% - 44px);
  top: calc(12% - 44px);
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(75, 214, 109, 0.18);
  transform: rotateX(72deg) rotateZ(0deg);
  animation: orbitSpin 14s linear infinite;
}

.orbit-two {
  width: 290px;
  left: calc(56% - 84px);
  top: calc(12% - 84px);
  border-color: rgba(162, 107, 255, 0.2);
  animation-duration: 21s;
  animation-direction: reverse;
}

.portal-orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.portal-beam {
  position: absolute;
  left: 50%;
  right: 0;
  bottom: -24%;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(75, 214, 109, 0.14), rgba(162, 107, 255, 0.08), transparent);
  clip-path: polygon(36% 0, 66% 0, 100% 100%, 0 100%);
  animation: beamSweep 5s ease-in-out infinite;
}

@keyframes portalFloat {
  50% {
    transform: translateY(-12px) scale(1.04);
  }
}

@keyframes corePulse {
  50% {
    opacity: 0.45;
    transform: scale(1.35);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}

@keyframes beamSweep {
  50% {
    opacity: 0.52;
    transform: translateX(-6%) skewX(-5deg);
  }
}

.program-copy {
  max-width: 430px;
}

.program-copy span,
.program-copy p,
.next-up small,
.next-up span {
  color: var(--muted);
}

.program-copy h3 {
  margin: 10px 0 8px;
  font-size: 1.55rem;
  text-transform: none;
}

.hero-program > strong {
  color: #fff;
  align-self: end;
}

.next-up {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 16px;
  background: rgba(7, 14, 22, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.next-up small,
.next-up b,
.next-up span {
  grid-column: 1;
}

.next-up i {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.three-up {
  grid-template-columns: 0.78fr 0.92fr 0.84fr;
}

.timeline {
  display: grid;
  gap: 15px;
  margin-bottom: 18px;
}

.timeline p {
  margin: 0;
  display: grid;
  grid-template-columns: 72px auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.timeline time,
.timeline strong {
  color: #d9e2ee;
  font-weight: 500;
}

.timeline span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(142, 161, 181, 0.55);
}

.timeline span.done {
  background: radial-gradient(circle, var(--green), var(--purple));
  border: 0;
  box-shadow: 0 0 14px rgba(162, 107, 255, 0.74);
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  50% {
    transform: scale(1.24);
  }
}

.timeline svg {
  color: var(--purple);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
}

.stat-row p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.stat-row span,
.insights-panel > p,
.health-flex span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.stat-row strong {
  font-size: 1.35rem;
}

.stat-row em {
  color: var(--green);
  font-style: normal;
}

.insights-panel {
  display: grid;
  gap: 14px;
}

.insights-panel article {
  padding: 16px;
  border: 1px solid rgba(75, 214, 109, 0.32);
  border-radius: 8px;
  background: rgba(75, 214, 109, 0.07);
}

.insights-panel article span {
  color: var(--muted);
}

.insights-panel article strong {
  display: inline-block;
  margin-top: 6px;
  color: var(--green);
  font-size: 2rem;
}

.insights-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #dbe6f2;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.program-grid article {
  min-height: 126px;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(75, 214, 109, 0.28);
  border-radius: 8px;
  background: rgba(75, 214, 109, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.program-grid article:hover,
.resource-grid article:hover,
.feed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(75, 214, 109, 0.34);
}

.program-grid article.active {
  border-color: rgba(162, 107, 255, 0.74);
  background: rgba(162, 107, 255, 0.12);
}

.program-grid svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.program-grid article.active svg {
  color: var(--purple);
}

.program-grid span {
  font-size: 1.35rem;
}

.feed-panel,
.resources-panel {
  display: grid;
  gap: 12px;
}

.feed-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.feed-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(75, 214, 109, 0.12);
  color: var(--green);
}

.feed-card p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.feed-card em {
  color: var(--muted);
  font-style: normal;
}

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

.resource-grid article {
  min-height: 82px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.resource-grid small,
.model-pill {
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(75, 214, 109, 0.12);
  color: var(--green);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--green);
}

.workout-card-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1fr;
  gap: 18px;
  align-items: stretch;
}

.workout-photo {
  min-height: 214px;
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(5, 11, 18, 0.45), transparent),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=720&q=80") center / cover;
}

.routine-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.routine-list h4 {
  font-size: 1.15rem;
}

.routine-list p {
  margin: 0;
  color: var(--muted);
}

.routine-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.routine-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  color: #dbe5ef;
}

.routine-list li svg {
  color: var(--green);
}

.routine-list li b {
  color: var(--muted);
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.form-grid button {
  grid-column: 1 / -1;
}

.meal-preview {
  display: grid;
  gap: 10px;
}

.meal-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.meal-line:last-child {
  border-bottom: 0;
}

.meal-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.meal-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.meal-line strong {
  display: block;
  margin-bottom: 4px;
}

.progress-body {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.body-stats {
  display: grid;
  gap: 14px;
}

.body-stats p {
  margin: 0;
  display: grid;
  gap: 3px;
}

.body-stats span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.body-stats strong {
  font-size: 1.45rem;
}

.body-stats em {
  color: var(--green);
  font-style: normal;
  font-size: 0.85rem;
}

.chart {
  width: 100%;
  min-height: 160px;
  border-bottom: 1px solid var(--line);
  filter: drop-shadow(0 0 16px rgba(162, 107, 255, 0.3));
}

.chart path:first-child {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: drawLine 2.2s ease forwards, lineGlow 3s ease-in-out infinite 2.2s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes lineGlow {
  50% {
    filter: drop-shadow(0 0 8px rgba(162, 107, 255, 0.8));
  }
}

.goals-panel {
  display: grid;
  gap: 16px;
}

.goal-row {
  align-items: center;
}

.goal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.goal-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.goal-icon.purple {
  background: rgba(162, 107, 255, 0.18);
  color: var(--purple);
}

.goal-icon.amber {
  background: rgba(255, 184, 77, 0.18);
  color: var(--amber);
}

.goal-row p {
  position: relative;
  flex: 1;
  margin: 0;
  display: grid;
  gap: 8px;
}

.goal-row p::after,
.goal-row b {
  content: "";
  height: 7px;
  border-radius: 99px;
}

.goal-row p::after {
  background: rgba(133, 151, 171, 0.22);
}

.goal-row b {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--green);
}

.goal-row:nth-of-type(3) b {
  background: var(--purple);
}

.goal-row:nth-of-type(4) b {
  background: var(--amber);
}

.goal-row em {
  color: #dce6ef;
  font-style: normal;
  min-width: 42px;
  text-align: right;
}

.ai-panel[hidden] { display: none !important; }
.ai-panel {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(18, 31, 43, 0.88), rgba(7, 14, 22, 0.92)),
    radial-gradient(circle at 50% 100%, rgba(75, 214, 109, 0.16), transparent 42%);
}

.ai-panel .section-head {
  margin-bottom: 0;
}

.ai-panel h3 {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-panel p {
  margin: 0;
  color: #d3dce8;
  line-height: 1.45;
}

.mini-chat {
  display: grid;
  gap: 12px;
}

.mini-user,
.mini-ai {
  padding: 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.mini-user {
  justify-self: end;
  color: var(--green);
  background: rgba(75, 214, 109, 0.09);
  border: 1px solid rgba(75, 214, 109, 0.22);
}

.mini-ai {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

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

.chips button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #d8e3ee;
  border-radius: 999px;
  padding: 7px 10px;
}

.assistant-actions {
  display: grid;
  gap: 10px;
}

.assistant-actions button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid rgba(75, 214, 109, 0.24);
  border-radius: 8px;
  background: rgba(75, 214, 109, 0.07);
  color: #e2edf7;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.assistant-actions button:hover {
  transform: translateX(4px);
  background: rgba(75, 214, 109, 0.13);
  border-color: rgba(75, 214, 109, 0.46);
}

.assistant-actions span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.assistant-actions svg {
  color: var(--green);
}

.signal-visual {
  height: 82px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(75, 214, 109, 0.13), transparent),
    radial-gradient(circle at 50% 100%, rgba(75, 214, 109, 0.28), transparent 58%);
  border: 1px solid rgba(75, 214, 109, 0.18);
}

.signal-visual span {
  width: 36px;
  height: 28px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(to top, rgba(75, 214, 109, 0.08), rgba(75, 214, 109, 0.74));
  filter: drop-shadow(0 0 14px rgba(75, 214, 109, 0.42));
  animation: wave 1.7s ease-in-out infinite;
}

.signal-visual span:nth-child(2) {
  animation-delay: -0.22s;
}

.signal-visual span:nth-child(3) {
  animation-delay: -0.44s;
}

.signal-visual span:nth-child(4) {
  animation-delay: -0.66s;
}

.signal-visual span:nth-child(5) {
  animation-delay: -0.88s;
}

@keyframes wave {
  50% {
    height: 72px;
    transform: translateY(-6px);
  }
}

.coach-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.delete-button,
.icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.quick-add {
  display: grid;
  gap: 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quick-grid button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 7px;
  color: #dce7f2;
  background: rgba(255, 255, 255, 0.02);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.quick-grid button:hover {
  transform: translateY(-3px);
  background: rgba(75, 214, 109, 0.08);
}

.quick-grid button:nth-child(2n) {
  border-right: 0;
}

.quick-grid button:nth-child(n + 3) {
  border-bottom: 0;
}

.health-summary {
  display: grid;
  gap: 11px;
}

.health-flex {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.small-ring {
  width: 118px;
}

.small-ring::before {
  width: 84px;
}

.small-ring strong {
  font-size: 1.8rem;
}

.health-flex p {
  margin: 0 0 10px;
  display: grid;
  gap: 4px;
}

.health-flex strong {
  overflow-wrap: anywhere;
}

.health-view {
  display: none;
}

.health-view.active {
  display: grid;
  gap: 18px;
}

.health-goals {
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  align-items: end;
}

.health-goals .panel-title {
  grid-column: 1 / -1;
}

.quick-grid svg {
  color: var(--green);
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(75, 214, 109, 0.35));
}

.list-head {
  margin-bottom: 14px;
}

.list-head span {
  color: var(--muted);
}

.item-list {
  display: grid;
  gap: 10px;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.entry p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 0.82rem;
}

.delete-button {
  min-height: 42px;
  border: 1px solid rgba(255, 115, 115, 0.26);
  border-radius: 8px;
  background: rgba(255, 115, 115, 0.08);
  color: var(--red);
  display: grid;
  place-items: center;
}

.coach-view.active {
  display: grid;
  grid-template-rows: minmax(360px, calc(100vh - 190px)) auto;
  gap: 12px;
}

.chat-log {
  overflow: auto;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: min(760px, 88%);
  border-radius: 8px;
  padding: 12px 14px;
}

.chat-message span {
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
  font-size: 0.84rem;
}

.chat-message p {
  margin: 0;
  line-height: 1.45;
}

.chat-message.ai {
  align-self: flex-start;
  background: rgba(75, 214, 109, 0.1);
  color: #dffbea;
}

.chat-message.user {
  align-self: flex-end;
  background: rgba(74, 127, 190, 0.16);
  color: #e5f0fb;
}

.empty,
.placeholder-view {
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.energy-ripple {
  position: fixed;
  z-index: 20;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(75, 214, 109, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: rippleOut 680ms ease-out forwards;
}

@keyframes rippleOut {
  to {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

.placeholder-view p {
  margin: 10px 0 0;
}

.name-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 11, 18, 0.92);
  backdrop-filter: blur(12px);
}

.name-overlay[hidden] {
  display: none;
}

.name-card {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.name-card h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.eyebrow {
  color: var(--green);
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

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

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

  .hero-program {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .nav-item {
    justify-content: center;
  }

  .nav-item span {
    display: none;
  }

  .daily-progress,
  .goal-panel {
    display: none;
  }

  .metrics,
  .split,
  .right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .main,
  .sidebar {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .metrics,
  .split,
  .right-rail,
  .form-grid,
  .workout-card-body,
  .progress-body,
  .program-grid,
  .resource-grid,
  .stat-row,
  .health-flex,
  .health-goals {
    grid-template-columns: 1fr;
  }

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

  .delete-button {
    justify-self: end;
  }
}

/* =====================================================================
   ATLAS OS — extended views
   ===================================================================== */
.atlas-view { display: none; padding: 4px 2px 60px; }
.atlas-view.active { display: block; animation: atlasIn .45s ease both; }
@keyframes atlasIn { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }

.atlas-view .eyebrow {
  display:inline-block; font-size:.68rem; letter-spacing:.22em; text-transform:uppercase;
  color:#4bd66d; padding:.2rem .55rem; border:1px solid rgba(75,214,109,.4);
  border-radius:2px; background:rgba(75,214,109,.06); margin-bottom:.6rem;
}

.atlas-hero {
  display:grid; grid-template-columns: 1fr auto; gap: 32px; align-items:center;
  padding: 28px 32px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(75,214,109,.08), rgba(162,107,255,.08), transparent 70%);
  border:1px solid rgba(75,214,109,.18); border-left:3px solid #4bd66d;
  border-radius: 4px;
  position:relative; overflow:hidden;
}
.atlas-hero.compact { padding: 20px 24px; }
.atlas-hero::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(circle at var(--mx,90%) var(--my,10%), rgba(75,214,109,.15), transparent 40%);
}
.atlas-hero-copy h2 { font-size: 2rem; margin: 6px 0 8px; letter-spacing: -.01em; }
.atlas-hero-copy p { color: #94a3b8; max-width: 56ch; }
.atlas-hero-stat { display:flex; gap: 28px; }
.atlas-hero-stat > div { text-align:right; }
.atlas-hero-stat strong { display:block; font-size: 1.6rem; color: #fff; font-variant-numeric: tabular-nums; }
.atlas-hero-stat small { color: #6c7a8a; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.vault-search {
  background: rgba(8,16,24,.7); border:1px solid rgba(120,160,200,.18);
  padding: 12px 18px; border-radius: 2px; color:#e2e8f0; min-width: 320px;
}
.vault-search:focus { outline:none; border-color:#4bd66d; box-shadow: 0 0 0 3px rgba(75,214,109,.15); }

/* ---------- Program Hubs (Mentorship) ---------- */
.program-hubs {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:16px; margin-bottom: 24px;
}
.hub {
  position:relative; padding:20px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border:1px solid rgba(120,160,200,.15);
  border-top: 2px solid #4bd66d;
  border-radius: 2px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.hub:hover { transform: translateY(-3px); border-top-color:#fff; box-shadow: 0 20px 50px -25px rgba(75,214,109,.5); }
.hub.trading { border-top-color: #4bd66d; }
.hub.ecom    { border-top-color: #a26bff; }
.hub.software{ border-top-color: #22d3ee; }
.hub.content { border-top-color: #fb923c; }
.hub.ai      { border-top-color: #06b6d4; }
.hub.current::before {
  content:"CURRENT"; position:absolute; top:8px; right:10px;
  font-size:.6rem; letter-spacing:.18em; color:#a26bff;
  padding: 2px 6px; border:1px solid rgba(162,107,255,.4); border-radius: 2px;
}
.hub header { display:flex; align-items:center; gap:12px; margin-bottom: 14px; }
.hub header > i { width: 38px; height: 38px; padding:8px; background: rgba(75,214,109,.1); border-radius: 2px; color:#4bd66d; }
.hub.ecom header > i { background: rgba(162,107,255,.1); color:#a26bff; }
.hub.software header > i { background: rgba(34,211,238,.1); color:#22d3ee; }
.hub.content header > i { background: rgba(251,146,60,.1); color:#fb923c; }
.hub.ai header > i { background: rgba(6,182,212,.1); color:#06b6d4; }
.hub header > div { flex: 1; }
.hub header h3 { font-size: 1.05rem; margin:0; }
.hub header span { font-size: .7rem; color: #6c7a8a; letter-spacing: .1em; text-transform: uppercase; }
.hub header strong { font-size: 1.2rem; color: #fff; font-variant-numeric: tabular-nums; }
.hub-bar { height: 4px; background: rgba(120,160,200,.1); border-radius: 0; margin-bottom: 14px; }
.hub-bar > div { height: 100%; background: #4bd66d; box-shadow: 0 0 8px #4bd66d; }
.hub-bar.purple > div { background:#a26bff; box-shadow: 0 0 8px #a26bff; }
.hub-bar.cyan > div   { background:#22d3ee; box-shadow: 0 0 8px #22d3ee; }
.hub-bar.orange > div { background:#fb923c; box-shadow: 0 0 8px #fb923c; }
.hub-modules { list-style:none; padding:0; margin: 0 0 14px; display:flex; flex-direction:column; gap:6px; }
.hub-modules li {
  display:flex; align-items:center; gap:10px; padding:8px 10px;
  background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.08);
  font-size: .85rem; transition: background .2s;
}
.hub-modules li:hover { background: rgba(75,214,109,.08); border-color: rgba(75,214,109,.3); }
.hub-modules li i { width: 16px; height: 16px; color:#94a3b8; }
.hub-modules li span { flex:1; }
.hub-modules li em {
  font-style: normal; font-size:.6rem; letter-spacing:.15em;
  padding: 2px 6px; background: rgba(75,214,109,.15); color:#4bd66d; border-radius: 2px;
}

/* Roadmap + calls */
.roadmap-panel ol.roadmap { list-style:none; padding:0; margin:14px 0 0; }
.roadmap li {
  display:grid; grid-template-columns: 32px 1fr auto; gap:14px; align-items:center;
  padding: 12px; border-left: 2px solid rgba(120,160,200,.15); margin-left:8px;
  position:relative;
}
.roadmap li > span {
  width:28px; height:28px; display:grid; place-items:center;
  background: rgba(8,16,24,.8); border:1px solid rgba(120,160,200,.2);
  font-size: .8rem; color:#6c7a8a; border-radius:50%;
}
.roadmap li.done { border-left-color: #4bd66d; }
.roadmap li.done > span { background: rgba(75,214,109,.15); border-color:#4bd66d; color:#4bd66d; }
.roadmap li.active { border-left-color: #a26bff; }
.roadmap li.active > span { background: #a26bff; border-color:#a26bff; color:#0a0d12; }
.roadmap li > div strong { display:block; font-size:.95rem; }
.roadmap li > div small { color:#6c7a8a; font-size:.78rem; }
.roadmap li > i { color: #4bd66d; }
.roadmap li.active > i { color: #a26bff; }

.mentor-calls .call {
  display:grid; grid-template-columns: 1fr auto; gap:6px 14px;
  padding: 14px; margin-bottom: 10px; align-items:center;
  background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.1);
  border-left: 2px solid #6c7a8a;
}
.mentor-calls .call.live { border-left-color:#4bd66d; background: rgba(75,214,109,.05); }
.mentor-calls .call time { grid-column:1; font-size:.7rem; letter-spacing:.15em; color:#4bd66d; }
.mentor-calls .call strong { grid-column:1; font-size:.95rem; }
.mentor-calls .call span { grid-column:1; color:#94a3b8; font-size:.78rem; }
.mentor-calls .call button { grid-column:2; grid-row:1/4; }

/* ---------- Progress / KPIs ---------- */
.kpi-row {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.kpi {
  position:relative; padding: 18px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border:1px solid rgba(120,160,200,.15); border-top: 2px solid #4bd66d;
}
.kpi span { font-size: .7rem; letter-spacing:.18em; text-transform:uppercase; color:#6c7a8a; }
.kpi strong { display:block; font-size: 1.8rem; margin: 4px 0; color:#fff; font-variant-numeric: tabular-nums; }
.kpi em { font-style:normal; color:#4bd66d; font-size:.78rem; }
.kpi > i { position:absolute; top:14px; right:14px; color: rgba(75,214,109,.3); }

.chart-panel .chart.big { width: 100%; height: 240px; }
.rank-panel .rank-visual { display:grid; grid-template-columns: 120px 1fr; gap: 24px; align-items:center; }
.rank-ring {
  width:120px; height:120px; border-radius:50%; display:grid; place-items:center;
  background: conic-gradient(#a26bff calc(var(--p,0)*1%), rgba(120,160,200,.12) 0);
  position:relative;
}
.rank-ring::before { content:""; position:absolute; inset:10px; border-radius:50%; background:#0a1118; }
.rank-ring span { position:relative; z-index:1; font-size:1.4rem; font-weight:700; }
.rank-panel ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.rank-panel li { display:flex; justify-content:space-between; padding: 6px 10px; font-size:.85rem; color:#6c7a8a; }
.rank-panel li i { color:#4bd66d; }
.rank-panel li.active { color:#fff; background: rgba(162,107,255,.1); border-left:2px solid #a26bff; padding-left:8px; }
.rank-panel li.active em { color:#a26bff; font-style:normal; }

.milestones { list-style:none; padding:0; margin:14px 0 0; display:flex; flex-direction:column; gap:8px; }
.milestones li { display:flex; gap:12px; align-items:center; padding:12px; background:rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.1); }
.milestones li i { color: #6c7a8a; }
.milestones li.done i { color: #4bd66d; }
.milestones li strong { display:block; font-size:.92rem; }
.milestones li small { color:#6c7a8a; font-size:.75rem; }

.bars { display:flex; align-items:flex-end; gap:10px; height:140px; padding: 14px 0; }
.bars .day { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height: 100%; justify-content:flex-end; }
.bars .day span { width:100%; max-width:32px; background: linear-gradient(180deg, #4bd66d, rgba(75,214,109,.3)); min-height:2px; }
.bars .day.active span { background: linear-gradient(180deg, #a26bff, rgba(162,107,255,.3)); }
.bars .day small { font-size:.7rem; color:#6c7a8a; letter-spacing:.1em; }
.stat-row.tight { display:grid; grid-template-columns: repeat(3,1fr); gap:8px; margin-top: 10px; }
.stat-row.tight strong { font-size: 1.1rem; }

/* ---------- Schedule ---------- */
.schedule-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 18px; }
.schedule-head h2 { font-size: 1.8rem; margin-top: 6px; }
.schedule-actions { display:flex; gap: 8px; }
.week-grid { display:grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 24px; }
.day-col {
  background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.1);
  padding: 12px 8px; min-height: 220px; display:flex; flex-direction:column; gap: 6px;
}
.day-col.today { border-color: #4bd66d; background: rgba(75,214,109,.04); box-shadow: inset 0 0 0 1px rgba(75,214,109,.2); }
.day-col b { font-size:.7rem; letter-spacing:.15em; color:#6c7a8a; margin-bottom: 6px; }
.day-col.today b { color: #4bd66d; }
.block {
  padding: 8px; border-left: 2px solid #4bd66d;
  background: rgba(75,214,109,.08); font-size:.78rem;
  transition: transform .2s;
}
.block:hover { transform: translateX(2px); }
.block time { display:block; color:#4bd66d; font-size:.65rem; letter-spacing:.1em; margin-bottom: 2px; }
.block.purple { border-color:#a26bff; background:rgba(162,107,255,.08); } .block.purple time{ color:#a26bff; }
.block.cyan   { border-color:#22d3ee; background:rgba(34,211,238,.08); }  .block.cyan time{ color:#22d3ee; }
.block.orange { border-color:#fb923c; background:rgba(251,146,60,.08); }  .block.orange time{ color:#fb923c; }
.block.muted  { border-color:#6c7a8a; background:rgba(120,160,200,.05); } .block.muted time{ color:#94a3b8; }

.reminders { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap: 8px; }
.reminders li { display:flex; gap: 12px; align-items:center; padding: 12px; background: rgba(8,16,24,.5); border-left: 2px solid #4bd66d; }
.reminders li strong { display:block; font-size:.92rem; }
.reminders li small { color:#6c7a8a; font-size:.78rem; }
.allocation { display:flex; flex-direction:column; gap: 10px; padding-top: 8px; }
.allocation > div { display:grid; grid-template-columns: 1fr auto; gap: 6px; align-items:center; }
.allocation > div b { font-size:.85rem; }
.allocation > div em { font-style:normal; color:#94a3b8; font-size:.78rem; font-variant-numeric: tabular-nums; }
.allocation span { display:block; height: 6px; grid-column: 1/3; }

/* ---------- Resources / Vault ---------- */
.resource-tabs { display:flex; gap: 4px; margin-bottom: 16px; flex-wrap:wrap; }
.resource-tabs button {
  padding: 8px 16px; background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.1);
  color:#94a3b8; font-size:.82rem; cursor:pointer; transition: all .2s;
}
.resource-tabs button:hover { color: #fff; border-color: rgba(75,214,109,.3); }
.resource-tabs button.active { background: rgba(75,214,109,.12); color:#4bd66d; border-color:#4bd66d; }
.resource-mega {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.rcard {
  position:relative; padding: 18px; cursor:pointer;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border:1px solid rgba(120,160,200,.12); border-top: 2px solid #6c7a8a;
  transition: transform .2s, border-color .2s;
}
.rcard:hover { transform: translateY(-3px); border-top-color: #fff; }
.rcard.ecom { border-top-color:#a26bff; } .rcard.trading { border-top-color:#4bd66d; }
.rcard.software { border-top-color:#22d3ee; } .rcard.content { border-top-color:#fb923c; }
.rcard.ai { border-top-color:#06b6d4; }
.rcard i { color:#4bd66d; margin-bottom: 10px; display:block; }
.rcard.ecom i { color:#a26bff; } .rcard.software i { color:#22d3ee; }
.rcard.content i { color:#fb923c; } .rcard.ai i { color:#06b6d4; }
.rcard strong { display:block; font-size:.95rem; margin-bottom: 4px; }
.rcard small { color:#94a3b8; font-size:.75rem; }
.rcard em {
  position:absolute; top: 12px; right: 12px;
  font-style:normal; font-size:.6rem; letter-spacing:.15em;
  padding: 2px 6px; background: rgba(8,16,24,.8); border:1px solid rgba(120,160,200,.15);
}

/* ---------- Community ---------- */
.community-top { grid-template-columns: 2fr 1fr; }
.feed-stack { display:flex; flex-direction:column; gap: 10px; }
.feed-card.big {
  display:grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 16px; background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.1);
  align-items:flex-start;
}
.feed-card.big > span {
  width:44px; height:44px; display:grid; place-items:center;
  background: linear-gradient(135deg,#4bd66d,#a26bff); color:#0a0d12;
  font-weight:700; border-radius: 2px;
}
.feed-card.big strong { display:block; margin-bottom: 4px; }
.feed-card.big p { color:#cbd5e1; font-size:.88rem; margin: 0 0 8px; }
.feed-card.big em { font-style:normal; color:#6c7a8a; font-size:.75rem; }

.leaderboard ol.lb { list-style:none; padding:0; margin: 14px 0 0; display:flex; flex-direction:column; gap:4px; }
.leaderboard .lb li {
  display:grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items:center;
  padding: 10px 12px; background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.08);
}
.leaderboard .lb li b { font-size:.85rem; color:#6c7a8a; font-variant-numeric: tabular-nums; }
.leaderboard .lb li:nth-child(1) b { color:#fbbf24; }
.leaderboard .lb li:nth-child(2) b { color:#cbd5e1; }
.leaderboard .lb li:nth-child(3) b { color:#fb923c; }
.leaderboard .lb li.me { border-color:#4bd66d; background: rgba(75,214,109,.06); }
.leaderboard .lb li em { font-style:normal; color:#4bd66d; font-size:.78rem; }

.threads article {
  display:flex; gap: 12px; align-items:center; padding: 12px;
  background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.1);
  margin-bottom: 8px; cursor:pointer; transition: border-color .2s;
}
.threads article:hover { border-color: rgba(75,214,109,.3); }
.threads article i { color: #4bd66d; }
.threads article strong { display:block; font-size:.9rem; }
.threads article small { color:#6c7a8a; font-size:.75rem; }
.announce { padding: 12px; background: rgba(8,16,24,.5); border-left: 2px solid #a26bff; margin-bottom: 8px; }
.announce strong { display:block; }
.announce p { color:#cbd5e1; font-size:.85rem; margin: 4px 0; }
.announce time { color:#6c7a8a; font-size:.75rem; }

/* ---------- Messages ---------- */
.messages-shell { display:grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 540px; }
.thread-list { padding: 0; overflow:hidden; display:flex; flex-direction:column; }
.thread-head { padding: 14px; border-bottom: 1px solid rgba(120,160,200,.1); }
.thread-head input { width: 100%; background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15); padding: 8px 12px; color: #e2e8f0; }
.thread-list ul { list-style:none; padding:0; margin:0; flex:1; overflow:auto; }
.thread-list li {
  display:grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items:center;
  padding: 12px 14px; cursor:pointer; border-bottom: 1px solid rgba(120,160,200,.05);
}
.thread-list li:hover { background: rgba(75,214,109,.04); }
.thread-list li.active { background: rgba(75,214,109,.08); border-left: 2px solid #4bd66d; padding-left: 12px; }
.thread-list li.unread strong::after { content:"●"; color:#4bd66d; margin-left: 6px; }
.thread-list .av { width:36px; height:36px; display:grid; place-items:center; background: linear-gradient(135deg,#4bd66d,#16a34a); color:#0a0d12; font-weight:700; }
.thread-list .av.p { background: linear-gradient(135deg,#a26bff,#7c3aed); color:#fff; }
.thread-list .av.c { background: linear-gradient(135deg,#22d3ee,#0891b2); color:#0a0d12; }
.thread-list .av.o { background: linear-gradient(135deg,#fb923c,#ea580c); color:#0a0d12; }
.thread-list li strong { display:block; font-size:.88rem; }
.thread-list li small { color:#6c7a8a; font-size:.75rem; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.thread-list li em { font-style:normal; color:#6c7a8a; font-size:.7rem; }

.thread-view { display:flex; flex-direction:column; padding: 0; overflow:hidden; }
.thread-view header { padding: 16px 20px; border-bottom: 1px solid rgba(120,160,200,.1); }
.thread-view header strong { display:block; }
.thread-view header span { font-size:.78rem; color:#4bd66d; }
.thread-body { flex:1; overflow:auto; padding: 20px; display:flex; flex-direction:column; gap:12px; }
.msg { max-width:70%; padding: 10px 14px; background: rgba(8,16,24,.7); border:1px solid rgba(120,160,200,.1); }
.msg.out { align-self:flex-end; background: rgba(75,214,109,.1); border-color: rgba(75,214,109,.3); }
.msg p { margin: 0 0 4px; font-size:.9rem; }
.msg time { font-size:.7rem; color:#6c7a8a; }
.thread-input { display:flex; gap: 8px; padding: 14px; border-top: 1px solid rgba(120,160,200,.1); }
.thread-input input { flex:1; background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15); padding: 10px 14px; color: #e2e8f0; }

/* ============ QUICK REPLIES ============ */
.quick-replies {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px 0;
}
.quick-replies button {
  font-size: .75rem; padding: 5px 10px;
  background: rgba(75,214,109,.06); border: 1px solid rgba(75,214,109,.18);
  color: #cbd5e1; cursor: pointer;
  transition: background .15s, color .15s;
}
.quick-replies button:hover {
  background: rgba(75,214,109,.15); color: #fff; border-color: rgba(75,214,109,.4);
}

/* ============ THREAD NOTES (mentor only) ============ */
.thread-notes {
  border-top: 1px solid rgba(120,160,200,.1);
  padding: 12px 18px 14px;
  background: rgba(162,107,255,.03);
}
.thread-notes header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.thread-notes header .eyebrow { color: #a26bff; font-size: .65rem; }
.thread-notes header small { font-size: .7rem; color: #6c7a8a; font-style: italic; }
.thread-notes textarea {
  width: 100%; min-height: 60px; resize: vertical;
  background: rgba(8,16,24,.7); border: 1px solid rgba(162,107,255,.2);
  color: #e7ece9; font: inherit; font-size: .85rem; padding: 8px 10px;
}
.thread-notes textarea:focus { outline: none; border-color: rgba(162,107,255,.6); }

/* ============ READ RECEIPTS ============ */
.seen-stamp {
  display: block; font-size: .68rem;
  color: #4bd66d; margin-top: 4px;
  letter-spacing: .05em;
}

/* ============ MARKDOWN IN MESSAGES ============ */
.msg p code {
  font-family: ui-monospace, monospace;
  background: rgba(8,16,24,.7); padding: 1px 6px;
  font-size: .85em; color: #4bd66d;
}
.msg p a { color: #4bd66d; text-decoration: underline; }
.msg p a:hover { color: #86efac; }
.msg p b { font-weight: 700; }
.msg p i { font-style: italic; }

/* ============ INBOX SEARCH + PIN ============ */
.inbox-search {
  width: calc(100% - 28px); margin: 8px 14px;
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  padding: 8px 12px; color: #e2e8f0; font-size: .85rem;
}
.inbox-search:focus { outline: none; border-color: #4bd66d; }

.thread-list li { position: relative; }
.thread-pin {
  position: absolute; top: 8px; right: 6px;
  width: 22px; height: 22px; padding: 0;
  background: transparent; border: none;
  color: #6c7a8a; cursor: pointer; font-size: 1rem;
  opacity: 0; transition: opacity .15s, color .15s;
}
.thread-list li:hover .thread-pin,
.thread-list li.pinned .thread-pin { opacity: 1; }
.thread-pin:hover { color: #fbbf24; }
.thread-list li.pinned .thread-pin { color: #fbbf24; }
.thread-list li.pinned {
  background: rgba(251,191,36,.04);
  border-left: 2px solid rgba(251,191,36,.3);
  padding-left: 12px;
}

/* ============ EMOJI REACTIONS ============ */
.msg { position: relative; }
.msg-react-btn {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(8,16,24,.95); border: 1px solid rgba(120,160,200,.2);
  color: #94a3b8; font-size: .85rem; line-height: 1; padding: 0;
  cursor: pointer; opacity: 0; transition: all .15s;
}
.msg:hover .msg-react-btn { opacity: 1; }
.msg-react-btn:hover { background: rgba(75,214,109,.15); color: #4bd66d; transform: scale(1.1); }
.msg-reactions {
  display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap;
}
.msg-reactions span {
  font-size: .85rem; padding: 2px 6px;
  background: rgba(8,16,24,.8); border: 1px solid rgba(120,160,200,.2); border-radius: 999px;
}
.reaction-palette {
  position: fixed; z-index: 9500;
  display: flex; gap: 4px; padding: 6px;
  background: linear-gradient(180deg, rgba(18,31,43,.98), rgba(8,16,24,.98));
  border: 1px solid rgba(75,214,109,.3); border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.7);
  animation: ciIn .25s cubic-bezier(.34,1.56,.64,1) both;
}
.reaction-palette button {
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: none; cursor: pointer; font-size: 1.2rem;
  transition: transform .15s;
}
.reaction-palette button:hover { transform: scale(1.4); }

/* ============ THREAD ACTIONS (mute + pin combo) ============ */
.thread-actions {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 2px;
  opacity: 0; transition: opacity .15s;
}
.thread-list li:hover .thread-actions,
.thread-list li.pinned .thread-actions,
.thread-list li.muted .thread-actions { opacity: 1; }
.thread-mute, .thread-pin {
  width: 22px; height: 22px; padding: 0;
  background: transparent; border: none;
  color: #6c7a8a; cursor: pointer; font-size: .9rem;
  position: static !important; opacity: 1 !important;
}
.thread-mute:hover { color: #fbbf24; }
.thread-pin:hover { color: #fbbf24; }
.thread-list li.pinned .thread-pin { color: #fbbf24; }
.thread-list li.muted strong,
.thread-list li.muted small { opacity: .55; }
.thread-list li.muted .thread-mute { color: #6c7a8a; }

/* ============ PROGRAM-TINTED AVATARS ============ */
.cohort-card.prog-trading  { border-top-color: #4bd66d; }
.cohort-card.prog-ecom     { border-top-color: #a26bff; }
.cohort-card.prog-software { border-top-color: #22d3ee; }
.cohort-card.prog-content  { border-top-color: #fb923c; }
.cohort-card.prog-ai       { border-top-color: #06b6d4; }
.cohort-av.prog-trading  { background: linear-gradient(135deg,#4bd66d,#16a34a); }
.cohort-av.prog-ecom     { background: linear-gradient(135deg,#a26bff,#7c3aed); color:#fff; }
.cohort-av.prog-software { background: linear-gradient(135deg,#22d3ee,#0891b2); }
.cohort-av.prog-content  { background: linear-gradient(135deg,#fb923c,#ea580c); }
.cohort-av.prog-ai       { background: linear-gradient(135deg,#06b6d4,#0e7490); }
.cohort-card { cursor: pointer; }

/* ============ WEEKLY DIGEST ============ */
.digest-card { max-width: 640px; max-height: 88vh; overflow-y: auto; }
.digest-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.digest-head h2 { font-size: 1.7rem; margin: 4px 0 0;
  background: linear-gradient(135deg, #fff, #4bd66d 60%, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.digest-head .eyebrow { color: #4bd66d; }
.digest-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 18px;
}
.digest-stat {
  padding: 12px;
  background: rgba(8,16,24,.6); border: 1px solid rgba(120,160,200,.12);
  text-align: center;
}
.digest-stat strong {
  display: block; font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, #4bd66d, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.digest-stat small { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #6c7a8a; }
.digest-section { margin-bottom: 18px; }
.digest-section h3 {
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; margin: 0 0 8px;
}
.digest-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.digest-list li {
  padding: 10px 12px; font-size: .88rem;
  background: rgba(8,16,24,.5); border: 1px solid rgba(120,160,200,.1);
  border-left: 2px solid rgba(75,214,109,.4);
}
.digest-list li em { font-style: normal; color: #4bd66d; font-size: .78rem; padding: 1px 6px; background: rgba(75,214,109,.1); }
.digest-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

@media (max-width: 600px) {
  .digest-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ LANDING PAGE ============ */
.landing-root {
  position: fixed; inset: 0; z-index: 4000;
  background: radial-gradient(ellipse at top, #061320, #02060c 70%);
  overflow-y: auto;
  color: #e7ece9;
}
.landing-root[hidden] { display: none !important; }
.landing-fx { position: fixed; inset: 0; pointer-events: none; opacity: .35; }

.landing-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  background: linear-gradient(180deg, rgba(2,6,12,.95), rgba(2,6,12,.7));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(75,214,109,.15);
}
.landing-brand { display: flex; align-items: center; gap: 12px; }
.landing-wordmark {
  font-weight: 800; letter-spacing: .22em; font-size: 1.05rem;
  background: linear-gradient(135deg, #fff, #4bd66d 60%, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-nav { display: flex; gap: 24px; align-items: center; }
.landing-nav a {
  color: #cbd5e1; text-decoration: none; font-size: .92rem;
  transition: color .2s;
}
.landing-nav a:hover { color: #4bd66d; }
.landing-apply-pill {
  padding: 9px 20px;
  background: linear-gradient(135deg, #4bd66d, #16a34a);
  color: #06120a !important;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Hero */
.landing-hero {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto;
  text-align: center;
  padding: 100px 32px 60px;
}
.landing-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900; letter-spacing: -.02em; line-height: 1.05;
  margin: 14px 0 22px;
  background: linear-gradient(135deg, #fff 0%, #4bd66d 50%, #a26bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-sub {
  font-size: 1.1rem; line-height: 1.6; color: #94a3b8;
  max-width: 680px; margin: 0 auto 36px;
}
.landing-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 50px;
}
.landing-cta a {
  padding: 14px 26px; font-weight: 700; font-size: 1rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .25s;
}
.landing-cta .primary {
  background: linear-gradient(135deg, #4bd66d, #16a34a) !important;
  color: #06120a !important; border: none;
  box-shadow: 0 12px 40px -10px rgba(75,214,109,.5);
}
.landing-cta .primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(75,214,109,.7); }
.landing-cta .secondary {
  background: rgba(75,214,109,.08); color: #4bd66d;
  border: 1px solid rgba(75,214,109,.3);
}
.landing-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 640px; margin: 0 auto;
}
.landing-stats > div { padding: 14px; }
.landing-stats strong {
  display: block; font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, #4bd66d, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-stats small { color: #6c7a8a; font-size: .75rem; letter-spacing: .1em; }

/* Guarantee pill in hero */
.guarantee-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(75,214,109,.18), rgba(75,214,109,.08));
  border: 1px solid rgba(75,214,109,.5);
  font-size: .88rem; color: #d1fae5;
  animation: guaranteePulse 3s ease-in-out infinite;
}
.guarantee-pill i { width: 16px; height: 16px; color: #4bd66d; }
.guarantee-pill b { color: #4bd66d; font-weight: 700; }
@keyframes guaranteePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75,214,109,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(75,214,109,0); }
}

/* Dedicated guarantee section */
.landing-guarantee {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto;
  padding: 40px 32px;
}
.guarantee-box {
  padding: 50px 40px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(75,214,109,.12), rgba(8,16,24,.95));
  border: 1px solid rgba(75,214,109,.4);
  border-left: 4px solid #4bd66d;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(75,214,109,.4);
}
.guarantee-box h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; margin: 12px 0 16px;
  background: linear-gradient(135deg, #4bd66d, #fff 50%, #4bd66d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guarantee-box > p {
  color: #cbd5e1; line-height: 1.7; max-width: 640px; margin: 0 auto 24px;
}
.guarantee-box strong { color: #4bd66d; }
.guarantee-points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px; max-width: 600px; margin: 0 auto;
  text-align: left;
}
.guarantee-points > div {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(8,16,24,.5); border: 1px solid rgba(75,214,109,.15);
  font-size: .88rem; color: #cbd5e1;
}
.guarantee-points i { width: 16px; height: 16px; color: #4bd66d; flex: none; }

/* ============ LEADS LIST (mentor view) ============ */
.leads-list { display: flex; flex-direction: column; gap: 8px; }
.lead-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border: 1px solid rgba(120,160,200,.12);
  border-left: 3px solid #22d3ee;
}
.lead-row.contacted { border-left-color: #4bd66d; opacity: .7; }
.lead-row.archived { border-left-color: #6c7a8a; opacity: .55; }
.lead-main strong { font-size: .95rem; color: #e7ece9; }
.lead-main p { color: #cbd5e1; font-size: .85rem; margin: 4px 0 4px; line-height: 1.5; }
.lead-main small { color: #6c7a8a; font-size: .75rem; }
.lead-row-actions { display: flex; gap: 6px; align-items: center; }
.lead-row-actions button {
  width: 36px; height: 36px; padding: 0; display: grid; place-items: center;
}
.lead-row-actions button i { width: 14px; height: 14px; }
.lead-tag-contacted, .lead-tag-archived {
  font-style: normal; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px;
}
.lead-tag-contacted { background: rgba(75,214,109,.12); color: #4bd66d; border: 1px solid rgba(75,214,109,.3); }
.lead-tag-archived  { background: rgba(120,160,200,.08); color: #94a3b8; border: 1px solid rgba(120,160,200,.2); }

/* ============ LEAD CAPTURE (soft-maybe) ============ */
.lead-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(2,6,12,.85); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
  animation: fadeIn .3s ease;
}
.lead-overlay[hidden] { display: none !important; }
.lead-card, .lead-success {
  max-width: 460px; width: 100%;
  background: linear-gradient(180deg, rgba(18,31,43,.98), rgba(8,16,24,.98));
  border: 1px solid rgba(75,214,109,.3); border-left: 3px solid #4bd66d;
  padding: 32px 28px;
  animation: ciIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
.lead-card .eyebrow { color: #4bd66d; }
.lead-card h2 {
  font-size: 1.5rem; margin: 6px 0 8px;
  background: linear-gradient(135deg, #fff, #4bd66d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead-card > p { color: #94a3b8; font-size: .92rem; line-height: 1.5; margin: 0 0 18px; }
.lead-card input, .lead-card textarea {
  width: 100%; margin-bottom: 10px;
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  padding: 11px 13px; color: #e7ece9; font: inherit; font-size: .92rem; resize: vertical;
}
.lead-card input:focus, .lead-card textarea:focus { outline: none; border-color: #4bd66d; }
.lead-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.lead-success { text-align: center; }
.lead-success h2 {
  font-size: 1.4rem; margin: 8px 0; color: #4bd66d;
}
.lead-success p { color: #cbd5e1; margin: 6px 0 18px; }

/* ============ DISCLAIMER OVERLAY ============ */
.disclaimer-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: radial-gradient(ellipse at center, #1a0e0a 0%, #02060c 70%);
  overflow-y: auto;
  display: grid; place-items: start center;
  padding: 60px 24px;
  animation: fadeIn .4s ease;
}
.disclaimer-overlay[hidden] { display: none !important; }
.disclaimer-shell {
  max-width: 680px;
  background: linear-gradient(180deg, rgba(20,8,8,.95), rgba(8,16,24,.98));
  border: 1px solid rgba(251,113,133,.4);
  border-left: 4px solid #fb7185;
  padding: 50px 44px;
  text-align: center;
  animation: viewSlideIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.disclaimer-burst {
  width: 70px; height: 70px; margin: 0 auto 18px;
  background: radial-gradient(circle, rgba(251,113,133,.4), transparent 60%);
  border-radius: 50%;
  animation: phaseBurst 1.5s ease-out infinite;
}
.disclaimer-eyebrow { color: #fb7185 !important; letter-spacing: .2em !important; }
.disclaimer-shell h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; margin: 8px 0 22px;
  background: linear-gradient(135deg, #fb7185, #fff 50%, #fb7185);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.disclaimer-body {
  text-align: left; color: #cbd5e1; line-height: 1.7;
  max-width: 560px; margin: 0 auto;
}
.disclaimer-body p { margin: 14px 0; }
.disclaimer-body ul { padding-left: 24px; margin: 14px 0; }
.disclaimer-body li { margin: 8px 0; }
.disclaimer-body em { color: #fff; font-style: italic; }
.disclaimer-body strong { color: #4bd66d; }
.disclaimer-emphasis {
  font-size: 1.05rem; padding: 16px 18px;
  background: rgba(75,214,109,.05); border-left: 2px solid #4bd66d;
  margin-top: 22px !important;
}
.disclaimer-promise {
  font-size: 1.1rem; font-weight: 700; text-align: center;
  color: #4bd66d; margin-top: 22px !important;
  letter-spacing: .03em;
}
.disclaimer-confirm {
  display: flex; align-items: center; gap: 12px;
  margin: 28px auto 18px; max-width: 560px;
  padding: 14px 16px; cursor: pointer;
  background: rgba(75,214,109,.06); border: 1px solid rgba(75,214,109,.25);
  text-align: left; font-size: .92rem; color: #e7ece9;
  transition: border-color .2s;
}
.disclaimer-confirm:hover { border-color: rgba(75,214,109,.5); }
.disclaimer-confirm input { width: 18px; height: 18px; accent-color: #4bd66d; cursor: pointer; flex: none; }
.disclaimer-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.disclaimer-actions button { padding: 12px 22px; font-weight: 700; }
#disclaimerProceed:disabled { opacity: .35; cursor: not-allowed; }
#disclaimerProceed:not(:disabled) {
  background: linear-gradient(135deg, #4bd66d, #16a34a) !important;
  color: #06120a !important;
  box-shadow: 0 10px 30px -10px rgba(75,214,109,.5);
}

/* Sections */
.landing-majors, .landing-how, .landing-final {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 80px 32px;
}
.landing-majors h2, .landing-how h2, .landing-final h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; margin: 14px 0 36px;
  background: linear-gradient(135deg, #fff, #4bd66d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-majors, .landing-how { text-align: center; }
.landing-final { text-align: center; }

/* Majors grid */
.majors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 24px; text-align: left;
}
.major-card {
  padding: 26px 22px;
  background: linear-gradient(160deg, rgba(18,31,43,.85), rgba(8,16,24,.95));
  border: 1px solid rgba(120,160,200,.12);
  border-top: 2px solid #4bd66d;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.major-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(75,214,109,.4); }
.major-card.prog-trading  { border-top-color: #4bd66d; }
.major-card.prog-ecom     { border-top-color: #a26bff; }
.major-card.prog-software { border-top-color: #f97316; }
.major-card.prog-coding   { border-top-color: #22d3ee; }
.major-card.prog-content  { border-top-color: #fb923c; }
.major-card.prog-ai       { border-top-color: #06b6d4; }
.major-card i {
  width: 30px; height: 30px;
  padding: 10px; margin-bottom: 14px;
  background: rgba(75,214,109,.1); color: #4bd66d;
  border-radius: 2px;
}
.major-card.prog-ecom i     { background: rgba(162,107,255,.1); color: #a26bff; }
.major-card.prog-software i { background: rgba(249,115,22,.1);  color: #f97316; }
.major-card.prog-coding i   { background: rgba(34,211,238,.1);  color: #22d3ee; }
.major-card.prog-content i  { background: rgba(251,146,60,.1);  color: #fb923c; }
.major-card.prog-ai i       { background: rgba(6,182,212,.1);   color: #06b6d4; }
.major-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.major-card p { color: #94a3b8; font-size: .9rem; line-height: 1.5; margin: 0; }
.landing-note { display: block; color: #6c7a8a; font-style: italic; font-size: .82rem; margin-top: 12px; }

/* How it works */
.how-steps {
  list-style: none; padding: 0; max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.how-steps li {
  display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px;
  background: rgba(18,31,43,.6);
  border: 1px solid rgba(120,160,200,.1);
  border-left: 3px solid #4bd66d;
}
.step-num {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4bd66d, #16a34a); color: #06120a;
  font-weight: 800; font-size: 1.1rem;
}
.how-steps h3 { font-size: 1.1rem; margin: 0 0 6px; }
.how-steps p { color: #94a3b8; font-size: .92rem; margin: 0; line-height: 1.5; }

/* Quote */
.landing-quote {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 40px 32px; text-align: center;
}
.landing-quote blockquote { margin: 0; }
.landing-quote p {
  font-size: 1.4rem; font-style: italic; color: #e7ece9;
  line-height: 1.5; margin: 0 0 12px;
}
.landing-quote cite { color: #4bd66d; font-style: normal; font-size: .9rem; letter-spacing: .08em; }

/* Final CTA */
.landing-final p { color: #94a3b8; max-width: 540px; margin: 0 auto 28px; line-height: 1.6; }
.landing-big-apply {
  padding: 16px 32px !important; font-size: 1.05rem !important;
  background: linear-gradient(135deg, #4bd66d, #16a34a) !important;
  color: #06120a !important; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 50px -10px rgba(75,214,109,.6);
  transition: transform .2s;
}
.landing-big-apply:hover { transform: translateY(-2px); }
.landing-final small { display: block; color: #6c7a8a; margin-top: 16px; font-size: .8rem; }

/* Footer */
.landing-footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 40px;
  border-top: 1px solid rgba(120,160,200,.1);
  color: #6c7a8a; font-size: .85rem;
  flex-wrap: wrap; gap: 14px;
}
.landing-footer .landing-brand span { color: #94a3b8; }
.landing-footer-links a { color: #94a3b8; text-decoration: none; }
.landing-footer-links a:hover { color: #4bd66d; }

/* Mobile */
@media (max-width: 720px) {
  .landing-header { padding: 14px 18px; }
  .landing-nav { gap: 14px; }
  .landing-nav a:not(.landing-apply-pill) { display: none; }
  .landing-hero { padding: 60px 20px 40px; }
  .landing-stats { grid-template-columns: 1fr 1fr; }
  .landing-majors, .landing-how, .landing-final { padding: 50px 20px; }
  .how-steps li { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px; }
  .landing-footer { flex-direction: column; text-align: center; }
}

/* ============ INTAKE / INITIATION PAGE ============ */
.intake-root {
  position: fixed; inset: 0; z-index: 5000;
  background: radial-gradient(ellipse at top, #061320, #02060c 80%);
  overflow-y: auto;
  padding: 40px 20px;
}
.intake-root[hidden] { display: none !important; }
.intake-shell {
  max-width: 640px; margin: 0 auto;
  animation: viewSlideIn .55s cubic-bezier(.34,1.56,.64,1) both;
}
.intake-header { text-align: center; margin-bottom: 32px; }
.intake-header .brand-mark { margin: 0 auto 14px; }
.intake-header h1 {
  font-size: 2.2rem; font-weight: 800; margin: 6px 0;
  background: linear-gradient(135deg, #fff, #4bd66d 60%, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intake-sub { color: #94a3b8; max-width: 540px; margin: 0 auto; line-height: 1.6; }
.intake-form {
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(8,16,24,.95));
  border: 1px solid rgba(75,214,109,.25);
  padding: 28px 28px 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.intake-form[hidden] { display: none !important; }
.intake-success[hidden] { display: none !important; }
.disclaimer-overlay[hidden],
.lead-overlay[hidden],
.cohort-banner[hidden] { display: none !important; }
.intake-row { display: flex; flex-direction: column; gap: 6px; }
.intake-row label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #4bd66d;
}
.intake-row input,
.intake-row textarea {
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  padding: 11px 13px; color: #e7ece9; font: inherit; font-size: .92rem; resize: vertical;
}
.intake-row input:focus,
.intake-row textarea:focus { outline: none; border-color: #4bd66d; }
.intake-paths {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px;
}
.intake-path { cursor: pointer; }
.intake-path input { position: absolute; opacity: 0; pointer-events: none; }
.ip-card {
  display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 16px 12px;
  background: rgba(8,16,24,.6); border: 1px solid rgba(120,160,200,.12);
  text-align: center; transition: all .25s;
}
.ip-card i { width: 22px; height: 22px; color: #94a3b8; }
.ip-card strong { font-size: .9rem; color: #e7ece9; }
.ip-card small { font-size: .72rem; color: #6c7a8a; }
.intake-path:hover .ip-card { border-color: rgba(75,214,109,.4); transform: translateY(-2px); }
.intake-path input:checked ~ .ip-card,
.intake-path:has(input:checked) .ip-card {
  background: rgba(75,214,109,.1); border-color: #4bd66d;
  box-shadow: 0 0 20px -5px rgba(75,214,109,.5);
}
.ip-card.prog-trading i  { color: #4bd66d; }
.ip-card.prog-ecom i     { color: #a26bff; }
.ip-card.prog-software i { color: #f97316; }
.ip-card.prog-coding i   { color: #22d3ee; }
.ip-card.prog-content i  { color: #fb923c; }
.ip-card.prog-ai i       { color: #06b6d4; }
.intake-submit {
  padding: 14px 22px; font-weight: 700; font-size: .95rem;
  background: linear-gradient(135deg, #4bd66d, #16a34a) !important;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

.intake-success {
  text-align: center; padding: 60px 20px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(8,16,24,.95));
  border: 1px solid rgba(75,214,109,.4);
}
.intake-burst {
  width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle, #4bd66d, transparent 60%);
  animation: phaseBurst 1.4s ease-out infinite;
}
.intake-success h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #fff, #4bd66d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 8px;
}
.intake-success p { color: #cbd5e1; max-width: 420px; margin: 0 auto 12px; }

/* Apply form interest checkboxes */
.apply-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.apply-check {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: rgba(8,16,24,.5); border: 1px solid rgba(120,160,200,.12);
  cursor: pointer; transition: all .2s; font-size: .88rem;
}
.apply-check:hover { border-color: rgba(75,214,109,.35); }
.apply-check input { accent-color: #4bd66d; cursor: pointer; }
.apply-check:has(input:checked) {
  background: rgba(75,214,109,.1); border-color: #4bd66d;
}

/* Mentor Applications cards (pre-acceptance) */
.applications-list { display: flex; flex-direction: column; gap: 12px; }
.apps-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border: 1px solid rgba(120,160,200,.12);
  border-left: 3px solid #22d3ee;
}
.apps-card.approved { border-left-color: #4bd66d; opacity: .75; }
.apps-card.declined { border-left-color: #fb7185; opacity: .55; }
.apps-card[class*="schedule"] { border-left-color: #fbbf24; }
.apps-card header { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; margin-bottom: 8px; }
.apps-card header strong { font-size: 1.1rem; }
.apps-meta { color: #94a3b8; font-size: .82rem; }
.apps-card header time { color: #6c7a8a; font-size: .75rem; }
.apps-contact { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 12px; background: rgba(8,16,24,.4); margin-bottom: 10px; }
.apps-contact span { font-size: .82rem; color: #cbd5e1; }
.apps-contact b { color: #6c7a8a; font-weight: 500; }
.apps-card p { font-size: .88rem; color: #cbd5e1; margin: 6px 0; line-height: 1.55; }
.apps-card p b { color: #94a3b8; }
.apps-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.apps-actions { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; margin-top: 12px; }
.apps-actions input {
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  padding: 8px 10px; color: #e7ece9; font: inherit; font-size: .85rem;
}
.apps-decided { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

@media (max-width: 720px) {
  .apps-actions { grid-template-columns: 1fr; }
  .apps-card header { grid-template-columns: 1fr; }
}

/* Mentor intake card list */
.intake-list { display: flex; flex-direction: column; gap: 12px; }
.intake-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border: 1px solid rgba(120,160,200,.12);
  border-left: 3px solid #fbbf24;
}
.intake-card.approved { border-left-color: #4bd66d; opacity: .7; }
.intake-card.declined { border-left-color: #fb7185; opacity: .55; }
.intake-card header { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
.intake-card header strong { font-size: 1.05rem; }
.intake-card header time { color: #6c7a8a; font-size: .75rem; justify-self: end; }
.ip-badge {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; background: rgba(75,214,109,.12); color: #4bd66d;
  border: 1px solid rgba(75,214,109,.3);
}
.ip-badge.prog-ecom     { background: rgba(162,107,255,.12); color: #a26bff; border-color: rgba(162,107,255,.3); }
.ip-badge.prog-software { background: rgba(249,115,22,.12);  color: #f97316; border-color: rgba(249,115,22,.3); }
.ip-badge.prog-coding   { background: rgba(34,211,238,.12);  color: #22d3ee; border-color: rgba(34,211,238,.3); }
.ip-badge.prog-content  { background: rgba(251,146,60,.12);  color: #fb923c; border-color: rgba(251,146,60,.3); }
.ip-badge.prog-ai       { background: rgba(6,182,212,.12);   color: #06b6d4; border-color: rgba(6,182,212,.3); }
.ip-badge.minor { opacity: .75; font-style: italic; }
.intake-card p { font-size: .88rem; color: #cbd5e1; margin: 6px 0; line-height: 1.5; }
.intake-card p b { color: #94a3b8; }
.intake-meta { color: #6c7a8a !important; font-size: .8rem !important; }
.intake-actions {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; margin-top: 14px;
  align-items: center;
}
.intake-actions select,
.intake-actions input {
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  padding: 8px 10px; color: #e7ece9; font: inherit; font-size: .85rem;
}
.intake-decided { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.intake-status-approved { color: #4bd66d; }
.intake-status-declined { color: #fb7185; }
.intake-status-pending  { color: #fbbf24; }

@media (max-width: 720px) {
  .intake-actions { grid-template-columns: 1fr; }
  .intake-paths { grid-template-columns: 1fr 1fr; }
}

/* ============ MOOD TIMELINE ============ */
.mood-panel { margin-top: 16px; }
.mood-timeline { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; padding: 10px 0; }
.mood-cell {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(120,160,200,.06); border: 1px solid rgba(120,160,200,.08);
  transition: transform .15s, background .25s;
  cursor: pointer;
}
.mood-cell:hover { transform: scale(1.15); z-index: 1; }
.mood-emoji { font-size: 1rem; line-height: 1; }
.mood-cell small { font-size: .6rem; color: #6c7a8a; margin-top: 2px; }
.mood-cell.mood-1 { background: rgba(251,113,133,.15); border-color: rgba(251,113,133,.3); }
.mood-cell.mood-2 { background: rgba(251,146,60,.12);  border-color: rgba(251,146,60,.3); }
.mood-cell.mood-3 { background: rgba(251,191,36,.12);  border-color: rgba(251,191,36,.3); }
.mood-cell.mood-4 { background: rgba(75,214,109,.15);  border-color: rgba(75,214,109,.3); }
.mood-cell.mood-5 { background: rgba(75,214,109,.3);   border-color: #4bd66d; box-shadow: 0 0 8px rgba(75,214,109,.4); }

/* ============ COHORT SORT ============ */
.cohort-sort {
  margin-left: auto;
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  color: #94a3b8; padding: 6px 10px; font-size: .8rem; cursor: pointer;
}
.cohort-sort:focus { outline: none; border-color: #4bd66d; }

/* ============ MARK-ALL-DONE BUTTON ============ */
#markAllDone {
  background: transparent; border: 1px solid rgba(75,214,109,.3);
  color: #4bd66d; padding: 4px 10px; font-size: .72rem;
  cursor: pointer; transition: all .15s;
}
#markAllDone:hover { background: rgba(75,214,109,.1); border-color: #4bd66d; }

/* ============ MESSAGE CONTEXT MENU ============ */
.msg-ctx {
  position: fixed; z-index: 9600;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 180px; padding: 4px;
  background: linear-gradient(180deg, rgba(18,31,43,.98), rgba(8,16,24,.98));
  border: 1px solid rgba(75,214,109,.3);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.7);
  animation: ciIn .2s cubic-bezier(.34,1.56,.64,1) both;
}
.msg-ctx button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: transparent; border: none; color: #cbd5e1;
  font: inherit; font-size: .85rem; text-align: left; cursor: pointer;
}
.msg-ctx button:hover { background: rgba(75,214,109,.08); color: #fff; }
.msg-ctx button.danger:hover { background: rgba(251,113,133,.08); color: #fb7185; }
.msg-ctx button i { width: 14px; height: 14px; }

/* ============ COMPACT MODE ============ */
.compact-mode .surface { padding: 12px 14px !important; }
.compact-mode .atlas-hero { padding: 14px 18px !important; }
.compact-mode .atlas-hero h2 { font-size: 1.4rem !important; }
.compact-mode .kpi { padding: 12px !important; }
.compact-mode .kpi strong { font-size: 1.4rem !important; }
.compact-mode .week-grid { gap: 6px !important; }
.compact-mode .day-col { padding: 8px 6px !important; min-height: 160px !important; }
.compact-mode .program-grid article { padding: 12px !important; }
.compact-mode .badges-grid { gap: 8px !important; }
.compact-mode .badge-card { padding: 14px 10px !important; }
.compact-mode .cohort-roster { gap: 8px !important; }
.compact-mode .resource-mega { gap: 8px !important; }
.compact-mode .ci-task { padding: 8px 10px !important; }

/* ============ LESSON OF THE DAY CARD ============ */
.lod-card {
  background: linear-gradient(135deg, rgba(75,214,109,.08), rgba(162,107,255,.08));
  border-color: rgba(75,214,109,.25) !important;
}
.lod-card .section-head i { color: #4bd66d; }
.lod-body { padding: 6px 0; }
.lod-body .eyebrow { color: #4bd66d; font-size: .65rem; }
.lod-body h4 {
  font-size: 1.1rem; margin: 6px 0;
  background: linear-gradient(135deg, #fff, #4bd66d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lod-body p { color: #cbd5e1; font-size: .88rem; margin: 0 0 12px; line-height: 1.5; }
.lod-body button { padding: 8px 14px; font-size: .82rem; display: inline-flex; align-items: center; gap: 8px; }

/* ============ SNIPPET ADD BUTTON + REMOVE X ============ */
.qr-add {
  font-size: .72rem !important;
  padding: 5px 10px !important;
  background: rgba(162,107,255,.1) !important;
  border: 1px dashed rgba(162,107,255,.4) !important;
  color: #a26bff !important;
}
.qr-add:hover { background: rgba(162,107,255,.2) !important; }
.qr-x {
  display: inline-block; margin-left: 6px;
  font-size: .9rem; opacity: .5;
  width: 14px; height: 14px; line-height: 12px; text-align: center;
}
.qr-x:hover { opacity: 1; color: #fb7185; }

/* ============ NOTES VAULT ============ */
.notes-vault {
  margin-top: 24px; padding: 14px 18px;
  background: rgba(162,107,255,.04);
  border: 1px solid rgba(162,107,255,.2);
}
.notes-vault summary {
  cursor: pointer; color: #a26bff; font-size: .92rem; font-weight: 600;
  list-style: none; user-select: none;
}
.notes-vault summary::-webkit-details-marker { display: none; }
.notes-vault summary:hover { color: #c4b5fd; }
.notes-vault input {
  width: 100%; margin-top: 12px;
  background: rgba(8,16,24,.7); border: 1px solid rgba(162,107,255,.3);
  padding: 10px 14px; color: #e7ece9;
}
.notes-vault input:focus { outline: none; border-color: #a26bff; }
.notes-hit {
  padding: 10px 12px; margin-top: 8px; cursor: pointer;
  background: rgba(8,16,24,.5); border: 1px solid rgba(162,107,255,.15);
  transition: border-color .2s;
}
.notes-hit:hover { border-color: rgba(162,107,255,.5); }
.notes-hit strong { color: #a26bff; font-size: .88rem; }
.notes-hit p { color: #cbd5e1; font-size: .82rem; margin: 4px 0 0; }
.notes-hit mark { background: rgba(162,107,255,.3); color: #fff; padding: 0 2px; }

/* ============ COHORT BANNER ============ */
.cohort-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(162,107,255,.15), rgba(75,214,109,.08));
  border: 1px solid rgba(162,107,255,.3);
  border-left: 3px solid #a26bff;
  animation: bannerIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes bannerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cohort-banner i { color: #a26bff; flex: none; }
.cohort-banner span { flex: 1; color: #e7ece9; font-size: .92rem; }
#cohortBannerClose {
  width: 26px; height: 26px; padding: 0; background: transparent;
  border: 1px solid rgba(162,107,255,.3); color: #a26bff;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
#cohortBannerClose:hover { background: rgba(162,107,255,.1); }



/* ---------- Settings ---------- */
.settings-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.set-row { display:grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 12px; }
.set-row label { font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:#6c7a8a; }
.set-row input, .set-row select {
  background: rgba(8,16,24,.7); border:1px solid rgba(120,160,200,.15);
  padding: 10px 12px; color:#e2e8f0; width:100%;
}
.set-row input:focus, .set-row select:focus { outline:none; border-color:#4bd66d; }
.theme-row { display:flex; gap:8px; margin-bottom: 12px; flex-wrap:wrap; }
.theme {
  display:flex; align-items:center; gap:8px; padding: 8px 14px;
  background: rgba(8,16,24,.5); border:1px solid rgba(120,160,200,.1);
  color:#94a3b8; cursor:pointer; font-size:.82rem;
}
.theme.active { border-color:#4bd66d; color:#fff; }
.theme span { width:14px; height:14px; background:#4bd66d; border-radius: 2px; }
.theme.purple span { background:#a26bff; } .theme.cyan span { background:#22d3ee; } .theme.amber span { background:#fbbf24; }
.hint { color:#6c7a8a; font-size:.78rem; margin: 6px 0 12px; }
.hint code { background: rgba(8,16,24,.7); padding: 1px 6px; font-size:.78rem; color:#4bd66d; }
.danger { color: #fb7185 !important; border-color: rgba(251,113,133,.3) !important; }
.danger:hover { background: rgba(251,113,133,.08) !important; }
.plan-card { padding: 14px; background: rgba(75,214,109,.06); border: 1px solid rgba(75,214,109,.25); }
.plan-card strong { display:block; font-size:1rem; }
.plan-card p { color:#cbd5e1; font-size:.85rem; margin: 6px 0; }
.plan-card em { font-style:normal; color:#4bd66d; display:block; margin-bottom: 12px; font-size: 1.2rem; }
.shortcuts { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.shortcuts li { display:flex; gap:6px; align-items:center; padding: 8px 0; font-size:.85rem; }
.shortcuts li span { margin-left: 12px; color:#94a3b8; }
kbd {
  display:inline-block; padding: 3px 7px; background: rgba(8,16,24,.9);
  border: 1px solid rgba(120,160,200,.2); border-bottom-width: 2px;
  font-family: ui-monospace, monospace; font-size: .75rem; color:#e2e8f0;
}

@media (max-width: 1100px) {
  .messages-shell { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .community-top { grid-template-columns: 1fr; }
  .atlas-hero { grid-template-columns: 1fr; }
  .atlas-hero-stat { justify-content: flex-start; }
}

/* Dropzone in first-boot overlay */
.name-card .dropzone {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding: 24px; margin: 16px 0 8px;
  background: rgba(8,16,24,.7); border: 2px dashed rgba(75,214,109,.35);
  color:#cbd5e1; cursor:pointer; transition: all .2s; width: 100%;
}
.name-card .dropzone:hover, .name-card .dropzone.drag {
  border-color:#4bd66d; background: rgba(75,214,109,.08);
  transform: translateY(-2px);
}
.name-card .dropzone i { width: 28px; height: 28px; color:#4bd66d; }
.name-card .dropzone strong { color:#fff; }
.name-card .dropzone small { color:#6c7a8a; font-size:.78rem; }
.name-card .divider {
  display:flex; align-items:center; gap: 12px; margin: 8px 0;
  color:#6c7a8a; font-size:.7rem; letter-spacing:.18em;
}
.name-card .divider::before, .name-card .divider::after {
  content:""; flex:1; height: 1px; background: rgba(120,160,200,.15);
}
.name-card .manual-setup { display:flex; flex-direction:column; gap: 10px; }

/* ============ DAILY CHECK-IN · WIZARD ============ */
.ci-shell {
  position: relative; width: min(640px, calc(100vw - 32px)); max-height: 92vh;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(18,31,43,.98), rgba(8,16,24,.98));
  border: 1px solid rgba(75,214,109,.3);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 60px -25px rgba(75,214,109,.5);
  overflow: hidden;
  animation: ciIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes ciIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

.ci-header {
  position: relative; padding: 20px 24px 14px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.ci-header h2 {
  font-size: 1.6rem; margin: 4px 0 0;
  background: linear-gradient(135deg, #fff, #4bd66d 60%, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ci-eyebrow { color: #4bd66d; }
.ci-close {
  width: 32px; height: 32px; border: 1px solid rgba(120,160,200,.15);
  background: rgba(8,16,24,.7); color: #94a3b8; cursor: pointer; font-size: 1.4rem;
  line-height: 1; padding: 0; transition: all .2s;
}
.ci-close:hover { color: #fff; border-color: rgba(75,214,109,.4); transform: rotate(90deg); }

/* Progress */
.ci-progress { padding: 6px 24px 14px; }
.ci-progress-track {
  height: 3px; background: rgba(120,160,200,.12); margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.ci-progress-track #ciProgressFill {
  height: 100%; width: 25%;
  background: linear-gradient(90deg, #4bd66d, #a26bff);
  box-shadow: 0 0 12px rgba(75,214,109,.6);
  transition: width .55s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.ci-progress-track #ciProgressFill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  animation: shine 2.4s linear infinite;
}
.ci-progress-dots { display: flex; justify-content: space-between; gap: 8px; }
.ci-dot {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #6c7a8a; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  transition: color .25s;
}
.ci-dot i { width: 16px; height: 16px; transition: transform .25s; }
.ci-dot.active   { color: #4bd66d; }
.ci-dot.active i { transform: scale(1.25); filter: drop-shadow(0 0 6px rgba(75,214,109,.6)); }
.ci-dot.done     { color: #a26bff; }

/* Stage */
.ci-stage {
  flex: 1; min-height: 280px; padding: 6px 24px 16px;
  position: relative; overflow-y: auto;
}
.ci-step {
  display: none; animation: stepIn .35s ease both;
}
.ci-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.ci-lead { color: #94a3b8; font-size: .9rem; margin: 4px 0 16px; }

/* Tasks */
.ci-tasks { display: flex; flex-direction: column; gap: 8px; }
.ci-task {
  position: relative; cursor: pointer;
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px;
  background: rgba(8,16,24,.6);
  border: 1px solid rgba(120,160,200,.12);
  transition: all .25s;
}
.ci-task:hover { border-color: rgba(75,214,109,.4); transform: translateX(3px); }
.ci-task input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.ci-task-check {
  width: 24px; height: 24px; display: grid; place-items: center;
  border: 2px solid rgba(120,160,200,.3); border-radius: 4px;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.ci-task-check i { width: 14px; height: 14px; color: #0a0d12; opacity: 0; transition: opacity .2s; }
.ci-task[data-checked="1"] {
  background: linear-gradient(90deg, rgba(75,214,109,.1), transparent);
  border-color: rgba(75,214,109,.5);
}
.ci-task[data-checked="1"] .ci-task-check {
  background: #4bd66d; border-color: #4bd66d;
  box-shadow: 0 0 12px rgba(75,214,109,.6);
  transform: scale(1.1) rotate(360deg);
}
.ci-task[data-checked="1"] .ci-task-check i { opacity: 1; }
.ci-task[data-checked="1"] .ci-task-body strong { color: #6c7a8a; text-decoration: line-through; }
.ci-task-body { display: flex; flex-direction: column; gap: 2px; }
.ci-task-body time { font-size: .68rem; letter-spacing: .12em; color: #4bd66d; }
.ci-task-body strong { font-size: .92rem; }

.ci-task-summary {
  margin-top: 14px; text-align: center; font-size: .82rem;
  color: #4bd66d; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px; background: rgba(75,214,109,.06); border: 1px solid rgba(75,214,109,.18);
}

/* Numbers */
.ci-numbers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ci-num-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(8,16,24,.7), rgba(18,31,43,.7));
  border: 1px solid rgba(120,160,200,.15);
  cursor: text; transition: all .25s;
}
.ci-num-tile:hover, .ci-num-tile:focus-within {
  border-color: rgba(75,214,109,.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -15px rgba(75,214,109,.4);
}
.ci-num-tile i { width: 22px; height: 22px; color: #4bd66d; }
.ci-num-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; text-align: center; }
.ci-num-tile input {
  width: 100%; text-align: center; font-size: 2rem; font-weight: 700;
  background: transparent; border: none; color: #fff;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.ci-num-tile input::-webkit-inner-spin-button { display: none; }
.ci-num-tile input:focus { outline: none; color: #4bd66d; text-shadow: 0 0 16px rgba(75,214,109,.5); }
.ci-num-tile small { font-size: .68rem; color: #6c7a8a; letter-spacing: .08em; }

/* Textarea fields */
.ci-textfield { position: relative; }
.ci-textfield textarea {
  width: 100%; padding: 14px 16px; resize: vertical; min-height: 120px;
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  color: #e7ece9; font: inherit; font-size: .92rem; line-height: 1.5;
  transition: border-color .2s;
}
.ci-textfield textarea:focus { outline: none; border-color: #4bd66d; }
.ci-textfield-glow {
  position: absolute; inset: -1px; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: linear-gradient(135deg, rgba(75,214,109,.15), transparent 40%, rgba(162,107,255,.15));
}
.ci-textfield textarea:focus + .ci-textfield-glow { opacity: 1; }
.ci-hint { display: block; margin-top: 8px; color: #6c7a8a; font-size: .78rem; }

/* Footer */
.ci-footer {
  padding: 14px 20px 18px;
  background: rgba(8,16,24,.6);
  border-top: 1px solid rgba(120,160,200,.08);
  display: flex; flex-direction: column; gap: 12px;
}
.ci-preview {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  padding: 8px 0;
}
.ci-pv-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 14px;
  border-right: 1px solid rgba(120,160,200,.1);
}
.ci-pv-stat:last-child { border-right: none; }
.ci-pv-stat b {
  font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #4bd66d, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: all .25s;
}
.ci-pv-stat span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #6c7a8a; }
#ciPvLevelWrap b { animation: levelPulse 1.4s ease-in-out infinite; }
@keyframes levelPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(162,107,255,.6)); }
  50%      { transform: scale(1.15); filter: drop-shadow(0 0 16px rgba(162,107,255,1)); }
}

.ci-nav { display: flex; gap: 8px; justify-content: flex-end; }
.ci-nav button { padding: 11px 24px; font-weight: 600; }
.ci-submit { background: linear-gradient(135deg, #4bd66d, #16a34a) !important; }

/* Confetti */
.ci-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1000; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -10%; width: 8px; height: 14px;
  animation: confettiFall 2s linear forwards;
  opacity: .9;
}
@keyframes confettiFall {
  to { top: 110%; transform: translateX(var(--tx, 0px)) rotate(720deg); opacity: 0; }
}

/* ============ COMMAND PALETTE ============ */
.cmd-palette {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5,11,18,.78); backdrop-filter: blur(8px);
  display: grid; place-items: start center; padding-top: 12vh;
  animation: fadeIn .2s ease;
}
.cmd-palette[hidden] { display: none !important; }
.pomodoro-dock[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cmd-shell {
  width: min(620px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(18,31,43,.98), rgba(8,16,24,.98));
  border: 1px solid rgba(75,214,109,.3);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: ciIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
.cmd-input-wrap {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid rgba(120,160,200,.1);
}
.cmd-input-wrap i { color: #4bd66d; }
.cmd-input-wrap input {
  background: transparent; border: none; color: #e7ece9;
  font: inherit; font-size: 1.05rem; width: 100%;
}
.cmd-input-wrap input:focus { outline: none; }
.cmd-input-wrap kbd { font-size: .7rem; }
.cmd-results {
  max-height: 50vh; overflow-y: auto; padding: 6px 0;
}
.cmd-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 18px; background: transparent; border: none; color: #cbd5e1;
  font: inherit; font-size: .92rem; cursor: pointer; text-align: left;
}
.cmd-row i { color: #6c7a8a; width: 16px; height: 16px; flex: none; }
.cmd-row.active, .cmd-row:hover { background: rgba(75,214,109,.08); color: #fff; }
.cmd-row.active i { color: #4bd66d; }
.cmd-empty { padding: 16px; text-align: center; color: #6c7a8a; font-size: .85rem; }
.cmd-footer {
  display: flex; gap: 16px; justify-content: flex-end;
  padding: 10px 18px; border-top: 1px solid rgba(120,160,200,.08);
  font-size: .72rem; color: #6c7a8a;
}
.cmd-footer span { display: flex; align-items: center; gap: 4px; }

/* ============ POMODORO DOCK ============ */
.pomodoro-dock {
  position: fixed; bottom: 20px; right: 20px; z-index: 8000;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(18,31,43,.96), rgba(8,16,24,.96));
  border: 1px solid rgba(75,214,109,.3);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7), 0 0 30px -15px rgba(75,214,109,.4);
  animation: pomoIn .3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes pomoIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
.pomo-ring { width: 50px; height: 50px; }
.pomo-ring svg { width: 100%; height: 100%; }
.pomo-ring circle { transition: stroke-dashoffset .9s ease; filter: drop-shadow(0 0 4px rgba(75,214,109,.5)); }
.pomo-content { display: flex; flex-direction: column; line-height: 1.1; }
.pomo-content strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pomo-content small { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: #4bd66d; }
.pomo-actions { display: flex; gap: 4px; }
.pomo-actions button {
  width: 30px; height: 30px; padding: 0; display: grid; place-items: center;
  background: rgba(75,214,109,.12); border: 1px solid rgba(75,214,109,.3);
  color: #4bd66d; cursor: pointer; transition: all .15s;
}
.pomo-actions button:hover { background: rgba(75,214,109,.25); }
.pomo-actions i { width: 14px; height: 14px; }

/* ============ HEATMAP ============ */
.heatmap-panel { padding: 18px; }
.heatmap-grid {
  display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px;
  margin: 12px 0;
}
.hm-cell {
  aspect-ratio: 1; border-radius: 2px;
  background: rgba(120,160,200,.08);
  transition: transform .15s, background .25s;
}
.hm-cell:hover { transform: scale(1.4); z-index: 1; cursor: pointer; }
.hm-cell[data-level="1"] { background: rgba(75,214,109,.25); }
.hm-cell[data-level="2"] { background: rgba(75,214,109,.5); }
.hm-cell[data-level="3"] { background: rgba(75,214,109,.75); }
.hm-cell[data-level="4"] { background: #4bd66d; box-shadow: 0 0 6px rgba(75,214,109,.6); }
.heatmap-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; }
.heatmap-legend small { color: #6c7a8a; font-size: .7rem; margin: 0 4px; }
.heatmap-legend .hm-cell { width: 12px; height: 12px; flex: none; }

/* ============ APPROVAL CARDS ============ */
.approvals-list { display: flex; flex-direction: column; gap: 12px; }
.approval-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border: 1px solid rgba(120,160,200,.12); border-left: 3px solid #fbbf24;
}
.approval-card.approved { border-left-color: #4bd66d; opacity: .7; }
.approval-card.declined { border-left-color: #fb7185; opacity: .6; }
.approval-card header {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px;
}
.approval-card header span { color: #94a3b8; font-size: .85rem; }
.approval-card header time { color: #6c7a8a; font-size: .75rem; }
.approval-bar { height: 4px; background: rgba(120,160,200,.1); margin: 8px 0; }
.approval-bar > div { height: 100%; background: linear-gradient(90deg, #fbbf24, #4bd66d); transition: width .8s; }
.approval-card p { color: #94a3b8; font-size: .85rem; margin: 6px 0 12px; }
.approval-actions { display: flex; gap: 8px; }
.approval-actions button { padding: 8px 16px; }
.approval-status {
  font-style: normal; padding: 4px 10px; background: rgba(120,160,200,.1);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ============ UNLOCK CTA on dashboard ============ */
.unlock-cta {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #0a0d12 !important;
  border: none; margin-top: 8px;
  animation: unlockPulse 2s ease-in-out infinite;
}
@keyframes unlockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,.6); }
  50%      { box-shadow: 0 0 20px 6px rgba(251,191,36,.3); }
}

/* ============ STREAK FREEZE BUTTON ============ */
.freeze-btn {
  background: rgba(34,211,238,.1) !important; color: #22d3ee !important;
  border-color: rgba(34,211,238,.3) !important; margin-top: 6px;
}
.freeze-btn:hover { background: rgba(34,211,238,.2) !important; }

/* ============ VOICE JOURNAL BUTTON ============ */
#voiceJournal { padding: 10px 12px; }
#voiceJournal.recording {
  background: rgba(251,113,133,.15); border-color: #fb7185; color: #fb7185;
  animation: recordPulse 1s ease-in-out infinite;
}
@keyframes recordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,113,133,.5); }
  50%      { box-shadow: 0 0 0 8px rgba(251,113,133,0); }
}

/* ============ SOVEREIGN BRAND MARK ============ */
.sovereign-mark {
  position: relative;
  width: 44px; height: 44px;
  background: radial-gradient(circle at 30% 30%, rgba(75,214,109,.18), transparent 70%);
  border: 1px solid rgba(75,214,109,.3);
  display: grid; place-items: center;
  overflow: visible;
}
.sovereign-mark svg { width: 32px; height: 32px; }
.sovereign-mark .sov-outer { transform-origin: 20px 20px; animation: sovOuter 14s linear infinite; }
.sovereign-mark .sov-inner { transform-origin: 20px 20px; animation: sovInner 9s linear infinite reverse; }
.sovereign-mark .sov-pulse { animation: sovPulse 2.4s ease-in-out infinite; transform-origin: 20px 20px; }
@keyframes sovOuter { to { transform: rotate(360deg); } }
@keyframes sovInner { to { transform: rotate(360deg); } }
@keyframes sovPulse {
  0%, 100% { transform: scale(1); opacity: .9; filter: drop-shadow(0 0 4px rgba(75,214,109,.6)); }
  50%      { transform: scale(2.2); opacity: .3; filter: drop-shadow(0 0 12px rgba(75,214,109,1)); }
}
.sovereign-mark::after {
  content:""; position: absolute; inset: -8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(75,214,109,.15), transparent 60%);
  animation: sovHalo 4s ease-in-out infinite; pointer-events: none;
}
@keyframes sovHalo { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: .9; transform: scale(1.2); } }

.sov-title {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: .26em;
  background: linear-gradient(135deg, #fff 0%, #4bd66d 50%, #a26bff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sovGradShift 8s ease infinite;
}
.sov-title strong { font-weight: 800; font-size: .95rem; }
@keyframes sovGradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ============ CURSOR BLOB + TRAIL ============ */
.cursor-blob {
  position: fixed; pointer-events: none; z-index: 0;
  width: 320px; height: 320px;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(75,214,109,.10), rgba(162,107,255,.04) 35%, transparent 65%);
  will-change: transform;
}
.cursor-trail {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 8px; height: 8px;
  background: radial-gradient(circle, #4bd66d, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .2s;
  filter: blur(2px);
}
.cursor-trail.active { opacity: .6; }

/* Hide on touch devices / reduced motion */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-blob, .cursor-trail { display: none; }
}

/* ============ NAV ITEM HOVER GLOW ============ */
.sidebar .nav-item {
  position: relative;
  transition: all .28s cubic-bezier(.34,1.56,.64,1);
}
.sidebar .nav-item::before {
  content:""; position: absolute; left: 0; top: 50%;
  width: 3px; height: 0; background: #4bd66d;
  transform: translateY(-50%); border-radius: 0 2px 2px 0;
  transition: height .25s ease;
}
.sidebar .nav-item:hover::before { height: 70%; box-shadow: 0 0 12px #4bd66d; }
.sidebar .nav-item.active::before { height: 80%; box-shadow: 0 0 16px #4bd66d; }
.sidebar .nav-item:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(75,214,109,.08), transparent);
}

/* ============ MAGNETIC BUTTONS ============ */
button.primary, button.secondary {
  transition: transform .15s ease, box-shadow .25s, background .2s;
  position: relative;
  overflow: hidden;
}
button.primary::before {
  content:""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,.25), transparent 50%);
  opacity: 0; transition: opacity .25s;
}
button.primary:hover::before { opacity: 1; }
button.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -10px rgba(75,214,109,.6); }
button.primary:active { transform: translateY(1px); }

/* ============ VIEW TRANSITION ============ */
@keyframes viewSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(.99); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.atlas-view.active, .view.active {
  animation: viewSlideIn .45s cubic-bezier(.34,1.56,.64,1) both;
}

/* ============ SURFACE PARALLAX HOVER ============ */
.surface {
  position: relative;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s, border-color .35s;
}
.surface::after {
  content:""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(600px 200px at var(--card-x, 50%) var(--card-y, 50%), rgba(75,214,109,.07), transparent 70%);
  transition: opacity .3s;
}
.surface:hover::after { opacity: 1; }

/* ============ LIVE-PULSE on Live indicators ============ */
.live-dot, em.live-dot {
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75,214,109,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(75,214,109,0); }
}

/* ============ SECTION HEAD HOVER UNDERLINE ============ */
.section-head h3 {
  position: relative; display: inline-block;
}
.section-head h3::after {
  content:""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0;
  background: linear-gradient(90deg, #4bd66d, transparent);
  transition: width .4s ease;
}
.surface:hover .section-head h3::after { width: 100%; }

.badges-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.badge-card {
  position: relative; padding: 22px 16px; text-align: center;
  background: linear-gradient(160deg, rgba(18,31,43,.85), rgba(8,16,24,.95));
  border: 1px solid rgba(120,160,200,.12);
  transition: transform .25s, border-color .25s;
}
.badge-card.earned { border-color: rgba(75,214,109,.4); }
.badge-card.earned::before {
  content:""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at top, rgba(75,214,109,.12), transparent 60%);
}
.badge-card:hover { transform: translateY(-3px); }
.badge-icon {
  width: 60px; height: 60px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(120,160,200,.08);
  border: 1px solid rgba(120,160,200,.15);
  color: #6c7a8a;
  position: relative; z-index: 1;
}
.badge-icon i { width: 28px; height: 28px; }
.badge-card.earned .badge-icon {
  background: linear-gradient(135deg, rgba(75,214,109,.2), rgba(162,107,255,.15));
  border-color: rgba(75,214,109,.5); color: #4bd66d;
  box-shadow: 0 0 20px -5px rgba(75,214,109,.4);
}
.badge-card strong { display: block; font-size: .92rem; margin-bottom: 4px; position: relative; z-index: 1; }
.badge-card small { color: #6c7a8a; font-size: .72rem; letter-spacing: .08em; position: relative; z-index: 1; }
.badge-card.locked { opacity: .55; filter: grayscale(.4); }

/* ============ TODAY WIDGET ============ */
.today-widget {
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.today-widget-time {
  display: flex; align-items: baseline; gap: 8px;
}
.today-widget-time strong {
  font-size: 1.8rem; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #4bd66d, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.today-widget-time small { color: #94a3b8; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.today-widget-stat { display: flex; align-items: baseline; gap: 6px; font-size: .82rem; color: #94a3b8; }
.today-widget-stat b { color: #4bd66d; font-size: 1rem; }
.today-widget-bar { height: 4px; background: rgba(120,160,200,.1); }
.today-widget-bar > div { height: 100%; background: linear-gradient(90deg, #4bd66d, #a26bff); transition: width .8s; }

/* ============ COHORT FILTERS ============ */
.cohort-search-input {
  flex: 1; min-width: 200px;
  padding: 10px 14px;
  background: rgba(8,16,24,.7); border: 1px solid rgba(120,160,200,.15);
  color: #e2e8f0;
}
.cohort-search-input:focus { outline: none; border-color: #4bd66d; }
.cohort-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cohort-filters button {
  padding: 6px 12px; font-size: .8rem;
  background: rgba(8,16,24,.5); border: 1px solid rgba(120,160,200,.12);
  color: #94a3b8; cursor: pointer; transition: all .2s;
}
.cohort-filters button:hover { color: #fff; border-color: rgba(75,214,109,.3); }
.cohort-filters button.active {
  background: rgba(75,214,109,.12); color: #4bd66d; border-color: #4bd66d;
}

/* ============ MOOD SELECTOR ============ */
.ci-mood-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.ci-mood {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; cursor: pointer;
  background: rgba(8,16,24,.5); border: 1px solid rgba(120,160,200,.12);
  font-size: 1.8rem; transition: all .2s;
}
.ci-mood:hover { transform: translateY(-2px); border-color: rgba(75,214,109,.3); }
.ci-mood.active {
  background: rgba(75,214,109,.12); border-color: #4bd66d;
  box-shadow: 0 0 20px -5px rgba(75,214,109,.5);
  transform: scale(1.05);
}
.ci-mood span {
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  color: #94a3b8; font-weight: 600;
}
.ci-mood.active span { color: #4bd66d; }

/* ============ WELCOME SPLASH ============ */
.welcome-splash {
  position: fixed; inset: 0; z-index: 9500;
  background: radial-gradient(ellipse at center, #061320, #02060c 80%);
  display: grid; place-items: center;
  animation: welcomeIn .55s cubic-bezier(.16,1,.3,1) both;
  overflow: hidden;
}
.welcome-splash[hidden] { display: none !important; }
.welcome-splash.welcome-out { animation: welcomeOut .5s cubic-bezier(.7,0,.84,0) both; }
@keyframes welcomeIn  { from { opacity: 0; backdrop-filter: blur(0); } to { opacity: 1; backdrop-filter: blur(8px); } }
@keyframes welcomeOut { to { opacity: 0; transform: scale(1.04); } }

.welcome-fx {
  position: absolute; inset: 0; pointer-events: none;
  width: 100%; height: 100%;
}

.welcome-shell {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 540px;
  padding: 0 24px;
}
.welcome-mark {
  margin: 0 auto 20px;
  width: 100px; height: 100px;
  display: grid; place-items: center;
  position: relative;
}
.welcome-mark::before {
  content:""; position: absolute; inset: -20px;
  background: radial-gradient(circle, rgba(75,214,109,.2), transparent 60%);
  filter: blur(10px);
  animation: welcomeHalo 3s ease-in-out infinite;
}
@keyframes welcomeHalo { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.welcome-mark svg { width: 100px; height: 100px; position: relative; z-index: 1; }
.wlc-outer { transform-origin: 40px 40px; animation: sovOuter 12s linear infinite; }
.wlc-inner { transform-origin: 40px 40px; animation: sovInner 8s linear infinite reverse; }
.wlc-core { animation: wlcPulse 1.6s ease-in-out infinite; transform-origin: 40px 40px; }
@keyframes wlcPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(75,214,109,.6)); }
  50%      { transform: scale(2); filter: drop-shadow(0 0 14px rgba(75,214,109,1)); }
}

.welcome-time {
  letter-spacing: .35em; color: #4bd66d; font-size: .72rem;
  animation: welcomeFade .7s ease both;
  animation-delay: .15s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.welcome-name {
  font-size: 2.5rem; font-weight: 800; margin: 8px 0 6px;
  background: linear-gradient(135deg, #fff, #4bd66d 60%, #a26bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
  animation: welcomeFade .8s ease both .35s;
  opacity: 0;
}
.welcome-name span { color: inherit; }
.welcome-sub {
  color: #94a3b8; font-size: 1rem;
  animation: welcomeFade .8s ease both .55s;
  opacity: 0;
}
@keyframes welcomeFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.welcome-agenda {
  margin: 28px 0;
  animation: welcomeFade .9s ease both .75s;
  opacity: 0;
}
.welcome-agenda-label {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #6c7a8a;
  margin-bottom: 12px;
}
.welcome-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.welcome-list li {
  display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(18,31,43,.7), rgba(8,16,24,.7));
  border: 1px solid rgba(75,214,109,.18);
  border-left: 2px solid #4bd66d;
  animation: welcomeListIn .6s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: calc(.95s + var(--i, 0) * .12s);
  opacity: 0;
}
@keyframes welcomeListIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: none; } }
.welcome-num {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: rgba(75,214,109,.12); color: #4bd66d;
  font-weight: 700; font-size: 1rem;
  border: 1px solid rgba(75,214,109,.4);
}
.welcome-task strong { display: block; font-size: .98rem; color: #e7ece9; }
.welcome-task small { display: block; font-size: .72rem; color: #4bd66d; letter-spacing: .12em; margin-top: 2px; }
.welcome-empty { color: #6c7a8a; font-style: italic; padding: 20px; text-align: center; }

.welcome-actions {
  margin-top: 28px;
  animation: welcomeFade .8s ease both 1.5s;
  opacity: 0;
}
.welcome-actions button {
  padding: 14px 28px; font-size: .95rem; font-weight: 600;
  background: linear-gradient(135deg, #4bd66d, #16a34a);
  color: #06120a; border: none;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 30px -10px rgba(75,214,109,.5);
}
.welcome-actions .hint { display: block; margin-top: 12px; font-size: .75rem; }

/* ============ TOGGLE SWITCHES ============ */
.toggle-row { display: block !important; }
.toggle {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; padding: 4px 0;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  position: relative; width: 38px; height: 20px;
  background: rgba(120,160,200,.15); border: 1px solid rgba(120,160,200,.2);
  border-radius: 999px; transition: all .25s;
  flex: none;
}
.toggle-thumb {
  position: absolute; top: 1px; left: 1px;
  width: 16px; height: 16px;
  background: #94a3b8; border-radius: 50%;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.toggle input:checked + .toggle-track {
  background: rgba(75,214,109,.2); border-color: #4bd66d;
}
.toggle input:checked + .toggle-track .toggle-thumb {
  left: 19px; background: #4bd66d;
  box-shadow: 0 0 8px rgba(75,214,109,.6);
}
.toggle-text { font-size: .88rem; color: #cbd5e1; }

/* ============ MOTION OFF MODE ============ */
.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}
.motion-off .cursor-blob,
.motion-off .cursor-trail,
.motion-off .aurora-field,
.motion-off #starfield,
.motion-off .welcome-fx,
.motion-off .macro-pulse,
.motion-off .live-dot,
.motion-off em.live-dot,
.motion-off .welcome-mark::before {
  display: none !important;
}

/* ============ CLICK RIPPLES ============ */
.click-ripple {
  position: absolute; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(75,214,109,.5), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple .65s cubic-bezier(.16,1,.3,1) forwards;
  z-index: 1;
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(40); opacity: 0; }
}
.click-pulse {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(75,214,109,.6);
  transform: translate(-50%, -50%) scale(0);
  animation: pulseOut .6s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes pulseOut {
  to { transform: translate(-50%, -50%) scale(3); opacity: 0; border-width: 1px; }
}

/* ============ TYPING CURSOR ON WELCOME LINE ============ */
.welcome-line {
  position: relative;
}
.welcome-line::after {
  content:"▋"; color: #4bd66d; opacity: .7;
  animation: caretBlink 1.1s steps(1) infinite;
  margin-left: 4px;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Legacy old-style daily check-in */
.checkin-card { max-width: 540px; max-height: 90vh; overflow-y: auto; }
.checkin-card h2 { font-size: 1.6rem; margin-top: 4px; }
.checkin-block { display:flex; flex-direction:column; gap: 6px; margin-top: 4px; }
.checkin-label { font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:#6c7a8a; }
.checkin-tasks { display:flex; flex-direction:column; gap: 6px; max-height: 200px; overflow-y:auto; }
.checkin-task {
  display:flex; align-items:center; gap: 10px; padding: 10px 12px;
  background: rgba(8,16,24,.6); border:1px solid rgba(120,160,200,.12);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.checkin-task:hover { border-color: rgba(75,214,109,.35); background: rgba(75,214,109,.05); }
.checkin-task input[type="checkbox"] { width: 18px; height: 18px; accent-color:#4bd66d; cursor:pointer; flex:none; }
.checkin-task span { display:flex; flex-direction:column; gap: 2px; font-size: .92rem; }
.checkin-task time { font-size:.7rem; letter-spacing:.1em; color:#4bd66d; }
.checkin-task input[type="checkbox"]:checked + span { color:#6c7a8a; text-decoration: line-through; }
.checkin-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checkin-grid label { display:flex; flex-direction:column; gap: 4px; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:#6c7a8a; }
.checkin-grid input,
.checkin-card textarea {
  background: rgba(8,16,24,.7); border:1px solid rgba(120,160,200,.15);
  padding: 9px 12px; color:#e7ece9; font: inherit; font-size:.9rem;
  text-transform: none; letter-spacing: 0;
}
.checkin-card textarea { width: 100%; resize: vertical; min-height: 60px; }
.checkin-grid input:focus, .checkin-card textarea:focus { outline:none; border-color:#4bd66d; }
.checkin-actions { display:flex; gap: 8px; justify-content:flex-end; margin-top: 4px; }
.checkin-actions button { padding: 10px 18px; }
.checkin-cta { background: rgba(75,214,109,.12) !important; border-color:#4bd66d !important; color:#4bd66d !important; }
.checkin-cta:hover { background: rgba(75,214,109,.2) !important; }

/* ============ MACRO STATION (experimental health tracker) ============ */
.macro-station {
  position: relative;
  margin-bottom: 18px; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(75,214,109,.08), rgba(34,211,238,.05) 40%, rgba(162,107,255,.06));
  border: 1px solid rgba(75,214,109,.2);
  border-left: 3px solid #4bd66d;
  overflow: hidden;
}
.macro-station::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(800px 200px at var(--mx,50%) var(--my,0%), rgba(75,214,109,.08), transparent 60%),
    repeating-linear-gradient(90deg, rgba(75,214,109,.04) 0 1px, transparent 1px 80px);
  animation: macroDrift 18s linear infinite;
}
@keyframes macroDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 80px 0; }
}
.macro-station-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; gap: 24px; position: relative; z-index: 1; }
.macro-station-head h3 { font-size: 1.4rem; margin: 4px 0 0; }
.macro-overall { display:flex; align-items:center; gap: 14px; }
.macro-overall-ring { position: relative; width: 80px; height: 80px; }
.macro-overall-ring svg { width: 100%; height: 100%; }
.macro-overall-ring circle { transition: stroke-dashoffset .9s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 0 6px rgba(75,214,109,.5)); }
.macro-overall-ring b { position:absolute; inset:0; display:grid; place-items:center; font-size:1.05rem; font-weight:700; }
.macro-overall strong { display:block; font-size: 1rem; }
.macro-overall small { color:#6c7a8a; font-size: .75rem; letter-spacing:.1em; text-transform:uppercase; }

.macro-grid {
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  position: relative; z-index: 1;
}
@media (max-width: 980px) { .macro-grid { grid-template-columns: repeat(2,1fr); } }

.macro-tile {
  position: relative; padding: 14px 16px;
  background: rgba(8,16,24,.6);
  border: 1px solid rgba(120,160,200,.12);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.macro-tile:hover { transform: translateY(-2px); border-color: rgba(75,214,109,.35); }
.macro-tile-head { display:flex; align-items:center; gap: 8px; margin-bottom: 10px; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:#94a3b8; }
.macro-tile-head i { width: 14px; height: 14px; color: #4bd66d; }
.macro-tile-head span { flex:1; }
.macro-tile-head b { color:#fff; font-size:.85rem; letter-spacing:0; text-transform:none; font-variant-numeric: tabular-nums; }
.macro-tile[data-macro="protein"] .macro-tile-head i { color: #a26bff; }
.macro-tile[data-macro="water"] .macro-tile-head i { color: #22d3ee; }
.macro-tile[data-macro="sleep"] .macro-tile-head i { color: #6366f1; }

.macro-bar {
  position: relative; height: 8px;
  background: rgba(120,160,200,.08);
  overflow: hidden; margin-bottom: 10px;
}
.macro-bar > div {
  position: relative; height: 100%;
  background: linear-gradient(90deg, #4bd66d, #86efac);
  box-shadow: 0 0 12px rgba(75,214,109,.45);
  transition: width 1s cubic-bezier(.34,1.56,.64,1);
}
.macro-bar > div::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  animation: shine 2.4s linear infinite;
}
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.macro-bar.protein > div { background: linear-gradient(90deg, #a26bff, #d8b4fe); box-shadow: 0 0 12px rgba(162,107,255,.45); }
.macro-bar.water   > div { background: linear-gradient(90deg, #22d3ee, #67e8f9); box-shadow: 0 0 12px rgba(34,211,238,.45); }
.macro-bar.sleep   > div { background: linear-gradient(90deg, #6366f1, #a5b4fc); box-shadow: 0 0 12px rgba(99,102,241,.45); }

.macro-pulse {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(75,214,109,.9), rgba(75,214,109,0) 60%);
  pointer-events: none;
  animation: pulseTravel 4s ease-in-out infinite;
}
.macro-bar.protein .macro-pulse { background: radial-gradient(circle, rgba(162,107,255,.9), transparent 60%); }
.macro-bar.water .macro-pulse   { background: radial-gradient(circle, rgba(34,211,238,.9),  transparent 60%); }
.macro-bar.sleep .macro-pulse   { background: radial-gradient(circle, rgba(99,102,241,.9),  transparent 60%); }
@keyframes pulseTravel {
  0%   { left: 0%;  opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.macro-bar[data-full="1"] > div { animation: fullGlow 1.4s ease-in-out infinite alternate; }
@keyframes fullGlow {
  from { box-shadow: 0 0 12px rgba(75,214,109,.45); }
  to   { box-shadow: 0 0 24px rgba(75,214,109,.9), 0 0 4px rgba(255,255,255,.5); }
}

.macro-tile-foot { display:flex; align-items:baseline; gap: 6px; flex-wrap: wrap; }
.macro-tile-foot strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.macro-tile-foot em { font-style: normal; color:#6c7a8a; font-size:.78rem; }
.micro-controls { display:flex; gap: 4px; margin-left: auto; }
.micro-controls button {
  width: 26px; height: 26px; padding: 0;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3);
  color: #22d3ee; font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.micro-controls button:hover { background: rgba(34,211,238,.25); }
.macro-tile[data-macro="sleep"] input {
  width: 60px; padding: 4px 8px; margin-left: auto;
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc; font: inherit; font-size: .85rem;
}
.macro-tile[data-macro="sleep"] input:focus { outline: none; border-color: #6366f1; }

/* ============ TOASTS ============ */
.toast-stack {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; min-width: 240px;
  background: linear-gradient(135deg, rgba(18,31,43,.96), rgba(12,22,32,.96));
  border: 1px solid rgba(75,214,109,.4); border-left: 3px solid #4bd66d;
  color: #e7ece9; font-size: .88rem;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6), 0 0 30px -15px rgba(75,214,109,.4);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1) both;
  pointer-events: auto;
}
.toast i { width: 18px; height: 18px; color: #4bd66d; flex: none; }
.toast-close {
  width: 22px; height: 22px; padding: 0;
  background: transparent; border: none;
  color: #6c7a8a; cursor: pointer;
  font-size: 1.1rem; line-height: 1; margin-left: auto;
  transition: color .15s;
}
.toast-close:hover { color: #fff; }
.toast-msg    { border-left-color: #22d3ee; } .toast-msg i    { color: #22d3ee; }
.toast-unlock { border-left-color: #a26bff; } .toast-unlock i { color: #a26bff; }
.toast-win    { border-left-color: #fbbf24; } .toast-win i    { color: #fbbf24; }
.toast-out    { animation: toastOut .35s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to   { opacity: 0; transform: translateX(20px); } }

/* ============ PHASE UNLOCK CELEBRATION ============ */
.phase-card { text-align: center; max-width: 480px; }
.phase-card h2 { font-size: 2rem; background: linear-gradient(135deg, #4bd66d, #a26bff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phase-burst {
  width: 80px; height: 80px; margin: 0 auto 8px; border-radius: 50%;
  background: radial-gradient(circle, #a26bff, transparent 70%);
  animation: phaseBurst 1.2s ease-out infinite;
}
@keyframes phaseBurst {
  0%   { transform: scale(.8); opacity: .8; box-shadow: 0 0 0 0 rgba(162,107,255,.7); }
  100% { transform: scale(1.2); opacity: 0;  box-shadow: 0 0 0 60px rgba(162,107,255,0); }
}

/* ============ ONBOARDING TOUR ============ */
.onboard-card { max-width: 520px; }
.onboard-card h2 { font-size: 1.6rem; }
.onboard-burst {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 6px;
  background: radial-gradient(circle, #4bd66d, #22d3ee 60%, transparent);
  animation: phaseBurst 2.4s ease-out infinite;
}
.onboard-progress {
  display: flex; justify-content: center; padding: 8px 0 4px;
}
.onboard-progress span { display: flex; gap: 6px; }
.onboard-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(120,160,200,.2); transition: all .25s;
}
.onboard-dot.active {
  background: #4bd66d; transform: scale(1.4);
  box-shadow: 0 0 8px rgba(75,214,109,.6);
}

/* ============ JOURNAL ============ */
.journal-list { display: flex; flex-direction: column; gap: 10px; }
.journal-entry {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border: 1px solid rgba(120,160,200,.12); border-left: 2px solid #a26bff;
}
.journal-entry header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.journal-entry time { color: #6c7a8a; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.journal-lesson { font-size: .82rem; color: #fbbf24; padding: 2px 8px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); }
.journal-entry p { color: #cbd5e1; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; margin: 0; }

/* ============ COHORT ============ */
.cohort-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cohort-card {
  padding: 16px; cursor: pointer; transition: transform .25s, border-color .25s;
  background: linear-gradient(180deg, rgba(18,31,43,.85), rgba(12,22,32,.95));
  border: 1px solid rgba(120,160,200,.12); border-top: 2px solid #6c7a8a;
}
.cohort-card.live { border-top-color: #4bd66d; box-shadow: 0 0 30px -15px rgba(75,214,109,.5); }
.cohort-card:hover { transform: translateY(-2px); }
.cohort-card header { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.cohort-av { width: 36px; height: 36px; display: grid; place-items: center; background: linear-gradient(135deg,#4bd66d,#a26bff); color: #0a0d12; font-weight: 700; }
.cohort-card header strong { display: block; font-size: .95rem; }
.cohort-card header small { color: #6c7a8a; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.cohort-bar { height: 4px; background: rgba(120,160,200,.1); margin-bottom: 12px; }
.cohort-bar > div { height: 100%; background: linear-gradient(90deg, #4bd66d, #a26bff); box-shadow: 0 0 8px rgba(75,214,109,.4); transition: width .8s; }
.cohort-card footer { display: flex; gap: 12px; font-size: .78rem; color: #94a3b8; flex-wrap: wrap; }
.cohort-card footer .cohort-ago { margin-left: auto; color: #6c7a8a; }
.cohort-actions {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  padding: 14px; background: rgba(75,214,109,.04); border: 1px dashed rgba(75,214,109,.2);
}
.cohort-actions .hint { margin: 0; }

/* ============ INLINE EDITABLE PROFILE NAME ============ */
#profileChipName[contenteditable="true"] {
  outline: 1px solid #4bd66d; outline-offset: 2px;
  background: rgba(75,214,109,.08); padding: 2px 6px;
  cursor: text;
}
#profileChip { cursor: pointer; }
.live-dot {
  font-style: normal; font-size: .6rem; letter-spacing: .15em; padding: 2px 6px;
  background: rgba(75,214,109,.15); color: #4bd66d; border: 1px solid rgba(75,214,109,.4);
  animation: liveDot 1.6s ease-in-out infinite;
}
@keyframes liveDot { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 880px) {
  .app-shell { display: flex; flex-direction: column; }
  .sidebar {
    position: sticky; top: 0; z-index: 50;
    width: 100%; height: auto;
    flex-direction: row; align-items: center; gap: 8px;
    padding: 10px 12px; overflow-x: auto;
    background: rgba(5,11,18,.95); backdrop-filter: blur(10px);
    border-right: none; border-bottom: 1px solid rgba(120,160,200,.1);
  }
  .sidebar .brand { flex: none; }
  .sidebar .brand h1 { display: none; }
  .sidebar .nav {
    display: flex; flex-direction: row; gap: 4px;
    overflow-x: auto; flex: 1; padding: 0;
  }
  .sidebar .nav-label { display: none; }
  .sidebar .nav-item {
    flex: none; padding: 8px 12px; white-space: nowrap;
    font-size: .85rem;
  }
  .sidebar .nav-item span { display: none; }
  .sidebar .nav-item i { width: 20px; height: 20px; }
  .sidebar .nav-item.active span { display: inline; }
  .sidebar .daily-progress, .sidebar .profile-chip { display: none; }

  .main { padding: 16px 12px 80px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar h2 { font-size: 1.5rem; }
  .top-actions { width: 100%; justify-content: space-between; }
  .today-pill { padding: 6px 10px; font-size: .78rem; }
  .profile-chip { padding: 4px 10px; }

  /* Dashboard layout */
  .dashboard-grid { grid-template-columns: 1fr; gap: 14px; }
  .right-rail { display: contents; }
  .split, .split.three-up { grid-template-columns: 1fr; gap: 12px; }
  .top-cards { grid-template-columns: 1fr; }

  /* Health */
  .macro-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .macro-station { padding: 16px 14px; }
  .macro-station-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .macro-overall { width: 100%; justify-content: space-between; }

  /* Programs / hubs */
  .program-hubs { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Schedule */
  .week-grid {
    grid-template-columns: repeat(7, minmax(180px, 1fr));
    overflow-x: auto; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .day-col { min-width: 180px; }
  .schedule-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .schedule-actions { width: 100%; }

  /* Resources / KPIs */
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .resource-mega { grid-template-columns: 1fr 1fr; }
  .resource-tabs { overflow-x: auto; padding-bottom: 4px; }

  /* Messages */
  .messages-shell { grid-template-columns: 1fr; min-height: auto; }
  .thread-list ul { max-height: 300px; }
  .thread-view { min-height: 480px; }

  /* Cohort */
  .cohort-roster { grid-template-columns: 1fr; }

  /* Atlas hero */
  .atlas-hero { grid-template-columns: 1fr; padding: 18px 16px; }
  .atlas-hero h2 { font-size: 1.5rem; }
  .atlas-hero-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 12px; width: 100%; }
  .atlas-hero-stat > div { text-align: left; }

  /* Settings */
  .settings-grid { grid-template-columns: 1fr; }

  /* Modals */
  .name-card, .checkin-card, .phase-card { max-width: calc(100vw - 32px); padding: 20px 18px; }
  .checkin-grid { grid-template-columns: 1fr; }

  /* Toasts */
  .toast-stack { top: 60px; right: 8px; left: 8px; }
  .toast { min-width: auto; }
}

@media (max-width: 480px) {
  .macro-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .resource-mega { grid-template-columns: 1fr; }
}

.empty-line {
  padding: 20px 12px; text-align:center;
  color: #6c7a8a; font-size: .85rem; font-style: italic;
  border: 1px dashed rgba(120,160,200,.15);
  background: rgba(8,16,24,.3);
}

/* ============================================================
   INTAKE v2 — cinematic initiation page
   ============================================================ */
.intake-v2 {
  --theme-accent: #4bd66d;
  --theme-accent-2: #a26bff;
  --theme-rgb: 75, 214, 109;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(75,214,109,0.06), transparent 60%), #05070b;
  transition: background 0.8s ease;
}
.intake-v2.themed { background: radial-gradient(ellipse at 50% 0%, rgba(var(--theme-rgb), 0.12), transparent 60%), #05070b; }

/* Access-granted intro overlay */
.intake-intro {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #0a0f15, #000);
  animation: introFade 2.6s 1.4s ease forwards;
  pointer-events: none;
}
.intake-intro-rings { position: absolute; width: 400px; height: 400px; display: grid; place-items: center; }
.intake-intro-rings span { position: absolute; border: 1px solid rgba(75,214,109,.3); border-radius: 50%; animation: ringExpand 2.4s ease-out infinite; width: 80px; height: 80px; }
.intake-intro-rings span:nth-child(2) { animation-delay: .8s; }
.intake-intro-rings span:nth-child(3) { animation-delay: 1.6s; }
.intake-intro-eyebrow { font-size: .75rem; letter-spacing: .4em; color: rgba(75,214,109,.7); margin-bottom: .8rem; animation: introUp .8s ease forwards; opacity: 0; transform: translateY(8px); }
.intake-intro-title { font-size: 3rem; font-weight: 800; letter-spacing: .15em; background: linear-gradient(90deg, #4bd66d, #a26bff, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: 0; animation: introUp .8s .15s ease forwards; opacity: 0; transform: translateY(8px); }
.intake-intro-sub { margin-top: .6rem; font-size: .9rem; color: rgba(255,255,255,.55); animation: introUp .8s .35s ease forwards; opacity: 0; transform: translateY(8px); }
.intake-intro-bar { margin-top: 2rem; width: 240px; height: 2px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; animation: introUp .8s .5s ease forwards; opacity: 0; transform: translateY(8px); }
.intake-intro-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4bd66d, #a26bff, #22d3ee); width: 0; animation: introBar 1.6s .8s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes introUp { to { opacity: 1; transform: translateY(0); } }
@keyframes introBar { to { width: 100%; } }
@keyframes introFade { to { opacity: 0; visibility: hidden; transform: scale(1.05); } }
@keyframes ringExpand { 0% { width: 80px; height: 80px; opacity: .6; } 100% { width: 360px; height: 360px; opacity: 0; } }

/* Ambient layers */
.intake-ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.intake-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%); animation: gridDrift 60s linear infinite; }
@keyframes gridDrift { to { background-position: 60px 60px; } }
.intake-glow { position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(var(--theme-rgb), .08), transparent 40%), radial-gradient(circle at 80% 70%, rgba(162, 107, 255, .06), transparent 40%); transition: background 0.8s ease; animation: glowPulse 8s ease-in-out infinite; }
@keyframes glowPulse { 50% { opacity: .7; } }
.intake-orbs span { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(var(--theme-rgb),.4), transparent 70%); filter: blur(20px); animation: orbFloat 12s ease-in-out infinite; }
.intake-orbs span:nth-child(1) { width: 240px; height: 240px; top: 10%; left: -60px; }
.intake-orbs span:nth-child(2) { width: 180px; height: 180px; top: 60%; right: -40px; animation-delay: 3s; }
.intake-orbs span:nth-child(3) { width: 140px; height: 140px; bottom: 10%; left: 30%; animation-delay: 6s; }
.intake-orbs span:nth-child(4) { width: 200px; height: 200px; top: 30%; right: 30%; animation-delay: 9s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); opacity: .5; } 33% { transform: translate(40px,-30px) scale(1.1); opacity: .7; } 66% { transform: translate(-30px,40px) scale(.9); opacity: .4; } }

/* Shell + progress orbs */
.intake-shell-v2 { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.intake-progress { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 3rem; animation: shellUp 1s 2.6s ease backwards; }
.iprog-step { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .65rem; letter-spacing: .25em; }
.iprog-step b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-weight: 600; font-size: .75rem; transition: all .4s ease; }
.iprog-step label { color: rgba(255,255,255,.3); transition: color .4s ease; }
.iprog-step.active b { background: rgba(var(--theme-rgb), .15); border-color: var(--theme-accent); color: var(--theme-accent); box-shadow: 0 0 24px rgba(var(--theme-rgb), .4); }
.iprog-step.active label { color: var(--theme-accent); }
.iprog-step.complete b { background: var(--theme-accent); border-color: var(--theme-accent); color: #050810; }
.iprog-line { flex: 0 0 60px; height: 1px; background: rgba(255,255,255,.1); position: relative; }
.iprog-line::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--theme-accent); transition: width .6s ease; }
.iprog-line.filled::after { width: 100%; }
@keyframes shellUp { from { opacity: 0; transform: translateY(20px); } }

/* Header + sigil */
.intake-header-v2 { text-align: center; margin-bottom: 3rem; animation: shellUp 1s 2.8s ease backwards; }
.sigil-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto 1.5rem; display: grid; place-items: center; }
.sigil-aura { position: absolute; inset: -20px; background: radial-gradient(circle, rgba(var(--theme-rgb), .25), transparent 60%); filter: blur(15px); animation: auraBreath 4s ease-in-out infinite; transition: background 0.8s ease; }
@keyframes auraBreath { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
.sigil { position: relative; width: 100%; height: 100%; animation: sigilSpin 24s linear infinite; }
.sigil-outer { animation: sigilPulse 4s ease-in-out infinite; transform-origin: center; }
.sigil-mid { animation: sigilPulse 4s ease-in-out infinite reverse; transform-origin: center; }
.sigil-ring { animation: sigilSpin 18s linear infinite reverse; transform-origin: center; }
.sigil-core { animation: corePulse 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes sigilSpin { to { transform: rotate(360deg); } }
@keyframes sigilPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.95); opacity: .7; } }
@keyframes corePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }
.gradient-text { background: linear-gradient(90deg, #4bd66d, #a26bff, #22d3ee); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradFlow 6s linear infinite; }
@keyframes gradFlow { to { background-position: -200% 0; } }
.intake-title-v2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin: 1rem 0; letter-spacing: -.02em; }
.grad-shift { background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background 0.8s ease; }
.intake-header-v2 .intake-sub { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.55); line-height: 1.6; }

/* Sections */
.intake-section { margin-bottom: 3rem; padding: 2rem; border-radius: 18px; background: rgba(10, 16, 24, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.06); position: relative; animation: sectionUp .8s ease backwards; transition: border-color .4s ease; }
.intake-section:hover { border-color: rgba(var(--theme-rgb), .15); }
.intake-section:nth-of-type(1) { animation-delay: 3.0s; }
.intake-section:nth-of-type(2) { animation-delay: 3.15s; }
.intake-section:nth-of-type(3) { animation-delay: 3.3s; }
.intake-section:nth-of-type(4) { animation-delay: 3.45s; }
@keyframes sectionUp { from { opacity: 0; transform: translateY(24px); } }
.intake-section-head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 1rem; align-items: center; margin-bottom: 1.5rem; }
.isec-badge { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--theme-rgb),.1); border: 1px solid rgba(var(--theme-rgb),.3); color: var(--theme-accent); font-weight: 700; font-size: .85rem; letter-spacing: .1em; transition: all .4s ease; }
.intake-section-head h3 { margin: 0; font-size: 1.4rem; font-weight: 700; color: rgba(255,255,255,.95); }
.intake-section-head p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.45); }

/* Form fields */
.intake-form-v2 .intake-row { position: relative; margin-bottom: 1rem; }
.intake-form-v2 input,
.intake-form-v2 textarea { width: 100%; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 1rem 1.2rem; color: white; font-size: 1rem; font-family: inherit; resize: vertical; transition: all .3s ease; }
.intake-form-v2 input::placeholder,
.intake-form-v2 textarea::placeholder { color: rgba(255,255,255,.3); }
.intake-form-v2 input:focus,
.intake-form-v2 textarea:focus { outline: none; background: rgba(var(--theme-rgb),.04); border-color: var(--theme-accent); box-shadow: 0 0 0 4px rgba(var(--theme-rgb),.12); }
.ifield-line { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--theme-accent), transparent); transform: scaleX(0); transition: transform .4s ease; pointer-events: none; }
.intake-form-v2 .intake-row:focus-within .ifield-line { transform: scaleX(1); }

/* Major path cards */
.intake-paths-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1200px; }
.intake-paths-v2 .intake-path { position: relative; transform-style: preserve-3d; transition: transform .15s ease, filter .4s ease; cursor: pointer; }
.intake-paths-v2 .intake-path.dim { filter: brightness(.55) saturate(.4); transform: scale(.96); }
.intake-paths-v2 .ip-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.5rem 1rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); overflow: hidden; transition: border-color .4s ease, transform .4s ease, box-shadow .4s ease; }
.intake-paths-v2 .ip-card i { width: 30px; height: 30px; margin-bottom: .3rem; transition: transform .4s ease, filter .4s ease; }
.intake-paths-v2 .ip-card strong { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.95); }
.intake-paths-v2 .ip-card small { font-size: .72rem; color: rgba(255,255,255,.5); text-align: center; }
.ip-tag { margin-top: .6rem; font-size: .6rem; letter-spacing: .2em; color: rgba(255,255,255,.35); text-transform: uppercase; }
.ip-glow { position: absolute; inset: -2px; border-radius: 16px; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), currentColor, transparent 60%); opacity: 0; pointer-events: none; transition: opacity .4s ease; mix-blend-mode: screen; }
.intake-path:hover .ip-glow { opacity: .12; }
.intake-path:hover .ip-card { transform: translateY(-3px); border-color: currentColor; }
.intake-path:hover .ip-card i { transform: scale(1.15) rotate(-3deg); }
.intake-path:has(input:checked) .ip-card { border-color: currentColor; background: rgba(255,255,255,.04); box-shadow: 0 0 0 2px currentColor, 0 12px 40px -8px currentColor, inset 0 0 30px rgba(255,255,255,.03); transform: translateY(-4px) scale(1.02); }
.intake-path:has(input:checked) .ip-glow { opacity: .25; }
.intake-path:has(input:checked) .ip-card i { transform: scale(1.2); filter: drop-shadow(0 0 8px currentColor); }
.ip-card.prog-trading { color: #4bd66d; }
.ip-card.prog-ecom { color: #a26bff; }
.ip-card.prog-software { color: #f97316; }
.ip-card.prog-coding { color: #22d3ee; }
.ip-card.prog-content { color: #fbbf24; }
.ip-card.prog-ai { color: #14b8a6; }

/* Minor chips */
.intake-minor { margin-top: 1.5rem; padding: 1.2rem; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px dashed rgba(255,255,255,.1); animation: sectionUp .5s ease; }
.minor-eyebrow { font-size: .7rem; letter-spacing: .25em; color: rgba(255,255,255,.4); margin: 0 0 .8rem; }
.minor-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.minor-chip { padding: .5rem .9rem; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: rgba(255,255,255,.7); cursor: pointer; transition: all .25s ease; }
.minor-chip:hover { border-color: rgba(255,255,255,.2); color: white; }
.minor-chip.active { background: rgba(var(--theme-rgb),.15); border-color: var(--theme-accent); color: var(--theme-accent); }

/* Submit ceremony */
.seal-section { text-align: center; }
.intake-submit-v2 { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 1.2rem 2.5rem; border-radius: 14px; font-size: 1.05rem; font-weight: 700; border: none; cursor: pointer; overflow: hidden; background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2)); color: #061018; box-shadow: 0 12px 40px -10px rgba(var(--theme-rgb),.6); transition: transform .25s ease, box-shadow .25s ease; isolation: isolate; }
.intake-submit-v2 .submit-content { display: inline-flex; align-items: center; gap: .6rem; position: relative; z-index: 2; }
.intake-submit-v2:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 60px -10px rgba(var(--theme-rgb),.8); }
.intake-submit-v2:active { transform: translateY(0) scale(.99); }
.submit-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--theme-accent-2), var(--theme-accent)); opacity: 0; transition: opacity .4s ease; z-index: 1; }
.intake-submit-v2:hover .submit-bg { opacity: 1; }
.submit-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.submit-particles span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform-origin: 0 0; }
.intake-submit-v2.firing .submit-particles span { animation: particleFly .9s ease-out forwards; }
@keyframes particleFly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--px,0), var(--py,0)) scale(0); opacity: 0; } }
.hint-center { display: block; margin-top: 1rem; color: rgba(255,255,255,.4); text-align: center; }

/* Success */
.intake-success-v2 { text-align: center; padding: 4rem 2rem; position: relative; }
.success-rings { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); width: 200px; height: 200px; display: grid; place-items: center; }
.success-rings span { position: absolute; border: 1px solid var(--theme-accent); border-radius: 50%; width: 80px; height: 80px; animation: ringExpand 3s ease-out infinite; }
.success-rings span:nth-child(2) { animation-delay: 1s; }
.success-rings span:nth-child(3) { animation-delay: 2s; }
.success-sigil { position: relative; z-index: 2; width: 100px; height: 100px; margin: 0 auto 1.5rem; color: var(--theme-accent); animation: sigilPulse 2.4s ease-in-out infinite; filter: drop-shadow(0 0 20px currentColor); }
.intake-success-v2 h2 { margin: 1rem 0; font-size: 2.2rem; color: rgba(255,255,255,.95); }
.intake-success-v2 h2 #successPath { background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.success-sub { max-width: 540px; margin: 0 auto 2rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.success-meta { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; padding: 1.5rem 2.5rem; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); margin-bottom: 1.5rem; }
.success-meta b { display: block; font-size: 1.4rem; color: var(--theme-accent); font-weight: 700; }
.success-meta label { display: block; font-size: .65rem; letter-spacing: .25em; color: rgba(255,255,255,.4); margin-top: .25rem; }

@media (max-width: 720px) {
  .intake-paths-v2 { grid-template-columns: 1fr 1fr; }
  .intake-shell-v2 { padding: 2rem 1rem 4rem; }
  .iprog-line { flex: 0 0 24px; }
  .iprog-step label { display: none; }
  .intake-section { padding: 1.5rem 1.2rem; }
  .intake-title-v2 { font-size: 1.8rem; }
  .success-meta { gap: 1rem; padding: 1rem; }
}

/* ============================================================
   INTAKE v2 — major card scenes + spotlight + particles + vision
   ============================================================ */

/* Cursor spotlight that follows mouse across the grid */
.intake-paths-v2 { position: relative; }
.paths-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(circle 200px at var(--sx, -200px) var(--sy, -200px), rgba(255,255,255,.08), transparent 70%);
  pointer-events: none;
  border-radius: 16px;
  z-index: 0;
  transition: background .15s ease;
}

/* Card scaffolding for flip + scenes */
.intake-paths-v2 .ip-card { position: relative; min-height: 200px; transform-style: preserve-3d; }
.ip-front, .ip-back {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  transition: opacity .35s ease, transform .35s ease;
}
.ip-back {
  position: absolute; inset: 1.5rem 1rem 1.2rem;
  opacity: 0; transform: translateY(8px);
  text-align: center;
  pointer-events: none;
}
.ip-back strong { font-size: .7rem; letter-spacing: .25em; color: currentColor; }
.ip-back p { font-size: .82rem; color: rgba(255,255,255,.85); line-height: 1.4; margin: .35rem 0 .5rem; }
.ip-stats { font-size: .7rem; color: rgba(255,255,255,.5); }
.ip-stats b { color: currentColor; margin-right: 4px; }
.intake-path:hover .ip-front { opacity: 0; transform: translateY(-8px); }
.intake-path:hover .ip-back { opacity: 1; transform: translateY(0); }
.intake-path:has(input:checked) .ip-front { opacity: 1; transform: translateY(0); }
.intake-path:has(input:checked) .ip-back { opacity: 0; }

/* Scenes — common */
.ip-scene {
  position: absolute; inset: 0;
  display: block;
  z-index: 1;
  opacity: .35;
  pointer-events: none;
  transition: opacity .4s ease;
  border-radius: 16px;
  overflow: hidden;
}
.intake-path:hover .ip-scene { opacity: .65; }
.intake-path:has(input:checked) .ip-scene { opacity: .85; }
.ip-scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; color: currentColor; }

/* Trading: line + candles */
.scene-trading .trade-line {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: traceLine 4s ease-out infinite;
}
.scene-trading .trade-candles rect { fill: currentColor; opacity: .6; animation: candlePop 3s ease-in-out infinite; }
.scene-trading .trade-candles rect:nth-child(2) { animation-delay: .3s; }
.scene-trading .trade-candles rect:nth-child(3) { animation-delay: .6s; }
.scene-trading .trade-candles rect:nth-child(4) { animation-delay: .9s; }
.scene-trading .trade-candles rect:nth-child(5) { animation-delay: 1.2s; }
.scene-trading .trade-candles rect:nth-child(6) { animation-delay: 1.5s; }
@keyframes traceLine { 0% { stroke-dashoffset: 200; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .3; } }
@keyframes candlePop { 0%,100% { transform: scaleY(.7); opacity: .4; } 50% { transform: scaleY(1.1); opacity: .8; } }
.scene-trading .trade-candles rect { transform-origin: bottom; transform-box: fill-box; }

/* Ecom: floating boxes */
.scene-ecom .ecom-box {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: .6;
  animation: ecomFloat 6s ease-in-out infinite;
}
.scene-ecom .ecom-box::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: currentColor;
}
.ecom-box-1 { left: 15%; bottom: 18%; animation-delay: 0s; }
.ecom-box-2 { left: 38%; bottom: 30%; width: 18px; height: 18px; animation-delay: 1.2s; }
.ecom-box-3 { right: 30%; bottom: 14%; width: 12px; height: 12px; animation-delay: 2.4s; }
.ecom-box-4 { right: 12%; bottom: 26%; animation-delay: 3.6s; }
@keyframes ecomFloat { 0%,100% { transform: translateY(0) rotate(-3deg); opacity: .4; } 50% { transform: translateY(-12px) rotate(3deg); opacity: .8; } }

/* Software: code lines */
.scene-software { padding: 1.4rem .6rem 0; }
.scene-software .code-line {
  display: block;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
  margin: 4px 0;
  opacity: .35;
  transform: scaleX(0);
  transform-origin: left;
  animation: codeType 4s ease-in-out infinite;
}
.scene-software .code-line:nth-child(1) { width: 60%; animation-delay: 0s; }
.scene-software .code-line:nth-child(2) { width: 75%; animation-delay: .5s; }
.scene-software .code-line:nth-child(3) { width: 45%; animation-delay: 1s; }
.scene-software .code-line:nth-child(4) { width: 80%; animation-delay: 1.5s; }
.scene-software .code-line:nth-child(5) { width: 55%; animation-delay: 2s; }
@keyframes codeType { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* Coding: terminal */
.scene-coding {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  padding: 1.5rem .8rem 0;
  color: currentColor;
}
.term-prompt { opacity: .6; }
.term-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  vertical-align: bottom;
  animation: termType 4s steps(20) infinite;
}
.term-cursor {
  display: inline-block;
  width: 6px; height: 10px;
  background: currentColor;
  vertical-align: middle;
  animation: termBlink 1s steps(2) infinite;
}
@keyframes termType { 0% { width: 0; } 50% { width: 14ch; } 100% { width: 0; } }
@keyframes termBlink { 50% { opacity: 0; } }

/* Content: audio wave bars */
.scene-content {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 3px;
  padding: 0 .6rem .8rem;
}
.wave-bar {
  width: 4px;
  background: currentColor;
  border-radius: 2px;
  animation: waveFlex 1.2s ease-in-out infinite;
  opacity: .6;
}
.wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 22px; animation-delay: .1s; }
.wave-bar:nth-child(3) { height: 32px; animation-delay: .2s; }
.wave-bar:nth-child(4) { height: 26px; animation-delay: .3s; }
.wave-bar:nth-child(5) { height: 18px; animation-delay: .4s; }
.wave-bar:nth-child(6) { height: 28px; animation-delay: .5s; }
.wave-bar:nth-child(7) { height: 14px; animation-delay: .6s; }
@keyframes waveFlex { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1.2); } }
.scene-content .wave-bar { transform-origin: bottom; }

/* AI: neural network */
.scene-ai .ai-net line { stroke: currentColor; stroke-width: .8; opacity: .3; animation: netPulse 3s ease-in-out infinite; }
.scene-ai .ai-net line:nth-child(2) { animation-delay: .3s; }
.scene-ai .ai-net line:nth-child(3) { animation-delay: .6s; }
.scene-ai .ai-net line:nth-child(4) { animation-delay: .9s; }
.scene-ai .ai-net line:nth-child(5) { animation-delay: 1.2s; }
.scene-ai .ai-net line:nth-child(6) { animation-delay: 1.5s; }
.scene-ai .ai-net line:nth-child(7) { animation-delay: 1.8s; }
.scene-ai .ai-net line:nth-child(8) { animation-delay: 2.1s; }
.scene-ai .ai-node { fill: currentColor; opacity: .8; animation: nodePulse 2.4s ease-in-out infinite; }
.scene-ai .ai-node:nth-child(odd) { animation-delay: 1.2s; }
@keyframes netPulse { 0%,100% { opacity: .2; } 50% { opacity: .9; } }
@keyframes nodePulse { 0%,100% { r: 2.5; opacity: .6; } 50% { r: 3.5; opacity: 1; } }

/* Selected card — emit particles upward */
.ip-particles { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; border-radius: 16px; }
.intake-path:has(input:checked) .ip-particles::before,
.intake-path:has(input:checked) .ip-particles::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  filter: blur(1px);
  animation: emitUp 2.4s ease-out infinite;
}
.intake-path:has(input:checked) .ip-particles::after { animation-delay: 1.2s; left: 35%; }
@keyframes emitUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-160px) scale(0); opacity: 0; }
}

/* Holographic edge shimmer on select */
.intake-path:has(input:checked) .ip-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, transparent 30%, currentColor 50%, transparent 70%);
  background-size: 200% 200%;
  animation: holoSweep 3s linear infinite;
  z-index: 0;
  opacity: .25;
  pointer-events: none;
}
@keyframes holoSweep { 0% { background-position: 200% 200%; } 100% { background-position: -100% -100%; } }

/* ===== Vision section ===== */
.vision-section { position: relative; overflow: hidden; }
.vision-ripple {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--theme-rgb),.5), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.vision-ripple.fire {
  animation: rippleOut 1.4s ease-out;
}
@keyframes rippleOut {
  0% { width: 24px; height: 24px; opacity: .9; }
  100% { width: 500px; height: 500px; opacity: 0; }
}

.vision-listener {
  position: absolute; top: 1.6rem; right: 1.8rem;
  display: flex; align-items: center; gap: .35rem;
  font-size: .65rem; letter-spacing: .25em;
  color: rgba(255,255,255,.3);
  z-index: 4;
}
.vision-listener .listener-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--theme-accent);
  opacity: .3;
  transition: opacity .15s ease, transform .15s ease;
}
.vision-listener.active .listener-dot {
  animation: listenPulse 1.2s ease-in-out infinite;
}
.vision-listener.active .listener-dot:nth-child(2) { animation-delay: .2s; }
.vision-listener.active .listener-dot:nth-child(3) { animation-delay: .4s; }
.vision-listener.active .listener-label { color: var(--theme-accent); }
@keyframes listenPulse {
  0%,100% { opacity: .3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.vision-row { position: relative; z-index: 2; }
.vision-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-top: .6rem;
  padding: 0 .4rem;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}
.vision-words b { color: rgba(255,255,255,.85); font-weight: 700; margin-right: 4px; transition: color .3s ease; }
.vision-words.good b { color: var(--theme-accent); }
.vision-words.great b { color: var(--theme-accent); text-shadow: 0 0 12px currentColor; }
.vision-grade {
  flex: 1;
  font-style: italic;
  color: rgba(255,255,255,.4);
  transition: color .3s ease;
}
.vision-grade.warm { color: var(--theme-accent); }
.vision-bar {
  position: relative;
  width: 80px; height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.vision-bar #visionBarFill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2));
  border-radius: 2px;
  transition: width .35s ease;
}

/* ============================================================
   AVATAR DESIGNER (intake section 02 / avatar)
   ============================================================ */
.avatar-section { color: var(--theme-accent); }
.avatar-builder {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}
.avatar-stage {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(var(--theme-rgb),.12), transparent 70%), rgba(255,255,255,.02);
  border: 1px solid rgba(var(--theme-rgb),.15);
  overflow: hidden;
}
.avatar-stage-rings {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.avatar-stage-rings span {
  position: absolute;
  width: 60%; height: 60%;
  border: 1px dashed rgba(var(--theme-rgb),.2);
  border-radius: 50%;
  animation: avatarRingSpin 30s linear infinite;
}
.avatar-stage-rings span:nth-child(2) { width: 80%; height: 80%; animation-direction: reverse; animation-duration: 45s; opacity: .5; }
.avatar-stage-rings span:nth-child(3) { width: 96%; height: 96%; animation-duration: 60s; opacity: .25; }
@keyframes avatarRingSpin { to { transform: rotate(360deg); } }
.avatar-preview {
  position: relative; z-index: 2;
  width: 78%; aspect-ratio: 1;
  display: grid; place-items: center;
  filter: drop-shadow(0 14px 32px rgba(var(--theme-rgb),.45));
  animation: avatarIdle 7s ease-in-out infinite;
  perspective: 800px;
  transform-style: preserve-3d;
}
.avatar-preview svg { width: 100%; height: 100%; color: var(--theme-accent); transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.avatar-preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--theme-rgb),.18) 50%, transparent 100%);
  mix-blend-mode: screen;
  animation: scanSweep 4.5s linear infinite;
  border-radius: 22px;
  z-index: 3;
}
@keyframes scanSweep {
  0%   { top: -80px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes avatarIdle {
  0%   { transform: translateY(0) rotate(-1.2deg); }
  25%  { transform: translateY(-3px) rotate(0deg); }
  50%  { transform: translateY(-6px) rotate(1.2deg); }
  75%  { transform: translateY(-3px) rotate(0deg); }
  100% { transform: translateY(0) rotate(-1.2deg); }
}
@keyframes avatarBreath { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Eye blink (applies inside any avatar SVG) */
[data-avatar] .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: avatarBlink 6s infinite;
}
[data-avatar] .eye-r { animation-delay: .04s; }
@keyframes avatarBlink {
  0%, 91%, 94%, 100% { transform: scaleY(1); }
  92.5% { transform: scaleY(.08); }
}

/* Designer speech bubble */
.avatar-bubble {
  position: absolute;
  top: -14px; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 5;
  padding: 8px 14px;
  background: rgba(15, 23, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--theme-rgb),.35);
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  font-size: .78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.3,1);
}
.avatar-bubble.show {
  opacity: 1;
  transform: translate(-50%, -110%);
}
.avatar-bubble::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 10px; height: 10px;
  background: inherit;
  border-right: 1px solid rgba(var(--theme-rgb),.35);
  border-bottom: 1px solid rgba(var(--theme-rgb),.35);
  transform: translateX(-50%) rotate(45deg);
}

.avatar-random {
  position: absolute; bottom: 12px; right: 12px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(var(--theme-rgb),.3);
  border-radius: 999px;
  color: var(--theme-accent);
  font-size: .7rem; letter-spacing: .12em;
  cursor: pointer;
  transition: all .2s ease;
}
.avatar-random:hover { background: rgba(var(--theme-rgb),.2); transform: scale(1.05); }
.avatar-random i { width: 14px; height: 14px; }

.avatar-controls { display: flex; flex-direction: column; gap: 1.2rem; }
.avatar-group label {
  display: block;
  font-size: .65rem; letter-spacing: .25em;
  color: rgba(255,255,255,.4);
  margin-bottom: .5rem;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}
.avatar-options button {
  aspect-ratio: 1;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 6px;
  transition: all .2s ease;
}
.avatar-options button:hover { border-color: rgba(var(--theme-rgb),.4); color: white; transform: translateY(-2px); }
.avatar-options button.active {
  background: rgba(var(--theme-rgb),.12);
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  box-shadow: 0 0 16px rgba(var(--theme-rgb),.3);
}
.avatar-options svg { width: 100%; height: 100%; }

@media (max-width: 720px) {
  .avatar-builder { grid-template-columns: 1fr; }
  .avatar-options { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================================
   COMPANION VOICE (name + tone + how they call you)
   ============================================================ */
.companion-voice .cv-label {
  display: block;
  font-size: .65rem; letter-spacing: .3em;
  color: rgba(255,255,255,.4);
  margin-bottom: .6rem;
}
.companion-voice-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.6rem;
  margin-bottom: 1.2rem;
}
.companion-voice input {
  width: 100%;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .85rem 1rem;
  color: white;
  font-size: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .3s ease;
}
.companion-voice input:focus {
  outline: none;
  background: rgba(var(--theme-rgb),.04);
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 4px rgba(var(--theme-rgb),.12);
}
.cv-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.cv-suggest button {
  padding: .35rem .7rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.65);
  font-size: .7rem; letter-spacing: .12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
  transition: all .2s ease;
}
.cv-suggest button:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  background: rgba(var(--theme-rgb), .08);
  transform: translateY(-1px);
}
.cv-tones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cv-tones button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .25s ease;
}
.cv-tones button b { font-size: .8rem; color: rgba(255,255,255,.9); letter-spacing: .04em; }
.cv-tones button span { font-size: .72rem; color: rgba(255,255,255,.4); font-style: italic; }
.cv-tones button:hover { border-color: rgba(var(--theme-rgb),.4); transform: translateY(-1px); }
.cv-tones button.active {
  background: rgba(var(--theme-rgb), .1);
  border-color: var(--theme-accent);
  box-shadow: 0 0 16px rgba(var(--theme-rgb), .25);
}
.cv-tones button.active b { color: var(--theme-accent); }

.cv-callme {
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.cv-preview {
  margin-top: .8rem;
  padding: .8rem 1.1rem;
  background: rgba(var(--theme-rgb), .08);
  border: 1px solid rgba(var(--theme-rgb), .25);
  border-radius: 12px;
  animation: cvPreviewIn .35s ease;
}
@keyframes cvPreviewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.cv-bubble em {
  font-style: normal;
  font-weight: 700;
  color: var(--theme-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  margin-right: 6px;
}
.cv-bubble span {
  color: rgba(255,255,255,.85);
  font-style: italic;
}

@media (max-width: 720px) {
  .companion-voice-grid { grid-template-columns: 1fr; }
  .cv-tones { grid-template-columns: 1fr; }
}

/* ============================================================
   MULTI-LAYER PARALLAX (avatar depth)
   ============================================================ */
.avatar-preview [data-avatar] {
  transform-style: preserve-3d;
}
.avatar-preview [data-avatar] g[data-layer] {
  transition: transform .18s cubic-bezier(.2,.8,.3,1);
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

/* ============================================================
   SMOOTHNESS PASS — tactile click, snappy transitions
   ============================================================ */

/* Universal active state — instant tactile snap */
.intake-v2 button:not([disabled]):active,
.intake-v2 .intake-path:active,
.avatar-options button:active,
.cv-suggest button:active,
.cv-tones button:active,
.minor-chip:active,
.intake-submit-v2:active,
.intake-path:active .ip-card {
  transform: scale(.97) !important;
  transition: transform .08s ease-out !important;
}

/* Snappier card-hover / path-card transitions (was .4s — too slow for "click" feel) */
.intake-paths-v2 .ip-card {
  transition: border-color .25s ease, transform .15s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease, background .2s ease;
}
.intake-paths-v2 .ip-card i {
  transition: transform .18s cubic-bezier(.2,.8,.3,1), filter .25s ease;
}

/* Avatar option buttons — snap-feel transitions */
.avatar-options button {
  transition: border-color .15s ease, color .15s ease, transform .12s cubic-bezier(.2,.8,.3,1), background .15s ease, box-shadow .2s ease;
}

/* Tone tile snap */
.cv-tones button {
  transition: all .15s cubic-bezier(.2,.8,.3,1);
}

/* Suggest pill snap */
.cv-suggest button {
  transition: all .15s cubic-bezier(.2,.8,.3,1);
}

/* Composite layers — promote to GPU for smooth transforms */
.intake-paths-v2 .intake-path,
.avatar-preview,
.avatar-preview svg,
.intake-submit-v2 {
  will-change: transform;
}

/* Form fields — snap focus */
.intake-form-v2 input,
.intake-form-v2 textarea,
.companion-voice input {
  transition: background .2s ease, border-color .15s ease, box-shadow .2s ease;
}

/* Eliminate animation lag during initial fade — overlap shorter */
.intake-section { animation-duration: .55s; }
.intake-header-v2 { animation-duration: .7s; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .08s !important;
  }
}

/* ============================================================
   LANDING PAGE — Live counter, portal peek, testimonials
   ============================================================ */

/* Live cohort counter — slim band above quote */
.landing-counter {
  position: relative;
  max-width: 1080px;
  margin: 1rem auto;
  padding: 1.1rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(75,214,109,.06), rgba(162,107,255,.04));
  border: 1px solid rgba(75,214,109,.18);
  overflow: hidden;
}
.lc-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative; z-index: 2;
}
.lc-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; }
.lc-stat b {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.02em;
}
.lc-stat span {
  font-size: .68rem; letter-spacing: .25em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}
.lc-sep {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, rgba(75,214,109,.3), transparent);
}
.lc-pulse {
  position: absolute;
  left: 10px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4bd66d;
  box-shadow: 0 0 12px #4bd66d;
  animation: lcPulse 2s ease-in-out infinite;
}
@keyframes lcPulse { 0%,100% { opacity: 1; transform: translateY(-50%) scale(1); } 50% { opacity: .35; transform: translateY(-50%) scale(.7); } }

/* Portal peek — the mockup */
.landing-peek {
  max-width: 1080px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.landing-peek h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: .6rem 0 .8rem;
  background: linear-gradient(90deg, #4bd66d, #a26bff, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-sub { max-width: 620px; margin: 0 auto 2.5rem; color: rgba(255,255,255,.55); line-height: 1.6; }

.lp-mockup {
  position: relative;
  perspective: 1400px;
}
.lp-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,35,.95), rgba(8,14,22,.95));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px -20px rgba(75,214,109,.25), 0 0 0 1px rgba(75,214,109,.05);
  overflow: hidden;
  transform: rotateX(2deg);
  animation: lpFloat 6s ease-in-out infinite;
}
@keyframes lpFloat {
  0%,100% { transform: rotateX(2deg) translateY(0); }
  50%     { transform: rotateX(2deg) translateY(-8px); }
}

.lp-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-dot-r { background: #ff5f56; }
.lp-dot-y { background: #ffbd2e; }
.lp-dot-g { background: #27c93f; }
.lp-url {
  margin-left: 16px;
  font-size: .7rem; color: rgba(255,255,255,.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lp-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 360px;
}
.lp-sidebar {
  background: rgba(0,0,0,.3);
  padding: 1rem .8rem;
  border-right: 1px solid rgba(255,255,255,.05);
}
.lp-brand {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 1.5rem;
}
.lp-brand svg { width: 22px; height: 22px; color: #4bd66d; }
.lp-brand span { font-size: .75rem; font-weight: 700; letter-spacing: .15em; color: rgba(255,255,255,.85); }
.lp-nav { display: flex; flex-direction: column; gap: 4px; }
.lp-nav-item {
  padding: .5rem .7rem;
  border-radius: 6px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; align-items: center;
}
.lp-nav-item.active { background: rgba(75,214,109,.1); color: #4bd66d; }
.lp-nav-item b { background: #4bd66d; color: #050810; padding: 0 6px; border-radius: 999px; font-size: .65rem; font-weight: 700; }

.lp-main { padding: 1.2rem 1.4rem; text-align: left; }
.lp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.lp-header h3 { font-size: 1.1rem; margin: 0; color: rgba(255,255,255,.95); font-weight: 700; }
.lp-header h3 b { color: #4bd66d; }
.lp-header span { font-size: .7rem; letter-spacing: .15em; color: rgba(255,255,255,.4); text-transform: uppercase; }
.lp-streak {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.35);
  border-radius: 999px;
  color: #fbbf24;
  font-weight: 700;
}
.lp-streak i { width: 14px; height: 14px; }

.lp-tiles {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  margin-bottom: 1rem;
}
.lp-tile {
  padding: .9rem .8rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.lp-tile span { font-size: .6rem; letter-spacing: .2em; color: rgba(255,255,255,.4); display: block; margin-bottom: 6px; }
.lp-tile b { display: block; font-size: .85rem; color: rgba(255,255,255,.92); font-weight: 700; margin-bottom: 2px; }
.lp-tile small { font-size: .7rem; color: rgba(255,255,255,.45); }
.lp-tile-warm { background: rgba(75,214,109,.06); border-color: rgba(75,214,109,.25); }
.lp-tile-warm b { color: #4bd66d; }
.lp-chart { height: 60px; }
.lp-chart svg { width: 100%; height: 100%; }

.lp-companion {
  position: absolute;
  left: 14px; bottom: 14px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(10,16,24,.85);
  border: 1px solid rgba(75,214,109,.3);
  box-shadow: 0 8px 24px -4px rgba(75,214,109,.4);
  color: #4bd66d;
  overflow: visible;
  z-index: 3;
}
.lp-companion svg { width: 100%; height: 100%; }
.lp-bubble {
  position: absolute;
  left: 86px; bottom: 28px;
  padding: 8px 12px;
  background: rgba(15,23,35,.95);
  border: 1px solid rgba(75,214,109,.3);
  border-radius: 10px;
  font-size: .78rem;
  color: rgba(255,255,255,.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
  z-index: 3;
  animation: lpBubble 6s ease-in-out infinite;
}
@keyframes lpBubble {
  0%, 30%, 100% { opacity: 1; transform: translateY(0); }
  40%, 70%      { opacity: 0; transform: translateY(8px); }
}

/* Testimonials */
.landing-trust {
  max-width: 1080px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.landing-trust h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: .6rem 0 2rem;
  color: rgba(255,255,255,.95);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  text-align: left;
}
.trust-card {
  padding: 1.4rem 1.2rem;
  background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s ease;
}
.trust-card:hover { transform: translateY(-4px); border-color: rgba(75,214,109,.25); }
.trust-avatar {
  width: 72px; height: 72px;
  color: #4bd66d;
  filter: drop-shadow(0 6px 16px rgba(75,214,109,.3));
}
.trust-avatar svg { width: 100%; height: 100%; }
.trust-card p {
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  font-style: italic;
  margin: 0;
}
.trust-meta { display: flex; flex-direction: column; gap: 2px; }
.trust-meta b { font-size: .85rem; color: rgba(255,255,255,.95); font-weight: 700; }
.trust-meta span { font-size: .7rem; color: rgba(255,255,255,.45); letter-spacing: .08em; }

/* Vary trust-avatar accents per card */
.trust-card:nth-child(1) .trust-avatar { color: #4bd66d; }
.trust-card:nth-child(2) .trust-avatar { color: #a26bff; }
.trust-card:nth-child(3) .trust-avatar { color: #f97316; }
.trust-card:nth-child(4) .trust-avatar { color: #fbbf24; }

/* ============================================================
   STREAK CHAIN CARD (Dashboard)
   ============================================================ */
.streak-chain-card {
  padding: 1.4rem 1.4rem 1.2rem;
  background: linear-gradient(160deg, rgba(251,191,36,.07), rgba(75,214,109,.04));
  border: 1px solid rgba(251,191,36,.18);
}
.sc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem;
}
.sc-head h3 {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sc-head h3 small {
  font-size: .7rem;
  letter-spacing: .25em;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  font-family: inherit;
}
.sc-flame {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #050810;
  box-shadow: 0 0 24px rgba(251,191,36,.5);
}
.sc-flame i { width: 20px; height: 20px; }
.sc-chain {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin-bottom: .8rem;
}
.sc-chain span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: all .3s ease;
  position: relative;
}
.sc-chain span.on {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: #f97316;
  box-shadow: 0 0 8px rgba(251,191,36,.5);
}
.sc-chain span.today {
  background: rgba(75,214,109,.15);
  border-color: #4bd66d;
  animation: scTodayPulse 2s ease-in-out infinite;
}
.sc-chain span.today.on {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  border-color: #4bd66d;
  box-shadow: 0 0 14px rgba(75,214,109,.7);
}
@keyframes scTodayPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(75,214,109,.4); }
  50%     { box-shadow: 0 0 0 6px rgba(75,214,109,0); }
}
.sc-hint {
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-style: italic;
}
.sc-hint b { color: #fbbf24; font-style: normal; }

/* ============================================================
   SINGLE STUDENT PANEL (slide-in from right)
   ============================================================ */
.student-panel { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.student-panel[hidden] { display: none !important; }
.sp-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: auto;
  transition: opacity .3s ease;
}
.student-panel:not([hidden]) .sp-backdrop { opacity: 1; }
.sp-shell {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(520px, 92vw);
  background: linear-gradient(180deg, rgba(15,23,35,.98), rgba(8,14,22,.98));
  border-left: 1px solid rgba(75,214,109,.15);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,.6);
  pointer-events: auto;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.student-panel:not([hidden]) .sp-shell { transform: translateX(0); }

.sp-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sp-id { display: flex; align-items: center; gap: 14px; }
.sp-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(10,16,24,.85);
  border: 1px solid rgba(75,214,109,.35);
  color: #4bd66d;
  overflow: hidden;
  filter: drop-shadow(0 6px 18px rgba(75,214,109,.3));
}
.sp-avatar svg { width: 100%; height: 100%; }
.sp-meta h2 { margin: 0; font-size: 1.3rem; font-weight: 700; color: rgba(255,255,255,.95); }
.sp-meta p { margin: 4px 0 0; font-size: .72rem; letter-spacing: .12em; color: rgba(255,255,255,.5); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.sp-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s ease;
}
.sp-close:hover { background: rgba(255,255,255,.08); color: white; transform: scale(1.05); }
.sp-close i { width: 18px; height: 18px; }

.sp-body { flex: 1; overflow-y: auto; padding: 1.6rem; }
.sp-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
  margin-bottom: 1rem;
}
.sp-stats > div {
  padding: .9rem .6rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  text-align: center;
}
.sp-stats b {
  display: block;
  font-size: 1.4rem; font-weight: 800;
  color: #4bd66d;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sp-stats label {
  display: block;
  font-size: .58rem; letter-spacing: .25em;
  color: rgba(255,255,255,.4);
  margin-top: 3px;
}

.sp-chain {
  display: grid; grid-template-columns: repeat(14,1fr); gap: 3px;
  margin: 1rem 0 1.4rem;
}
.sp-chain span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.sp-chain span.on { background: linear-gradient(135deg, #fbbf24, #f97316); border-color: #f97316; }

.sp-section { margin-bottom: 1.4rem; }
.sp-label {
  font-size: .65rem; letter-spacing: .3em;
  color: rgba(255,255,255,.4);
  margin: 0 0 8px;
}
.sp-companion {
  padding: .8rem 1rem;
  background: rgba(75,214,109,.06);
  border: 1px solid rgba(75,214,109,.2);
  border-radius: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.sp-comp-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; letter-spacing: .08em;
  color: #4bd66d;
  font-size: .9rem;
}
.sp-comp-tone {
  padding: 2px 8px;
  background: rgba(75,214,109,.15);
  border-radius: 999px;
  font-size: .68rem; letter-spacing: .15em;
  color: #4bd66d;
  text-transform: uppercase;
}
.sp-comp-call {
  margin-left: auto;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.sp-comp-call b { color: rgba(255,255,255,.9); font-weight: 600; }

.sp-vision {
  padding: .9rem 1rem;
  background: rgba(255,255,255,.02);
  border-left: 3px solid #4bd66d;
  border-radius: 4px;
  font-style: italic;
  color: rgba(255,255,255,.8);
  font-size: .88rem; line-height: 1.55;
  margin: 0;
}

.sp-activity {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.sp-activity li {
  padding: .6rem .8rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  display: flex; justify-content: space-between; gap: 8px;
}
.sp-activity li time {
  font-size: .65rem; letter-spacing: .15em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sp-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: .5rem;
}
.sp-actions button {
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.sp-actions button i { width: 16px; height: 16px; }
.sp-actions .primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  border: none;
}
.sp-actions .primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(75,214,109,.6); }
.sp-actions .secondary {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}
.sp-actions .secondary:hover { border-color: rgba(75,214,109,.4); color: #4bd66d; }

@media (max-width: 720px) {
  .sp-stats { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   CURRICULUM (lessons per major × phase)
   ============================================================ */
.curriculum-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.curriculum-controls { display: flex; gap: 8px; align-items: center; }
.curriculum-major {
  padding: .55rem .9rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: white;
  font-size: .85rem;
  cursor: pointer;
}
.curriculum-add {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .55rem 1rem;
  border-radius: 10px;
}
.curriculum-add i { width: 16px; height: 16px; }

.curriculum-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  min-height: 520px;
}
.curriculum-phases { display: flex; flex-direction: column; gap: 12px; }
.curr-phase {
  border-radius: 14px;
  background: rgba(10,16,24,.6);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.curr-phase-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.02);
  cursor: pointer;
}
.curr-phase-head h4 { margin: 0; font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.95); }
.curr-phase-head .curr-phase-meta {
  font-size: .68rem; letter-spacing: .15em;
  color: rgba(255,255,255,.4);
}
.curr-phase.locked { opacity: .5; }
.curr-phase.locked .curr-phase-head {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 8px, transparent 8px 16px);
}
.curr-phase-progress {
  height: 2px;
  background: rgba(255,255,255,.06);
  position: relative;
}
.curr-phase-progress span {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #4bd66d, #22d3ee);
  transition: width .4s ease;
}
.curr-lessons {
  list-style: none; padding: 8px; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.curr-lesson {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: .65rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}
.curr-lesson:hover { background: rgba(75,214,109,.05); }
.curr-lesson.active { background: rgba(75,214,109,.12); border-left: 2px solid #4bd66d; padding-left: calc(.8rem - 2px); }
.curr-lesson.done .cl-check {
  background: #4bd66d;
  border-color: #4bd66d;
  color: #050810;
}
.curr-lesson.done b { color: rgba(255,255,255,.55); text-decoration: line-through; text-decoration-color: rgba(75,214,109,.4); }
.cl-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
  background: rgba(255,255,255,.02);
  transition: all .2s ease;
}
.cl-check i { width: 12px; height: 12px; opacity: 0; transition: opacity .2s ease; }
.curr-lesson.done .cl-check i { opacity: 1; }
.curr-lesson b { font-weight: 600; display: block; }
.curr-lesson small { font-size: .68rem; color: rgba(255,255,255,.4); letter-spacing: .05em; }
.cl-meta { font-size: .7rem; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 6px; }
.cl-meta .cl-kind {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(75,214,109,.1);
  color: #4bd66d;
  font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase;
}
.curr-lesson-empty {
  padding: 1rem;
  color: rgba(255,255,255,.4);
  font-style: italic;
  text-align: center;
  font-size: .82rem;
}

/* Player */
.curriculum-player {
  border-radius: 16px;
  background: rgba(10,16,24,.4);
  border: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem;
  position: relative;
  min-height: 480px;
}
.cp-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.4);
}
.cp-empty i { width: 48px; height: 48px; }
.cp-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.cp-head h3 { margin: 0; font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,.95); }
.cp-meta { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: .75rem; color: rgba(255,255,255,.5); }
.cp-meta .cp-kind {
  padding: 3px 10px;
  background: rgba(75,214,109,.1);
  border: 1px solid rgba(75,214,109,.3);
  border-radius: 999px;
  color: #4bd66d;
  font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase;
}
.cp-actions { display: flex; gap: 8px; }
.cp-action {
  padding: .55rem .9rem;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  transition: all .2s ease;
}
.cp-action:hover { border-color: rgba(75,214,109,.4); color: #4bd66d; }
.cp-action.primary {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810; border: none;
}
.cp-action.primary:hover { color: #050810; transform: translateY(-1px); }
.cp-action.done {
  background: rgba(75,214,109,.15); color: #4bd66d; border-color: #4bd66d;
}
.cp-action i { width: 14px; height: 14px; }

.cp-embed {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  position: relative;
}
.cp-embed iframe { width: 100%; height: 100%; border: 0; }
.cp-embed-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  background: linear-gradient(135deg, rgba(75,214,109,.05), rgba(34,211,238,.05));
}
.cp-embed-placeholder i { width: 48px; height: 48px; color: rgba(75,214,109,.5); }
.cp-body {
  font-size: .92rem; line-height: 1.65;
  color: rgba(255,255,255,.82);
  white-space: pre-wrap;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.02);
  border-left: 3px solid rgba(75,214,109,.4);
  border-radius: 6px;
}

/* ===== Lesson editor modal (mentor) ===== */
.lesson-editor { position: fixed; inset: 0; z-index: 600; }
.lesson-editor[hidden] { display: none !important; }
.le-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.le-shell {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92vw);
  max-height: 90vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(15,23,35,.98), rgba(8,14,22,.98));
  border: 1px solid rgba(75,214,109,.2);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: leIn .25s cubic-bezier(.22,1,.36,1);
}
@keyframes leIn { from { opacity: 0; transform: translate(-50%,-46%) scale(.96); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.le-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.le-head h3 { margin: 0; font-size: 1.1rem; }
.le-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: grid; place-items: center;
  cursor: pointer;
}
.le-body { padding: 1.2rem 1.4rem; overflow-y: auto; flex: 1; }
.le-row { margin-bottom: 1rem; }
.le-row label {
  display: block;
  font-size: .68rem; letter-spacing: .2em;
  color: rgba(255,255,255,.45);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.le-row label small { color: rgba(255,255,255,.35); letter-spacing: 0; text-transform: none; margin-left: 6px; font-style: italic; }
.le-row input, .le-row select, .le-row textarea {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: .7rem .9rem;
  color: white;
  font-size: .9rem;
  font-family: inherit;
}
.le-row input:focus, .le-row select:focus, .le-row textarea:focus {
  outline: none; border-color: #4bd66d; box-shadow: 0 0 0 3px rgba(75,214,109,.15);
}
.le-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.le-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,.06);
  gap: 8px;
}
.le-foot-right { display: flex; gap: 8px; }
.le-foot button {
  padding: .65rem 1rem;
  border-radius: 8px;
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.le-foot button i { width: 14px; height: 14px; }
.le-foot .primary { background: linear-gradient(135deg, #4bd66d, #22d3ee); color: #050810; border: none; }
.le-foot .secondary { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.le-foot .danger { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.4); color: #f43f5e; }

@media (max-width: 860px) {
  .curriculum-shell { grid-template-columns: 1fr; }
}

/* ============================================================
   LOCKED LESSON VISUALS — big chain + lock with shake
   ============================================================ */

/* List item locked state */
.curr-lesson.locked {
  opacity: .65;
  position: relative;
}
.curr-lesson.locked b { color: rgba(255,255,255,.55); }
.curr-lesson.locked small { color: rgba(255,255,255,.3); }
.curr-lesson.locked:hover { background: rgba(244, 63, 94, 0.04); }

.cl-lock-wrap {
  position: relative;
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.cl-chain {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 30deg, rgba(244,63,94,.6) 30deg 35deg);
  -webkit-mask: radial-gradient(circle, transparent 8px, black 9px, black 12px, transparent 13px);
  mask: radial-gradient(circle, transparent 8px, black 9px, black 12px, transparent 13px);
  opacity: .8;
  animation: chainSpin 8s linear infinite;
}
@keyframes chainSpin { to { transform: rotate(360deg); } }
.cl-lock {
  position: relative;
  z-index: 2;
  width: 12px !important;
  height: 12px !important;
  color: #f43f5e;
  filter: drop-shadow(0 0 4px rgba(244,63,94,.6));
}

.cl-kind-locked {
  background: rgba(244,63,94,.12) !important;
  color: #f43f5e !important;
  border: 1px solid rgba(244,63,94,.3);
}

/* Shake when clicked */
@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}
.curr-lesson.shake {
  animation: lockShake .55s cubic-bezier(.36,.07,.19,.97);
}
.curr-lesson.shake .cl-lock-wrap {
  animation: lockShakeIcon .55s cubic-bezier(.36,.07,.19,.97);
}
@keyframes lockShakeIcon {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-15deg) scale(1.1); }
  20%, 40%, 60%, 80% { transform: rotate(15deg) scale(1.1); }
}

/* Big locked hero in player */
.cp-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(160deg, rgba(244,63,94,.06), rgba(0,0,0,.4));
  border: 1px solid rgba(244,63,94,.18);
  border-radius: 16px;
  margin-bottom: 1.4rem;
  color: rgba(255,255,255,.75);
}
.cp-lock-stage {
  position: relative;
  width: 200px; height: 200px;
  display: grid; place-items: center;
  margin-bottom: 1.6rem;
}
.cp-chain-bg {
  position: absolute; inset: -10px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 18deg, #f43f5e 18deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 76px, black 78px, black 92px, transparent 94px);
  mask: radial-gradient(circle, transparent 76px, black 78px, black 92px, transparent 94px);
  filter: drop-shadow(0 0 12px rgba(244,63,94,.5));
  animation: chainSpin 18s linear infinite;
}
.cp-lock-orb {
  position: relative;
  width: 120px; height: 120px;
  color: #f43f5e;
  display: grid; place-items: center;
  filter: drop-shadow(0 8px 24px rgba(244,63,94,.4));
}
.cp-lock-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-lock-icon {
  position: relative;
  z-index: 2;
  width: 48px !important;
  height: 48px !important;
  color: #f43f5e;
  filter: drop-shadow(0 0 12px rgba(244,63,94,.7));
  animation: lockPulse 2.4s ease-in-out infinite;
}
@keyframes lockPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(244,63,94,.7)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(244,63,94,1)); }
}
.cp-locked h4 {
  margin: 0 0 .5rem;
  font-size: 1.4rem;
  color: rgba(255,255,255,.95);
}
.cp-locked p {
  max-width: 420px;
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  line-height: 1.55;
}

/* Locked CTA button (student) */
.cp-action-locked {
  background: rgba(244,63,94,.1) !important;
  color: #f43f5e !important;
  border-color: rgba(244,63,94,.3) !important;
  cursor: not-allowed;
}

/* Mentor lock toggle when unlocked */
.cp-action.done#cpLockToggle {
  background: rgba(75,214,109,.12);
  color: #4bd66d;
  border-color: rgba(75,214,109,.4);
}

/* ============================================================
   OPERATOR BRIEF (mentor Dashboard top section)
   ============================================================ */
.operator-brief {
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(160deg, rgba(75,214,109,.06), rgba(34,211,238,.04));
  border: 1px solid rgba(75,214,109,.18);
  border-radius: 18px;
}
.operator-brief[hidden] { display: none !important; }

.ob-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ob-head h2 {
  margin: 4px 0 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  display: flex; align-items: baseline; gap: 12px;
}
.ob-date {
  font-size: .7rem; letter-spacing: .25em;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ob-sub { margin: 4px 0 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.ob-vitals {
  display: flex; gap: 1.4rem;
}
.ob-vitals > div {
  text-align: center;
  padding: 0 .4rem;
}
.ob-vitals b {
  display: block;
  font-size: 1.4rem; font-weight: 800;
  color: #4bd66d;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.02em;
}
.ob-vitals label {
  display: block;
  font-size: .58rem; letter-spacing: .25em;
  color: rgba(255,255,255,.4);
  margin-top: 3px;
}

.ob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 1rem;
}

.ob-card {
  padding: 1.1rem 1.2rem;
  background: rgba(10,16,24,.55);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
}
.ob-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.ob-card-head > i {
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(75,214,109,.1);
  color: #4bd66d;
}
.ob-card-head .eyebrow {
  margin: 0;
  font-size: .6rem; letter-spacing: .3em;
  color: rgba(255,255,255,.4);
}
.ob-card-head h3 {
  margin: 2px 0 0;
  font-size: 1rem; font-weight: 700;
  color: rgba(255,255,255,.95);
}
.ob-card-head h3 span { color: #4bd66d; }

/* AT RISK accent — amber/red */
.ob-risk { border-color: rgba(244,63,94,.2); }
.ob-risk .ob-card-head > i { background: rgba(244,63,94,.1); color: #f43f5e; }
.ob-risk .ob-card-head h3 span { color: #f43f5e; }

/* WINS accent — gold */
.ob-wins { border-color: rgba(251,191,36,.2); }
.ob-wins .ob-card-head > i { background: rgba(251,191,36,.1); color: #fbbf24; }
.ob-wins .ob-card-head h3 span { color: #fbbf24; }

/* FOCUS accent — green */
.ob-focus .ob-card-head > i { background: rgba(75,214,109,.1); color: #4bd66d; }

/* Card lists */
.ob-list, .ob-actions { list-style: none; padding: 0; margin: 0; }
.ob-list li, .ob-actions li {
  padding: .55rem .6rem;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background .2s ease;
}
.ob-list li:hover, .ob-actions li:hover { background: rgba(255,255,255,.03); }

.ob-list .ob-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(75,214,109,.1);
  color: #4bd66d;
  display: grid; place-items: center;
  font-weight: 700; font-size: .72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ob-risk .ob-avatar { background: rgba(244,63,94,.1); color: #f43f5e; }
.ob-wins .ob-avatar { background: rgba(251,191,36,.1); color: #fbbf24; }
.ob-list .ob-name { font-weight: 600; color: rgba(255,255,255,.95); }
.ob-list .ob-note { font-size: .72rem; color: rgba(255,255,255,.45); display: block; }
.ob-list .ob-meta {
  font-size: .68rem; letter-spacing: .15em;
  color: rgba(255,255,255,.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

/* Actions list (numbered) */
.ob-actions {
  counter-reset: ob-action;
}
.ob-actions li {
  grid-template-columns: auto 1fr;
  counter-increment: ob-action;
}
.ob-actions li::before {
  content: counter(ob-action);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  font-weight: 700; font-size: .8rem;
  display: grid; place-items: center;
}
.ob-actions li b { font-weight: 700; color: rgba(255,255,255,.95); display: block; }
.ob-actions li span { font-size: .72rem; color: rgba(255,255,255,.55); display: block; margin-top: 2px; }

.ob-empty {
  padding: 1.2rem;
  text-align: center;
  font-style: italic;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* HEATMAP */
.ob-heatmap-card { margin-top: 12px; }
.ob-heatmap-card .ob-card-head { gap: 10px; }
.ob-legend {
  margin-left: auto;
  display: flex; gap: 12px; align-items: center;
  font-size: .65rem; letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}
.ob-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ob-legend i {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.ob-legend i.lo  { background: rgba(75,214,109,.25); border-color: rgba(75,214,109,.35); }
.ob-legend i.mid { background: rgba(75,214,109,.55); border-color: rgba(75,214,109,.6); }
.ob-legend i.hi  { background: linear-gradient(135deg, #4bd66d, #22d3ee); border-color: #4bd66d; }

.ob-heatmap {
  display: grid;
  grid-template-columns: 140px repeat(14, 1fr);
  gap: 4px;
  align-items: center;
  font-size: .75rem;
}
.ob-hm-day-headers {
  grid-column: 2 / -1;
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px;
  font-size: .55rem; letter-spacing: .15em;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin-bottom: 4px;
}
.ob-hm-day-headers span { text-align: center; }
.ob-hm-row {
  display: contents;
}
.ob-hm-name {
  font-size: .78rem;
  color: rgba(255,255,255,.82);
  font-weight: 500;
  padding: 4px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.ob-hm-name:hover { color: #4bd66d; }
.ob-hm-name small { display: block; font-size: .62rem; color: rgba(255,255,255,.4); }
.ob-hm-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.ob-hm-cell.lo  { background: rgba(75,214,109,.25); border-color: rgba(75,214,109,.35); }
.ob-hm-cell.mid { background: rgba(75,214,109,.55); border-color: rgba(75,214,109,.6); }
.ob-hm-cell.hi  { background: linear-gradient(135deg, #4bd66d, #22d3ee); border-color: #4bd66d; }
.ob-hm-cell.today { box-shadow: 0 0 0 1.5px rgba(34,211,238,.7); }

@media (max-width: 900px) {
  .ob-grid { grid-template-columns: 1fr; }
  .ob-head { flex-direction: column; }
  .ob-vitals { width: 100%; justify-content: space-between; }
  .ob-heatmap { grid-template-columns: 80px repeat(14, 1fr); }
}

/* ============================================================
   COHORT BROADCAST MODAL
   ============================================================ */
.broadcast-btn {
  background: linear-gradient(135deg, #4bd66d, #22d3ee) !important;
  color: #050810 !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 8px 24px -6px rgba(75,214,109,.4);
}
.broadcast-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -6px rgba(75,214,109,.6); }

.broadcast-modal { position: fixed; inset: 0; z-index: 700; }
.broadcast-modal[hidden] { display: none !important; }
.bm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  animation: bmFadeIn .25s ease;
}
@keyframes bmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.bm-shell {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 94vw);
  max-height: 92vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(15,23,35,.98), rgba(8,14,22,.98));
  border: 1px solid rgba(75,214,109,.2);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: bmIn .35s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
@keyframes bmIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.bm-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bm-head h2 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 700; color: rgba(255,255,255,.95); }
.bm-sub { margin: 4px 0 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.bm-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: grid; place-items: center;
  cursor: pointer;
}
.bm-close:hover { background: rgba(255,255,255,.08); color: white; }

.bm-body { padding: 1.4rem 1.6rem; overflow-y: auto; flex: 1; }
.bm-row { margin-bottom: 1.2rem; }
.bm-row > label {
  display: block;
  font-size: .65rem; letter-spacing: .25em;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}

.bm-recipients {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.bm-r {
  padding: .45rem .85rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.bm-r:hover { border-color: rgba(75,214,109,.4); color: white; }
.bm-r.active {
  background: rgba(75,214,109,.12);
  border-color: #4bd66d;
  color: #4bd66d;
}
.bm-r b {
  background: rgba(255,255,255,.08);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .65rem; font-weight: 700;
  color: rgba(255,255,255,.9);
  min-width: 18px;
  text-align: center;
}
.bm-r.active b { background: rgba(75,214,109,.25); color: #4bd66d; }

#bmMessage {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .9rem 1rem;
  color: white;
  font-size: .92rem;
  font-family: inherit;
  resize: vertical;
  line-height: 1.55;
}
#bmMessage:focus { outline: none; border-color: #4bd66d; box-shadow: 0 0 0 3px rgba(75,214,109,.15); }

.bm-templates {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.bm-templates button {
  padding: .35rem .8rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  cursor: pointer;
  transition: all .2s ease;
}
.bm-templates button:hover { border-color: rgba(75,214,109,.4); color: #4bd66d; }

.bm-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.bm-check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
}
.bm-check:hover { border-color: rgba(75,214,109,.3); }
.bm-check input { margin-top: 3px; accent-color: #4bd66d; }
.bm-check b { display: block; font-size: .85rem; color: rgba(255,255,255,.95); font-weight: 600; }
.bm-check small { display: block; font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 2px; line-height: 1.4; }

.bm-preview {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(75,214,109,.04);
  border: 1px dashed rgba(75,214,109,.3);
  border-radius: 12px;
}
.bm-preview .eyebrow {
  font-size: .6rem; letter-spacing: .3em;
  color: rgba(75,214,109,.7);
  margin: 0 0 8px;
}
.bm-preview-card {
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  white-space: pre-wrap;
}

.bm-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.6rem;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
  gap: 12px;
}
.bm-summary {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.bm-summary b { color: #4bd66d; font-weight: 700; }
.bm-foot-right { display: flex; gap: 8px; }
.bm-foot button {
  padding: .7rem 1.2rem;
  border-radius: 10px;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.bm-foot button i { width: 16px; height: 16px; }
.bm-foot .primary {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  border: none;
  box-shadow: 0 8px 24px -6px rgba(75,214,109,.4);
}
.bm-foot .primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -6px rgba(75,214,109,.6); }
.bm-foot .primary:disabled { opacity: .5; cursor: not-allowed; }
.bm-foot .secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}

/* Success state */
.bm-success {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,35,.98), rgba(8,14,22,.98));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  animation: bmIn .35s cubic-bezier(.22,1,.36,1);
}
.bm-success[hidden] { display: none !important; }

/* ============================================================
   AI COACH — DISABLED / COMING SOON
   ============================================================ */
.coach-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(160deg, rgba(75,214,109,.04), rgba(34,211,238,.03));
  border: 1px dashed rgba(75,214,109,.2);
  border-radius: 20px;
  margin: 2rem auto;
  max-width: 640px;
}
.ccs-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(75,214,109,.15), rgba(34,211,238,.15));
  border: 1px solid rgba(75,214,109,.3);
  display: grid; place-items: center;
  color: #4bd66d;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 0 24px rgba(75,214,109,.3));
  animation: ccsPulse 3s ease-in-out infinite;
}
.ccs-icon i { width: 36px; height: 36px; }
@keyframes ccsPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 24px rgba(75,214,109,.3)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 36px rgba(75,214,109,.55)); }
}
.coach-coming-soon .eyebrow {
  font-size: .7rem; letter-spacing: .35em;
  color: rgba(75,214,109,.7);
  margin: 0 0 .6rem;
}
.coach-coming-soon h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(90deg, #4bd66d, #a26bff, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ccs-sub {
  max-width: 480px;
  margin: 0 auto 1.6rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  font-size: .95rem;
}
.ccs-hint {
  margin: 0;
  font-style: italic;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
}

/* ============================================================
   MENTOR ONBOARDING TOUR (spotlight + tooltip)
   ============================================================ */
.mentor-tour {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none;
  animation: mtFadeIn .35s ease;
}
@keyframes mtFadeIn { from { opacity: 0; } to { opacity: 1; } }

.mt-spotlight {
  position: fixed;
  border-radius: 12px;
  pointer-events: none;
  /* The magic: this huge inset box-shadow creates the dark backdrop everywhere except the spotlight */
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.78), 0 0 0 2px rgba(75,214,109,.55), 0 0 24px rgba(75,214,109,.4);
  transition: all .45s cubic-bezier(.22,1,.36,1);
}
.mt-spotlight.center {
  /* For center-positioned steps with no target — show the full backdrop without a real "hole" */
  width: 1px !important; height: 1px !important;
}

.mt-tooltip {
  position: fixed;
  width: min(420px, 92vw);
  padding: 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(15,23,35,.98), rgba(8,14,22,.98));
  border: 1px solid rgba(75,214,109,.35);
  border-radius: 18px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(75,214,109,.1);
  pointer-events: auto;
  animation: mtSlideIn .35s cubic-bezier(.22,1,.36,1);
  z-index: 9991;
}
@keyframes mtSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.mt-tooltip.center {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}

.mt-tooltip::before {
  /* Pointer arrow */
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: inherit;
  border-right: 1px solid rgba(75,214,109,.35);
  border-bottom: 1px solid rgba(75,214,109,.35);
}
.mt-tooltip[data-placement="top"]::before    { bottom: -8px; left: 32px; transform: rotate(45deg); }
.mt-tooltip[data-placement="bottom"]::before { top: -8px; left: 32px; transform: rotate(225deg); }
.mt-tooltip[data-placement="right"]::before  { left: -8px; top: 28px; transform: rotate(135deg); }
.mt-tooltip[data-placement="left"]::before   { right: -8px; top: 28px; transform: rotate(-45deg); }
.mt-tooltip[data-placement="center"]::before { display: none; }

.mt-step {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .65rem; letter-spacing: .25em;
  color: rgba(75,214,109,.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mt-step b { color: #4bd66d; font-weight: 700; }
.mt-tooltip h3 {
  margin: 0 0 .6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
}
.mt-tooltip p {
  margin: 0 0 1.2rem;
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
}
.mt-actions {
  display: flex; justify-content: space-between; align-items: center;
}
.mt-actions > div { display: flex; gap: 6px; }
.mt-skip, .mt-back, .mt-next {
  padding: .55rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.mt-skip {
  background: none;
  color: rgba(255,255,255,.45);
  border-color: transparent;
}
.mt-skip:hover { color: rgba(255,255,255,.7); }
.mt-back {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}
.mt-next {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  box-shadow: 0 6px 18px -4px rgba(75,214,109,.5);
}
.mt-next:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -4px rgba(75,214,109,.7); }
.mt-tooltip[data-placement="center"] {
  /* On the centered welcome / final steps, make it more cinematic */
  text-align: center;
  padding: 2rem 2rem 1.6rem;
}
.mt-tooltip[data-placement="center"] .mt-actions { justify-content: center; flex-wrap: wrap; gap: 8px; }
.mt-tooltip[data-placement="center"] h3 { font-size: 1.5rem; }
.mt-tooltip[data-placement="center"] .mt-sigil {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(75,214,109,.15), rgba(34,211,238,.15));
  border: 1px solid rgba(75,214,109,.35);
  color: #4bd66d;
}
.mt-tooltip[data-placement="center"] .mt-sigil i { width: 28px; height: 28px; }

/* ============================================================
   APPLICATION STATUS PAGE (?status=<id>)
   ============================================================ */
.status-root {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(75,214,109,0.06), transparent 60%), #05070b;
  position: relative;
  overflow: hidden;
}
.status-root[hidden] { display: none !important; }
.status-root::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}
.status-shell {
  position: relative; z-index: 2;
  width: min(540px, 92vw);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(15,23,35,.7), rgba(8,14,22,.7));
  border: 1px solid rgba(75,214,109,.15);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.status-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 2rem;
}
.status-sigil { width: 28px; height: 28px; }
.status-brand strong {
  font-size: .85rem; font-weight: 700; letter-spacing: .25em;
  color: rgba(255,255,255,.92);
}
.status-state .eyebrow {
  font-size: .65rem; letter-spacing: .3em;
  color: rgba(75,214,109,.7);
  margin: 0 0 1rem;
}
.status-state h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.15;
  background: linear-gradient(90deg, #4bd66d, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.status-sub {
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  margin: 0 0 1.5rem;
  max-width: 420px;
  margin-left: auto; margin-right: auto;
}
.status-orb {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  color: #4bd66d;
  background: rgba(75,214,109,.1);
  border: 2px solid rgba(75,214,109,.3);
  position: relative;
}
.status-orb i { width: 36px; height: 36px; }
.status-orb::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(75,214,109,.3);
  animation: statusRing 2.4s ease-out infinite;
}
@keyframes statusRing {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.3); opacity: 0; }
}
.status-pending {
  color: #fbbf24; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.35);
}
.status-pending::after { border-color: rgba(251,191,36,.3); }
.status-approved {
  color: #4bd66d; background: rgba(75,214,109,.12); border-color: rgba(75,214,109,.4);
  filter: drop-shadow(0 0 24px rgba(75,214,109,.4));
}
.status-declined {
  color: #f43f5e; background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.35);
}
.status-declined::after { border-color: rgba(244,63,94,.3); }
.status-meta {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.2rem 2rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 1.4rem;
}
.status-meta b {
  display: block;
  font-size: .65rem; letter-spacing: .2em;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}
.status-meta span {
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.status-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .9rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
  margin-bottom: 1rem;
}
.status-btn.primary {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  box-shadow: 0 12px 32px -8px rgba(75,214,109,.5);
}
.status-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(75,214,109,.7); }
.status-btn.secondary {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}
.status-btn.secondary:hover { border-color: rgba(75,214,109,.4); color: #4bd66d; }
.status-hint {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  font-style: italic;
  margin: 0;
}
.status-loading {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  color: rgba(255,255,255,.5);
}
.status-spinner {
  width: 38px; height: 38px;
  border: 2px solid rgba(75,214,109,.2);
  border-top-color: #4bd66d;
  border-radius: 50%;
  animation: statusSpin .8s linear infinite;
}
@keyframes statusSpin { to { transform: rotate(360deg); } }

/* ============================================================
   "JUST DROPPED" pill on newly unlocked lessons
   ============================================================ */
.cl-kind-new {
  background: linear-gradient(135deg, rgba(75,214,109,.2), rgba(34,211,238,.2)) !important;
  color: #4bd66d !important;
  border: 1px solid rgba(75,214,109,.5);
  font-weight: 700;
  animation: justDroppedPulse 2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(75,214,109,.5);
}
@keyframes justDroppedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75,214,109,.4); }
  50%      { box-shadow: 0 0 0 4px rgba(75,214,109,.15); }
}
.curr-lesson.just-dropped {
  background: linear-gradient(90deg, rgba(75,214,109,.06), transparent 60%);
  border-left: 2px solid #4bd66d;
  padding-left: calc(.8rem - 2px);
}

/* ============================================================
   PAY PORTAL (?pay=<id>) — same DNA as status page
   ============================================================ */
.pay-root {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(75,214,109,0.06), transparent 60%), #05070b;
  position: relative;
  overflow: hidden;
}
.pay-root[hidden] { display: none !important; }
.pay-root::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}
.pay-shell {
  position: relative; z-index: 2;
  width: min(620px, 94vw);
  padding: 2.5rem 2.2rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(15,23,35,.7), rgba(8,14,22,.7));
  border: 1px solid rgba(75,214,109,.18);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.pay-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 1.6rem;
}
.pay-sigil { width: 28px; height: 28px; }
.pay-brand strong { font-size: .85rem; font-weight: 700; letter-spacing: .25em; color: rgba(255,255,255,.92); }
.pay-state .eyebrow {
  font-size: .65rem; letter-spacing: .3em;
  color: rgba(75,214,109,.7);
  margin: 0 0 1rem;
}
.pay-state h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.15;
  background: linear-gradient(90deg, #4bd66d, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pay-sub {
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  margin: 0 0 1.5rem;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.pay-orb {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  background: rgba(75,214,109,.1);
  border: 2px solid rgba(75,214,109,.3);
  color: #4bd66d;
}
.pay-orb i { width: 36px; height: 36px; }
.pay-paid { color: #4bd66d; background: rgba(75,214,109,.12); border-color: rgba(75,214,109,.4); filter: drop-shadow(0 0 24px rgba(75,214,109,.4)); }
.pay-declined { color: #f43f5e; background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.35); }

.pay-price-card {
  position: relative;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(160deg, rgba(75,214,109,.06), rgba(34,211,238,.04));
  border: 1px solid rgba(75,214,109,.25);
  border-radius: 16px;
  margin: 0 auto 1.4rem;
  max-width: 460px;
  text-align: left;
}
.pay-discount-badge {
  position: absolute;
  top: -10px; right: 14px;
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #001a0e;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(75,214,109,.35);
}
.pay-original {
  font-size: 1.2rem;
  color: rgba(255,255,255,.4);
  text-decoration: line-through;
  text-decoration-color: rgba(255,90,90,.7);
  text-decoration-thickness: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-right: 4px;
}
.pay-price {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: .8rem;
  border-bottom: 1px dashed rgba(75,214,109,.2);
  margin-bottom: .9rem;
}
.pay-amount {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.02em;
}
.pay-period {
  font-size: .78rem; letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}
.pay-includes {
  list-style: none; padding: 0; margin: 0;
}
.pay-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 auto 1rem;
  max-width: 460px;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  cursor: pointer;
}
.pay-consent input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0;
  accent-color: #4bd66d;
  width: 16px; height: 16px;
}
.pay-consent a {
  color: #4bd66d; text-decoration: none;
  border-bottom: 1px dashed rgba(75,214,109,.4);
}
.pay-btn.primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.3);
}
.pay-includes li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: .4rem 0;
  font-size: .85rem;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}
.pay-includes li i { width: 16px; height: 16px; color: #4bd66d; flex-shrink: 0; margin-top: 4px; }
.pay-includes li b { color: rgba(255,255,255,.95); }

.pay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 1rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  margin-bottom: 1rem;
}
.pay-btn i { width: 18px; height: 18px; }
.pay-btn.primary {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  box-shadow: 0 12px 32px -8px rgba(75,214,109,.5);
}
.pay-btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(75,214,109,.7); }
.pay-btn:disabled { opacity: .7; cursor: not-allowed; }
.pay-btn.secondary {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}
.pay-btn.secondary:hover { border-color: rgba(75,214,109,.4); color: #4bd66d; }
.pay-hint {
  font-size: .76rem;
  color: rgba(255,255,255,.4);
  font-style: italic;
  margin: 0;
}
.pay-cancelled {
  padding: .8rem 1rem;
  margin: 0 auto 1.2rem;
  max-width: 360px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.3);
  border-radius: 10px;
  color: #fbbf24;
  font-size: .82rem;
}
.pay-loading {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  color: rgba(255,255,255,.5);
}
.pay-spinner {
  width: 38px; height: 38px;
  border: 2px solid rgba(75,214,109,.2);
  border-top-color: #4bd66d;
  border-radius: 50%;
  animation: statusSpin .8s linear infinite;
}

/* ============================================================
   DAY 1 BANNER (student-only, post-arrival)
   ============================================================ */
.day1-banner {
  position: relative;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(160deg, rgba(75,214,109,.08), rgba(34,211,238,.04) 60%, transparent),
    rgba(10,16,24,.55);
  border: 1px solid rgba(75,214,109,.25);
  border-radius: 20px;
  overflow: hidden;
  animation: d1FadeIn .6s cubic-bezier(.22,1,.36,1);
}
@keyframes d1FadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.day1-banner[hidden] { display: none !important; }
.d1-glow {
  position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,214,109,.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: d1Float 8s ease-in-out infinite;
}
@keyframes d1Float {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(-20px, 12px); }
}

.d1-head {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.d1-head h2 {
  margin: 6px 0 6px;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  letter-spacing: -.01em;
}
.d1-sub { margin: 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.d1-counter {
  display: flex; align-items: baseline; gap: 4px;
  padding: .5rem 1rem;
  background: rgba(75,214,109,.1);
  border: 1px solid rgba(75,214,109,.3);
  border-radius: 999px;
}
.d1-counter b {
  font-size: 1.5rem; font-weight: 800;
  color: #4bd66d;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.d1-counter span {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.d1-tasks {
  position: relative; z-index: 2;
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.d1-task {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  transition: all .3s cubic-bezier(.22,1,.36,1);
}
.d1-task:hover { border-color: rgba(75,214,109,.4); transform: translateX(2px); }

.d1-step {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.4);
  transition: all .3s ease;
}
.d1-step i { width: 16px; height: 16px; opacity: 0; transition: opacity .25s ease; }

.d1-task.done .d1-step {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  border-color: #4bd66d;
  color: #050810;
  box-shadow: 0 0 0 4px rgba(75,214,109,.15), 0 0 16px rgba(75,214,109,.4);
}
.d1-task.done .d1-step i { opacity: 1; }
.d1-task.done { opacity: .65; }
.d1-task.done b {
  text-decoration: line-through;
  text-decoration-color: rgba(75,214,109,.5);
  text-decoration-thickness: 1.5px;
}

.d1-body b {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  margin-bottom: 3px;
}
.d1-body span {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
}

.d1-cta {
  padding: .55rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  background: rgba(75,214,109,.12);
  border: 1px solid rgba(75,214,109,.35);
  color: #4bd66d;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.d1-cta:hover {
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  border-color: transparent;
  transform: translateX(2px);
}
.d1-task.done .d1-cta {
  background: rgba(75,214,109,.06);
  border-color: rgba(75,214,109,.2);
  pointer-events: none;
}

/* Completion state */
.d1-complete {
  text-align: center;
  padding: 1.4rem 1rem .6rem;
  animation: d1FadeIn .5s cubic-bezier(.22,1,.36,1);
}
.d1-complete[hidden] { display: none !important; }
.d1-complete-orb {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  color: #050810;
  filter: drop-shadow(0 0 24px rgba(75,214,109,.5));
  animation: d1OrbPulse 2.4s ease-in-out infinite;
}
@keyframes d1OrbPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.d1-complete-orb i { width: 28px; height: 28px; }
.d1-complete h3 {
  margin: 0 0 .4rem;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #4bd66d, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.d1-complete p { margin: 0; color: rgba(255,255,255,.6); font-size: .88rem; }

@media (max-width: 720px) {
  .d1-task { grid-template-columns: 36px 1fr; gap: 10px; }
  .d1-cta { grid-column: 2; justify-self: flex-start; }
  .d1-head { flex-direction: column; }
}
.bm-success h3 {
  margin: 1rem 0 .4rem;
  font-size: 2rem;
  background: linear-gradient(90deg, #4bd66d, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.bm-success p { color: rgba(255,255,255,.6); margin: 0; }
.bm-success-burst {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4bd66d, #22d3ee);
  display: grid; place-items: center;
  position: relative;
}
.bm-success-burst::before {
  content: "✓";
  font-size: 2.5rem; font-weight: 800; color: #050810;
}
.bm-success-burst::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid #4bd66d;
  animation: bmRing 1.4s ease-out infinite;
}
@keyframes bmRing {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 640px) {
  .bm-options { grid-template-columns: 1fr; }
  .bm-foot { flex-direction: column; align-items: stretch; }
  .bm-foot-right { width: 100%; }
  .bm-foot-right button { flex: 1; justify-content: center; }
}

@media (max-width: 720px) {
  .lp-body { grid-template-columns: 1fr; }
  .lp-sidebar { display: none; }
  .lp-tiles { grid-template-columns: 1fr; }
  .lc-sep { display: none; }
}

/* ============================================================
   SEAL CEREMONY OVERLAY
   ============================================================ */
.seal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #050810 30%, #000 100%);
  display: grid; place-items: center;
  pointer-events: none;
}
.seal-overlay[hidden] { display: none !important; }
.seal-overlay:not([hidden]) { animation: sealFadeIn .6s ease forwards; }
@keyframes sealFadeIn { from { opacity: 0; } to { opacity: 1; } }

.seal-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(var(--theme-rgb), .25), transparent 70%);
  opacity: 0;
}
.seal-overlay.firing .seal-flash {
  animation: sealFlash 2s ease-out;
}
@keyframes sealFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

.seal-stage {
  position: relative;
  width: 400px; height: 400px;
  display: grid; place-items: center;
}
.seal-sigil {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
}
.seal-overlay.firing .seal-sigil { animation: sealSigilRise 2.6s cubic-bezier(.22,1,.36,1) forwards; }
.seal-poly-outer { animation: seal-spin 8s linear infinite; transform-origin: center; transform-box: fill-box; }
.seal-poly-mid   { animation: seal-spin 6s linear infinite reverse; transform-origin: center; transform-box: fill-box; }
.seal-ring       { animation: seal-spin 12s linear infinite; transform-origin: center; transform-box: fill-box; opacity: .5; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
@keyframes sealSigilRise {
  0% { opacity: 0; transform: scale(.3) rotate(0deg); filter: blur(20px); }
  40% { opacity: 1; transform: scale(1) rotate(180deg); filter: blur(0px); }
  80% { opacity: 1; transform: scale(1.05) rotate(340deg); }
  100% { opacity: 0; transform: scale(2) rotate(360deg); }
}

.seal-avatar {
  position: absolute; z-index: 2;
  width: 180px; height: 180px;
  opacity: 0;
}
.seal-avatar svg { width: 100%; height: 100%; color: var(--theme-accent); filter: drop-shadow(0 0 24px currentColor); }
.seal-overlay.firing .seal-avatar { animation: sealAvatarForm 2.6s cubic-bezier(.22,1,.36,1) forwards; animation-delay: .6s; }
@keyframes sealAvatarForm {
  0% { opacity: 0; transform: scale(.4); filter: blur(20px) brightness(2); }
  60% { opacity: 1; transform: scale(1); filter: blur(0px) brightness(1); }
  100% { opacity: 0; transform: scale(1.6); filter: blur(0px) brightness(.5); }
}

.seal-burst { position: absolute; inset: 0; pointer-events: none; }
.seal-burst span {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--theme-accent);
  filter: drop-shadow(0 0 6px currentColor);
}
.seal-overlay.firing .seal-burst span { animation: sealBurstFly 1.2s ease-out forwards; animation-delay: 1.8s; }
@keyframes sealBurstFly {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(0); opacity: 0; }
}

/* Avatar in success card */
.success-avatar-nest {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 24px var(--theme-accent));
  animation: avatarBreath 4s ease-in-out infinite;
}
.success-avatar-nest svg { width: 100%; height: 100%; color: var(--theme-accent); }
.success-speech {
  font-style: italic;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
  min-height: 1.4em;
}
.success-speech::after {
  content: "▍"; color: var(--theme-accent);
  animation: termBlink 1s steps(2) infinite;
}
.success-speech.done::after { content: ""; }

/* ============================================================
   PERSISTENT COMPANION (bottom-left of portal)
   ============================================================ */
.companion-dock {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 120;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px;
  pointer-events: none;
}
.companion-shell {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(10, 16, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  pointer-events: auto;
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 0;
  overflow: visible;
}
.companion-shell:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px -5px rgba(75,214,109,.5); }
.companion-aura {
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,214,109,.3), transparent 70%);
  filter: blur(10px);
  animation: auraBreath 4s ease-in-out infinite;
  z-index: 0;
}
.companion-avatar {
  position: relative; z-index: 2;
  display: block;
  width: 100%; height: 100%;
}
.companion-avatar svg { width: 100%; height: 100%; color: #4bd66d; }

.companion-bubble {
  position: relative;
  max-width: 220px;
  padding: 10px 14px;
  background: rgba(15, 23, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(75,214,109,.3);
  border-radius: 12px;
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  line-height: 1.4;
  box-shadow: 0 8px 28px -6px rgba(0,0,0,.5);
  pointer-events: auto;
  animation: bubbleIn .35s cubic-bezier(.22,1,.36,1);
}
.companion-bubble::after {
  content: "";
  position: absolute;
  left: 22px; bottom: -6px;
  width: 12px; height: 12px;
  background: inherit;
  border-right: 1px solid rgba(75,214,109,.3);
  border-bottom: 1px solid rgba(75,214,109,.3);
  transform: rotate(45deg);
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   POST-SEAL "What happens next" timeline
   ============================================================ */
.next-timeline {
  margin: 3rem auto 1.5rem;
  max-width: 580px;
  text-align: left;
  position: relative;
  animation: shellUp .8s 1.2s ease backwards;
}
.next-eyebrow {
  font-size: .68rem; letter-spacing: .3em;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin: 0 0 1.6rem;
}
.next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.next-steps::before {
  content: "";
  position: absolute;
  left: 23px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--theme-rgb),.6), rgba(255,255,255,.05) 30%, rgba(255,255,255,.05));
}
.next-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
}
.ns-dot {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(10,16,24,.95);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.3);
}
.ns-dot i { width: 18px; height: 18px; }
.next-step.done .ns-dot {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #050810;
}
.next-step.current .ns-dot {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  background: rgba(var(--theme-rgb),.1);
  box-shadow: 0 0 0 4px rgba(var(--theme-rgb),.12), 0 0 20px rgba(var(--theme-rgb),.4);
  animation: nextPulse 2.4s ease-in-out infinite;
}
@keyframes nextPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(var(--theme-rgb),.12), 0 0 20px rgba(var(--theme-rgb),.4); }
  50%     { box-shadow: 0 0 0 8px rgba(var(--theme-rgb),.06), 0 0 30px rgba(var(--theme-rgb),.7); }
}
.ns-body b {
  display: block;
  color: rgba(255,255,255,.95);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 2px;
}
.next-step.done .ns-body b { color: var(--theme-accent); }
.ns-body span {
  display: block;
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  line-height: 1.4;
}
.ns-time {
  font-size: .68rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
}
.next-step.current .ns-time { color: var(--theme-accent); }
.next-cta { text-align: center; margin-top: 1.5rem; }

@media (max-width: 600px) {
  .next-step { grid-template-columns: 40px 1fr; gap: .7rem; }
  .next-step .ns-time { grid-column: 2; font-size: .62rem; opacity: .7; }
  .ns-dot { width: 38px; height: 38px; }
  .next-steps::before { left: 19px; }
}

/* ============================================================
   DAY 1 ARRIVAL CEREMONY
   ============================================================ */
.arrival-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(ellipse at center, #050810 30%, #000 100%);
  display: grid; place-items: center;
  color: #4bd66d;
  --theme-rgb: 75, 214, 109;
  --theme-accent: #4bd66d;
  --theme-accent-2: #22d3ee;
  animation: arrivalFadeIn .6s ease forwards;
}
.arrival-overlay[hidden] { display: none !important; }
@keyframes arrivalFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Scanlines overlay (CRT vibe) */
.arrival-scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

.arrival-stage {
  position: relative;
  width: min(620px, 92vw);
  text-align: center;
}
.arrival-stage:has(.arrival-system:not([hidden])) { width: min(960px, 95vw); }

/* ===== PHASE 1.5: System loading ===== */
.arrival-system {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  animation: sysFadeIn .4s ease forwards;
  text-align: left;
}
@keyframes sysFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sys-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--theme-rgb), .15);
  margin-bottom: 22px;
}
.sys-uuid { font-size: .65rem; color: rgba(var(--theme-rgb), .55); letter-spacing: .15em; }
.sys-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.sys-col-title {
  font-size: .6rem; letter-spacing: .35em;
  color: rgba(255,255,255,.35);
  margin: 0 0 14px;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  padding-bottom: 8px;
}
/* Subsystems checklist */
.sys-checks { list-style: none; padding: 0; margin: 0; font-size: .78rem; }
.sys-checks li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: rgba(255,255,255,.4);
  opacity: 0;
  animation: sysCheckIn .35s ease forwards;
}
.sys-checks li.done {
  color: rgba(255,255,255,.85);
}
.sys-checks li .sc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  transition: all .3s ease;
}
.sys-checks li.done .sc-dot {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  box-shadow: 0 0 8px var(--theme-accent);
}
.sys-checks li .sc-status {
  font-size: .65rem; letter-spacing: .15em;
  color: rgba(255,255,255,.3);
}
.sys-checks li.done .sc-status {
  color: var(--theme-accent);
}
@keyframes sysCheckIn { to { opacity: 1; } }

/* Center percent + hex grid */
.sys-col-center { text-align: center; }
.sys-percent-wrap {
  display: inline-flex; align-items: flex-start;
  margin-bottom: 8px;
  color: var(--theme-accent);
  filter: drop-shadow(0 0 24px rgba(var(--theme-rgb), .5));
}
.sys-percent {
  font-size: 5.5rem; font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1;
  letter-spacing: -.02em;
}
.sys-percent-sign {
  font-size: 2rem; font-weight: 700;
  margin-top: 12px;
  opacity: .7;
}
.sys-label {
  font-size: .8rem; letter-spacing: .35em;
  color: rgba(255,255,255,.6);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.sys-hex {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: 240px;
  margin: 0 auto 18px;
}
.sys-hex span {
  aspect-ratio: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: all .3s ease;
}
.sys-hex span.on {
  background: rgba(var(--theme-rgb), .25);
  border-color: var(--theme-accent);
  box-shadow: 0 0 8px rgba(var(--theme-rgb), .5) inset;
}
.sys-progress-bar {
  width: 240px;
  height: 2px;
  margin: 0 auto;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.sys-progress-bar #sysBarFill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2));
  transition: width .15s linear;
}

/* Right column metrics */
.sys-metric {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: .78rem;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.sys-metric label {
  font-size: .62rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.4);
}
.sys-metric b {
  color: var(--theme-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sys-graph {
  margin-top: 14px;
  height: 36px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.sys-graph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(var(--theme-rgb), .3) 50%, transparent 100%);
  background-size: 60px 100%;
  animation: graphSweep 1.8s linear infinite;
}
@keyframes graphSweep { from { background-position: -60px 0; } to { background-position: 100% 0; } }
.sys-graph::after {
  content: "";
  position: absolute; inset: 8px;
  background-image: repeating-linear-gradient(0deg, rgba(var(--theme-rgb), .4) 0 1px, transparent 1px 4px);
  mask: linear-gradient(180deg, transparent 0%, black 80%);
  -webkit-mask: linear-gradient(180deg, transparent 0%, black 80%);
}

/* Rapid log stream */
.sys-log {
  margin-top: 22px;
  border-top: 1px dashed rgba(255,255,255,.08);
  padding-top: 14px;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  height: 90px;
  overflow: hidden;
  position: relative;
  mask: linear-gradient(180deg, transparent 0%, black 30%, black 100%);
  -webkit-mask: linear-gradient(180deg, transparent 0%, black 30%, black 100%);
}
.sys-log .slog {
  padding: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: slogIn .2s ease;
}
.sys-log .slog .sl-addr { color: rgba(var(--theme-rgb), .6); margin-right: 8px; }
.sys-log .slog .sl-tag  { color: rgba(255,255,255,.65); margin-right: 6px; }
.sys-log .slog .sl-meta { color: rgba(255,255,255,.3); }
@keyframes slogIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .sys-grid { grid-template-columns: 1fr; gap: 20px; }
  .sys-hex { width: 200px; }
}

/* ===== PHASE 1: Boot ===== */
.arrival-boot {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left;
}
.arrival-boot p { margin: .6rem 0; }
.arrival-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem; letter-spacing: .35em;
  color: rgba(var(--theme-rgb), .8);
}
.arrival-boot-line {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
}
.boot-prompt { color: var(--theme-accent); opacity: .7; margin-right: .35rem; }
.boot-cursor {
  color: var(--theme-accent);
  animation: bootBlink 1s steps(2) infinite;
}
@keyframes bootBlink { 50% { opacity: 0; } }
.arrival-bar {
  margin-top: 1.4rem;
  width: 100%; height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}
.arrival-bar #arrivalBarFill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2));
  border-radius: 4px;
  transition: width .25s ease;
}
.arrival-boot-log {
  margin-top: 1.4rem;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  min-height: 120px;
  line-height: 1.6;
}
.arrival-boot-log .log-line {
  opacity: 0;
  animation: logIn .35s ease forwards;
}
.arrival-boot-log .log-line .log-ok { color: var(--theme-accent); margin-right: .5rem; }
.arrival-boot-log .log-line .log-meta { color: rgba(255,255,255,.3); margin-left: .4rem; }
@keyframes logIn { to { opacity: 1; } }

/* ===== PHASE 2: Character materializes ===== */
.arrival-character {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  animation: charFadeIn .8s ease forwards;
}
@keyframes charFadeIn { from { opacity: 0; } to { opacity: 1; } }
.arrival-rings {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.arrival-rings span {
  position: absolute;
  border: 1px solid rgba(var(--theme-rgb), .4);
  border-radius: 50%;
  width: 80px; height: 80px;
  animation: arrivalRing 3.2s ease-out infinite;
}
.arrival-rings span:nth-child(2) { animation-delay: 1s; }
.arrival-rings span:nth-child(3) { animation-delay: 2s; }
@keyframes arrivalRing {
  0%   { width: 80px; height: 80px; opacity: .8; }
  100% { width: 420px; height: 420px; opacity: 0; }
}
.arrival-avatar {
  position: relative;
  width: 280px; height: 280px;
  filter: drop-shadow(0 0 40px rgba(var(--theme-rgb), .6));
  animation: avatarAssemble 1.6s cubic-bezier(.22,1,.36,1) forwards;
  opacity: 0;
}
.arrival-avatar svg { width: 100%; height: 100%; color: var(--theme-accent); }
@keyframes avatarAssemble {
  0%   { opacity: 0; transform: scale(.3); filter: blur(20px) drop-shadow(0 0 60px var(--theme-accent)); }
  60%  { opacity: 1; transform: scale(1.06); filter: blur(0) drop-shadow(0 0 50px var(--theme-accent)); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 40px rgba(75,214,109,.6)); }
}
.arrival-speech {
  margin-top: 1.6rem;
  font-size: 1.4rem;
  color: rgba(255,255,255,.95);
  font-weight: 500;
  min-height: 1.6em;
  letter-spacing: -.01em;
}
.arrival-speech::after {
  content: "▍"; color: var(--theme-accent);
  margin-left: 4px;
  animation: bootBlink 1s steps(2) infinite;
}
.arrival-speech.done::after { content: ""; }
.arrival-callsign {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; letter-spacing: .3em;
  color: rgba(var(--theme-rgb), .7);
  margin-top: .4rem;
}

/* ===== PHASE 3: Day 1 banner ===== */
.arrival-banner {
  animation: bannerIn .8s cubic-bezier(.22,1,.36,1) forwards;
  opacity: 0;
}
@keyframes bannerIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.arrival-banner h2 {
  font-size: 2.6rem; font-weight: 800;
  margin: .6rem 0 1rem;
  background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.arrival-sub {
  max-width: 460px; margin: 0 auto 2rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}
.arrival-enter {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-2));
  color: #050810;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 40px -10px rgba(var(--theme-rgb), .6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.arrival-enter:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 60px -10px rgba(var(--theme-rgb), .85); }
.arrival-enter i { width: 18px; height: 18px; }
