* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(53,117,255,0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255,166,0,0.16), transparent 28%),
    linear-gradient(135deg, #071120 0%, #0a1b34 55%, #10284a 100%);
  color: white;
}

.hidden { display: none !important; }
.app-shell {
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(10px, 1.5vh, 20px) clamp(18px, 2vw, 28px);
}

.hero {
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  margin-bottom: 22px;
}

.hero h1 { margin: 0; font-size: 64px; letter-spacing: 1px; }

.hero-sub {
  font-size: 24px;
  max-width: 880px;
  color: #d8e4fb;
  margin: 18px 0 26px;
}

.hero-note { color: #bfd0ef; margin-top: 18px; font-size: 15px; }

.primary-btn, .ghost-btn, .mini-btn {
  border: none;
  border-radius: 16px;
  padding: 14px 22px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.primary-btn {
  background: linear-gradient(180deg, #ffb022 0%, #ff8a00 100%);
  color: #13233b;
  box-shadow: 0 12px 30px rgba(255,153,0,0.28);
}

.ghost-btn {
  background: rgba(255,255,255,0.10);
  color: white;
  border: 1px solid rgba(255,255,255,0.16);
}

.mini-btn {
  padding: 10px 14px;
  font-size: 14px;
  color: white;
  background: linear-gradient(180deg, #4d8bff 0%, #2f65db 100%);
}

.mini-btn.alt {
  color: #13233b;
  background: linear-gradient(180deg, #ffb022 0%, #ff8a00 100%);
}

.primary-btn:hover, .ghost-btn:hover, .mini-btn:hover { transform: translateY(-1px); }

.demo { max-width: 1380px; width: min(1380px, calc(100vw - 56px)); margin: 0 auto; overflow: hidden; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand > div { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffb022 0%, #ff8a00 100%);
  color: #12223c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.brand-title { font-size: 22px; font-weight: 800; }
.brand-sub, .demo-status { color: #c7d7f5; font-size: 14px; }

.progress-wrap { margin-bottom: 12px; }

.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 16.66%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb022 0%, #3a86ff 100%);
  transition: width 0.4s ease;
}

.scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.82fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.scene-panel, .info-panel {
  min-width: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.24);
  backdrop-filter: blur(6px);
}

.scene-panel { padding: 18px; }

.info-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-header { margin-bottom: 12px; }

.scene-title {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 4px;
}

.scene-subtitle {
  font-size: 17px;
  color: #d3e0fb;
}

.stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: clamp(560px, calc(100vh - 255px), 700px);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(91,143,255,0.16), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
}

.actor {
  position: absolute;
  width: 140px;
  text-align: center;
  z-index: 5;
}

.actor-buyer { left: 58px; top: 42px; }
.actor-seller { right: 58px; top: 42px; }
.actor-platform { left: 50%; transform: translateX(-50%); top: 480px; width: 160px; }

.actor-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  position: relative;
}

.actor-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
  position: relative;
  z-index: 3;
}

.ring {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 96px;
  height: 96px;
  border: 4px solid rgba(255,176,34,0.95);
  border-radius: 28px;
  z-index: 2;
  animation: ringPulse 1.3s infinite;
}

.actor-label {
  font-size: 17px;
  font-weight: 700;
  position: relative;
  z-index: 4;
}

.travel-lane {
  position: absolute;
  left: 100px;
  right: 40px;
  border-radius: 999px;
  z-index: 8;
  pointer-events: none;
}

.lane-money {
  top: 158px;
  height: 42px;
}

.lane-parcel {
  top: 376px;
  height: 42px;
}

.moving-chip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
  white-space: nowrap;
}

.money-chip {
  background: linear-gradient(180deg, #73ff96 0%, #38d66b 100%);
  color: #092f1c;
}

.parcel-chip {
  background: linear-gradient(180deg, #82b2ff 0%, #4b83f8 100%);
  color: white;
}

.move-left-to-center { animation: leftToCenter 1.45s ease forwards; }
.move-left-to-vault { animation: leftToVault 2.25s ease forwards; }
.move-center-to-right-safe { animation: centerToRightSafe 1.85s ease forwards; }
.move-right-to-left-safe { animation: rightToLeftSafe 1.6s ease forwards; }

.card {
  position: absolute;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 22px 40px rgba(0,0,0,0.22);
  z-index: 4;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
}

.card-left, .card-right {
  width: 230px;
  background: rgba(13,31,58,0.88);
  top: 220px;
}

.card-left { left: 58px; }
.card-right { right: 58px; }

.card-center {
  width: 340px;
  left: 50%;
  transform: translateX(-50%);
  top: 214px;
  text-align: center;
}

.hold-card {
  background: linear-gradient(180deg, rgba(255,178,34,0.96), rgba(255,140,0,0.96));
  color: #13233b;
  min-height: 140px;
  isolation: isolate;
  overflow: hidden;
}

.hold-lock {
  display: block;
  text-align: center;
  line-height: 1;
  margin-top: 8px;
  font-size: 4em;
  position: relative;
  z-index: 1;
}

.ship-card {
  min-height: 140px;
}

.info-card {
  background: rgba(17,42,77,0.92);
  color: white;
}

.stage.step-3 .info-card {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

.stage.step-3 .hold-card {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

.stage.step-4 .info-card {
  background: #27ae60 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.stage.step-5 .info-card {
  background: #8e44ad !important;
  color: #ffffff !important;
}

.stage.step-6 .info-card {
  background: #c9a227 !important;
  color: #13233b !important;
}

.release-card {
  background: linear-gradient(180deg, rgba(255,178,34,0.96), rgba(255,140,0,0.96));
  color: #13233b;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.card-title.dark, .card-text.dark { color: #13233b; }
.card-text { font-size: 14px; font-weight: 700; }
.big-emoji { font-size: 46px; margin-bottom: 8px; display: block; position: relative; z-index: 1; }

.hold-lock, .big-emoji {
  position: relative;
  z-index: 1;
}

.line {
  height: 12px;
  border-radius: 999px;
  margin-bottom: 9px;
  background: rgba(255,255,255,0.12);
}

.line.short { width: 55%; }
.line.strong { width: 74%; background: rgba(255,255,255,0.22); }

.arrow {
  position: absolute;
  top: 266px;
  font-size: 48px;
  color: #ffd166;
  text-shadow: 0 0 20px rgba(255,209,102,0.42);
  z-index: 6;
  animation: pulse 1.1s infinite;
}

.arrow-left { left: 330px; }
.arrow-right { right: 330px; }

.caption-box {
  border-radius: 20px;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(180deg, rgba(255,176,34,0.96), rgba(255,140,0,0.94));
  color: #13233b;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: #d8e5ff;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.step-item span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-item.active {
  background: rgba(58,134,255,0.28);
  border-color: rgba(58,134,255,0.65);
  transform: translateX(4px);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

@keyframes pulse {
  0% { transform: scale(0.98); opacity: 0.72; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(0.98); opacity: 0.72; }
}

@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 0.28; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.28; }
}

@keyframes leftToCenter {
  0% { left: 0; }
  100% { left: calc(50% - 102px); }
}

@keyframes leftToVault {
  0% { left: 0; top: 0; }
  100% { left: calc(50% - 102px); top: 308px; }
}

@keyframes centerToRightSafe {
  0% { left: calc(50% - 102px); top: 322px; }
  100% { left: calc(100% - 121px); top: 0; }
}

@keyframes rightToLeftSafe {
  0% { left: calc(100% - 170px); }
  100% { left: 40px; }
}

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

@media (max-width: 760px) {
  .app-shell { padding: 16px; }
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 18px; }
  .scene-title { font-size: 24px; }
  .scene-subtitle, .caption-box { font-size: 16px; }
  .controls { grid-template-columns: 1fr; }
}

/* FIX17 CONTAINER SAFETY */
html, body {
  max-width: 100%;
}

.app-shell,
.demo,
.scene-grid,
.scene-panel,
.info-panel,
.stage {
  box-sizing: border-box;
}

.scene-panel,
.info-panel,
.stage {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .demo {
    width: min(100%, calc(100vw - 32px));
  }

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

  .info-panel {
    min-width: 0;
  }
}


.stage.step-4 .hold-card {
  background: linear-gradient(180deg, #7ee081, #1f9a3f);
  color: #ffffff;
}

.stage.step-5 .hold-card {
  background: linear-gradient(180deg, #c79bff, #7a49d6);
  color: #ffffff;
}

.stage.step-6 .hold-card {
  background: linear-gradient(180deg, #ffe08a, #d4a62a);
  color: #13233b;
}


#hero, #demo {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}


.stage.step-4 .card {
  box-shadow: none !important;
  transform: none !important;
}


/* Bazont4J: flatten the actual page-4 green ship box */
.stage.step-4 #cardShip {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  filter: none !important;
}


/* Bazont4K: reuse hold-card component for page 4 ship box, make it green and flat */
.stage.step-4 #cardShip {
  background: #27ae60 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  filter: none !important;
  min-height: 140px !important;
}
.stage.step-4 #cardShip .card-title,
.stage.step-4 #cardShip .card-text,
.stage.step-4 #cardShip .big-emoji {
  color: #ffffff !important;
}
.stage.step-4 #cardShip::before,
.stage.step-4 #cardShip::after {
  box-shadow: none !important;
  filter: none !important;
}

/* Bazont5N: restore safe animation-page vertical scrolling when needed. */

/* Bazont5O: Page 2-6 fullscreen micro-overflow trim only. Normal scrolling remains available. */
@supports selector(.demo:has(.stage.step-6)) {
  .app-shell:has(.stage.step-6) {
    padding-bottom: 10px;
  }

  .scene-panel:has(.stage.step-6) {
    padding-bottom: 10px;
  }

  .scene-panel:has(.stage.step-6) .scene-header {
    margin-bottom: 6px;
  }
}

/* Bazont5Y: card stays fixed on P02-1; click Next to P02-2 triggers slow travel. */
.stage.step-2 #cardCreate.card-travel-create-invite {
  left: 58px;
  right: auto;
  animation: cardCreateToInviteTravel 3.1s cubic-bezier(0.22, 0.72, 0.22, 1) forwards;
}

@keyframes cardCreateToInviteTravel {
  0% { left: 58px; transform: translateX(0); }
  48% { left: calc(50% - 115px); transform: translateX(0); }
  100% { left: calc(100% - 288px); transform: translateX(0); }
}

/* Bazont5Y: Next-button red prodding arrow only. */
#nextBtn {
  position: relative;
  overflow: visible;
}

#nextBtn::after {
  content: "\2190";
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  color: #ff0000;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 1px 0 0 #ff0000, -1px 0 0 #ff0000, 0 1px 0 #ff0000, 0 -1px 0 #ff0000;
  pointer-events: none;
  animation: nextArrowProd 1.8s ease-in-out infinite;
}

@keyframes nextArrowProd {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(-8px, -50%); }
}

