:root {
  --ink: #f8fbff;
  --muted: rgba(230, 243, 255, 0.76);
  --line: rgba(255, 255, 255, 0.18);
  --deep: #031827;
  --blue: #005d9f;
  --cyan: #23c8ff;
  --gold: #ffd66b;
  --orange: #ff7a2f;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: #07101a;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
}

h1, h2, h3, p { margin: 0; }

button,
input,
a { font: inherit; }

button { cursor: pointer; }

.wechat-share-fallback {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.phone-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.phone-stage {
  position: relative;
  width: 390px;
  height: min(844px, calc(100vh - 32px));
  min-height: 640px;
  max-height: 844px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 28px;
  background: var(--deep);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.phone-stage::-webkit-scrollbar { width: 0; }

.page {
  position: relative;
  height: 100%;
  min-height: 100%;
  padding: 28px 20px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 24, 39, 0.08), rgba(3, 24, 39, 0.86)),
    radial-gradient(circle at 82% 10%, rgba(35, 200, 255, 0.2), transparent 34%);
  pointer-events: none;
}

body.is-main-mode .convert-page,
body.is-convert-mode .main-page,
body.is-convert-mode .review-page,
body.is-review-mode .main-page,
body.is-review-mode .convert-page:not(.review-page) {
  display: none;
}

.water-bg,
.page-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("./assets/optimized/backgrounds/underwater-cover-v31.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.page-bg--deep { filter: saturate(0.9) brightness(0.62); }
.page-bg--pool { filter: saturate(1.1) brightness(0.72); background-position: 62% center; }
.page-bg--spot { filter: saturate(1) brightness(0.54); background-position: 70% center; }
.page-bg--team { filter: saturate(0.95) brightness(0.58); background-position: 44% center; }
.page-bg--poster {
  background-image: url("./assets/optimized/backgrounds/coach-wall-stage-v31.webp");
  filter: saturate(1.08) brightness(0.5);
  background-position: center;
}
.page-bg--compare { filter: saturate(0.84) brightness(0.48); background-position: 50% center; }
.page-bg--contact { filter: saturate(1.05) brightness(0.56); background-position: center bottom; }

.page-dots {
  position: fixed;
  z-index: 30;
  right: calc(50% - 178px);
  top: 50%;
  display: grid;
  gap: 7px;
  transform: translateY(-50%);
}

.page-dots span {
  width: 5px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  transition: height 0.2s ease, background 0.2s ease;
}

.page-dots span.is-active {
  height: 32px;
  background: var(--gold);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: contain;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.sound-chip {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  background: rgba(4, 20, 35, 0.56);
  font-size: 13px;
  font-weight: 900;
}

.music-float {
  position: fixed;
  z-index: 45;
  top: calc(50vh - 392px);
  right: calc(50vw - 172px);
}

.sound-chip::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 214, 107, 0.75);
  vertical-align: -1px;
}

.cover-page {
  display: grid;
  grid-template-rows: auto minmax(150px, 0.62fr) minmax(260px, auto) auto auto;
  gap: 12px;
}

