:root {
  --bg: #020617;
  --bg-2: #07111f;
  --panel: rgba(10, 18, 32, 0.92);
  --panel-2: rgba(14, 24, 42, 0.95);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --text: #f6f7fb;
  --muted: #9fb0c9;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #84cc16;
  --accent-2: #a3e635;
  --accent-3: #d9f99d;
  --danger: #fb7185;
  --success: #86efac;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(132, 204, 22, 0.12), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.18), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  min-height: 52px;
  padding: 0 14px;
  outline: none;
}
input[type="file"] {
  min-height: 56px;
  padding-top: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(132, 204, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.08);
}
.hidden { display: none !important; }
.highlight {
  color: #ecfccb;
  font-weight: 700;
  background: rgba(132, 204, 22, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
}
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { width: min(var(--max-width), calc(100% - 32px)); margin: 0 auto; }
.view { display: none; }
.view--active { display: block; }
.panel,
.hero__copy,
.video-card,
.card,
.proof__copy,
.proof__panel,
.cta-panel,
.leaderboard-card,
.auth-card,
.dashboard-shell > *,
.stage-panel,
.mini-card,
.metric,
.faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.topbar__inner {
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar__actions { display: flex; align-items: center; gap: 20px; }
#topbarIdentityWrap {
  display: flex; align-items: center; gap: 6px;
  color: var(--text); font-weight: 700;
}
.topbar__identity-menu { position: relative; display: flex; align-items: center; }
.topbar__dots {
  color: var(--muted); font-size: 1rem; line-height: 1;
  padding: 4px 6px; border-radius: 6px;
  letter-spacing: 0.1em;
  transition: color 0.15s;
}
.topbar__dots:hover { color: var(--text); }
.topbar__dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: 12px; min-width: 140px; overflow: hidden;
  box-shadow: var(--shadow); z-index: 200;
}
.topbar__btn-icon { font-size: 1.1rem; font-weight: 900; margin-right: 4px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; }
.brand--button { padding: 0; }
.brand__logo { height: 50px; width: auto; object-fit: contain; }
.brand__wordmark { height: 17px; width: auto; object-fit: contain; opacity: 1; }
.site-footer {
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(2, 6, 23, 0.54);
  backdrop-filter: blur(14px);
}
.site-footer__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 8px;
}
.site-footer__nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer__nav a,
.site-footer__copy {
  color: rgba(233, 238, 248, 0.72);
  font-size: 0.9rem;
}
.site-footer__nav a {
  transition: color 140ms ease, opacity 140ms ease;
}
.site-footer__nav a:hover { color: var(--text); }
.site-footer__copy { text-align: right; }

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-hero {
  padding: 44px 0 22px;
}
.legal-hero__card,
.legal-doc {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.legal-hero__card {
  padding: 30px 32px;
}
.legal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-3);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.legal-hero h1 {
  max-width: none;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: 12px;
}
.legal-hero p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 1rem;
}
.legal-doc {
  margin-bottom: 32px;
  padding: 30px 32px 34px;
}
.legal-doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(233, 238, 248, 0.7);
  font-size: 0.92rem;
}
.legal-doc section + section {
  margin-top: 28px;
}
.legal-doc h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.legal-doc p,
.legal-doc li {
  color: #d8e1ee;
}
.legal-doc p {
  margin: 0 0 12px;
}
.legal-doc ul {
  margin: 0;
  padding-left: 20px;
}
.legal-doc li + li {
  margin-top: 8px;
}
.legal-doc strong {
  color: #f7fbff;
}
.legal-note {
  color: rgba(233, 238, 248, 0.72);
  font-size: 0.92rem;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 22px; border-radius: 16px;
  font-size: 0.98rem; font-weight: 800; letter-spacing: -0.02em;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  text-align: center;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.03); }