/* Bazont6D: P02-3 only — lift and tighten Platform/Vault/Funds stack. */
.stage.step-3 .actor-platform {
  width: 190px;
  top: 300px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage.step-3 .actor-platform .actor-label {
  order: -1;
  margin-bottom: 4px;
}

.stage.step-3 .actor-platform .actor-icon-wrap {
  width: 112px;
  height: 112px;
  margin-bottom: 30px;
}

.stage.step-3 .actor-platform .actor-icon {
  width: 112px;
  height: 112px;
  font-size: 64px;
}

.stage.step-3 .actor-platform .ring {
  width: 124px;
  height: 124px;
}

.stage.step-3 #moneyChip {
  z-index: 12;
}


/* Bazont6D: P02-3 only — shorter payment-held card with inline lock retained. */
.stage.step-3 .hold-card {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 14px;
  padding-right: 14px;
}

.stage.step-3 .hold-card .card-title {
  margin-bottom: 3px;
}

.stage.step-3 .hold-card .card-text {
  margin: 0;
  line-height: 1.18;
}

/* Bazont6E: P02-3 only — normal browser view fitment first. */
.stage.step-3 .hold-card {
  top: 185px;
}

.stage.step-3 .actor-platform {
  top: 284px;
}

.stage.step-3 .actor-platform .actor-label {
  margin-bottom: 3px;
}