.cover-copy {
  position: relative;
  z-index: 2;
  align-self: end;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.cover-copy h1,
.page h2 {
  margin-top: 10px;
  color: white;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.cover-copy p:not(.eyebrow),
.lead {
  margin-top: 13px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.coach-wall {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 0;
  align-self: end;
}

.hero-coach {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(118, 224, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(3, 22, 36, 0.24), rgba(3, 22, 36, 0.7));
  color: #061b2a;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.hero-coach img {
  width: 100%;
  height: 132px;
  min-height: 0;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

.hero-coach:nth-child(odd) { transform: translateY(-4px) rotate(-1deg); }
.hero-coach:nth-child(even) { transform: translateY(5px) rotate(1deg); }

.gold-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  color: #081724;
  background: linear-gradient(180deg, #ffe89f, #ffc857);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 15px 32px rgba(255, 198, 78, 0.22);
}

.cover-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cover-actions .gold-cta {
  min-height: 58px;
}

.poster-download-cta {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(126, 229, 255, 0.46);
  border-radius: 999px;
  color: white;
  background: rgba(4, 27, 43, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 16px 32px rgba(0, 0, 0, 0.22);
  font-weight: 900;
  text-decoration: none;
}

.swipe-cue {
  position: relative;
  z-index: 2;
  justify-self: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.spotlight-page,
.roster-page,
.coach-detail-page,
.poster-wall-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-page h2,
.roster-page h2,
.coach-detail-page h2,
.poster-wall-page h2 {
  font-size: 36px;
}

.spotlight-grid,
.coach-strip,
.coach-selector,
.poster-wall,
.compare-layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

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

.spot-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 184px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(249, 253, 255, 0.94);
  color: #071a28;
}

.spot-card--dark {
  background: linear-gradient(135deg, rgba(6, 30, 47, 0.94), rgba(3, 63, 96, 0.9));
  color: white;
}

.spot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.spot-card div {
  align-self: center;
  padding: 14px;
}

.spot-card b {
  display: block;
  font-size: 24px;
}

.spot-card span {
  display: block;
  margin-top: 4px;
  color: var(--orange);
  font-weight: 900;
  font-size: 13px;
}

.spot-card--dark span { color: var(--gold); }

.spot-card p {
  margin-top: 10px;
  color: #50677a;
  font-size: 13px;
  line-height: 1.48;
}

.spot-card--dark p { color: rgba(232, 244, 255, 0.76); }

.coach-strip {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.coach-strip-card,
.coach-select-chip {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: 104px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: #061b2a;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.coach-strip-card.is-active,
.coach-select-chip.is-active {
  border-color: rgba(255, 214, 107, 0.96);
  box-shadow: 0 0 0 2px rgba(255, 214, 107, 0.18);
}

.coach-strip-card img,
.coach-select-chip img {
  width: 82px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 16%;
}

.coach-strip-card span,
.coach-select-chip span {
  min-width: 0;
}

.coach-strip-card b,
.coach-select-chip b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.coach-strip-card em,
.coach-select-chip em {
  display: block;
  margin-top: 3px;
  color: #526a7b;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.coach-detail-page {
  justify-content: flex-start;
}

.coach-detail-page h2 {
  font-size: 30px;
}

.coach-card-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 246px) 94px;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}

.coach-poster-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 438px;
  overflow: hidden;
  border: 1px solid rgba(126, 229, 255, 0.32);
  border-radius: 18px;
  background: rgba(2, 16, 28, 0.62);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.coach-poster-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.coach-side-panel {
  min-width: 0;
}

.coach-detail-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  height: 198px;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  background: rgba(250, 253, 255, 0.94);
  color: #061b2a;
}

.coach-detail-card > img {
  width: 132px;
  height: 198px;
  object-fit: cover;
  object-position: center 16%;
}

.coach-copy {
  align-self: center;
  padding: 12px;
}

.coach-copy span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.coach-copy b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.coach-copy p {
  margin-top: 6px;
  color: #496174;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.coach-copy ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.coach-copy li {
  margin-top: 3px;
  color: #516a7c;
  font-size: 11px;
  line-height: 1.32;
}

.coach-selector {
  grid-template-columns: 1fr;
  gap: 5px;
  height: 100%;
  margin-top: 0;
}

.coach-select-chip {
  grid-template-columns: 1fr;
  justify-items: center;
  height: 50px;
  padding: 4px 3px;
  position: relative;
  overflow: hidden;
  border-color: rgba(126, 229, 255, 0.32);
  color: white;
  background:
    linear-gradient(180deg, rgba(0, 11, 20, 0.12), rgba(0, 11, 20, 0.58)),
    var(--coach-bg);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.coach-select-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.coach-select-chip[data-category="swim"] {
  --coach-bg: url("./assets/optimized/backgrounds/coach-selector/swim-selector-bg-v31.webp");
}

.coach-select-chip[data-category="basketball"] {
  --coach-bg: url("./assets/optimized/backgrounds/coach-selector/basketball-selector-bg-v31.webp");
}

.coach-select-chip[data-category="conditioning"] {
  --coach-bg: url("./assets/optimized/backgrounds/coach-selector/conditioning-selector-bg-v31.webp");
}

.coach-select-chip[data-category="badminton"] {
  --coach-bg: url("./assets/optimized/backgrounds/coach-selector/badminton-selector-bg-v31.webp");
}

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

.coach-select-chip img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.coach-select-chip span {
  width: 100%;
  overflow: hidden;
}

.coach-select-chip b {
  overflow: hidden;
  color: white;
  font-size: 12px;
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.68);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-select-chip em { display: none; }

.qr-generate-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #061b2a;
}

.qr-generate-card--compact {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 7px 9px;
  margin-top: 8px;
  padding: 9px;
  border-radius: 16px;
}

.qr-generate-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qr-generate-card--compact .qr-card-head {
  grid-column: 1 / -1;
}

.qr-generate-card b {
  font-size: 17px;
}

.qr-generate-card p {
  color: #526a7b;
  font-size: 12px;
  font-weight: 800;
}

.qr-row {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 10px;
  align-items: center;
}

.qr-generate-card--compact .qr-row {
  display: contents;
}

#coachQrCode {
  display: grid;
  place-items: center;
  width: 136px;
  min-height: 136px;
  border: 1px solid #dde8ef;
  border-radius: 16px;
  background: white;
}

.qr-generate-card--compact #coachQrCode {
  width: 82px;
  min-height: 82px;
  border-radius: 10px;
}

.qr-generate-card--compact #coachQrCode canvas,
.qr-generate-card--compact #coachQrCode img {
  width: 74px !important;
  height: 74px !important;
}

.qr-actions {
  display: grid;
  gap: 7px;
}

.qr-generate-card--compact .qr-actions {
  gap: 5px;
}

.qr-actions button,
.download-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  color: #061b2a;
  background: var(--gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.qr-generate-card--compact .qr-actions button,
.qr-generate-card--compact .download-qr {
  min-height: 27px;
  border-radius: 9px;
  font-size: 11px;
}

.coach-review-entry {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  color: #061b2a;
  background: linear-gradient(180deg, #fff3b8, #ffd66b);
  box-shadow: 0 8px 18px rgba(255, 198, 78, 0.2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.download-qr.is-disabled {
  pointer-events: none;
  opacity: 0.46;
}

#coachShareUrl {
  width: 100%;
  height: 30px;
  border: 1px solid #d8e5ee;
  border-radius: 10px;
  padding: 0 9px;
  color: #526a7b;
  background: #f6fbff;
  font-size: 11px;
}

.qr-generate-card--compact #coachShareUrl {
  grid-column: 1 / -1;
  height: 24px;
  font-size: 10px;
}

.share-status {
  text-align: center;
}

.qr-generate-card--compact .share-status {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.1;
}

.poster-wall-page {
  justify-content: flex-start;
  padding-top: 46px;
}

.poster-wall-page .lead {
  max-width: 330px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.48);
}

.poster-wall {
  display: block;
  margin-top: 10px;
  border: 1px solid rgba(126, 229, 255, 0.22);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

.mega-poster-image {
  display: block;
  width: 100%;
  height: 575px;
  object-fit: cover;
  object-position: center 72%;
}

.compare-layout {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
}

.bad-poster,
.good-poster {
  display: flex;
  min-height: 264px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border-radius: 18px;
}

.bad-poster {
  border: 4px solid #f20505;
  color: #f9e100;
  background:
    repeating-linear-gradient(-15deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 15px),
    linear-gradient(135deg, #fe1b1b, #212121 58%, #ff8a00);
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
}

.bad-poster strong {
  font-size: 20px;
  -webkit-text-stroke: 1px #111;
}

.bad-poster b {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.02;
}

.bad-poster span {
  margin-top: 12px;
  padding: 8px;
  background: #111;
  font-weight: 900;
}

.bad-poster p {
  margin-top: 12px;
  color: white;
  font-size: 12px;
  line-height: 1.35;
}

.good-poster {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  background: linear-gradient(160deg, rgba(5, 41, 67, 0.92), rgba(0, 119, 176, 0.72));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.26);
}

.good-poster span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.good-poster b {
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.12;
}

.good-poster p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.conversion-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #516a7c;
  font-size: 12px;
  font-weight: 900;
}

.conversion-flow span {
  min-width: 0;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(6, 27, 42, 0.08);
  white-space: nowrap;
}

.secondary-cta {
  justify-self: start;
  color: #061b2a;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(6, 27, 42, 0.28);
}

.convert-hero-page,
.convert-plan-page,
.convert-scene-page,
.convert-action-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.convert-profile-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, auto) auto;
  gap: 8px;
  justify-items: center;
  margin-top: 10px;
}

