:root {
  --ink: #1c1633;
  --muted: #655e7c;
  --purple: #6d4aff;
  --purple-dark: #5534f0;
  --line: #e6e1f2;
  --soft: #f6f4fb;
  --card: #ffffff;
  --danger: #a1264d;
  --ok: #0f7a4b;
  --shadow: 0 14px 36px rgba(73, 48, 150, 0.1);
  --radius: 20px;
  --wrap: 1120px;
  --discovery-wrap: 1360px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --page-bg:
    radial-gradient(ellipse at 8% -8%, #efe8ff 0%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(ellipse at 96% 0%, #f4f7ff 0%, rgba(255, 255, 255, 0) 34%),
    #faf9fc;
    --page-bg:#ffffff;
}
span.checkout-check-label {
  font-size: 12px;
  margin-top: 2px;
}
select#checkout-qty {
    margin-right: 9px;
}
.login-btn1 {
  margin-top: 20px;
  margin-bottom: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--page-bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body > main,
body > .shell-page,
#content {
  flex: 1 0 auto;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-dark); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { width: min(var(--discovery-wrap), calc(100% - 48px)); }
.site-header .wrap,
.site-footer .wrap { width: min(1920px, calc(100% - 20px)); }
.sr-only, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 8px;
  padding: 8px 12px;
  clip: auto;
  background: #fff;
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 225, 242, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-name { font-weight: 800; letter-spacing: -0.04em; font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.site-nav > a, .nav-drop-btn, .header-topics a {
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav > a.is-active, .nav-drop-btn.is-active, .header-topics a.is-active { color: var(--purple-dark); box-shadow: inset 0 -2px 0 var(--purple); border-radius: 0; }
.header-topics { display: none; align-items: center; gap: 0; }
.header-topics a { padding: 8px 8px; font-size: 0.84rem; }
.nav-drop { position: relative; }
.nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav-menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-menu a:hover, .nav-menu a:focus { background: var(--soft); }
@media (min-width: 980px) {
  .nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.is-open .nav-menu { display: grid; }
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 980px) {
  .site-nav { flex: 1; min-width: 0; }
}
@media (min-width: 1360px) {
  .nav-drop { display: none; }
  .header-topics { display: flex; margin-left: auto; }
  .header-actions { margin-left: 16px; flex-shrink: 0; }
  .site-nav > a { padding: 8px 10px; }
  .header-topics a { padding: 8px 7px; font-size: 0.82rem; }
  .header-actions .btn { padding: 8px 12px; }
}
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--ink, #1c1633);
  cursor: pointer;
}
.nav-toggle-icon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c6d4; }
.btn-block { width: 100%; }
.btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: var(--line);
}
.btn-google:hover { background: #f6f4fb; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 2px;
  color: var(--muted);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  background: #fff;
}
.account-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid
;
  place-items: center;
  flex: 0 0 25px;
  background: linear-gradient(145deg, #7a5cff, #4f63f6);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 11px;
}
.account-name { line-height: 1.1; }
.account-drop { position: relative; }
.account-drop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.account-drop:focus-within .account-menu,
.account-drop.is-open .account-menu { display: block; }
@media (hover: hover) and (pointer: fine) {
  .account-drop:hover .account-menu { display: block; }
}
.account-menu a,
.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu a:focus,
.account-menu button:hover,
.account-menu button:focus { background: var(--soft); }
.account-menu a.is-active { color: var(--purple-dark); background: var(--soft); }
.account-menu-logout {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.account-menu-logout button { color: var(--danger); }

.shell-page {
  background: transparent;
  min-height: calc(100vh - 68px);
}
.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 12px;
  width: calc(100% - 20px);
  max-width: 1920px;
  margin: 0 auto;
  padding: 10px 0 28px;
  align-items: start;
}
.chat-column {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 96px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}
.chat-brand {
  flex: 0 0 auto;
  text-align: left;
  padding: 4px 4px 2px;
}
.chat-brand[hidden] { display: none !important; }
.chat-brand .eyebrow {
  margin-bottom: 6px;
}
.chat-brand h1 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.chat-brand h1 span { color: var(--purple); }
.chat-brand .hero-lead {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
}
.chat-column .chat-card {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  display: block;
  overflow: visible;
}
.chat-column .chat-main {
  display: block;
  min-height: 0;
  overflow: visible;
}
.chat-column .messages {
  overflow: visible;
  min-height: 0;
  max-height: none;
}
.explore-under {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-left: 1px solid var(--line);
  background: #f8f6fc;
  padding: 14px;
}
.explore-under .explore-actions {
  grid-template-columns: 1fr;
}
.content-column {
  min-width: 0;
  position: relative;
  background: #fff;
  border: 1px solid rgba(230, 225, 242, 0.95);
  border-radius: 22px;
  padding: 18px 18px 28px;
  min-height: calc(100vh - 110px);
  box-shadow: 0 8px 28px rgba(73, 48, 150, 0.05);
}
.content-column.is-loading .content-panel { opacity: 0.45; pointer-events: none; }
.content-loader {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}
.content-loader[hidden] { display: none !important; }
.content-panel[hidden] { display: none !important; }
.panel-block { margin-top: 28px; }
.panel-block .section-head { margin-bottom: 14px; }
.starters-sidebar {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 4px 2px;
}
.starters-sidebar[hidden] { display: none !important; }
.starters-sidebar .starter-list {
  justify-content: flex-start;
}
.starters-sidebar .starter-list button {
  font-size: 0.88rem;
  padding: 7px 12px;
}
.chat-results.panel-results {
  width: 100%;
  margin: 0;
  padding: 0;
}
.topic-chat-results:empty { display: none; }
.topic-chat-results { margin-top: 28px; }
.content-vgrid,
.chat-grid.content-vgrid,
.panel-results .chat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1100px) {
  .content-vgrid,
  .chat-grid.content-vgrid,
  .panel-results .chat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .app-shell { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); }
  .content-vgrid,
  .chat-grid.content-vgrid,
  .panel-results .chat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .content-vgrid,
  .chat-grid.content-vgrid,
  .panel-results .chat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.eyebrow { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; font-weight: 800; color: var(--purple); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.05; margin-bottom: 10px; }