.stage.step-3 .actor-platform .actor-icon-wrap {
  margin-bottom: 22px;
}

.stage.step-3 .move-left-to-vault {
  animation-name: leftToVault6F;
}

@keyframes leftToVault6F {
  0% { left: 0; top: 0; }
  100% { left: calc(50% - 80px); top: 282px; }
}

/* Bazont6F: P02-3 only — blue card up and funds centered under vault. */

/* Bazont6G: P02-3 only — micro shift blue + Platform label up; vault stays fixed; funds centered. */
.stage.step-3 .hold-card {
  top: 172px;
}

.stage.step-3 .actor-platform .actor-label {
  transform: translateY(-13px);
}

.stage.step-3 .move-left-to-vault {
  animation-name: leftToVault6G;
}

@keyframes leftToVault6G {
  0% { left: 100px; top: 0; transform: translateX(0); }
  100% { left: 50%; top: 282px; transform: translateX(-50%); }
}

/* Prior P02-3 only — true center ₱ Funds under vault using the stage/vault centerline. */
.stage.step-3 .lane-money {
  left: 0;
  right: 0;
}

/* Bazont6I: P02-6 only — Platform uses vault visual and funds finish truly centered under Seller. */
.stage.step-6 .actor-platform {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage.step-6 .actor-platform .actor-label {
  order: -1;
  margin-bottom: 4px;
}

.stage.step-6 .lane-money {
  left: 0;
  right: 0;
}

.stage.step-6 .move-center-to-right-safe {
  animation-name: centerToSeller6I;
}

@keyframes centerToSeller6I {
  0% { left: 50%; top: 322px; transform: translateX(-50%); }
  100% { left: calc(100% - 128px); top: 0; transform: translateX(-50%); }
}

/* Bazont6J: P02-6 only — lift Platform/Vault as one unit for normal browser fitment. */
.stage.step-6 .actor-platform {
  top: 430px;
}

/* Bazont6K: P02-4 to P02-6 only — standardize Platform/Vault visual size to P02-3. */
.stage.step-4 .actor-platform,
.stage.step-5 .actor-platform,
.stage.step-6 .actor-platform {
  width: 190px;
  top: 430px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage.step-4 .actor-platform .actor-label,
.stage.step-5 .actor-platform .actor-label,
.stage.step-6 .actor-platform .actor-label {
  order: -1;
  margin-bottom: 4px;
}

.stage.step-4 .actor-platform .actor-icon-wrap,
.stage.step-5 .actor-platform .actor-icon-wrap,
.stage.step-6 .actor-platform .actor-icon-wrap {
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
}

.stage.step-4 .actor-platform .actor-icon,
.stage.step-5 .actor-platform .actor-icon,
.stage.step-6 .actor-platform .actor-icon {
  width: 112px;
  height: 112px;
  font-size: 64px;
}

.stage.step-4 .actor-platform .ring,
.stage.step-5 .actor-platform .ring,
.stage.step-6 .actor-platform .ring {
  width: 124px;
  height: 124px;
}

/* Bazont6L: P02-5 only — approved clean background image replaces old stage visuals. */
.stage.step-5 {
  background-image: url('/static/images/p02-5-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.stage.step-5 .actor,
.stage.step-5 .travel-lane,
.stage.step-5 .moving-chip,
.stage.step-5 .card,
.stage.step-5 .arrow {
  display: none !important;
}

.scene-panel:has(.stage.step-5) .scene-header {
  display: none !important;
}

/* Bazont6o: P02-4 only — approved background image replaces old seller-ships visuals. */
.stage.step-4 {
  position: relative;
  background-image: url('/static/images/p02-4-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.stage.step-4 .actor-buyer,
.stage.step-4 .actor-seller,
.stage.step-4 .actor-platform,
.stage.step-4 .lane-parcel,
.stage.step-4 .parcel-chip,
.stage.step-4 .ship-card {
  display: none !important;
}

.scene-panel:has(.stage.step-4) .scene-header,
.scene-panel:has(.stage.step-4) .scene-title,
.scene-panel:has(.stage.step-4) .scene-subtitle {
  position: relative;
  z-index: 5;
}

/* Bazont6Q: P02-3 only — approved background image replaces old buyer-payment visuals. */
.stage.step-3 {
  position: relative;
  background-image: url('/static/images/p02-3-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.stage.step-3 .actor-buyer,
.stage.step-3 .actor-seller,
.stage.step-3 .actor-platform,
.stage.step-3 .lane-money,
.stage.step-3 .money-chip,
.stage.step-3 .hold-card {
  display: none !important;
}

.scene-panel:has(.stage.step-3) .scene-header,
.scene-panel:has(.stage.step-3) .scene-title,
.scene-panel:has(.stage.step-3) .scene-subtitle {
  position: relative;
  z-index: 5;
}

/* Bazont6S: P02-2 only — approved background image replaces old seller-joins visuals. */
.stage.step-2 {
  position: relative;
  background-image: url('/static/images/p02-2-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.stage.step-2 .actor-buyer,
.stage.step-2 .actor-seller,
.stage.step-2 .actor-platform,
.stage.step-2 .arrow,
.stage.step-2 #cardCreate,
.stage.step-2 #cardInvite,
.stage.step-2 .invite-card,
.stage.step-2 .card-travel-create-invite {
  display: none !important;
  animation: none !important;
}

.scene-panel:has(.stage.step-2) .scene-header,
.scene-panel:has(.stage.step-2) .scene-title,
.scene-panel:has(.stage.step-2) .scene-subtitle {
  position: relative;
  z-index: 5;
}

/* Bazont6V: P02-1 only — approved background image replaces old buyer-create visuals. */
.stage.step-1 {
  position: relative;
  background-image: url('/static/images/p02-1-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.stage.step-1 .actor-buyer,
.stage.step-1 .actor-seller,
.stage.step-1 .actor-platform,
.stage.step-1 .arrow,
.stage.step-1 #cardCreate,
.stage.step-1 .create-card {
  display: none !important;
  animation: none !important;
}

.scene-panel:has(.stage.step-1) .scene-header,
.scene-panel:has(.stage.step-1) .scene-title,
.scene-panel:has(.stage.step-1) .scene-subtitle {
  position: relative;
  z-index: 5;
}

/* Bazont6Y: P02-6 only — approved background image replaces old payment-release visuals and disables moving funds. */
.stage.step-6 {
  position: relative;
  background-image: url('/static/images/p02-6-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.stage.step-6 .actor-buyer,
.stage.step-6 .actor-seller,
.stage.step-6 .actor-platform,
.stage.step-6 .lane-money,
.stage.step-6 .money-chip,
.stage.step-6 #moneyChip,
.stage.step-6 .funds,
.stage.step-6 .money,
.stage.step-6 .card,
.stage.step-6 #cardRelease,
.stage.step-6 .release-card,
.stage.step-6 .moving-chip,
.stage.step-6 [class*="move-"] {
  display: none !important;
  animation: none !important;
  transition: none !important;
}

.scene-panel:has(.stage.step-6) .scene-header,
.scene-panel:has(.stage.step-6) .scene-title,
.scene-panel:has(.stage.step-6) .scene-subtitle {
  position: relative;
  z-index: 5;
}

/* BUILD 7S: isolated screen-fit only for animation Pages 3,4,5,6,8. Page 7/step 5 intentionally excluded. */
body.fit-step-page .app-shell {
  padding-top: 8px;
  padding-bottom: 8px;
  overflow-y: hidden;
}
body.fit-step-page .topbar { margin-bottom: 7px; }
body.fit-step-page .progress-wrap { margin-bottom: 7px; }
body.fit-step-page .scene-grid { gap: 12px; }
body.fit-step-page .scene-panel,
body.fit-step-page .info-panel { border-radius: 22px; }
body.fit-step-page .scene-panel { padding: 13px; }
body.fit-step-page .info-panel { padding: 13px; gap: 8px; }
body.fit-step-page .scene-header { margin-bottom: 7px; }
body.fit-step-page .scene-title { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 2px; }
body.fit-step-page .scene-subtitle { font-size: 16px; }
body.fit-step-page .stage { min-height: clamp(500px, calc(100vh - 212px), 620px); }
body.fit-step-page .caption-box { padding: 12px 14px; font-size: 16px; line-height: 1.25; }
body.fit-step-page .step-list { gap: 7px; }
body.fit-step-page .step-item { padding: 9px 11px; font-size: 15px; border-radius: 14px; }
body.fit-step-page .step-item span { width: 26px; height: 26px; }
body.fit-step-page .controls { gap: 8px; }
body.fit-step-page .primary-btn,
body.fit-step-page .ghost-btn { padding: 11px 18px; font-size: 17px; }

/* Build 7W: align B icon to two-line header text block only. */
.header-icon {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* Bazont7Z header source unification aliases */
.header-left { display: flex; align-items: center; gap: 10px; }
.header-title { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.logo-b { height: 48px; width: auto; object-fit: contain; border-radius: 6px; }



/* Bazont22L - Pages 4-9: keep right panel visually identical to Page 8 */
body.fit-step-page .info-panel {
  padding: 18px !important;
  gap: 12px !important;
  border-radius: 26px !important;
}

body.fit-step-page .info-panel .caption-box {
  padding: 16px !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
}

body.fit-step-page .info-panel .step-list {
  gap: 10px !important;
}

body.fit-step-page .info-panel .step-item {
  padding: 12px 14px !important;
  font-size: 16px !important;
  border-radius: 16px !important;
}

body.fit-step-page .info-panel .step-item > span {
  width: 30px !important;
  height: 30px !important;
}

body.fit-step-page .info-panel .controls {
  gap: 12px !important;
}

body.fit-step-page .info-panel .primary-btn,
body.fit-step-page .info-panel .ghost-btn {
  padding: 12px 22px !important;
  font-size: 18px !important;
}