.cta--primary, .cta--nav {
  color: #0a1003;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 36px rgba(132, 204, 22, 0.28);
}
.cta--support {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.cta--support:hover { background: rgba(255, 255, 255, 0.1); filter: none; transform: translateY(-1px); }
.cta--ghost {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
}
.cta--large { min-height: 60px; padding: 0 26px; font-size: 1rem; }
.hero { padding: 42px 0 26px; }
.hero__inner { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 26px; align-items: start; }
.hero__copy { padding: 34px; border-radius: var(--radius); }
.hero__eyebrows { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--accent-3);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
h1,h2,h3 { margin: 0; letter-spacing: -0.04em; line-height: 1.02; }
h1 { font-size: clamp(2.65rem, 6vw, 4.8rem); max-width: 12ch; margin-bottom: 14px; }
.hero__sub { max-width: 54ch; font-size: 1.1rem; color: var(--muted); }
.hero__steps { margin: 14px 0 0; padding-left: 20px; }
.hero__steps li { margin-bottom: 10px; }
.hero__steps--icons {
  list-style: none;
  padding-left: 0;
}
.hero__steps--icons li {
  position: relative;
  padding-left: 38px;
  min-height: 26px;
}
.hero__step-icon {
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 24px;
  height: 24px;
  display: block;
}
.hero__step-icon::before,
.hero__step-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.hero__step-icon::before {
  background: #ecfccb;
  filter: blur(3px);
  animation: heroStepIconBackMove 3s linear infinite;
}
.hero__step-icon::after {
  background: #1F3023;
  animation: heroStepIconPulse 3s linear infinite;
}
.hero__steps--icons li:nth-child(1) .hero__step-icon::before { animation-delay: 0s; }
.hero__steps--icons li:nth-child(1) .hero__step-icon::after { animation-delay: 0s; }
.hero__steps--icons li:nth-child(2) .hero__step-icon::before { animation-delay: 0.45s; }
.hero__steps--icons li:nth-child(2) .hero__step-icon::after { animation-delay: 0.45s; }
.hero__steps--icons li:nth-child(3) .hero__step-icon::before { animation-delay: 0.9s; }
.hero__steps--icons li:nth-child(3) .hero__step-icon::after { animation-delay: 0.9s; }
.hero__steps--icons li:nth-child(4) .hero__step-icon::before { animation-delay: 1.35s; }
.hero__steps--icons li:nth-child(4) .hero__step-icon::after { animation-delay: 1.35s; }
.hero__steps--icons li:nth-child(5) .hero__step-icon::before { animation-delay: 1.8s; }
.hero__steps--icons li:nth-child(5) .hero__step-icon::after { animation-delay: 1.8s; }
.hero__step-icon--define {
  --hero-step-mask: url("assets/define_index.png");
}
.hero__step-icon--build {
  --hero-step-mask: url("assets/build_index.png");
}
.hero__step-icon--publish {
  --hero-step-mask: url("assets/publish_index.png");
}
.hero__step-icon--cash {
  --hero-step-mask: url("assets/cash_index.png");
}
.hero__step-icon--grow {
  --hero-step-mask: url("assets/grow_index.png");
}
.hero__step-icon--define::before,
.hero__step-icon--define::after,
.hero__step-icon--build::before,
.hero__step-icon--build::after,
.hero__step-icon--publish::before,
.hero__step-icon--publish::after,
.hero__step-icon--cash::before,
.hero__step-icon--cash::after,
.hero__step-icon--grow::before,
.hero__step-icon--grow::after {
  -webkit-mask-image: var(--hero-step-mask);
  mask-image: var(--hero-step-mask);
}
@keyframes heroStepIconBackMove {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(4px);
  }
  40% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes heroStepIconPulse {
  0% {
    background: #1F3023;
    filter: blur(0px);
    transform: translateY(0);
  }
  20% {
    background: #ecfccb;
    filter: blur(5px);
    transform: translateY(4px);
  }
  40% {
    background: #1F3023;
    filter: blur(0px);
    transform: translateY(0);
  }
  100% {
    background: #1F3023;
    filter: blur(0px);
    transform: translateY(0);
  }
}
.hero__cta-group { margin-top: 24px; }
.hero__micro { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; }
.hero__bullets { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__bullets li,
.pill {
  padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.025); color: #e8e9ef; font-size: 0.92rem; font-weight: 600;
}
.hero__visual { align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
.video-card { border-radius: var(--radius); padding: 16px; }
.video-card__badge {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: #d6d8e2;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); margin-bottom: 14px;
}
.video-card__media {
  width: 100%; border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover;
  background: linear-gradient(135deg, rgba(132,204,22,0.18), rgba(255,255,255,0.04)); border: 1px solid var(--line-strong);
}
.video-card__caption { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.live-revenue-pill {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: rgba(9, 15, 26, 0.86); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35); color: #f6f7fb; font-size: 0.95rem; line-height: 1; white-space: nowrap;
}
#liveRevenueValue { font-weight: 800; letter-spacing: -0.02em; }
.live-revenue-label { color: var(--muted); font-weight: 500; }
.live-revenue-pill.is-bumping { animation: revenueBump 600ms ease; }
#liveRevenueValue.is-bump-number, .mrr-value.is-bump-number { animation: numberBump 700ms ease; display: inline-block; }
@keyframes revenueBump {
  0%   { transform: translateX(-50%) scale(1); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
  20%  { transform: translateX(-50%) scale(1.07); box-shadow: 0 18px 52px rgba(132,204,22,0.34); }
  55%  { transform: translateX(-50%) scale(1.04); box-shadow: 0 16px 48px rgba(132,204,22,0.24); }
  100% { transform: translateX(-50%) scale(1); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
}
@keyframes numberBump {
  0% { transform: scale(1); color: #ffffff; }
  30% { transform: scale(1.10); color: var(--accent-2); }
  60% { transform: scale(1.04); color: var(--accent); }
  100% { transform: scale(1); color: #ffffff; }
}
.leaderboard-card { padding: 18px; border-radius: var(--radius); }
.leaderboard-card__header { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; min-height: 28px; }
.leaderboard-card__title { font-size: 0.96rem; font-weight: 700; letter-spacing: -0.01em; color: #eaf8ef; }
.leaderboard-live {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.leaderboard-live__dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(132,204,22,0.42), 0 0 10px rgba(132,204,22,0.9), 0 0 18px rgba(132,204,22,0.45);
  animation: leaderboardLivePulse 1.8s ease-in-out infinite;
}
.leaderboard-live__text { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.88); }
@keyframes leaderboardLivePulse {
  0% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.45; transform: scale(0.92); }
}
.leaderboard-list { display: flex; flex-direction: column; gap: 10px; }
.leaderboard-row {
  display: grid; grid-template-columns: 42px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.leaderboard-row:hover { transform: translateY(-1px); background: rgba(255,255,255,0.04); border-color: rgba(132,204,22,0.22); }
.leaderboard-row--top { background: linear-gradient(135deg, rgba(132,204,22,0.12), rgba(255,255,255,0.03)); border-color: rgba(132,204,22,0.22); }
.leaderboard-rank { font-size: 0.92rem; font-weight: 800; color: #ffffff; opacity: 0.92; }
.leaderboard-app-icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.leaderboard-app-name { font-size: 0.98rem; font-weight: 700; color: #f6f7fb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-mrr { font-size: 0.98rem; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; text-align: right; white-space: nowrap; }
.mrr-period { font-size: 0.72em; font-weight: 500; opacity: 0.55; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.offer, .proof, .for-who, .cta-block, .faq { padding: 18px 0 0; }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { border-radius: 22px; padding: 22px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(132,204,22,0.14); border: 1px solid rgba(132,204,22,0.25); margin-bottom: 14px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.proof__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.proof__copy, .proof__panel { border-radius: 22px; padding: 24px; }
.proof__lead { margin: 0; font-size: 1.06rem; color: var(--text); max-width: 58ch; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: #e8e9ef; font-size: 0.98rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-3); font-weight: 900; }
.for-who__list { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-panel {
  border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: radial-gradient(circle at top right, rgba(132,204,22,0.16), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.cta-panel p { margin: 0; color: var(--muted); max-width: 50ch; }
.cta-panel__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.auth-layout, .gate-layout, .paywall-layout, .dashboard-layout { min-height: calc(100vh - 76px); }
.auth-layout { position: relative; overflow: hidden; }
.auth-layout__mosaic {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, minmax(54px, 1fr)); gap: 22px; padding: 28px;
  opacity: 0.46; pointer-events: none; align-content: stretch;
  transition: opacity 280ms ease;
}
.auth-layout.is-signup-mode .auth-layout__mosaic {
  opacity: 0.72;
}
.auth-tile {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.04;
  transform: scale(0.88);
  filter: drop-shadow(0 0 0 rgba(var(--cube-rgb, 132, 204, 22), 0));
  transition: opacity 600ms ease, transform 600ms ease, filter 600ms ease;
}
.auth-tile.is-lit {
  opacity: 0.92;
  transform: scale(1.04);
  filter: drop-shadow(0 0 22px rgba(var(--cube-rgb, 132, 204, 22), 0.34));
}
.auth-cube-scene {
  position: relative;
  width: 42px;
  height: 42px;
  perspective: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-cube {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(34deg);
}
.auth-tile:nth-child(2n) .auth-cube { transform: rotateX(-22deg) rotateY(30deg); }
.auth-tile:nth-child(3n) .auth-cube { transform: rotateX(-26deg) rotateY(42deg); }
.auth-tile:nth-child(5n) .auth-cube { transform: rotateX(-18deg) rotateY(24deg); }
.auth-cube__face {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 1px solid rgba(var(--cube-rgb, 132, 204, 22), 0.42);
  background: linear-gradient(180deg, rgba(var(--cube-rgb, 132, 204, 22), 0.28), rgba(var(--cube-rgb, 132, 204, 22), 0.08));
}
.auth-cube__face--front  { transform: translateZ(21px); }
.auth-cube__face--back   { transform: translateZ(-21px) rotateY(180deg); }
.auth-cube__face--left   { transform: translateX(-21px) rotateY(-90deg); }
.auth-cube__face--right  { transform: translateX(21px) rotateY(90deg); }
.auth-cube__face--top    { transform: translateY(-21px) rotateX(90deg); }
.auth-cube__face--bottom { transform: translateY(21px) rotateX(-90deg); }
.auth-cube__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(var(--cube-rgb, 132, 204, 22), 0.96) 26%, rgba(var(--cube-rgb, 132, 204, 22), 0.6) 52%, rgba(var(--cube-rgb, 132, 204, 22), 0.16) 78%, rgba(var(--cube-rgb, 132, 204, 22), 0) 100%);
  transform: translate(-50%, -50%);
  filter: blur(3.6px);
  box-shadow:
    0 0 24px rgba(var(--cube-rgb, 132, 204, 22), 0.98),
    0 0 44px rgba(var(--cube-rgb, 132, 204, 22), 0.68),
    0 0 78px rgba(var(--cube-rgb, 132, 204, 22), 0.34);
}
.auth-cube__core::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--cube-rgb, 132, 204, 22), 0.42), rgba(var(--cube-rgb, 132, 204, 22), 0.16) 40%, rgba(var(--cube-rgb, 132, 204, 22), 0) 76%);
  filter: blur(12px);
}
.auth-layout__inner, .gate-layout__inner, .paywall-layout__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: inherit; padding: 48px 0; }
.auth-card {
  width: min(980px, 100%);
  border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.44), rgba(7, 12, 24, 0.28));
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.auth-card--split { display: grid; grid-template-columns: 0.95fr 1.05fr; }
.auth-card__aside {
  padding: 38px; background: linear-gradient(180deg, rgba(132,204,22,0.12), rgba(132,204,22,0.04));
  border-right: 1px solid rgba(255,255,255,0.08);
}
.auth-card__main {
  padding: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
}
.auth-card__eyebrow {
  display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px;
  background: rgba(132,204,22,0.10); border: 1px solid rgba(132,204,22,0.18); color: var(--accent-3); font-weight: 700; font-size: 0.8rem; margin-bottom: 14px;
}
.auth-highlights { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: #dce7f8; }
.auth-highlights li::before { content: "•"; color: var(--accent-2); margin-right: 8px; }
.segmented-control {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); margin-bottom: 18px;
}
.segmented-control__btn {
  min-height: 48px; border-radius: 12px; color: var(--muted); font-weight: 700;
}
.segmented-control__btn.active { background: rgba(132,204,22,0.14); color: #efffd0; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span { font-size: 0.92rem; color: #dbe6f5; font-weight: 600; }
.field__help { margin: -2px 0 16px; color: var(--muted); font-size: 0.9rem; }
.auth-form__submit, .sso-btn { width: 100%; }
.password-rules { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.password-rules span {
  padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; font-weight: 600;
}
.password-rules span.is-valid { color: #ecfccb; background: rgba(132,204,22,0.12); border-color: rgba(132,204,22,0.2); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso-btn {
  min-height: 56px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--text); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}
.sso-btn__icon {
  width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 999px;
  background: #ffffff; color: #111827; font-weight: 800;
}
.text-button { color: var(--muted); font-weight: 700; margin-top: 12px; }
.alert {
  margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
}
.alert.is-error { background: rgba(244,63,94,0.10); border-color: rgba(244,63,94,0.18); color: #fecdd3; }
.alert.is-success { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.18); color: #bbf7d0; }
.panel { border-radius: 28px; padding: 30px; }
.panel--narrow { width: min(560px, 100%); }
.stack-form { margin-top: 18px; }
.paywall-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; width: 100%; }
.paywall-price { display: flex; align-items: flex-end; gap: 8px; margin: 20px 0; }
.paywall-price span { font-size: clamp(3rem, 8vw, 4.4rem); letter-spacing: -0.05em; font-weight: 900; }
.paywall-price small { color: var(--muted); font-size: 1.1rem; padding-bottom: 10px; }
.paywall-actions { display: grid; gap: 12px; }
.paypal-button-shell { min-height: 48px; }
.paypal-button-shell.hidden { display: none; }
.paypal-button-shell.is-revealing {
  animation: paywallRevealIn 560ms cubic-bezier(.2, .9, .15, 1);
  transform-origin: top center;
}
.paywall-reveal-btn.is-popping {
  animation: paywallButtonPop 480ms cubic-bezier(.2, .9, .2, 1);
}
.paywall-cube-burst {
  position: fixed;
  left: var(--cube-origin-x, 50vw);
  top: var(--cube-origin-y, 50vh);
  width: 44px;
  height: 44px;
  transform-style: preserve-3d;
  animation: paywallCubeBurst 1100ms cubic-bezier(.18, .82, .2, 1) forwards;
  filter: drop-shadow(0 12px 30px rgba(95, 155, 18, 0.3));
  pointer-events: none;
  z-index: 140;
}
.paywall-cube-burst__face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(88, 138, 18, 0.8);
  background: linear-gradient(180deg, rgba(95, 155, 18, 0.42), rgba(56, 92, 10, 0.22));
  box-shadow: inset 0 0 24px rgba(132, 204, 22, 0.08);
  backdrop-filter: blur(1px);
}
.paywall-cube-burst__face--front  { transform: translateZ(22px); }
.paywall-cube-burst__face--back   { transform: translateZ(-22px) rotateY(180deg); }
.paywall-cube-burst__face--left   { transform: translateX(-22px) rotateY(-90deg); }
.paywall-cube-burst__face--right  { transform: translateX(22px) rotateY(90deg); }
.paywall-cube-burst__face--top    { transform: translateY(-22px) rotateX(90deg); }
.paywall-cube-burst__face--bottom { transform: translateY(22px) rotateX(-90deg); }
#paypalButtonContainer { width: 100%; }
.paypal-button-shell iframe { max-width: 100%; }
.paywall-table-wrap h3 { margin-bottom: 16px; }

@keyframes paywallButtonPop {
  0% { transform: scale(1); filter: brightness(1); }
  38% { transform: scale(1.08); filter: brightness(1.12); }
  100% { transform: scale(0.98); filter: brightness(1.02); }
}

@keyframes paywallRevealIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  55% { opacity: 1; transform: translateY(-3px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes paywallCubeBurst {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotateX(-24deg) rotateY(0deg) scale(0.62);
  }
  12% {
    opacity: 1;
    transform: translate3d(-50%, -68%, 0) rotateX(-18deg) rotateY(120deg) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -250%, 0) rotateX(-8deg) rotateY(760deg) scale(1.08);
  }
}
.features-table { width: 100%; border-collapse: collapse; }
.features-table th, .features-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.features-table th { color: #dce7f8; font-size: 0.9rem; }
.features-table td { color: var(--muted); }
.features-table td:nth-child(2) { color: #ecfccb; font-weight: 700; }
.dashboard-layout__inner { padding: 30px 0 48px; }
.dashboard-shell { display: grid; grid-template-columns: 320px 1fr; gap: 18px; width: 100%; }
.dashboard-sidebar, .dashboard-main { min-height: 680px; }
.dashboard-sidebar__head, .dashboard-main__header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px;
}
.icon-button {
  width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111827; font-size: 1.75rem; font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(234, 250, 44, 0.18),
    0 0 18px rgba(234, 250, 44, 0.26),
    0 0 34px rgba(234, 250, 44, 0.16);
}
.app-create-form { border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 16px; background: rgba(255,255,255,0.02); }
.app-create-form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.apps-list { display: grid; gap: 12px; }
.app-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.app-item.active { border-color: rgba(132,204,22,0.32); background: rgba(132,204,22,0.08); }
.app-item__body { position: relative; min-width: 0; padding-right: 72px; }
.app-item__icon-wrap {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
}
.app-item__icon {
  width: 52px; height: 52px; border-radius: 16px; object-fit: cover;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: block;
}
.app-item__icon-wrap input[type="file"] { display: none; }
.app-item__icon-upload-hint {
  position: absolute; inset: 0; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 140ms;
  pointer-events: none; font-size: 1.1rem;
}
.app-item__icon-wrap:hover .app-item__icon-upload-hint { opacity: 1; }

/* Logo hover overlay (in blueprint naming box) */
.define-logo-btn-wrap {
  position: relative; flex-shrink: 0;
}
.define-logo-corner {
  position: absolute; width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; cursor: pointer; border: none;
  background: rgba(10,18,32,0.85); color: var(--text);
  opacity: 0; transition: opacity 140ms;
  z-index: 5; pointer-events: none;
}
.define-logo-btn-wrap:hover .define-logo-corner { opacity: 1; pointer-events: auto; }
.define-logo-corner--upload  { top: 4px; right: 4px; }
.define-logo-corner--regen   { bottom: 4px; right: 4px; color: var(--accent); }
.define-logo-corner--view    { /* full btn is clickable */ }

/* Logo lightbox */
.logo-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88); display: flex; align-items: center; justify-content: center;
  animation: lbFadeIn 160ms ease;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.logo-lightbox__img {
  max-width: min(80vw, 480px); max-height: min(80vh, 480px);
  border-radius: 24px; box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.logo-lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: var(--text); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.logo-lightbox__download {
  position: absolute; bottom: 32px;
  padding: 10px 22px; border-radius: 12px;
  background: var(--accent); color: #000; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; border: none; text-decoration: none;
}

/* Delete app button + confirm */
.stage-panel[data-stage-panel="define"] {
  position: relative;
  padding-bottom: 56px;
}
#defineBlueprintScreen {
  position: static !important;
}
.define-delete-btn {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 0.72rem; font-weight: 600; color: var(--danger); opacity: 0.5;
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  transition: opacity 140ms;
}
.define-delete-btn--inline {
  position: static;
  color: rgba(226, 232, 240, 0.32);
  opacity: 1;
}
.define-mode-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 10px;
}
.define-delete-btn--inline:hover {
  color: var(--danger);
  opacity: 0.5;
}
.define-delete-btn:hover { opacity: 1; }
.define-delete-confirm {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center;
}
.define-delete-confirm__box {
  background: var(--bg-2); border: 1px solid rgba(251,113,133,0.3);
  border-radius: 20px; padding: 28px 28px 24px; max-width: 340px; width: 90%;
  display: flex; flex-direction: column; gap: 14px;
}
.define-delete-confirm__title { font-size: 1rem; font-weight: 800; color: var(--danger); }
.define-delete-confirm__sub { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.define-delete-confirm__actions { display: flex; gap: 8px; justify-content: flex-end; }
.define-delete-confirm__cancel { font-size: 0.82rem; color: var(--muted); background: none; border: none; cursor: pointer; padding: 8px 14px; }
.define-delete-confirm__ok { font-size: 0.82rem; font-weight: 700; color: #fff; background: var(--danger); border: none; border-radius: 10px; padding: 8px 18px; cursor: pointer; }
.dashboard-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dashboard-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dashboard-title-row h2 {
  margin: 0;
}
.dashboard-title-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(239, 245, 255, 0.78);
  cursor: pointer;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.dashboard-title-row:hover .dashboard-title-edit,
.dashboard-title-row:focus-within .dashboard-title-edit,
.dashboard-title-row.is-editing .dashboard-title-edit {
  opacity: 1;
  transform: translateY(0);
}
.dashboard-title-edit:hover,
.dashboard-title-edit:focus-visible {
  background: rgba(234, 250, 44, 0.08);
  border-color: rgba(234, 250, 44, 0.28);
  color: #f6ff9a;
  outline: none;
}
.dashboard-title-edit .material-symbols-outlined {
  font-size: 18px;
}
.dashboard-title-input {
  min-width: min(420px, 52vw);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(234, 250, 44, 0.22);
  background: rgba(10, 14, 26, 0.88);
  color: var(--text);
  font: inherit;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 0 0 1px rgba(234, 250, 44, 0.06), 0 14px 28px rgba(0, 0, 0, 0.26);
}
.dashboard-title-input:focus {
  outline: none;
  border-color: rgba(234, 250, 44, 0.44);
  box-shadow: 0 0 0 4px rgba(234, 250, 44, 0.12), 0 18px 34px rgba(0, 0, 0, 0.32);
}
.app-item__value {
  position: absolute;
  top: 0;
  right: 0;
  color: #eafa2c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: right;
  text-shadow: 0 0 14px rgba(234, 250, 44, 0.18);
}
.app-item__name { font-weight: 800; color: var(--text); margin-bottom: 4px; }
.app-item__meta { color: var(--muted); font-size: 0.88rem; }
.app-progress-wrap { margin-bottom: 18px; }
.app-progress {
  position: relative;
  padding: 30px 20px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(234, 250, 44, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
  overflow: visible;
}
.app-progress--compact {
  margin-top: 12px;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.app-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.app-progress__meta--solo {
  justify-content: flex-end;
}
.app-progress__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 250, 255, 0.72);
}
.app-progress__value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f3ffab;
  text-shadow:
    0 0 8px rgba(234, 250, 44, 0.72),
    0 0 18px rgba(234, 250, 44, 0.52),
    0 0 34px rgba(234, 250, 44, 0.28);
  filter: drop-shadow(0 0 10px rgba(234, 250, 44, 0.34));
}
.app-progress__value-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.app-progress__track {
  position: relative;
  width: calc(100% + 28px);
  margin-left: -14px;
  height: 9px;
  border-radius: 999px;
  background: rgba(234, 250, 44, 0.14);
  border: 1px solid rgba(234, 250, 44, 0.14);
  overflow: visible;
}
.app-progress--compact .app-progress__track {
  height: 6px;
  background: rgba(234, 250, 44, 0.12);
}
.app-progress__fill,
.app-progress__glow {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(var(--app-progress) * 100%);
  border-radius: inherit;
}
.app-progress__fill {
  background: linear-gradient(90deg, rgba(234, 250, 44, 0.88), #eafa2c 52%, rgba(245, 255, 160, 0.95));
  box-shadow: 0 0 24px rgba(234, 250, 44, 0.24);
}
.app-progress__glow {
  background: linear-gradient(90deg, rgba(234, 250, 44, 0.3), rgba(234, 250, 44, 0.7));
  filter: blur(10px);
  opacity: 0.95;
}
.app-progress__marker {
  position: absolute;
  left: calc(var(--app-progress) * 100%);
  top: 50%;
  width: 0;
  height: 0;
  z-index: 4;
}
.app-progress__dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #efff6d;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(234, 250, 44, 0.18), 0 0 18px rgba(234, 250, 44, 0.85), 0 0 34px rgba(234, 250, 44, 0.5);
  z-index: 2;
}
.app-progress__float-icon {
  position: absolute;
  display: block;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(234, 250, 44, 0.22);
  isolation: isolate;
  z-index: 1;
}
.app-progress__float-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  filter: blur(0px);
  transition: opacity 180ms ease, filter 180ms ease;
  z-index: 0;
}
.app-progress__float-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.95;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  filter: none;
  z-index: 1;
}
.app-progress__float-icon:focus-visible {
  outline: 1px solid rgba(234, 250, 44, 0.6);
  outline-offset: 4px;
}
.app-progress__float-icon--done {
  color: rgba(234, 250, 44, 0.92);
}
.app-progress__float-icon--done::before {
  opacity: 0.96;
  filter:
    blur(38px)
    brightness(1.24);
}
.app-progress__float-icon--done::after {
  opacity: 1;
  filter:
    blur(4.2px)
    brightness(1.2)
    drop-shadow(0 0 12px rgba(234, 250, 44, 0.48));
}
.app-progress__float-icon--track {
  left: var(--app-progress-icon-position);
  top: 50%;
  transform: translate(-50%, -170%);
}
.app-progress__float-icon--bulb {
  width: 20px;
  height: 20px;
  --app-progress-icon-mask: url("assets/lightbulb.png");
}
.app-progress__float-icon--bulb::before {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__float-icon--bulb::after {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__float-icon--cube {
  width: 21px;
  height: 21px;
  --app-progress-icon-mask: url("assets/cube.png");
}
.app-progress__float-icon--cube::before {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__float-icon--cube::after {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__float-icon--phone {
  width: 18px;
  height: 24px;
  margin-top: 5px;
  --app-progress-icon-mask: url("assets/phone.png");
}
.app-progress__float-icon--phone::before {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__float-icon--phone::after {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__float-icon--cash {
  right: 4px;
  bottom: calc(100% + 9px);
  width: 21px;
  height: 16px;
  --app-progress-icon-mask: url("assets/cash.png");
}
.app-progress__float-icon--cash::before {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__float-icon--cash::after {
  -webkit-mask-image: var(--app-progress-icon-mask);
  mask-image: var(--app-progress-icon-mask);
}
.app-progress__ship-rig {
  position: absolute;
  left: 0;
  top: -33px;
  width: 36px;
  height: 20px;
  transform: translateX(-50%) rotate(-7deg);
  transform-origin: 50% 50%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  position: absolute;
  animation: appShipFloat 9.5s linear infinite;
}
.app-progress__ship-pack {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  animation: none;
}
.app-progress__ship-field,
.app-progress__ship-trail,
.app-progress__ship-stretch-far,
.app-progress__ship-stretch-wide,
.app-progress__ship-stretch-soft,
.app-progress__ship-stretch,
.app-progress__ship-bloom,
.app-progress__ship-glow,
.app-progress__ship {
  position: absolute;
  pointer-events: none;
}
.app-progress__ship-field,
.app-progress__ship-stretch-far,
.app-progress__ship-stretch-wide,
.app-progress__ship-stretch-soft,
.app-progress__ship-stretch,
.app-progress__ship-bloom,
.app-progress__ship-glow,
.app-progress__ship {
  inset: 0;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 232, 0.92), rgba(255, 255, 214, 0.34) 18%, transparent 62%),
    linear-gradient(135deg, rgba(248, 255, 188, 0.88), rgba(234, 250, 44, 0.92) 48%, rgba(198, 255, 46, 0.84));
  -webkit-mask-image: url("assets/spaceship.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("assets/spaceship.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.app-progress__ship-field {
  transform: scaleX(1.32) scaleY(1.86);
  filter: blur(24px) brightness(1.14) saturate(1.12);
  opacity: 0.3;
  mix-blend-mode: screen;
  z-index: 0;
}
.app-progress__ship-trail {
  left: -32px;
  top: 50%;
  width: 44px;
  height: 15px;
  transform: translateY(-50%) skewX(-12deg);
  background:
    radial-gradient(circle at 96% 50%, rgba(255, 255, 220, 0.62) 0%, rgba(234, 250, 44, 0.42) 12%, rgba(234, 250, 44, 0.14) 30%, transparent 52%),
    linear-gradient(90deg, rgba(234, 250, 44, 0) 0%, rgba(234, 250, 44, 0.02) 24%, rgba(234, 250, 44, 0.08) 56%, rgba(234, 250, 44, 0.3) 100%);
  filter: blur(9px);
  opacity: 0.62;
  mix-blend-mode: screen;
  transform-origin: right center;
  animation: appShipEnergy 8.6s ease-in-out infinite;
  z-index: 0;
}
.app-progress__ship-stretch-far {
  transform: scaleX(2.7) scaleY(0.82);
  filter: blur(40px) brightness(1.24) saturate(0.9);
  opacity: 0.14;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 245, 0.96), rgba(255, 255, 236, 0.3) 18%, transparent 64%),
    linear-gradient(135deg, rgba(255, 255, 246, 0.8), rgba(245, 250, 210, 0.48) 48%, rgba(232, 240, 196, 0.26));
  z-index: 1;
}
.app-progress__ship-stretch-wide {
  transform: scaleX(2.2) scaleY(0.86);
  filter: blur(42px) brightness(1.18) saturate(0.96);
  opacity: 0.14;
  mix-blend-mode: screen;
  z-index: 2;
}
.app-progress__ship-stretch-soft {
  transform: scaleX(2.05) scaleY(0.88);
  filter: blur(30px) brightness(1.18) saturate(1.12);
  opacity: 0.24;
  mix-blend-mode: screen;
  z-index: 3;
}
.app-progress__ship-stretch {
  transform: scaleX(1.24) scaleY(1.01);
  filter: blur(13px) brightness(1.24) saturate(1.16);
  opacity: 0.38;
  mix-blend-mode: screen;
  z-index: 4;
}
.app-progress__ship-bloom {
  transform: scaleX(1.03) scaleY(1.24);
  filter: blur(8px) brightness(1.24) saturate(1.18);
  opacity: 0.56;
  mix-blend-mode: screen;
  z-index: 5;
}
.app-progress__ship-glow {
  transform: scaleX(1.08) scaleY(1.54);
  filter: blur(16px) brightness(1.16) saturate(1.12);
  opacity: 0.34;
  mix-blend-mode: screen;
  z-index: 6;
}
.app-progress__ship {
  filter:
    brightness(1.22)
    saturate(1.32)
    drop-shadow(0 0 10px rgba(234, 250, 44, 1))
    drop-shadow(0 0 24px rgba(234, 250, 44, 0.88))
    drop-shadow(0 0 50px rgba(234, 250, 44, 0.66));
  z-index: 7;
}
.app-progress--compact .app-progress__dot {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 3px rgba(234, 250, 44, 0.14), 0 0 14px rgba(234, 250, 44, 0.72);
}
.app-progress--compact .app-progress__ship-rig {
  width: 23px;
  height: 13px;
  top: -21px;
}
.app-progress--compact .app-progress__ship-field {
  transform: scaleX(1.28) scaleY(1.72);
  filter: blur(15px) brightness(1.12) saturate(1.08);
  opacity: 0.26;
}
.app-progress--compact .app-progress__ship-trail {
  left: -20px;
  width: 30px;
  height: 10px;
  filter: blur(6px);
  opacity: 0.54;
}
.app-progress--compact .app-progress__ship-stretch {
  transform: scaleX(1.22) scaleY(1.01);
  filter: blur(8px) brightness(1.2) saturate(1.12);
  opacity: 0.34;
}
.app-progress--compact .app-progress__ship-stretch-far {
  transform: scaleX(2.4) scaleY(0.82);
  filter: blur(24px) brightness(1.2) saturate(0.86);
  opacity: 0.12;
}
.app-progress--compact .app-progress__ship-stretch-wide {
  transform: scaleX(2.02) scaleY(0.86);
  filter: blur(26px) brightness(1.14) saturate(0.92);
  opacity: 0.12;
}
.app-progress--compact .app-progress__ship-stretch-soft {
  transform: scaleX(1.88) scaleY(0.88);
  filter: blur(18px) brightness(1.14) saturate(1.08);
  opacity: 0.2;
}
.app-progress--compact .app-progress__ship-bloom {
  transform: scaleX(1.02) scaleY(1.18);
  filter: blur(6px) brightness(1.2) saturate(1.14);
  opacity: 0.5;
}
.app-progress--compact .app-progress__ship-glow {
  transform: scaleX(1.06) scaleY(1.38);
  filter: blur(10px) brightness(1.12) saturate(1.08);
  opacity: 0.3;
}
@keyframes appShipFloat {
  0% { transform: translateX(calc(-50% + 0px)) translateY(0) rotate(-8.6deg); }
  12.5% { transform: translateX(calc(-50% + 0.8px)) translateY(-1.5px) rotate(-7.8deg); }
  25% { transform: translateX(calc(-50% - 0.45px)) translateY(-3px) rotate(-6.7deg); }
  37.5% { transform: translateX(calc(-50% + 1px)) translateY(-4.2px) rotate(-5.8deg); }
  50% { transform: translateX(calc(-50% - 0.35px)) translateY(-2.7px) rotate(-6.5deg); }
  62.5% { transform: translateX(calc(-50% + 0.75px)) translateY(-4.4px) rotate(-5.5deg); }
  75% { transform: translateX(calc(-50% - 0.95px)) translateY(-5.2px) rotate(-4.8deg); }
  87.5% { transform: translateX(calc(-50% + 0.4px)) translateY(-2.6px) rotate(-6.2deg); }
  100% { transform: translateX(calc(-50% + 0px)) translateY(0) rotate(-8.6deg); }
}
@keyframes appShipEnergy {
  0%, 100% {
    opacity: 0.52;
    filter: blur(10px);
    transform: translateY(-50%) skewX(-12deg) scaleX(0.88) scaleY(0.96);
  }
  35% {
    opacity: 0.7;
    filter: blur(12px);
    transform: translateY(-50%) skewX(-12deg) scaleX(1.02) scaleY(1);
  }
  68% {
    opacity: 0.6;
    filter: blur(14px);
    transform: translateY(-50%) skewX(-12deg) scaleX(1.08) scaleY(1.04);
  }
}
.dashboard-main__header { position: relative; }
.user-menu { position: relative; }
.user-menu__button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.user-menu__avatar {
  position: relative;
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-weight: 800;
  background: transparent; color: var(--accent);
  border: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
}
.user-menu__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(132, 204, 22, 0.92);
  filter: blur(3px);
  opacity: 0.72;
  z-index: 0;
}
.user-menu__avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  z-index: 1;
}
.user-menu__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px; border-radius: 16px;
  background: rgba(11, 18, 32, 0.98); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px;
}
.dropdown-action {
  width: 100%; min-height: 44px; border-radius: 12px; text-align: left; padding: 0 12px; color: var(--text);
}
.dropdown-action:hover { background: rgba(255,255,255,0.04); }
.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.account-modal {
  position: relative;
  width: min(860px, 100%);
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(9,15,26,0.985), rgba(6,12,22,0.965));
  box-shadow: var(--shadow);
}
.account-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
}
.account-modal__close:hover { background: rgba(255,255,255,0.08); }
.account-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(132,204,22,0.12);
  border: 1px solid rgba(132,204,22,0.2);
  color: var(--accent-3);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.account-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-right: 40px;
  margin-bottom: 20px;
}
.account-modal__header-copy {
  min-width: 0;
}
.account-modal__title {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.account-modal__sub {
  margin: 10px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.account-avatar {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(132,204,22,0.24);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 1px rgba(234,250,44,0.06), 0 18px 30px rgba(0,0,0,0.28);
}
.account-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-avatar__hint {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(4, 9, 18, 0.78);
  color: #f1f6ff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(8px);
}
.account-avatar:hover .account-avatar__hint,
.account-avatar:focus-visible .account-avatar__hint {
  opacity: 1;
  transform: translateY(0);
}
.account-avatar:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(234,250,44,0.08),
    0 0 0 4px rgba(234,250,44,0.12),
    0 18px 30px rgba(0,0,0,0.28);
}
.account-avatar:disabled {
  opacity: 0.72;
  cursor: wait;
}
.account-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: start;
}
.account-nav {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}
.account-nav__btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}
.account-nav__btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.045);
}
.account-nav__btn.is-active {
  color: var(--text);
  border-color: rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.account-content {
  min-width: 0;
}
.account-panel {
  display: none;
}
.account-panel.is-active {
  display: block;
}
.account-section-head {
  margin-bottom: 14px;
}
.account-section-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.account-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.account-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.account-stat {
  padding: 16px 16px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.022);
}
.account-stat__label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.account-stat__value {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
.account-stat--wide {
  grid-column: 1 / -1;
}
.account-action {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(132,204,22,0.18);
  background: rgba(132,204,22,0.1);
  color: #f3ffd9;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.account-action:hover {
  background: rgba(132,204,22,0.14);
}
.account-action--subtle {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.72);
}
.account-action--subtle:hover {
  background: rgba(255,255,255,0.055);
}
.app-stage-summary {
  padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); margin-bottom: 18px; color: #dbe6f5;
}
.stage-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700;
  text-shadow: 0 0 12px rgba(132, 204, 22, 0.7), 0 0 24px rgba(132, 204, 22, 0.4);
  filter: drop-shadow(0 0 6px rgba(132, 204, 22, 0.5));
}
.stage-badge__icon {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 6px 3px rgba(132, 204, 22, 0.6), 0 0 14px 6px rgba(132, 204, 22, 0.3);
  animation: stageDotPulse 2.8s ease-in-out infinite;
}
@keyframes stageDotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.stage-badge__label { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.stage-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 6px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); margin-bottom: 18px;
}
.stage-tab { min-height: 52px; border-radius: 14px; color: var(--muted); font-weight: 800; }
.stage-tab.active {
  color: #0a1003;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 1px rgba(234, 250, 44, 0.18),
    0 0 18px rgba(234, 250, 44, 0.26),
    0 0 34px rgba(234, 250, 44, 0.16);
}
.stage-tab.is-locked {
  opacity: 1;
  cursor: pointer;
}
.stage-tab.is-locked:not(.active) {
  background: transparent;
  color: var(--muted);
}
.stage-tab.is-locked.active {
  opacity: 1;
  color: #0a1003;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.stage-panels { min-height: 340px; }
.stage-panel { display: none; border-radius: 24px; padding: 24px; }
.stage-panel.active { display: block; }
.stage-panel h3 { margin-bottom: 10px; }
.stage-panel p { margin: 0 0 18px; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-card {
  padding: 16px; border-radius: 20px;
}
.mini-card strong, .metric strong { display: block; margin-bottom: 6px; }
.mini-card span, .metric span { color: var(--muted); }
.mini-card--wide { max-width: 520px; }
.stage-rail { display: flex; flex-wrap: wrap; gap: 10px; }
.stage-rail span {
  padding: 12px 14px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-weight: 700;
}
.cash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { padding: 18px; border-radius: 20px; }
/* ─── Define stage flow ─────────────────────────────────────────── */
.define-screen { display: flex; flex-direction: column; gap: 20px; }
.define-nav-btn { min-height: 44px; padding: 0 18px; font-size: 0.88rem; }

.define-intro h3 { margin: 0 0 6px; font-size: 1.15rem; }
.define-intro__sub { color: var(--muted); margin: 0; font-size: 0.88rem; line-height: 1.5; }

/* Cube hero (the bot) */
.define-hero {
  display: flex; justify-content: flex-start; align-items: center; padding: 4px 0 0;
  margin-left: 8px;
}
.define-cube-scene {
  position: relative; width: 64px; height: 64px;
  perspective: 220px;
}
.define-cube {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: defineCubeRotate 10s linear infinite;
}
@keyframes defineCubeRotate {
  from { transform: rotateX(-20deg) rotateY(0deg) translateY(-4px); }
  to   { transform: rotateX(-20deg) rotateY(360deg) translateY(-4px); }
}
/* ── Bot animation states ─────────────────────────────────────────────────── */
/* idle (default): slow steady rotation */
[data-bot-anim="idle"] .define-cube,
.define-cube {
  animation: defineCubeRotate 10s linear infinite;
}
/* thinking: fast spin + slight tilt wobble */
@keyframes defineCubeThink {
  0%   { transform: rotateX(-20deg) rotateY(0deg)   translateY(-4px); }
  25%  { transform: rotateX(-28deg) rotateY(90deg)  translateY(-6px); }
  50%  { transform: rotateX(-14deg) rotateY(180deg) translateY(-2px); }
  75%  { transform: rotateX(-26deg) rotateY(270deg) translateY(-6px); }
  100% { transform: rotateX(-20deg) rotateY(360deg) translateY(-4px); }
}
[data-bot-anim="thinking"] .define-cube {
  animation: defineCubeThink 0.55s linear infinite;
}
/* thinking: arrow frozen in place — no levitate */
[data-bot-anim="thinking"] .define-arrow-wrap {
  animation: none;
  transform: translate(-50%, -50%);
}
[data-bot-anim="thinking"] .define-arrow-glow,
[data-bot-anim="thinking"] .define-arrow-glow2 {
  animation-duration: 0.5s;
}
.define-cube__face {
  position: absolute; width: 64px; height: 64px;
  background: rgba(6, 14, 26, 0.52);
  border: 2px solid rgba(190, 215, 240, 0.28);
}
.define-cube__face--front  { transform: translateZ(32px); }
.define-cube__face--back   { transform: translateZ(-32px) rotateY(180deg); }
.define-cube__face--left   { transform: translateX(-32px) rotateY(-90deg); }
.define-cube__face--right  { transform: translateX(32px) rotateY(90deg); }
.define-cube__face--top    { transform: translateY(-32px) rotateX(90deg); }
.define-cube__face--bottom { transform: translateY(32px) rotateX(-90deg); }
.define-arrow-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  pointer-events: none; z-index: 2;
  animation: arrowLevitate 3.2s ease-in-out infinite;
}
.define-arrow-glow,
.define-arrow-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.define-arrow-glow {
  filter: blur(16px) brightness(2.75) saturate(1.65);
  opacity: 0.98;
  mix-blend-mode: screen;
  transform: scale(1.28);
  animation: arrowGlowPulse 3.2s ease-in-out infinite;
}
.define-arrow-glow2 {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: blur(30px) brightness(3.3) saturate(1.9);
  opacity: 0.82;
  mix-blend-mode: screen;
  animation: arrowGlowPulse 3.2s ease-in-out infinite;
  transform: scale(1.92);
}
.define-arrow-img {
  filter:
    brightness(1.22)
    drop-shadow(0 0 8px rgba(234, 250, 44, 0.72))
    drop-shadow(0 0 18px rgba(234, 250, 44, 0.46));
}
@keyframes arrowLevitate {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-4px); }
}
@keyframes arrowScale {
  0%, 100% { transform: scale(0.97); }
  50%       { transform: scale(1.03); }
}
@keyframes arrowGlowPulse {
  0%, 100% { opacity: 1; transform: scale(1.86); }
  50%       { opacity: 0.78; transform: scale(1.62); }
}