.convert-poster-mini,
.convert-poster-hero {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(126, 229, 255, 0.28);
  border-radius: 20px;
  background: rgba(3, 24, 39, 0.76);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.convert-poster-mini img,
.convert-poster-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.convert-poster-hero {
  width: min(294px, 84vw);
  aspect-ratio: 9 / 16;
}

.convert-profile-main {
  min-width: 0;
}

.convert-hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(126, 229, 255, 0.28);
  border-radius: 22px;
  background: rgba(250, 253, 255, 0.94);
  color: #061b2a;
}

.convert-hero-card img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 16%;
}

.convert-hero-card span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}

.convert-hero-card h2 {
  margin-top: 5px;
  color: #061b2a;
  font-size: 32px;
  line-height: 1;
  text-shadow: none;
}

.convert-hero-card p {
  margin-top: 6px;
  color: #4f6678;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.convert-points {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.convert-points span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: white;
  background: rgba(5, 41, 67, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.coach-record-card {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(3, 24, 39, 0.72);
}

.coach-record-card--poster {
  width: 100%;
  max-width: 350px;
  margin-top: 0;
  padding: 10px 14px;
  background: rgba(3, 24, 39, 0.82);
}

.coach-record-card b {
  color: var(--gold);
  font-size: 12px;
}

.coach-record-card ul {
  margin: 6px 0 0;
  padding-left: 15px;
}

.coach-record-card li {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.convert-plan-page {
  padding: 0;
}

.course-plan-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #031827;
}

.fit-card,
.goal-card,
.parent-proof-grid,
.teaching-scene-card,
.consult-card,
.convert-actions {
  position: relative;
  z-index: 2;
}

.fit-card,
.goal-card {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #061b2a;
}

.fit-course-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.convert-plan-page h2 {
  font-size: 34px;
  white-space: nowrap;
}

.fit-course-grid .fit-card,
.fit-course-grid .goal-card {
  margin-top: 0;
}

.fit-card b {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.fit-card ul {
  margin: 9px 0 0;
  padding-left: 16px;
}

.fit-card li {
  margin-top: 6px;
  color: #4f6678;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.goal-card {
  background: rgba(3, 24, 39, 0.76);
  color: white;
}

.goal-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.goal-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.parent-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.parent-proof-grid div {
  min-height: 104px;
  padding: 12px 10px;
  border: 1px solid rgba(126, 229, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  color: #061b2a;
}

.parent-proof-grid b {
  display: block;
  color: #061b2a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.parent-proof-grid p {
  margin-top: 7px;
  color: #4f6678;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.course-note {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.teaching-scene-card {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(126, 229, 255, 0.24);
  border-radius: 18px;
  background: rgba(3, 24, 39, 0.76);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

.scene-consult-layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.scene-consult-layout .teaching-scene-card {
  margin-top: 0;
}

.scene-consult-layout .teaching-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
}

.teaching-grid figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.teaching-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.teaching-scene-card p {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.consult-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 8px;
  align-items: center;
  margin-top: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #061b2a;
}

.consult-card b {
  font-size: 19px;
}

.consult-card p {
  margin-top: 6px;
  color: #4f6678;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

#consultQrCode {
  display: grid;
  place-items: center;
  width: 168px;
  min-height: 168px;
  border: 1px solid #d8e5ee;
  border-radius: 14px;
  background: white;
}

#consultQrCode canvas,
#consultQrCode img {
  width: 156px !important;
  height: 156px !important;
}

.convert-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
}

.convert-actions button,
.convert-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  color: #061b2a;
  background: var(--gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.review-page {
  padding: 22px 16px;
}

.review-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 9px;
  height: 100%;
}

.review-head {
  display: grid;
  gap: 4px;
}

.review-head span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.review-head h2 {
  margin-top: 0;
  font-size: 28px;
  line-height: 1.1;
}

.review-head a {
  justify-self: start;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.review-content {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}

.review-teaching-list {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
}

.review-teaching-list figure {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 229, 255, 0.24);
  border-radius: 12px;
  background: rgba(3, 24, 39, 0.72);
}

.review-teaching-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 9px;
  border: 1px solid rgba(126, 229, 255, 0.24);
  border-radius: 16px;
  background: rgba(3, 24, 39, 0.78);
}

.review-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-panel-title b {
  color: white;
  font-size: 13px;
}

.review-panel-title span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.review-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}