.hero h1 span { color: var(--purple); }
.hero-lead { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.hero-copy { color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.hero.is-chatting .hero-copy { display: none; }

.chat-card {
  text-align: left;
  background: #fff;
  border: 1px solid rgba(230, 225, 242, 0.95);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(28, 22, 51, 0.05);
  padding: 0;
  overflow: hidden;
}

.chat-main { padding: 18px; min-width: 0; }
.chat-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.chat-toolbar[hidden],
.explore-panel[hidden] { display: none !important; }
.new-chat-btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
}
.explore-panel {
  min-width: 0;
}
.explore-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.explore-head .ai-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  box-shadow: 0 0 0 4px #efeaff;
}
.explore-kicker {
  margin: 0 0 2px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--purple);
}
.explore-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.explore-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.explore-actions { display: grid; gap: 8px; }
.explore-action {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  cursor: pointer;
  color: inherit;
}
.explore-action:hover,
.explore-action:focus {
  border-color: #c9baf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.12);
}
.explore-action strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.explore-action span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.explore-change {
  margin-top: 12px;
  width: auto;
  display: inline-flex;
}
.ai-row { display: flex; gap: 12px; }
.ai-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b9a6ff 35%, #6d4aff 70%);
  box-shadow: 0 0 0 6px #f3efff;
}
.ai-name { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.welcome-block h2 { font-size: 1.2rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.welcome-block p { margin-bottom: 0; color: var(--muted); }
.messages { display: grid; gap: 10px; }
.messages:empty { display: none; }

.msg.user { justify-content: flex-end; }
.bubble {
  max-width: min(100%, 640px);
  padding: 12px 14px;
 border-radius: 16px;
  background: #f6f4fb;
  white-space: pre-wrap;
}
.chat-column .bubble { max-width: 100%; }
.msg.user .bubble { background: var(--purple); color: #fff; }
.msg.error .bubble { background: #fff1f4; color: var(--danger); }
.loading-bubble { display: flex; align-items: center; gap: 8px; }
.loading-copy { display: grid; gap: 2px; min-width: 0; }
.loading-copy p { margin: 0; }
.loading-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--purple);
}
.loading-text { font-weight: 700; }
.msg.loading-prominent .bubble.loading-bubble {
  gap: 14px;
  padding: 18px 18px;
  min-height: 78px;
  border: 1px solid #d9ccff;
  background:
    linear-gradient(180deg, #f4efff 0%, #efeaff 100%);
  box-shadow: 0 10px 28px rgba(109, 74, 255, 0.14);
  font-size: 1.05rem;
}
.msg.loading-prominent .spinner {
  width: 22px;
  height: 22px;
  border-width: 3px;
  flex: 0 0 22px;
}
.msg.loading-prominent .loading-text {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ddd;
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.composer textarea {
  flex: 1;
  resize: vertical;
  min-height: 74px;
  max-height: 180px;
  border-radius: 18px;
  border: 1px solid #d9d1ef;
  padding: 14px 16px;
  background: #fff;
}
.composer textarea:focus { outline: 3px solid rgba(109, 74, 255, 0.25); border-color: var(--purple); }
.send-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  flex: 0 0 48px;
}
.send-btn:disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.composer-foot, .hint { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 8px 0 0; }
.reply-cue {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}
.text-btn { color: var(--purple-dark); font-weight: 700; font-size: 0.9rem; }
.starters { margin-top: 0; }
.starters p { color: var(--muted); margin-bottom: 10px; font-size: 0.88rem; font-weight: 600; }
.starter-list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.panel-block-first { margin-top: 4px; }
.starter-list button, .quick-replies button {
  border: 1px solid #ddd6f3;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.starter-list button:hover, .quick-replies button:hover {
  border-color: var(--purple);
  color: var(--purple-dark);
  background: #f8f5ff;
}
.chat-results {
  width: min(var(--discovery-wrap), calc(100% - 48px));
  margin: 28px auto 12px;
  padding: 6px 0 24px;
  background: #fff;
}
.vcard-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  position: relative;
}
.more-menu {
  position: relative;
}
.more-btn {
  border: 0;
  background: #f4f1fb;
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}
.more-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 8;
}
.more-menu.is-open .more-panel { display: grid; gap: 2px; }
.more-panel a,
.more-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
}
.more-panel a:hover,
.more-panel button:hover { background: var(--soft); }
.results-head { margin-bottom: 16px; }
.results-head h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.results-head p { color: var(--muted); margin: 0; }
.chat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.chat-results .vcard-media { background: #f3f3f6; }
.warnings, .banner { border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.banner-error, .warnings { background: #fff1f4; color: #8d2347; }
.banner-ok { background: #eefbf4; color: var(--ok); }
.suggest-list { display: grid; gap: 6px; margin-top: 8px; }
.suggest-link, .quick-replies { display: block; }
.suggest-link {
  text-decoration: none;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
}
.suggest-link span { display: block; color: var(--muted); font-size: 0.82rem; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.section { padding: 36px 0; }
.section-soft {
  background: linear-gradient(180deg, rgba(246, 244, 251, 0.9), rgba(246, 244, 251, 0.45));
  border-top: 1px solid rgba(230, 225, 242, 0.7);
  border-bottom: 1px solid rgba(230, 225, 242, 0.7);
}
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.section-head h2, .page-intro h1, .prose h1 { letter-spacing: -0.04em; font-size: clamp(1.6rem, 2.8vw, 2.05rem); margin-bottom: 6px; }
.section-head p, .page-intro p { color: var(--muted); margin-bottom: 0; max-width: 52ch; }
.text-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: var(--purple); }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vcard { min-width: 0; }
.vcard-media {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #efeaff;
  aspect-ratio: 16 / 9;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vcard:hover .vcard-media {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(73, 48, 150, 0.12);
}
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-time {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(18, 14, 32, 0.82);
  color: #fff;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.vcard-body { padding: 10px 2px 0; }
.vcard-title-row { display: flex; gap: 8px; align-items: flex-start; }
.vcard-title-row h3, .watch-meta h1 { font-size: 0.98rem; line-height: 1.35; letter-spacing: -0.02em; margin: 0; flex: 1; }
.vcard-title-row a { color: inherit; text-decoration: none; }
.vcard-channel { margin: 4px 0; font-weight: 700; font-size: 0.9rem; }
.vcard-meta, .vcard-note, .muted { color: var(--muted); font-size: 0.86rem; }
.save-btn {
  border: 0;
  background: #f4f1fb;
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 34px;
}
.save-btn.is-saved { background: #efeaff; color: var(--purple); }
.save-btn.is-saved svg path { fill: currentColor; }
.topic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.topic-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #6d4aff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(73, 48, 150, 0.22);
}
.topic-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.topic-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 40, 0.05), rgba(20, 12, 40, 0.72));
}
.topic-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
}
.topic-name { font-weight: 800; font-size: 1.05rem; }
.topic-summary { color: rgba(255, 255, 255, 0.88); font-size: 0.86rem; }
.invite-card, .panel, .empty-state, .auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 28px rgba(73, 48, 150, 0.05);
}
.continue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.continue-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  align-items: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.continue-card:hover {
  border-color: #d9ccff;
  box-shadow: 0 10px 24px rgba(73, 48, 150, 0.08);
  transform: translateY(-1px);
}
.continue-card img { width: 92px; height: 52px; object-fit: cover; border-radius: 8px; }
.continue-card strong, .continue-card span { display: block; }
.continue-kicker { color: var(--purple); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.steps span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efeaff;
  color: var(--purple-dark);
  font-weight: 800;
}
.steps h3 { margin: 10px 0 6px; }
.steps p { color: var(--muted); margin: 0; }

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 44px;
  padding: 10px 0 14px;
  flex-wrap: wrap;
}
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--purple-dark);
}