.define-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#defineModeScreen {
  gap: 14px;
  min-height: 100%;
}
.define-mode-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 20px 22px; border-radius: 18px; text-align: left; width: 100%;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  transition: border-color 180ms, background 180ms, transform 140ms;
}
.define-mode-card:hover {
  border-color: var(--accent); background: rgba(132,204,22,0.06); transform: translateY(-2px);
}
.define-mode-card__label { font-size: 1rem; font-weight: 800; color: var(--text); }
.define-mode-card__sub { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* Progress bar */
.define-progress-dots {
  width: 72px; height: 3px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.define-progress-fill {
  display: block; height: 100%;
  background: #84cc16;
  border-radius: 999px;
  width: 0%;
  transition: width 300ms ease;
}

/* Chat row: bot + bubble */
.define-chat-row { display: flex; align-items: flex-start; gap: 12px; }
.define-chat-bot { flex-shrink: 0; padding-right: 6px; }
.define-cube-scene--sm {
  width: 48px; height: 48px; perspective: 160px;
}
.define-cube-scene--sm .define-cube__face { width: 48px; height: 48px; }
.define-cube-scene--sm .define-cube__face--front  { transform: translateZ(24px); }
.define-cube-scene--sm .define-cube__face--back   { transform: translateZ(-24px) rotateY(180deg); }
.define-cube-scene--sm .define-cube__face--left   { transform: translateX(-24px) rotateY(-90deg); }
.define-cube-scene--sm .define-cube__face--right  { transform: translateX(24px) rotateY(90deg); }
.define-cube-scene--sm .define-cube__face--top    { transform: translateY(-24px) rotateX(90deg); }
.define-cube-scene--sm .define-cube__face--bottom { transform: translateY(24px) rotateX(-90deg); }
.define-cube-scene--sm .define-arrow-wrap { width: 26px; height: 26px; }

.define-chat-bubble {
  flex: 1;
  padding: 13px 16px;
  border-radius: 4px 16px 16px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-strong);
  font-size: 0.9rem; line-height: 1.55; color: var(--text);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.define-chat-bubble.is-visible { opacity: 1; transform: translateX(0); }

.define-chat-answer { display: flex; flex-direction: column; gap: 8px; margin-left: 70px; }
.define-speech-row { position: relative; }
.define-speech-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,18,32,0.82); border: 1px solid var(--line);
  color: var(--muted); transition: color 150ms, border-color 150ms, background 150ms;
  backdrop-filter: blur(4px);
}
.define-speech-btn svg { width: 15px; height: 15px; }
.define-speech-btn:hover { color: var(--text); border-color: var(--line-strong); }
.define-speech-btn.is-listening {
  color: var(--accent); border-color: var(--accent);
  background: rgba(132,204,22,0.12);
  animation: speechPulse 1s ease-in-out infinite;
}
@keyframes speechPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(132,204,22,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(132,204,22,0); }
}
.define-question-textarea {
  resize: vertical; min-height: 80px; padding: 12px 48px 12px 14px;
  border-radius: 14px; font-size: 0.92rem; line-height: 1.5; width: 100%;
}