.review-item {
  position: relative;
  padding: 8px 9px;
  border-radius: 12px;
  color: #061b2a;
  background: rgba(255, 255, 255, 0.94);
}

.review-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.review-item b {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-item span {
  flex: 0 0 auto;
  color: #688197;
  font-size: 9px;
  font-weight: 800;
}

.review-item p,
.review-empty {
  margin-top: 5px;
  color: #4f6678;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.review-empty {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.review-delete {
  margin-top: 7px;
  min-height: 24px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #b82828;
  font-size: 10px;
  font-weight: 900;
}

.review-form {
  display: grid;
  gap: 6px;
}

.review-form input,
.review-form textarea,
.review-admin input {
  width: 100%;
  border: 1px solid rgba(216, 229, 238, 0.9);
  border-radius: 10px;
  padding: 7px 8px;
  color: #061b2a;
  background: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 800;
}

.review-form textarea {
  resize: none;
  min-height: 54px;
}

.review-form button,
.review-admin button,
.review-actions button,
.review-actions a {
  min-height: 32px;
  border: 0;
  border-radius: 11px;
  color: #061b2a;
  background: var(--gold);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}

.review-admin {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.review-admin summary {
  cursor: pointer;
}

.review-admin div {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 5px;
  margin-top: 6px;
}

.review-admin p {
  margin-top: 5px;
  line-height: 1.35;
}

.review-consult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #061b2a;
  background: rgba(255, 255, 255, 0.94);
}

.review-consult b {
  font-size: 18px;
}

.review-consult p {
  margin-top: 5px;
  color: #4f6678;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

#reviewConsultQrCode {
  display: grid;
  place-items: center;
  width: 104px;
  min-height: 104px;
  border: 1px solid #d8e5ee;
  border-radius: 12px;
  background: white;
}

#reviewConsultQrCode img {
  width: 96px !important;
  height: 96px !important;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.review-actions button,
.review-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  font-size: 12px;
}