.page { padding: 28px 0 40px; }
.page-narrow { max-width: 1080px; }
.page-intro { margin-bottom: 24px; max-width: 720px; }
.page-intro .eyebrow { margin-bottom: 8px; }
.stack { margin-top: 32px; }
.prose {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 28px 30px;
  box-shadow: 0 8px 28px rgba(73, 48, 150, 0.05);
}
.prose > :last-child { margin-bottom: 0; }
.prose h1 { margin-bottom: 10px; }
.prose h2 { margin-top: 1.5em; font-size: 1.2rem; letter-spacing: -0.02em; }
.prose p { color: #433c58; }
.draft-note { background: #fff7e8; border: 1px solid #f0ddb0; border-radius: 14px; padding: 12px 14px; }
.auth-wrap { max-width: 440px; }
.auth-card {
  padding: 28px 26px;
}
.auth-card h1 {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.auth-card label, .panel label { display: block; font-weight: 700; margin: 12px 0 6px; }
.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 6px;
}
.auth-label-row label { margin: 0; }
.auth-forgot {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.auth-forgot:hover,
.auth-forgot:focus {
  color: var(--purple);
  text-decoration: underline;
}
.auth-card input, .auth-card textarea, .panel input, .panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card input:focus, .auth-card textarea:focus, .panel input:focus, .panel textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.16);
}
.form-switch { color: var(--muted); font-size: 0.92rem; }
.account-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.account-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  background: linear-gradient(145deg, #7a5cff, #4f63f6);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 11px;
}
span.account-name {
  font-size: 13px;
}
.account-hero h1 { margin: 0 0 4px; font-size: clamp(1.7rem, 3vw, 2.15rem); letter-spacing: -0.04em; }
.account-hero p { margin: 0; color: var(--muted); max-width: 42rem; }
.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(73, 48, 150, 0.04);
}
.account-tabs a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.account-tabs a.is-active { background: var(--purple); color: #fff; }
.account-tabs a:hover:not(.is-active) { background: var(--soft); }
.account-stack { display: grid; gap: 16px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-stat {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(73, 48, 150, 0.05);
}
.account-stat:hover { border-color: #d9ccff; }
.account-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #efeaff;
  color: var(--purple);
  margin-bottom: 10px;
}
.account-stat strong { display: block; font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1.1; }
.account-stat span { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.account-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px 22px;
  box-shadow: 0 8px 28px rgba(73, 48, 150, 0.05);
}
.account-card h2 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.03em; }
.account-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.account-card-head h2 { margin: 0; }
.account-card label { display: block; font-weight: 700; margin: 12px 0 6px; }
.account-card input[type="text"],
.account-card input[type="password"],
.account-card input[type="email"],
.account-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.account-card input[type="text"]:focus,
.account-card input[type="password"]:focus,
.account-card input[type="email"]:focus,
.account-card textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.16);
}
.account-meta { margin: 0; }
.account-meta div { margin-top: 12px; }
.account-meta dt { font-size: 0.75rem; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.account-meta dd { margin: 2px 0 0; font-weight: 700; }
.account-provider {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #efeaff;
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
}
.account-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0 0; }
.account-links a { font-weight: 700; }
.chip-row, .chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.chip input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.28); }
.chip-static {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #efeaff;
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 6px 12px;
}
.pref-block { border: 0; margin: 20px 0 0; padding: 0; }
.pref-block legend { font-weight: 800; font-size: 1rem; padding: 0; margin-bottom: 4px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.account-vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-activity { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.account-activity li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.account-activity li:first-child { border-top: 0; padding-top: 4px; }
.account-activity .btn { flex: 0 0 auto; }
.account-activity-copy { min-width: 0; }
.account-activity-copy a { color: inherit; text-decoration: none; }
.account-activity-copy a:hover { color: var(--purple-dark); }
.account-activity-copy p { margin: 2px 0 0; }
.account-recent {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.account-recent img {
  width: 112px;
  height: 63px;
  object-fit: cover;
  border-radius: 10px;
  background: #efeaff;
  flex: 0 0 112px;
}
.account-recent strong, .account-recent .muted { display: block; }
.account-danger { border-color: #f0d5df; }
.account-danger h2 { color: var(--danger); font-size: 1.05rem; }
.plain-list { padding-left: 18px; }
.inline-form { margin-top: 16px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr); gap: 18px; align-items: start; }
.player-frame { position: relative; background: #120f1c; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; }
.player-frame iframe, #player-mount, #player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-meta { padding-top: 14px; }
.watch-about {
  margin-top: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f6fc 100%);
}
.watch-about .vcard-title-row h1 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.watch-why {
  margin-top: 14px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #efeaff;
  border: 1px solid #e2d8ff;
}
.watch-why-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--purple);
}
.watch-why-copy {
  margin: 0;
  color: #3d3558;
  line-height: 1.45;
}
.watch-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  align-items: center;
}
.watch-related {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  position: sticky;
  top: 92px;
  max-height: none;
  overflow: visible;
}
.watch-related-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--purple);
}
.watch-related h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.watch-related-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.watch-related-list {
  display: grid;
  gap: 10px;
}
.watch-related-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.watch-related-item:hover {
  background: #f8f6fc;
  border-color: var(--line);
}
.watch-related-thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #efeaff;
  aspect-ratio: 16 / 9;
}
.watch-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.watch-related-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}
.watch-related-copy strong {
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.watch-related-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}
.watch-embed .watch-related {
  position: sticky;
  top: 18px;
  max-height: none;
  overflow: visible;
}
.watch-layout-embed {
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.75fr);
}
.save-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: #1c1633;
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  max-width: 460px;
}
.save-notice a { color: #fff; }

@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  body.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  body.nav-open .header-actions { margin: 8px 0 0; }
  .nav-drop.is-open .nav-menu { display: grid; position: static; box-shadow: none; }
  .account-drop::after { display: none; }
  .account-drop.is-open .account-menu,
  .account-drop:focus-within .account-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }
  .vgrid, .topic-grid, .steps, .continue-grid, .chat-grid,
  .content-vgrid, .chat-grid.content-vgrid, .panel-results .chat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { min-height: 0; padding: 12px 0 16px; }
  .footer-nav { gap: 4px 10px; }
  .account-grid, .watch-layout, .watch-layout-embed, .account-stats, .account-split { grid-template-columns: 1fr; }
  .account-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-related, .watch-embed .watch-related {
    position: static;
    max-height: none;
  }
  .app-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 16px);
    gap: 10px;
  }
  .chat-column {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .content-column { min-height: 0; padding: 14px; }
}
@media (max-width: 680px) {
  .vgrid, .topic-grid, .steps, .continue-grid, .chat-grid,
  .content-vgrid, .chat-grid.content-vgrid, .panel-results .chat-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 60px; }
  .chat-main { padding: 14px; }
  .composer textarea { min-height: 64px; }
  .chat-brand h1 { font-size: 1.45rem; }
  .prose { padding: 20px 18px; border-radius: 18px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .account-activity li { align-items: flex-start; flex-direction: column; }
  .account-hero { align-items: flex-start; }
  .account-recent img { width: 96px; height: 54px; flex-basis: 96px; }
  .account-vgrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* Product storefront (FM-B2403A) */
body.product-storefront {
  --wrap: 1120px;
}
body.product-storefront .site-header .wrap.header-inner {
  width: min(var(--wrap), calc(100% - 32px));
}
body.product-storefront .header-topics {
  display: none;
}
body.product-storefront .nav-drop {
  display: block;
}
body.product-storefront .header-actions {
  margin-left: auto;
}

.commerce-band.product-footer {
  background: #161222;
  color: #d8d2e8;
  border-top: 0;
  padding: 32px 0 0;
  margin-top: 48px;
}
.commerce-muted {
  color: #8f879f;
  font-weight: 500;
  font-size: 0.92rem;
}
.product-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 28px 36px;
  align-items: start;
  padding-bottom: 22px;
}
.product-footer-brand .brand-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.product-footer-tagline,
.product-footer-address {
  margin: 8px 0 0;
  color: #9b93b0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.product-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: start;
}
.product-footer-nav a {
  color: #ece8f5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}
.product-footer-nav a:hover,
.product-footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-footer-contact {
  display: grid;
  gap: 4px;
}
.product-footer-contact-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b93b0;
  font-weight: 800;
}
.product-footer-phone {
  margin: 0;
  color: #d8d2e8;
  font-weight: 600;
}
.product-footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0 22px;
  color: #8f879f;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}