.define-choice-group { display: flex; flex-direction: column; gap: 8px; }
.define-choice-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px; text-align: left; width: 100%;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: border-color 140ms, background 140ms, color 140ms;
}
.define-choice-btn:hover { border-color: var(--line-strong); color: var(--text); }
.define-choice-btn.is-selected { border-color: var(--accent); background: rgba(132,204,22,0.08); color: var(--accent-3); }
.define-choice-btn__dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line-strong); transition: border-color 140ms, background 140ms;
}
.define-choice-btn.is-selected .define-choice-btn__dot { border-color: var(--accent); background: var(--accent); }

.define-question-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; }

.define-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0; text-align: center; }
.define-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: defineSpin 0.75s linear infinite;
}
@keyframes defineSpin { to { transform: rotate(360deg); } }
.define-loading__text { font-weight: 700; font-size: 1rem; margin: 0; }
.define-loading__sub { color: var(--muted); font-size: 0.83rem; margin: 0; }
.define-loading__error { color: var(--danger); font-size: 0.88rem; margin: 0 0 8px; }

.define-blueprint__topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.define-blueprint__title { margin: 0 0 4px; font-size: 1.1rem; }
.define-blueprint__tagline { margin: 0; color: var(--accent-3); font-size: 0.88rem; font-weight: 700; font-style: italic; }
.define-blueprint__actions { display: flex; gap: 8px; align-items: center; }

