/* GolfCake3D v8: accounts, dialogs, landing page, Pro gating */
.top nav { align-items: center; }
.acct { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.btn.ghost { border-color: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: 13px; }
.link:hover { color: var(--foreground); text-decoration: underline; }
.credits { cursor: pointer; height: 28px; }
.credits.on { color: var(--foreground); border-color: #3f3f46; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--muted-bg); color: var(--foreground);
  font-weight: 600; cursor: pointer; overflow: hidden; padding: 0; display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 40px; width: 240px; padding: 6px; z-index: 50; display: grid; }
.menu[hidden] { display: none; }
.menu-h { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; }
.menu-h span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { text-align: left; padding: 8px 10px; border-radius: 6px; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--foreground); }
.menu a:hover, .menu button:hover { background: var(--muted-bg); }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 400px; position: relative; max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .18s ease; }
.modal.wide { max-width: 460px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.modal-x:hover { background: var(--muted-bg); color: var(--foreground); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.auth { display: grid; gap: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
#aForm { display: grid; gap: 10px; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.fld[hidden] { display: none; }
.fld input { height: 38px; border-radius: 8px; border: 1px solid var(--input); background: transparent; color: var(--foreground); padding: 0 12px; font: inherit; }
.fld input:focus { outline: 2px solid #52525b; outline-offset: 1px; }
.auth-foot { display: flex; justify-content: space-between; margin-top: 2px; }
.pro-head { padding: 22px 20px 4px; }
.pro-head h3 { margin: 10px 0 6px; font-size: 18px; letter-spacing: -.02em; }
.pro-badge { color: #93c5fd; border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.08); }
.badge.sm { height: 19px; font-size: 11px; padding: 0 7px; vertical-align: 2px; margin-left: 4px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 30px; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 13px; }
.checks { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 2px 10px; font-size: 13px; }
.checks li::before { content: "\2713"; grid-row: span 2; color: var(--good); font-weight: 700; }
.checks li span { color: var(--muted); }
.checks[hidden] { display: none; }
.pay-el { margin-bottom: 14px; min-height: 120px; }
.fine { color: var(--faint); font-size: 12px; margin: 10px 0 0; }
.fine.center { text-align: center; }
.fine a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 200; background: var(--foreground); color: var(--primary-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 500; font-size: 14px; transition: all .25s; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast.good { background: #22c55e; color: #052e16; }

.capture-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capture { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--muted-bg); cursor: pointer; text-align: center; }
.capture b { font-size: 15px; }
.capture span { color: var(--muted); font-size: 12px; }
.capture.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.capture.primary span { color: #3f3f46; }

.showcase { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; margin-top: 64px; }
.showcase h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 12px; }
.showcase p { color: var(--muted); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.ticks li::before { content: "\2713"; color: var(--good); font-weight: 700; margin-right: 10px; }
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.demo-card { overflow: hidden; }
.demo-top { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); gap: 8px; flex-wrap: wrap; }
.demo3d { height: 420px; background: #050506; }
.demo3d canvas { display: block; width: 100% !important; height: 100% !important; }
.demo-note { margin: 0; padding: 12px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.steps3, .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
.plan .price { margin-top: 8px; }
.plan.pro { border-color: rgba(96,165,250,.45); box-shadow: 0 0 0 1px rgba(96,165,250,.15), 0 20px 50px -20px rgba(96,165,250,.25); }
.faq details { padding: 14px 18px; border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

.upsell { border-color: rgba(96,165,250,.45); }
.upsell h3 { margin-top: 10px; }
.unlock { width: 100%; }
.locked-body { display: grid; gap: 12px; justify-items: start; }
.locked-body p { margin: 0; color: var(--muted); font-size: 14px; }
.locked-body p b { color: var(--foreground); }
.blur-lines { display: grid; gap: 8px; width: 100%; }
.blur-lines i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #27272a, #1f1f23); filter: blur(1px); }
.blur-lines i:nth-child(2n) { width: 70%; }
.blur-lines.wide i:nth-child(3n) { width: 45%; }
.locked-card { max-width: 560px; }
.compare-seg button[data-v="pro"].on { background: #1e3a5f; color: #dbeafe; box-shadow: 0 0 0 1px rgba(96,165,250,.5); }
.seg button.lockd { color: var(--muted); }
.vspro { border-color: rgba(96,165,250,.35); }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.diff { display: grid; gap: 3px; text-align: left; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--muted-bg); cursor: pointer; color: var(--foreground); }
.diff:hover { border-color: rgba(96,165,250,.5); }
.diff .dl { font-size: 13px; color: var(--muted); }
.diff .dv { font-size: 14px; }
.diff .dv .vs { color: var(--faint); margin: 0 2px; }
.diff .dv b { font-variant-numeric: tabular-nums; }
.diff .dgo { font-size: 12px; color: #93c5fd; }
.feat-grid.three .card-h { padding-bottom: 20px; }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; margin-top: 40px; }
  .steps3, .feat-grid { grid-template-columns: 1fr 1fr; }
  .demo3d { height: 360px; }
}
@media (max-width: 600px) {
  .steps3, .feat-grid, .plans, .diff-grid { grid-template-columns: 1fr; }
  .navlink { display: none; }
  .credits { display: none; }
}

[hidden] { display: none !important; }

.brand img { display: block; margin-top: -3px; }
.brand { font-size: 16px; letter-spacing: -.02em; }
.pro-brand { display: flex; align-items: center; gap: 10px; }

/* ---------- Pro features reel ---------- */
.reel { overflow: hidden; display: grid; }
.reel-bars { display: flex; gap: 4px; padding: 12px 12px 0; }
.reel-bar { flex: 1; height: 3px; border: 0; padding: 0; border-radius: 3px; background: #27272a; cursor: pointer; overflow: hidden; }
.reel-bar i { display: block; height: 100%; width: 0; background: #fafafa; }
.reel-stage { position: relative; height: 420px; margin-top: 10px; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; display: grid; }
.scene.on { opacity: 1; pointer-events: auto; }
.scene .demo3d { height: 100%; }
.reel-legend { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); }
.reel-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.reel-legend .badge { margin-left: auto; }
.mock { margin: 18px; align-self: center; display: grid; gap: 10px; }
.mock h4 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: center; letter-spacing: -.01em; }
.mock > p { margin: 0; color: var(--muted); font-size: 14px; }
.mock .prio { justify-self: start; color: var(--foreground); border-color: var(--ring); }
.mock-drill { border: 1px solid var(--border); background: var(--muted-bg); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; font-size: 13px; }
.mock-drill span { color: var(--faint); }
.mock-drill ol { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.scene.animate[data-k="fix"] .mock > *, .scene.animate[data-k="fix"] li { animation: rise .5s both; }
.scene.animate[data-k="fix"] .mock > :nth-child(2) { animation-delay: .25s; }
.scene.animate[data-k="fix"] .mock > :nth-child(3) { animation-delay: .5s; }
.scene.animate[data-k="fix"] .mock-drill { animation-delay: .9s; }
.scene.animate[data-k="fix"] li:nth-child(1) { animation-delay: 1.5s; }
.scene.animate[data-k="fix"] li:nth-child(2) { animation-delay: 2.1s; }
.scene.animate[data-k="fix"] li:nth-child(3) { animation-delay: 2.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.diffs { gap: 10px; }
.rdiff { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--muted-bg); }
.scene.animate .rdiff { animation: rise .45s both; animation-delay: var(--d); }
.rdiff .dl { font-size: 12px; color: var(--muted); }
.rdiff .dv { grid-column: 1; font-size: 14px; }
.rdiff .vs { color: var(--faint); margin: 0 2px; }
.rdiff .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.rdiff .tag.ok { background: rgba(34,197,94,.14); color: #86efac; }
.rdiff .tag.off { background: rgba(234,179,8,.14); color: #fde68a; }
.reel-chart { width: 100%; height: 250px; display: block; }
.reel-cap { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--border); }
.reel-cap div { display: grid; }
.reel-cap b { font-size: 14px; }
.reel-cap span:not(.badge) { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .reel-stage { height: 380px; } }

/* ---------- coaching videos ---------- */
.vrow { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.vcard { display: grid; gap: 8px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--foreground); scroll-snap-align: start; }
.vthumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; background: #18181b center / cover no-repeat; border: 1px solid var(--border); overflow: hidden; }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: rgba(250,250,250,.92); color: #09090b; display: grid; place-items: center; transition: transform .15s; }
.vcard:hover .vplay { transform: translate(-50%, -50%) scale(1.08); }
.vcard:hover .vthumb { border-color: var(--ring); }
.vmeta { display: grid; gap: 2px; }
.vmeta b { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmeta span { font-size: 12px; color: var(--muted); }
.drill-row + .drill-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.drill-row-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.video-modal { max-width: 380px; padding: 12px; }
.vplayer { aspect-ratio: 9 / 16; width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; overflow: hidden; background: #000; margin: 28px auto 0; }
.vplayer iframe { width: 100%; height: 100%; border: 0; display: block; }
.vinfo { display: grid; gap: 2px; padding: 12px 4px 4px; }
.vinfo span { color: var(--muted); font-size: 13px; }
.vinfo a { color: var(--foreground); }
.lib { display: grid; gap: 16px; }
.lib-cat .card-h p { font-size: 12px; }

/* never let wide children (video rows, charts) stretch the page */
.res-grid > *, .cols > *, .side > *, .lib > * { min-width: 0; }
@media (max-width: 980px) { .res-grid { grid-template-columns: minmax(0, 1fr); } }

.btn { white-space: nowrap; }
@media (max-width: 520px) { .top { padding: 0 12px; } .acct { gap: 4px; } .acct .btn.ghost { padding: 0 8px; } }

/* reel: the 3D canvas must never size its own box (its pixel height was growing the grid row on phones) */
.reel-stage { overflow: hidden; }
.scene { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.scene .demo3d { position: absolute; inset: 0; height: auto; overflow: hidden; }
.scene .demo3d canvas { position: absolute; inset: 0; }
.reel-legend { z-index: 2; }
.reel-legend { left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(rgba(5,5,6,0), rgba(5,5,6,.9) 55%); }

/* ---- AI coaching plan ---- */
.row-r { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.plan-sum { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, rgba(96,165,250,.07), transparent); margin-bottom: 16px; }
.plan-sum b { font-size: 15px; font-weight: 600; }
.plan-sum p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.plan-item { padding: 16px 0; border-top: 1px solid var(--border); min-width: 0; }
.plan-item:first-child { border-top: 0; padding-top: 4px; }
.plan-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plan-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--foreground); }
.plan-item.first .plan-n { background: #fafafa; color: #09090b; border-color: #fafafa; }
.plan-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.plan-t b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.plan-t span { font-size: 12px; color: var(--muted); }
.plan-jump { flex: none; }
.plan-why { margin: 10px 0 0 40px; font-size: 14px; line-height: 1.6; color: var(--foreground); opacity: .92; }
.plan-steps { margin: 10px 0 0 40px; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.plan-steps li::marker { color: var(--foreground); font-weight: 600; }
.plan-feel { margin: 10px 0 0 40px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.plan-feel .label-sm { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.plan-vids { margin: 12px 0 0 40px; }
.plan-loading { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.plan-loading div { display: grid; gap: 2px; }
.plan-loading span:not(.spin) { color: var(--muted); font-size: 13px; }
.plan-loading .spin { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--foreground); animation: spin .8s linear infinite; }
.plan-teaser { width: 100%; }
.plan-ghost { display: grid; gap: 12px; width: 100%; }
.plan-ghost .blur-lines i { width: 60%; }
.vrow.blurred { pointer-events: none; }
.vrow.blurred .vthumb { filter: blur(3px) brightness(.6); }
.locked-body p b svg { vertical-align: -2px; }
@media (max-width: 640px) {
  .plan-why, .plan-steps, .plan-feel, .plan-vids { margin-left: 0; }
  .plan-h { flex-wrap: wrap; }
  .plan-jump { margin-left: 40px; }
  .coach-card .row-h { flex-wrap: wrap; }
}
.plan-vids { grid-auto-columns: 128px; }
.section-title { gap: 4px 12px; flex-wrap: wrap; }
.lib > .section-title { margin: 16px 0 0; }
@media (max-width: 640px) { .section-title { flex-direction: column; align-items: flex-start; } }
.locked-body .btn, .locked-card .btn, .upsell .btn { white-space: normal; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; max-width: 100%; }

/* ---- share card ---- */
.share-btn { margin-top: 10px; gap: 6px; display: inline-flex; align-items: center; }
.share-modal { max-width: 560px; }
.share-prev { position: relative; display: grid; place-items: center; background: #050506; border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-height: 240px; }
.share-prev img { display: block; max-width: 100%; max-height: min(58vh, 620px); border-radius: 8px; }
.share-load { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9,9,11,.55); border-radius: 12px; }
.share-load .spin { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--foreground); animation: spin .8s linear infinite; }
.share-opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.share-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.share-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