.product-footer-base p { margin: 0; color: inherit; }

.product-page a.product-link {
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-page a.product-link::after {
  content: "\2192";
  font-weight: 700;
  transition: transform 0.15s ease;
}
.product-page a.product-link:hover,
.product-page a.product-link:focus {
  color: var(--ink) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-page a.product-link:hover::after,
.product-page a.product-link:focus::after {
  transform: translateX(3px);
}
.product-page a.product-mail,
.commerce-band a.product-mail,
.product-page a[href^="mailto:"] {
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
}
.commerce-band a.product-mail {
  color: #ece8f5 !important;
}
.product-page a.product-mail:hover,
.product-page a.product-mail:focus,
.commerce-band a.product-mail:hover,
.commerce-band a.product-mail:focus,
.product-page a[href^="mailto:"]:hover,
.product-page a[href^="mailto:"]:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink) !important;
}
.commerce-band a.product-mail:hover,
.commerce-band a.product-mail:focus {
  color: #fff !important;
}
.product-benefit-support a.product-mail {
  color: var(--muted) !important;
}

.product-page { padding-top: 18px; }
.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.product-breadcrumb a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.product-breadcrumb a:hover,
.product-breadcrumb a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-launch-banner {
  background: #fff7e8;
  border: 1px solid #f0ddb0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}
.product-gallery-main {
  position: relative;
  isolation: isolate;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-gallery-main::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-image: var(--product-media);
  background-size: cover;
  background-position: center;
  filter: blur(36px) saturate(1.25);
  transform: scale(1.15);
  pointer-events: none;
}
.product-gallery-main img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  padding: 16px 28px;
  box-sizing: border-box;
  background: transparent;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.product-thumb {
  position: relative;
  isolation: isolate;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
}
.product-thumb::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 0;
  background-image: var(--product-media);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.2);
  transform: scale(1.12);
  pointer-events: none;
}
.product-thumb.is-active,
.product-thumb:focus-visible {
  border-color: var(--purple);
  outline: none;
}
.product-thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 72px;
  object-fit: contain;
  object-position: center;
  padding: 6px 8px;
  box-sizing: border-box;
  background: transparent;
}
.product-buy .eyebrow { margin-bottom: 6px; }
.product-buy h1 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.product-lead { color: var(--muted); }
.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 14px 0 4px;
}
.product-purchase-type,
.product-stock {
  margin: 0 0 8px;
  font-weight: 600;
}
.product-stock { color: var(--ok); }
.product-stock.is-out { color: var(--danger); }
.product-purchase-form { margin: 16px 0; }
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.qty-label { font-weight: 700; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.qty-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.qty-control input {
  width: 48px;
  border: 0;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-buy-now {
  margin-top: 4px;
  min-height: 48px;
  font-size: 1rem;
}
.product-buy-now:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}
.product-checkout-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.product-buy-points {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}
.product-buy-points li {
  padding-left: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.product-safety-hint {
  background: #fff7e8;
  border: 1px solid #f0ddb0;
  border-radius: 14px;
  padding: 12px 14px;
}
.product-safety-hint p { margin: 0; color: var(--ink); }

.product-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
input#confirm_email {
  margin-bottom: 10px;
}
.account-save-changes{
  margin-top: 10px; 
}
.product-benefit {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  padding: 4px 0;
  border-radius: 8px;
}
a.product-benefit:hover strong,
a.product-benefit:focus strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-benefit strong { font-size: 0.95rem; color: var(--ink); }
.product-benefit span {
  color: var(--muted);
  font-size: 0.88rem;
}

.product-section-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 15px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.product-section-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.product-section-nav a:hover,
.product-section-nav a:focus,
.product-section-nav a.is-active {
  background: var(--soft);
  color: var(--purple-dark);
}

.product-section {
  padding: 36px 0 8px;
  scroll-margin-top: 120px;
}
.product-section h2 {
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.product-feature-list { padding-left: 18px; }
.product-feature-list li { margin-bottom: 8px; }
.product-function-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.product-function {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}
.product-function h3 { margin: 0 0 8px; }
.product-function p { margin: 0; color: var(--muted); }
.product-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.product-spec-table th,
.product-spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.product-spec-table th {
  width: 34%;
  background: var(--soft);
  font-weight: 700;
}
.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td { border-bottom: 0; }
.product-package-reg-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 36px 0 8px;
  padding: 4px;
}
.product-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(28, 22, 51, 0.06);
  padding: 22px 22px 20px;
  scroll-margin-top: 120px;
}
.product-info-card-head {
  margin-bottom: 18px;
}
.product-info-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.product-info-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.product-package {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 34px;
}
.product-package-media {
  width: 190px;
}
.product-package img {
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  background: #ffffff;
  display: block;
  border: 1px solid #b9b9b9;
  padding: 8px;
}
.product-package-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.product-package-checks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.35;
}
.product-check {
  display: inline-flex;
  margin-top: 1px;
}
.product-reg-rows {
  margin: 0;
  display: grid;
}
.product-reg-rows > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.4fr);
  gap: 12px 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.product-reg-rows > div:first-child {
  padding-top: 0;
}
.product-reg-rows dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}
.product-reg-rows dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.product-reg-footnote {
  margin: 14px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}