.define-naming {
  padding: 18px 20px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(132,204,22,0.05); border: 1px solid rgba(132,204,22,0.18);
}
.define-naming__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.define-naming__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); }
.define-naming__row { display: flex; align-items: flex-start; gap: 14px; }

/* Pricing badge */
.define-pricing { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.define-pricing__model {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 999px;
}
.define-pricing__model--free    { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }
.define-pricing__model--freemium{ background: rgba(132,204,22,0.10);  color: var(--accent); border: 1px solid rgba(132,204,22,0.22); }
.define-pricing__model--paid    { background: rgba(251,191,36,0.10);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.22); }
.define-pricing__plans { display: flex; gap: 6px; }
.define-pricing__plan {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.define-pricing__plan-name { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.define-pricing__plan-price { font-size: 0.78rem; font-weight: 800; color: var(--text); line-height: 1; }
.define-pricing__mo { font-size: 0.58rem; font-weight: 600; color: var(--muted); }
.define-naming__text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.define-name-primary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Logo button */
.define-logo-btn {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color 160ms, background 160ms;
}
.define-logo-btn:hover:not([data-logo-state="loading"]) {
  border-color: rgba(132,204,22,0.4); background: rgba(132,204,22,0.06);
}
.define-logo-btn__text {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); line-height: 1.2; text-align: center; pointer-events: none;
}
.define-logo-btn__icon {
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.define-logo-btn[data-logo-state="loading"] { cursor: default; }
.define-logo-btn[data-logo-state="loading"] .define-logo-btn__text,
.define-logo-btn[data-logo-state="loading"] .define-logo-btn__icon { opacity: 0; }
.define-logo-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0; transition: opacity 200ms;
}
.define-logo-btn[data-logo-state="loading"] .define-logo-ring { opacity: 1; }
.define-logo-ring__track { stroke: rgba(255,255,255,0.08); fill: none; }
.define-logo-ring__fill {
  stroke: var(--accent); fill: none; stroke-linecap: round;
  transform-origin: 32px 32px; transform: rotate(-90deg);
  transition: stroke-dashoffset 0.1s linear;
}
.define-logo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 11px; opacity: 0;
  transition: opacity 400ms ease;
}
.define-logo-btn[data-logo-state="done"] .define-logo-img { opacity: 1; }
.define-logo-btn[data-logo-state="done"] .define-logo-ring,
.define-logo-btn[data-logo-state="done"] .define-logo-btn__text,
.define-logo-btn[data-logo-state="done"] .define-logo-btn__icon { opacity: 0; }
.define-logo-timer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--accent); letter-spacing: 0.02em; pointer-events: none;
  opacity: 0;
}
.define-logo-btn[data-logo-state="loading"] .define-logo-timer { opacity: 1; }
.define-logo-btn[data-logo-state="loading"] .define-logo-btn__text,
.define-logo-btn[data-logo-state="loading"] .define-logo-btn__icon { opacity: 0; }
/* ══════════════════════════════════════════════════════════════
   BUILD STAGE
   ══════════════════════════════════════════════════════════════ */