footer {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.orientation-lock {
  display: none;
  color: white;
  font-size: 18px;
}

.guide-layer { display: none; }

.guide-mode .phone-stage {
  outline: 2px dashed #e60012;
}

.guide-mode .page {
  background-image:
    linear-gradient(rgba(230, 0, 18, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 0, 18, 0.13) 1px, transparent 1px);
  background-size: 39px 42px;
}

.guide-mode .guide-layer {
  position: fixed;
  inset: auto;
  z-index: 40;
  display: block;
  width: 390px;
  height: min(844px, calc(100vh - 32px));
  max-height: 844px;
  min-height: 640px;
  pointer-events: none;
}

.guide {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(230, 0, 18, 0.78);
  color: #ff2b2b;
  font-size: 11px;
  padding-left: 4px;
}

.guide-top { top: 72px; }
.guide-middle { top: 50%; }
.guide-bottom { top: calc(100% - 86px); }

@media (max-width: 440px) {
  .phone-shell { padding: 0; }

  .phone-stage {
    width: 390px;
    height: 100svh;
    min-height: 640px;
    border-radius: 0;
  }

  .guide-mode .guide-layer {
    height: 100svh;
  }

  .music-float {
    top: 18px;
    right: 16px;
  }
}

@media (max-height: 720px) {
  .phone-shell {
    padding: 10px;
  }

  .phone-stage {
    height: calc(100vh - 20px);
    min-height: 0;
  }

  .page {
    padding: 20px;
  }

  .section-kicker {
    font-size: 11px;
  }

  .cover-copy h1,
  .page h2 {
    font-size: 32px;
    line-height: 1.14;
  }

  .cover-copy p:not(.eyebrow),
  .lead {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-coach img {
    height: 104px;
  }

  .cover-actions .gold-cta,
  .poster-download-cta {
    min-height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }

  .coach-detail-page h2 {
    font-size: 27px;
  }

  .coach-card-layout {
    grid-template-columns: minmax(0, 244px) 86px;
    gap: 6px;
    margin-top: 8px;
  }

  .coach-poster-preview {
    height: 374px;
    border-radius: 16px;
  }

  .coach-select-chip {
    height: 43px;
    padding: 3px;
  }

  .coach-select-chip img {
    width: 23px;
    height: 23px;
    border-width: 1px;
  }

  .coach-select-chip b {
    font-size: 11px;
  }

  .qr-generate-card--compact {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 5px 8px;
    margin-top: 7px;
    padding: 8px;
  }

  .qr-generate-card b {
    font-size: 16px;
  }

  .qr-generate-card--compact #coachQrCode {
    width: 76px;
    min-height: 76px;
  }

  .qr-generate-card--compact #coachQrCode canvas,
  .qr-generate-card--compact #coachQrCode img {
    width: 68px !important;
    height: 68px !important;
  }

  .qr-generate-card--compact .qr-actions button,
  .qr-generate-card--compact .download-qr {
    min-height: 25px;
  }

  .qr-generate-card--compact #coachShareUrl {
    height: 22px;
  }

  .poster-wall-page {
    padding-top: 34px;
  }

  .mega-poster-image {
    height: 455px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .phone-shell { display: none; }
  .orientation-lock { display: block; }
}