.product-reg-link {
  margin: 14px 0 0;
}
.product-manual {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-top: 28px;
}
.product-safety-list { padding-left: 18px; }
.product-safety-list li { margin-bottom: 8px; }
.product-reg-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}
.product-reg-list div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.product-reg-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 800;
}
.product-reg-list dd { margin: 4px 0 0; font-weight: 600; }

.product-accordions { display: grid; gap: 10px; }
.product-accordion {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.product-accordion h3 { margin: 0; }
.product-accordion-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
}
.product-accordion-trigger:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
}
.product-accordion-panel {
  padding: 0 18px 16px;
  color: var(--muted);
}
.product-faq-list { display: grid; gap: 8px; }
.product-faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.product-faq summary {
  font-weight: 700;
  cursor: pointer;
}
.product-faq summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.product-faq p { margin: 10px 0 0; color: var(--muted); }
.product-dev-blockers ul { color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow {
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 979px) {
  .product-benefits,
  .product-function-grid,
  .product-reg-list,
  .product-package-reg-row,
  .product-footer-main,
  .product-hero {
    grid-template-columns: 1fr;
  }
  .product-package {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .product-section-nav { top: 68px; }
  .product-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .product-package {
    grid-template-columns: 1fr;
  }
  .product-package-media,
  .product-package img {
    width: 160px;
  }
  .product-reg-rows > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (max-width: 680px) {
  .product-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-section-nav { top: 64px; }
}

/* Checkout step 1 */
.checkout-page-main { padding: 28px 0 56px; }
.checkout-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 4px;
}
.checkout-secure-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  color: inherit;
}
.checkout-secure-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(18, 130, 74, 0.1);
  color: #12824a;
  flex: 0 0 auto;
}
.checkout-secure-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.checkout-secure-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.checkout-secure-title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
body.checkout-from-spinalsyn .checkout-secure-icon {
  background: rgba(7, 94, 232, 0.1);
  color: var(--purple);
}
.checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #12824a;
  font-weight: 700;
  font-size: 0.95rem;
}
.checkout-steps {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  list-style: none;
  width: min(100%, 420px);
  margin: 17px 0 17px;
  padding: 0;
  gap: 0;
}
.checkout-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
}
.checkout-steps li + li::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #e4dfef;
}
.checkout-step-mark {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #ddd7ea;
  color: #8d869f;
  font-weight: 800;
  font-size: 0.95rem;
}
.checkout-steps li.is-current .checkout-step-mark {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.18);
}
.checkout-steps li.is-done .checkout-step-mark {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.checkout-steps li.is-done + li::before {
  background: var(--purple);
}
.checkout-step-label {
  color: #8d869f;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.checkout-steps li.is-current .checkout-step-label {
  color: var(--ink);
  font-weight: 800;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 22px;
  align-items: start;
}
.checkout-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.checkout-summary { min-width: 0; }
.checkout-card {
  background: #fff;
  border: 1px solid #e7e3f1;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 8px 24px rgba(28, 22, 51, 0.04);
}
.checkout-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.checkout-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  background: #f1ecff;
  color: var(--purple);
}
.checkout-card h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.checkout-card-head p,
.checkout-summary > h2 + .checkout-item { margin: 2px 0 0; }
.checkout-card-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.checkout-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 0.92rem;
}
.checkout-form input[type="email"],
.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e3deee;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.checkout-form input::placeholder { color: #b0a9c2; }
.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.16);
}
.checkout-form input.is-invalid,
.checkout-form select.is-invalid {
  border-color: #d4537a;
  background: #fff8fa;
}
.checkout-field-error {
  margin: 6px 0 0;
  color: #a1264d;
  font-size: 0.86rem;
  font-weight: 600;
}
.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkout-grid-2 label { margin-top: 14px; }
.checkout-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px !important;
  font-weight: 600 !important;
  color: var(--ink);
}
.checkout-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
  flex: 0 0 auto;
}
.checkout-summary { position: sticky; top: 88px; }
.checkout-summary h2 { margin-bottom: 16px; }
.checkout-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0 12px;
  align-items: start;
}
.checkout-item img {
  grid-row: 1 / span 2;
  width: 84px;
  height: 69px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f5fb;
}
.checkout-item-copy { grid-column: 2; min-width: 0; }
.checkout-item-name {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.checkout-item-model {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.checkout-item-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}
.checkout-item-meta label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.checkout-item-meta select {
  width: auto;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 8px;
}
.checkout-line-price {
  margin: 0 0 0 auto;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.checkout-totals {
  margin: 16px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.checkout-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  align-items: center;
}
.checkout-totals dt { font-weight: 600; }
.checkout-totals dd { margin: 0; font-weight: 800; }
.checkout-totals dd.is-free { color: #12824a; font-weight: 700; font-size: 15px; }
.checkout-tax-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.checkout-tax-note svg { flex: 0 0 auto; margin-top: 2px; }
.checkout-continue {
  display: block;
  width: 100%;
  margin-top: 4px;
  min-height: 54px;
  border-radius: 12px;
  font-size: 1.05rem;
}
.checkout-claim-status p { margin: 0; }
.checkout-claim-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 10px !important;
}
.checkout-claim-retry {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}
.checkout-claim-fallback {
  font-weight: 700;
  text-decoration: underline;
  color: inherit;
}
.checkout-claim-fallback:hover,
.checkout-claim-fallback:focus {
  opacity: 0.85;
}
.checkout-assurances {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.checkout-assurances li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}
.checkout-assurances li + li { border-left: 1px solid #ddd7ea; }
.checkout-footer {
  background: #14111c;
  color: #d8d2e8;
  padding: 36px 0 28px;
  margin-top: auto;
}
.checkout-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(280px, 1.5fr) minmax(180px, 0.8fr);
  gap: 28px 40px;
  align-items: start;
}
.checkout-footer-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}
.checkout-footer-brand p,
.checkout-footer-support p {
  margin: 8px 0 0;
  color: #b7b0c8;
  font-size: 0.92rem;
}
.checkout-footer-copy { margin-top: 18px !important; }
.checkout-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 8px;
}
.checkout-footer-nav a,
.checkout-footer-support a {
  color: #f3f0f8;
  text-decoration: none;
  font-weight: 600;
}
.checkout-footer-nav a:hover,
.checkout-footer-nav a:focus,
.checkout-footer-support a:hover,
.checkout-footer-support a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-footer-kicker {
  margin: 0 0 8px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b93b0 !important;
  font-weight: 800;
}
.checkout-footer-support a { display: inline-block; margin-bottom: 4px; }