.build-locked {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 48px 24px; text-align: center; color: var(--muted);
}
.build-locked__icon { font-size: 2rem; opacity: 0.4; }
.build-locked__title { font-size: 1rem; font-weight: 700; color: var(--text); }
.build-locked__sub { font-size: 0.82rem; line-height: 1.5; }

/* Config screen */
.build-config { display: flex; flex-direction: column; gap: 20px; }
.build-section { display: flex; flex-direction: column; gap: 10px; }
.build-section__label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.build-options { display: flex; gap: 7px; flex-wrap: wrap; }

/* Option card */
.build-opt {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 12px; cursor: pointer; border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.02); transition: border-color 140ms, background 140ms;
  min-width: 72px;
}
.build-opt:hover { border-color: rgba(132,204,22,0.3); background: rgba(132,204,22,0.04); }
.build-opt.is-selected { border-color: var(--accent); background: rgba(132,204,22,0.08); }
.build-opt__label { font-size: 0.72rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.build-opt__sub { font-size: 0.62rem; color: var(--muted); text-align: center; line-height: 1.3; white-space: nowrap; }

/* Color swatch */
.build-swatch {
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
  border: 2px solid transparent; transition: border-color 140ms;
}
.build-opt.is-selected .build-swatch { border-color: white; }

/* Background swatch (square) */
.build-bg-swatch {
  width: 26px; height: 14px; border-radius: 4px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.12);
}

/* Radius preview */
.build-radius-preview {
  width: 28px; height: 18px;
  border: 2px solid currentColor; color: rgba(255,255,255,0.4);
}

/* CTA row */
.build-cta-row { display: flex; justify-content: flex-end; padding-top: 4px; }

/* Build loading screen */
.build-loading {
  display: flex; flex-direction: column; gap: 14px; padding: 8px 0 24px;
}
.build-loading__caption {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  margin: 0; min-height: 1.2em;
}
.build-loading__track {
  height: 3px; border-radius: 99px; background: var(--line); overflow: hidden;
}
.build-loading__bar {
  height: 100%; width: 0; border-radius: 99px;
  background: var(--accent); transition: width 120ms linear;
}
.build-loading__sub {
  font-size: 0.72rem; color: var(--muted); margin: 0; opacity: 0.5;
}

/* Export screen */
.build-export { display: flex; flex-direction: column; gap: 20px; }

/* Package card */
.build-export__card {
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px; border-radius: 18px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
}
/* HStack{ VStack{ Cube + HStack{logo+name} } + DownloadBtn } */
.build-export__pkg {
  display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: 20px;
}
/* The entire left column floats — cube + logo + name all move as one */
.build-export__pkg-left {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: buildPkgFloat 3.6s ease-in-out infinite;
}
@keyframes buildPkgFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}

/* Package cube — static transform, parent handles float */
.build-pkg-cube-scene {
  position: relative; width: 64px; height: 64px; perspective: 220px;
  flex-shrink: 0;
}
.build-pkg-cube {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(30deg);
}
.build-pkg-cube__face {
  position: absolute; width: 64px; height: 64px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  backface-visibility: hidden;
}
.build-pkg-cube__face--front  { transform: translateZ(32px); }
.build-pkg-cube__face--back   { transform: translateZ(-32px) rotateY(180deg); }
.build-pkg-cube__face--left   { transform: translateX(-32px) rotateY(-90deg); }
.build-pkg-cube__face--right  { transform: translateX(32px) rotateY(90deg); }
.build-pkg-cube__face--top    { transform: translateY(-32px) rotateX(90deg); }
.build-pkg-cube__face--bottom { transform: translateY(32px) rotateX(-90deg); }

/* Glowing dot — inside cube, floats with it.
   Glow is tied to the same 3.6s cycle: peaks at midpoints (25%,75%),
   dims at extremes (0%, 50%, 100%) — proportional to vertical velocity. */
.build-pkg-cube__dot {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  /* color driven by --ar --ag --ab set inline from accentHex */
  background: rgba(var(--ar),var(--ag),var(--ab),0.85);
  filter: blur(5px);
  box-shadow:
    0 0 14px 7px rgba(var(--ar),var(--ag),var(--ab),0.85),
    0 0 36px 16px rgba(var(--ar),var(--ag),var(--ab),0.55),
    0 0 72px 32px rgba(var(--ar),var(--ag),var(--ab),0.28);
  transform: translate(-50%, -50%);
  animation: buildDotGlow 3.6s ease-in-out infinite;
}
@keyframes buildDotGlow {
  /* bottom — dim */
  0%   { opacity: 0.25; box-shadow: 0 0 4px 2px rgba(var(--ar),var(--ag),var(--ab),0.3),  0 0 10px 4px rgba(var(--ar),var(--ag),var(--ab),0.12); }
  /* midpoint going up — bright */
  25%  { opacity: 1;    box-shadow: 0 0 14px 7px rgba(var(--ar),var(--ag),var(--ab),0.85), 0 0 36px 16px rgba(var(--ar),var(--ag),var(--ab),0.55), 0 0 72px 32px rgba(var(--ar),var(--ag),var(--ab),0.28); }
  /* top — dim */
  50%  { opacity: 0.25; box-shadow: 0 0 4px 2px rgba(var(--ar),var(--ag),var(--ab),0.3),  0 0 10px 4px rgba(var(--ar),var(--ag),var(--ab),0.12); }
  /* midpoint going down — bright */
  75%  { opacity: 1;    box-shadow: 0 0 14px 7px rgba(var(--ar),var(--ag),var(--ab),0.85), 0 0 36px 16px rgba(var(--ar),var(--ag),var(--ab),0.55), 0 0 72px 32px rgba(var(--ar),var(--ag),var(--ab),0.28); }
  /* bottom again — dim */
  100% { opacity: 0.25; box-shadow: 0 0 4px 2px rgba(var(--ar),var(--ag),var(--ab),0.3),  0 0 10px 4px rgba(var(--ar),var(--ag),var(--ab),0.12); }
}

/* HStack{logo+name} below the cube */
.build-export__pkg-info {
  display: flex; align-items: center; gap: 8px;
}
.build-export__pkg-identity {
  display: flex; align-items: center; gap: 8px;
}
.build-export__app-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 1.5px solid var(--line);
}
.build-export__app-icon--placeholder {
  background: rgba(2,6,23,0.72);
}
.build-export__pkg-name {
  font-size: 0.9rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.build-export__dl-btn {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.build-export__divider {
  height: 1px; background: var(--line); margin: 0 -20px;
}

/* Instructions area */
.build-export__instructions { display: flex; flex-direction: column; gap: 12px; }
.build-export__prompt-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
}
.build-export__prompt {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  font-size: 0.8rem; color: var(--text); line-height: 1.55;
  font-family: inherit; white-space: pre-wrap; word-break: break-word; cursor: text;
}
.build-export__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.build-export__back { font-size: 0.78rem; color: var(--muted); cursor: pointer; background: none; border: none; padding: 0; text-decoration: underline; align-self: center; }

/* ── Build progress ──────────────────────────────────────────────────────── */
.build-progress {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

/* One cumulative spine; height is set in JS from the first tick through the
   last completed step (grows each time a dot is marked done). */
.build-progress__spine {
  position: absolute;
  top: 0;
  left: 7.25px;
  width: 1.5px;
  height: 0;
  border-radius: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(223,250,44,0.35), rgba(255,255,255,0.06));
  transition: height 0.65s cubic-bezier(0.22, 1, 0.32, 1), top 0.2s ease, left 0.2s ease;
}

/* Each chunk row — collapsed until revealed */
.build-chunk {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0; pointer-events: none;
  transition: grid-template-rows 400ms ease, opacity 380ms ease;
}
.build-chunk.is-visible {
  grid-template-rows: 1fr;
  opacity: 1; pointer-events: auto;
}
/* Inner wrapper absorbs the grid collapse — overflow visible so glow isn't clipped */
.build-chunk__inner {
  overflow: visible;
  display: flex; gap: 14px;
  min-height: 0;
}
/* Clip only the body text, not the left glow column */
.build-chunk__body {
  overflow: hidden;
}

/* Left column: tick circle + spacer */
.build-chunk__left {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 24px;
  position: relative; z-index: 2;
  align-self: stretch;
  /* extra padding so glow box-shadow can breathe on all sides */
  padding-top: 4px;
}

/* Tick circle */
.build-chunk__tick {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: none; padding: 0; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: visible;
  transition: border-color 300ms;
}
.build-chunk.is-visible .build-chunk__tick { border-color: rgba(244,250,44,0.35); }
.build-chunk.is-ticked  .build-chunk__tick { border-color: rgba(244,250,44,0.25); cursor: default; }
.build-chunk__tick:disabled { cursor: default; }

/* Glow dot inside tick */
.build-chunk__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #F4FA2C;
  filter: blur(3px);
  box-shadow:
    0 0 5px 3px rgba(244,250,44,1),
    0 0 12px 6px rgba(244,250,44,0.75),
    0 0 22px 10px rgba(244,250,44,0.4);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none; flex-shrink: 0;
  position: relative; z-index: 1;
}
.build-chunk.is-ticked .build-chunk__dot { opacity: 1; }

/* ── Tick burst animations ───────────────────────────────────────────────── */
/* Ring that expands and fades */
.build-chunk__burst-ring {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(244,250,44,0.9);
  transform: translate(-50%,-50%) scale(1);
  pointer-events: none;
  animation: tickRingExpand 600ms ease-out forwards;
}
@keyframes tickRingExpand {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(3.8); opacity: 0; }
}

/* Cube that bursts out of the dot and fades — sized to contain the dot */
.build-chunk__burst-cube {
  position: absolute; top: 50%; left: 50%;
  width: 24px; height: 24px;
  transform: translate(-50%,-50%) scale(0.55) rotateX(-20deg) rotateY(30deg);
  transform-style: preserve-3d;
  pointer-events: none;
  animation: tickCubePop 600ms ease-out forwards;
}
@keyframes tickCubePop {
  0%   { transform: translate(-50%,-50%) scale(0.55) rotateX(-20deg) rotateY(30deg) translateY(0px);   opacity: 1; }
  55%  { transform: translate(-50%,-50%) scale(1.15) rotateX(-20deg) rotateY(30deg) translateY(-10px); opacity: 0.85; }
  100% { transform: translate(-50%,-50%) scale(0.80) rotateX(-20deg) rotateY(30deg) translateY(-20px); opacity: 0; }
}
.build-chunk__burst-cube__face {
  position: absolute; width: 24px; height: 24px;
  background: rgba(244,250,44,0.14);
  border: 1.5px solid rgba(244,250,44,0.65);
  backface-visibility: hidden;
}
.build-chunk__burst-cube__face--front  { transform: translateZ(12px); }
.build-chunk__burst-cube__face--back   { transform: translateZ(-12px) rotateY(180deg); }
.build-chunk__burst-cube__face--left   { transform: translateX(-12px) rotateY(-90deg); }
.build-chunk__burst-cube__face--right  { transform: translateX(12px)  rotateY(90deg); }
.build-chunk__burst-cube__face--top    { transform: translateY(-12px)  rotateX(90deg); }
.build-chunk__burst-cube__face--bottom { transform: translateY(12px)   rotateX(-90deg); }

/* Invisible spacer: keeps row height so the spine length matches the guide. */
.build-chunk__line {
  flex: 1;
  width: 1.5px;
  min-height: 12px;
  flex-shrink: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

/* Body content */
.build-chunk__body {
  flex: 1; padding-bottom: 22px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Step card inside a chunk */
.build-chunk__step {
  display: flex; gap: 12px; align-items: flex-start;
}
.build-chunk__done {
  padding: 14px 16px; border-radius: 12px;
  background: rgba(132,204,22,0.05); border: 1px solid rgba(132,204,22,0.2);
}

/* ── Submit stage (App Store checklist) ─────────────────────────────────── */
/* Match Define/Build: keep the same .stage-panel surface. The export card chrome
   is for the post-download Build screen only — here it reads as an extra haze. */
#submitPanel .build-export__card {
  padding: 0;
}
.submit-stage { display: flex; flex-direction: column; gap: 0; }
.submit-section-tag {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted);
  margin-bottom: 6px; opacity: 0.85;
}
.submit-micro-warn {
  margin: 10px 0 0;
  font-size: 0.72rem; font-weight: 600; line-height: 1.45;
  color: #f87171;
}
.submit-final-done {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 8px;
}
.submit-final-done__copy {
  margin: 0;
}
.submit-final-done__cta {
  align-self: flex-end;
}

/* ── Cash stage ─────────────────────────────────────────────────────────── */
.cash-stage { display: flex; flex-direction: column; gap: 18px; }
.cash-lead {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 680px;
}

/* 3-column top grid */
.cash-top-grid {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.cash-goal-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
}
.cash-goal-card--locked { background: rgba(255,255,255,0.015); }
/* MRR card pushed to the right, Subs follows — both equal height, centered content */
.cash-goal-card--end { align-items: flex-end; text-align: right; padding: 14px 18px; justify-content: flex-start; }
.cash-top-grid > :nth-child(2) { margin-left: auto; }
.cash-box__label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Plans column — pills stack one per row */
.cash-plan-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cash-plan-pill {
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(2,6,23,0.5);
  overflow: hidden;
  min-width: 0;
}
.cash-plan-pill__name {
  flex: 1 1 0;
  min-width: 0;
  max-width: 90px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  min-height: 34px;
  outline: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* price side: dollar + input + /Mo, bottom-aligned */
.cash-plan-pill__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 7px 12px 7px 10px;
  flex-shrink: 0;
}
.cash-plan-pill__dollar {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 1px;
}
.cash-plan-pill__price {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 2px;
  width: 4.5ch;
  min-height: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.cash-plan-pill__mo {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 1px;
}
.cash-plan-add {
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(132,204,22,0.07);
  border: 1px solid rgba(132,204,22,0.22);
  border-radius: 10px;
  cursor: pointer;
}
.cash-plan-add:hover { background: rgba(132,204,22,0.13); }
.cash-plans-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* MRR inline stat — tight baseline row, trailing */
.cash-mrr-field {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  margin-top: 4px;
}
.cash-mrr-prefix {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
  flex-shrink: 0;
  margin-right: 1px;
}
.cash-mrr-suffix {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  margin-left: 1px;
  padding-bottom: 2px;
}
.cash-box__input--mrr {
  padding: 0;
  /* width set inline from JS (mrrCh); min ensures it's never too narrow */
  min-width: 2ch;
  max-width: 14ch;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  border: none;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  line-height: 1;
}
.cash-box__input--mrr:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(132,204,22,0.25);
  border-radius: 6px;
}

.cash-subs-goal {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-top: 4px;
}
.cash-box__fine {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.45;
}
.cash-subs-caption {
  margin: 1px 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.65;
}
.cash-current-value {
  margin-top: auto;
  padding-top: 26px;
  padding-bottom: 6px;
}
.cash-current-value__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 247, 80, 0.78);
}
.cash-current-value__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #eafa2c;
  box-shadow: 0 0 10px rgba(234, 250, 44, 0.7), 0 0 18px rgba(234, 250, 44, 0.38);
  animation: cashLiveDotPulse 1.8s ease-in-out infinite;
}
.cash-current-value__field {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  margin-top: 5px;
}
.cash-current-value__prefix,
.cash-current-value__suffix,
.cash-current-value__input {
  color: #eafa2c;
}
.cash-current-value__prefix,
.cash-current-value__suffix {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 16px rgba(234, 250, 44, 0.18);
}
.cash-current-value__suffix {
  margin-left: 2px;
  padding-bottom: 2px;
}
.cash-current-value__input {
  min-width: 1ch;
  max-width: 10ch;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(234, 250, 44, 0.32), 0 0 28px rgba(234, 250, 44, 0.14);
}
.cash-current-value__input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(234, 250, 44, 0.22);
  border-radius: 6px;
}
.cash-current-value__field--subs .cash-current-value__suffix {
  margin-left: 6px;
}
@keyframes cashLiveDotPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.86);
    box-shadow: 0 0 8px rgba(234, 250, 44, 0.38), 0 0 14px rgba(234, 250, 44, 0.18);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 14px rgba(234, 250, 44, 0.82), 0 0 26px rgba(234, 250, 44, 0.42);
  }
}

/* Campaign generator glass card */
.cash-campaign-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(132,204,22,0.18);
  background: linear-gradient(145deg, rgba(154,220,22,0.11), rgba(154,220,22,0.035));
  box-shadow: 0 22px 70px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  isolation: isolate;
}
.cash-campaign-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 18% 24%, rgba(248,255,212,0.22), transparent 26%),
    radial-gradient(circle at 74% 22%, rgba(188,242,40,0.2), transparent 28%),
    radial-gradient(circle at 46% 78%, rgba(154,220,22,0.15), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 42%, rgba(255,255,255,0.08));
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  animation: cashGlassShift 9s ease-in-out infinite alternate;
}
.cash-campaign-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 0;
}
.cash-campaign-card__aurora {
  position: absolute;
  inset: -30% -16%;
  filter: blur(34px) saturate(132%);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
  animation: cashAuroraDrift 10s ease-in-out infinite alternate;
}
.cash-campaign-card__blob {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(248,255,214,0.58), rgba(188,242,40,0.24) 38%, rgba(154,220,22,0.05) 72%, transparent 100%);
  mix-blend-mode: screen;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.cash-campaign-card__blob--1 {
  width: 44%;
  height: 52%;
  top: 2%;
  left: -4%;
  animation-name: cashAuroraOne;
  animation-duration: 6s;
}
.cash-campaign-card__blob--2 {
  width: 38%;
  height: 48%;
  top: 34%;
  right: -8%;
  animation-name: cashAuroraTwo;
  animation-duration: 7.5s;
}
.cash-campaign-card__blob--3 {
  width: 34%;
  height: 40%;
  bottom: -10%;
  left: 28%;
  animation-name: cashAuroraThree;
  animation-duration: 6.5s;
}
.cash-campaign-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
@keyframes cashAuroraOne {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10%, 12%, 0) scale(1.12); }
  100% { transform: translate3d(18%, -4%, 0) scale(0.96); }
}
@keyframes cashAuroraTwo {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-12%, -10%, 0) scale(1.08); }
  100% { transform: translate3d(-20%, 8%, 0) scale(0.94); }
}
@keyframes cashAuroraThree {
  0% { transform: translate3d(0, 0, 0) scale(0.96); }
  50% { transform: translate3d(-8%, -14%, 0) scale(1.1); }
  100% { transform: translate3d(14%, -6%, 0) scale(1.02); }
}
@keyframes cashAuroraDrift {
  0% { transform: translate3d(-16%, -14%, 0) scale(0.88); }
  20% { transform: translate3d(10%, -12%, 0) scale(1.08); }
  45% { transform: translate3d(18%, 6%, 0) scale(1.18); }
  70% { transform: translate3d(-4%, 18%, 0) scale(1.06); }
  100% { transform: translate3d(-18%, 2%, 0) scale(0.9); }
}
@keyframes cashGlassShift {
  0% { transform: translate3d(-18%, -16%, 0) scale(0.86); }
  20% { transform: translate3d(14%, -10%, 0) scale(1.02); }
  45% { transform: translate3d(20%, 10%, 0) scale(1.14); }
  70% { transform: translate3d(-6%, 20%, 0) scale(1.04); }
  100% { transform: translate3d(-20%, 4%, 0) scale(0.88); }
}