@media (min-width: 900px) {
  .checkout-steps{
    margin-left: 150px;
  }
}


@media (max-width: 900px) {

  p.pay-secure {
    margin-bottom: 16px;
}

  .checkout-layout,
  .checkout-footer-grid { grid-template-columns: 1fr; }
  .checkout-layout { display: flex; flex-direction: column; }
  .checkout-summary {
    position: static;
    order: -1;
  }
  .checkout-steps { width: min(100%, 360px);
  
    margin-top: 14px;
    margin-bottom: 16px;
  }
  .checkout-step-label { font-size: 0.84rem; }
}
@media (max-width: 640px) {
  .checkout-grid-2 { grid-template-columns: 1fr; }
  .checkout-line-price { margin-left: 0; }
  .checkout-assurances li + li { border-left: 0; }
  .checkout-item {
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
  }
  .checkout-item img {
    grid-row: auto;
    width: 94px;
    height: 72px;
  }
  .checkout-item-copy { align-self: center; }
  .checkout-item-meta {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
}

/* Checkout step 2 */
body.checkout-pay {
  background: #f5f4f8;
  --wrap: 1120px;
}
.pay-topbar {
  background: #fff;
  border-bottom: 1px solid #eceaf3;
}
.pay-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 16px;
}
.pay-top-simple { grid-template-columns: 1fr auto; }
.pay-secure {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #5c5670;
  font-weight: 700;
  font-size: 0.92rem;
}
.pay-progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pay-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 150px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.pay-progress li + li::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--purple);
}
.pay-progress a {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.pay-progress-mark {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
}
.pay-progress li.is-current { color: var(--ink); font-weight: 800; }
.pay-progress li.is-current .pay-progress-mark {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.18);
}
.pay-main { padding: 28px 0 64px; }
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: start;
}
.pay-column { display: grid; gap: 16px; }
.pay-card {
  background: #fff;
  border: 1px solid #eceaf3;
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 28px rgba(28, 22, 51, 0.04);
}
.pay-card h2, .pay-confirm h1 { margin: 0; letter-spacing: -0.03em; }
.pay-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pay-card-title h2 { margin: 0; font-size: 1.15rem; }
.pay-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.pay-edit:hover, .pay-edit:focus { text-decoration: underline; }
.pay-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.pay-address-grid p, .pay-muted { margin: 0 0 2px; color: #5e5872; }
.pay-strong { margin: 0 0 4px; font-weight: 800; color: var(--ink); }
.pay-lead { color: var(--muted); margin: 8px 0 14px; }
.pay-delivery {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f4f8;
}
.pay-delivery-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #efeaff;
  color: var(--purple);
  flex: 0 0 auto;
}
.pay-delivery-copy { min-width: 0; }
.pay-delivery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pay-delivery-head .pay-muted { margin: 2px 0 0; }
.pay-delivery-meta {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pay-delivery-meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #5e5872;
  font-size: 0.9rem;
  line-height: 1.35;
}
.pay-delivery-meta svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #7a738f;
}
.pay-delivery-meta svg.is-ok { color: #12824a; }
.pay-free {
  margin: 0;
  color: #12824a;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pay-edit:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.paypal-buttons-wrap {
  width: 100%;
  max-width: 520px;
  margin: 16px auto 0;
}
.paypal-button-container {
  width: 100%;
  min-height: 48px;
  overflow: visible;
}
.paypal-button-container.is-busy {
  pointer-events: none;
  opacity: 0.72;
}
.pay-buttons-status {
  margin: 12px 0 0;
  text-align: center;
}
.pay-buttons-status.is-error { color: #a1264d; }
.pay-secure-note {
  margin: 16px 0 0;
  text-align: center;
  color: #6a647c;
  font-size: 0.88rem;
}
.pay-legal {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.pay-legal a { font-weight: 700; }
.pay-summary { position: sticky; top: 18px; }
.pay-product-image {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  margin: 4px 0 14px;
  background: #faf9fc;
  border-radius: 12px;
}
.pay-product-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pay-product-name { margin: 0 0 4px; font-weight: 800; }
.pay-product-price { text-align: right; font-weight: 800; }
.pay-product-price p { margin: 0; }
.pay-totals { margin: 16px 0; }
.pay-totals div, .pay-confirm-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}
.pay-totals dt, .pay-totals dd { margin: 0; }
.pay-totals dt { font-weight: 600; color: #3d3652; }
.pay-totals dd { font-weight: 800; }
.pay-total { border-top: 1px solid var(--line); margin-top: 4px; }
.pay-total dt, .pay-total dd { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.pay-info {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #c9c3d8;
  color: #6d6780;
  font-size: 0.72rem;
  font-weight: 800;
}
.pay-trust {
  list-style: none;
  margin: 8px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.pay-trust li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  color: var(--purple);
}
.pay-trust span { color: var(--muted); font-size: 0.9rem; }
.pay-trust strong { display: block; color: var(--ink); }
.pay-confirm-wrap { max-width: 720px; }
.pay-confirm h1 { font-size: 1.8rem; margin-bottom: 8px; }
.pay-confirm-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efeaff;
  color: var(--purple);
  font-weight: 800;
  margin-bottom: 12px;
}
.pay-confirm-list { margin: 18px 0; }
.pay-confirm-list div { border-bottom: 1px solid var(--line); }
.pay-confirm-list dt { color: var(--muted); font-weight: 700; }
.pay-confirm-list dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 900px) {
  .pay-top, .pay-layout, .pay-address-grid {
    grid-template-columns: 1fr;
  }
  .pay-layout { display: flex; flex-direction: column; }
  .pay-summary {
    position: static;
    order: -1;
  }
  .pay-secure { justify-self: start; }
  .pay-progress { justify-content: start; }
  .pay-product-price { text-align: left; }
  .paypal-buttons-wrap { max-width: none; }
}

/* SpinalSyn referral checkout: brand accent + lean chrome (no site header/footer). */
body.checkout-from-spinalsyn {
  --purple: #075ee8;
  --purple-dark: #064bc8;
  --ink: #08143f;
  --muted: #4a5a7a;
  --line: #d5e6f8;
  --soft: #f3f8fd;
  --shadow: 0 14px 36px rgba(7, 94, 232, 0.12);
  --page-bg: #f7fbfe;
}
body.checkout-from-spinalsyn .checkout-steps li.is-current .checkout-step-mark,
body.checkout-from-spinalsyn .checkout-steps li.is-done .checkout-step-mark,
body.checkout-from-spinalsyn .pay-progress li.is-current .pay-progress-mark {
  box-shadow: 0 0 0 3px rgba(7, 94, 232, 0.18);
}
body.checkout-from-spinalsyn .checkout-form input:focus,
body.checkout-from-spinalsyn .checkout-form select:focus {
  outline: 3px solid rgba(7, 94, 232, 0.22);
}
body.checkout-from-spinalsyn.checkout-pay .pay-main {
  padding-top: 28px;
}