/* Campaign bar — inside glass card */
.cash-campaign-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 18px;
}
.cash-campaign-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
#cashCampaignBtn {
  box-shadow: 0 0 0 1px rgba(217,249,157,0.22), 0 14px 36px rgba(132,204,22,0.34), 0 0 28px rgba(163,230,53,0.28);
}
#cashCampaignBtn:hover {
  box-shadow: 0 0 0 1px rgba(217,249,157,0.3), 0 18px 46px rgba(132,204,22,0.42), 0 0 38px rgba(163,230,53,0.34);
}
.cash-face-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cash-face-toggle__opt {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(246,247,251,0.72);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.cash-face-toggle__opt:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.cash-face-toggle__opt.is-selected {
  color: rgba(255,255,255,0.98);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

/* ── Growth Strategy ─────────────────────────────────────────────────────── */
.cash-strategy { display: flex; flex-direction: column; gap: 10px; }
.cash-strategy-label {
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}
.cash-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cash-strategy-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cash-strategy-head {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.cash-strategy-title {
  font-size: 0.78rem; font-weight: 800;
  color: var(--text); letter-spacing: 0.04em;
  text-transform: uppercase; flex: 1; min-width: 0;
}
.cash-strategy-platforms {
  display: flex; gap: 6px; align-items: center; flex-shrink: 0;
}
.cash-pf-icon {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  flex-shrink: 0; opacity: 0.85;
}
.cash-pf-icon:hover { opacity: 1; }
.cash-strategy-divider {
  height: 1px; background: var(--line); margin: 0;
}
.cash-strategy-body {
  font-size: 0.8rem; color: var(--muted); line-height: 1.68; margin: 0;
}

/* Format cards */
.cash-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.cash-formats--inside-card {
  padding-top: 2px;
}
.cash-format-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(2,6,23,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cash-format-card__title {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1.35;
}
.cash-format-card__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.cash-range-table {
  display: grid;
  grid-template-columns: 88px minmax(108px, 1fr) 22px minmax(108px, 1fr);
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 14px;
  align-items: stretch;
}
.cash-range-table__label,
.cash-range-table__value,
.cash-range-table__dash {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
}
.cash-range-table__label:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.cash-range-table__value:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.cash-range-table__dash:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}
.cash-range-table__value:nth-child(4) {
  grid-column: 4;
  grid-row: 1;
}
.cash-range-table__label:nth-child(5) {
  grid-column: 1;
  grid-row: 2;
}
.cash-range-table__value:nth-child(6) {
  grid-column: 2;
  grid-row: 2;
}
.cash-range-table__dash:nth-child(7) {
  grid-column: 3;
  grid-row: 2;
}
.cash-range-table__value:nth-child(8) {
  grid-column: 4;
  grid-row: 2;
}
.cash-range-table__label {
  justify-content: flex-start;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cash-range-table__value {
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cash-range-table__value:nth-child(2),
.cash-range-table__value:nth-child(6) {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.06);
}
.cash-range-table__dash {
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  font-weight: 800;
}
.cash-campaign-empty {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.cash-community-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.cash-community-block__label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.cash-community-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cash-community-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(132,204,22,0.2);
  background: rgba(132,204,22,0.08);
  color: #ecfccb;
  font-size: 0.74rem;
  font-weight: 700;
}
.cash-community-pill--small {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.68rem;
}
.cash-campaign-list {
  display: grid;
  gap: 12px;
}
.cash-formats--reveal .cash-format-card {
  animation: cashCardsReveal 520ms cubic-bezier(0.22, 1, 0.32, 1);
}
.cash-formats--reveal .cash-format-card:nth-child(2) {
  animation-delay: 80ms;
}
@keyframes cashCardsReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cash-campaign-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}
.cash-campaign-item__eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.cash-campaign-item__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.cash-campaign-item__body,
.cash-campaign-item__caption {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}
.cash-campaign-item__caption strong {
  color: var(--text);
}
.cash-campaign-item__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #dbe6f5;
  font-size: 0.78rem;
  line-height: 1.55;
}
.cash-campaign-item__cta {
  align-self: flex-start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.cash-campaign-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 12px 10px;
  text-align: center;
}
.cash-campaign-loading__row {
  width: min(680px, 100%);
  justify-content: center;
}
.cash-campaign-loading__bubble {
  max-width: 460px;
}
.cash-campaign-loading__pulse {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
}
.cash-campaign-loading__pulse span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(132,204,22,0.45);
  animation: cashLoadingPulse 0.95s ease-in-out infinite;
}
.cash-campaign-loading__pulse span:nth-child(2) {
  animation-delay: 0.14s;
}
.cash-campaign-loading__pulse span:nth-child(3) {
  animation-delay: 0.28s;
}
@keyframes cashLoadingPulse {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.12);
  }
}
.cash-campaign-loading__sub {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ── Build guide shared elements ─────────────────────────────────────────── */
.build-guide__section {
  display: flex; flex-direction: column; gap: 10px;
}
.build-guide__headline {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
}
.build-guide__body {
  font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin: 0;
}
.build-guide__body strong { color: var(--text); font-weight: 700; }
.build-guide__note {
  font-size: 0.78rem; color: var(--muted); opacity: 0.7;
  margin: 4px 0 0; font-style: italic;
}

/* Architecture diagram */
.build-guide__arch-diagram {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  align-self: flex-start;
}
.build-guide__arch-col {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.build-guide__arch-arrow {
  display: flex; align-items: center; margin-bottom: 20px; flex-shrink: 0;
}
.build-guide__arch-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text);
}
.build-guide__arch-sublabel {
  font-size: 0.58rem; color: var(--muted); margin-top: -4px;
}
.build-guide__arch-phone { line-height: 0; }
.build-guide__arch-cubes3d {
  position: relative;
  width: 62px; height: 56px;
}
.build-guide__arch-cubes3d svg { display: block; }

/* Numbered steps */
.build-guide__steps { display: flex; flex-direction: column; gap: 12px; }
.build-guide__step {
  display: flex; gap: 12px; align-items: flex-start;
}
.build-guide__step-num {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(132,204,22,0.12); border: 1px solid rgba(132,204,22,0.3);
  color: var(--accent); font-size: 0.68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.build-guide__step-body { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.build-guide__step strong { color: var(--text); font-weight: 700; }
.build-guide__link {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.build-guide__code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.78rem; background: rgba(255,255,255,0.06);
  padding: 1px 5px; border-radius: 4px; color: var(--text);
}

.define-name-primary__name { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.04em; color: var(--accent-3); }
.define-name-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 999px; color: var(--accent); border: 1px solid rgba(132,204,22,0.3);
}
.define-name-reason { color: var(--muted); font-size: 0.82rem; margin: 0; }

.define-naming__alts { display: flex; gap: 8px; flex-wrap: wrap; }
.define-name-alt {
  display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 110px;
  padding: 10px 14px; border-radius: 12px; text-align: left;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  transition: border-color 140ms, background 140ms;
  cursor: pointer;
}
.define-name-alt:hover, .define-name-alt.is-selected {
  border-color: rgba(132,204,22,0.4); background: rgba(132,204,22,0.05);
}
.define-name-alt__name { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.define-name-alt__tone { font-size: 0.68rem; color: var(--accent-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.define-name-alt__reason { font-size: 0.75rem; color: var(--muted); line-height: 1.35; }

.define-name-regen {
  align-self: flex-start; font-size: 0.78rem; color: var(--muted); font-weight: 600;
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line);
  transition: color 140ms, border-color 140ms;
}
.define-name-regen:hover { color: var(--text); border-color: var(--line-strong); }

.define-bp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.define-bp-card {
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
}
.define-bp-card--wide { grid-column: 1 / -1; }
.define-bp-card__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px; }
.define-bp-card__value { font-size: 0.88rem; color: var(--text); line-height: 1.45; }
.define-bp-list { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.define-bp-list li { font-size: 0.88rem; color: inherit; }

@media (max-width: 1100px) {
  .hero__inner, .offer-grid, .proof__inner, .cta-panel, .paywall-grid, .dashboard-shell, .auth-card--split, .check-grid, .cash-metrics, .cash-formats { grid-template-columns: 1fr; }
  .cash-range-table { grid-template-columns: 72px minmax(92px, 1fr) 18px minmax(92px, 1fr); }
  .cash-top-grid { flex-wrap: wrap; }
  .cash-top-grid > :nth-child(2) { margin-left: 0; }
  .cash-campaign-bar, .cash-campaign-actions { justify-content: center; }
  .cta-panel__actions { align-items: stretch; }
  .account-shell { grid-template-columns: 1fr; }
  .account-nav { grid-template-columns: 1fr 1fr; }
  .account-modal__grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .cta--nav { display: none; }
}
@media (max-width: 640px) {
  .container { width: min(var(--max-width), calc(100% - 20px)); }
  .topbar__inner { min-height: 68px; }
  .hero { padding-top: 24px; }
  .hero__copy, .video-card, .card, .proof__copy, .proof__panel, .cta-panel, .panel, .auth-card__aside, .auth-card__main, .stage-panel { padding: 20px; }
  .site-footer__inner { min-height: auto; padding: 16px 0 18px; flex-direction: column; align-items: flex-start; }
  .site-footer__copy { text-align: left; }
  .legal-hero { padding-top: 26px; }
  .legal-hero__card, .legal-doc { padding: 22px 20px 24px; border-radius: 22px; }
  .cta, .cta--large { width: 100%; }
  .hero__bullets, .for-who__list, .stage-tabs { flex-direction: column; }
  .stage-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .app-progress { padding: 28px 16px 14px; }
  .app-progress__ship { width: 46px; }
  .auth-layout__mosaic { grid-template-columns: repeat(14, 1fr); gap: 5px; padding: 10px; }
  .live-revenue-pill { bottom: 16px; padding: 10px 14px; font-size: 0.82rem; gap: 8px; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
  .leaderboard-row { grid-template-columns: 38px 40px 1fr; grid-template-areas: "rank icon name" "rank icon mrr"; row-gap: 4px; }
  .leaderboard-rank { grid-area: rank; }
  .leaderboard-app-icon { grid-area: icon; width: 40px; height: 40px; }
  .leaderboard-app-name { grid-area: name; }
  .leaderboard-mrr { grid-area: mrr; text-align: left; }
  .app-create-form__actions { grid-template-columns: 1fr; }
}
