/* ----- Mobile App Builder visual: phone + drag-and-drop + theme cycler ----- */
@property --accent-1 {
  syntax: '<color>';
  initial-value: #3A50BF;
  inherits: true;
}
@property --accent-2 {
  syntax: '<color>';
  initial-value: #29ADB2;
  inherits: true;
}
@property --on-accent {
  syntax: '<color>';
  initial-value: #ffffff;
  inherits: true;
}

.app-card__visual--builder {
  min-height: 600px;
}

.builder-stage {
  display: flex;
  align-items: center;
  gap: 26px;
  position: relative;
  isolation: isolate;
}
/* Soft halo behind the whole stage — adds presence without competing focal points */
.builder-stage::before {
  content: '';
  position: absolute;
  inset: -60px -40px;
  background:
    radial-gradient(ellipse 60% 65% at 75% 50%, rgba(58, 80, 191, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 25% 50%, rgba(41, 173, 178, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.builder-side {
  position: relative;
  width: 248px;
  min-height: 400px;
  flex-shrink: 0;
  transition: opacity 420ms cubic-bezier(0.65, 0, 0.35, 1),
              transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.builder-cards-stack,
.builder-themes,
.builder-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.builder-cards-stack {
  gap: 8px;
  opacity: 1;
}
.builder-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.builder-add-section {
  margin-top: 6px;
  border: 1px dashed rgba(10, 22, 56, 0.14);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: #9aa3b8;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.builder-add-section:hover {
  border-color: rgba(58, 80, 191, 0.35);
  color: #3A50BF;
}
.builder-themes,
.builder-info {
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
}

/* phase: drag (default) — cards visible */
.builder-stage[data-phase="theme"] .builder-cards-stack {
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
}
.builder-stage[data-phase="theme"] .builder-themes {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* phase: wishlist / notify / filter — side panel shows the feature focus info card */
.builder-stage[data-phase="wishlist"] .builder-cards-stack,
.builder-stage[data-phase="notify"] .builder-cards-stack,
.builder-stage[data-phase="filter"] .builder-cards-stack {
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
}
.builder-stage[data-phase="wishlist"] .builder-info,
.builder-stage[data-phase="notify"] .builder-info,
.builder-stage[data-phase="filter"] .builder-info {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ---- Theme library cards ---- */
.bthemes__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bthemes__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e6e7eb;
}
.bthemes__grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.btheme {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 12px -8px rgba(10, 22, 56, 0.10);
  cursor: default;
  text-align: left;
  font: inherit;
  color: inherit;
  position: relative;
  /* Match phone screen's 700ms color transitions so left + right finish in lockstep */
  transition: border-color 700ms cubic-bezier(0.65, 0, 0.35, 1),
              box-shadow 700ms cubic-bezier(0.65, 0, 0.35, 1),
              background-color 700ms cubic-bezier(0.65, 0, 0.35, 1),
              transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}
.btheme.is-active {
  border-color: #3A50BF;
  background: #f8faff;
  box-shadow: 0 0 0 1px rgba(58, 80, 191, 0.18), 0 8px 18px -10px rgba(58, 80, 191, 0.28);
  transform: translateX(2px);
}
/* Active-dot: rendered on every card but invisible by default — opacity fades on the
   same 700ms curve so it doesn't pop in faster than the border highlight. */
.btheme::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3A50BF;
  box-shadow: 0 0 0 3px rgba(58, 80, 191, 0.18);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 700ms cubic-bezier(0.65, 0, 0.35, 1),
              transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.btheme.is-active::after {
  opacity: 1;
  transform: scale(1);
}
.btheme__swatches {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.btheme__swatches span {
  width: 12px;
  height: 22px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.btheme__swatches span:first-child { border-radius: 4px 2px 2px 4px; }
.btheme__swatches span:last-child  { border-radius: 2px 4px 4px 2px; }
.btheme__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.btheme__name {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.btheme__sub {
  font-size: 9.5px;
  color: #888;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.bthemes__sync {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 12px -8px rgba(10, 22, 56, 0.10);
  font-size: 9.5px;
  color: #6b7280;
  letter-spacing: 0.04em;
}
.bthemes__pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}
.bthemes__pulse-dot {
  position: absolute;
  inset: 0;
  background: #22a45d;
  border-radius: 50%;
  z-index: 2;
}
.bthemes__pulse-ring {
  position: absolute;
  inset: 0;
  background: #22a45d;
  border-radius: 50%;
  animation: bthemePulse 2s ease-out infinite;
}
@keyframes bthemePulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3.4); opacity: 0; }
}
.bthemes__sync-divider { color: #d1d5db; }
.bthemes__sync-value {
  color: #111;
  font-weight: 700;
  letter-spacing: 0;
}
.bthemes__sync-platforms { color: #6b7280; }

.bthemes__now {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 12px -8px rgba(10, 22, 56, 0.10);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.bthemes__now-value {
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #111;
}

/* ===== Feature focus panel (wishlist / notify / filter) ===== */
.builder-info {
  padding: 4px 2px;
}
.binfo__eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.binfo__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e6e7eb;
}
.binfo__title {
  font-family: var(--font-display, inherit);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 10px;
}
.binfo__title em {
  font-style: normal;
  background: linear-gradient(135deg, #3A50BF 0%, #29ADB2 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.binfo__desc {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 18px;
}
.binfo__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.binfo__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}
.binfo__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 80, 191, 0.12) 0%, rgba(41, 173, 178, 0.12) 100%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10' fill='%233A50BF' fill-opacity='0.12'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='%233A50BF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 2px;
}
.binfo__stat {
  margin-top: 20px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 14px -8px rgba(10, 22, 56, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #4b5563;
}
.binfo__stat-num {
  font-size: 16px;
  font-weight: 800;
  color: #3A50BF;
  letter-spacing: -0.02em;
}

/* ===== Notify phase — Broadcast Composer (real admin UI mirror) ===== */
.bcomp {
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.08);
  border-radius: 14px;
  padding: 12px 13px 13px;
  box-shadow: 0 6px 18px -12px rgba(10, 22, 56, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bcomp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f4;
}
.bcomp__title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}
.bcomp__pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3A50BF;
  background: rgba(58, 80, 191, 0.08);
  padding: 3px 7px;
  border-radius: 999px;
}
.bcomp__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bcomp__label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.01em;
}
.bcomp__radios {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bcomp__radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  color: #4b5563;
  padding: 4px 8px 4px 6px;
  border: 1px solid #e6e7eb;
  border-radius: 999px;
  background: #fafbfc;
  transition: all 280ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bcomp__radio i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #c8ccd4;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: all 220ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bcomp__radio.is-on {
  background: rgba(58, 80, 191, 0.07);
  border-color: rgba(58, 80, 191, 0.35);
  color: #1f2937;
}
.bcomp__radio.is-on i {
  border-color: #3A50BF;
  background: #3A50BF;
  box-shadow: inset 0 0 0 2px #fff;
}
.bcomp__input {
  position: relative;
  min-height: 26px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #111;
  background: #fafbfc;
  border: 1px solid #e6e7eb;
  border-radius: 8px;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  white-space: pre-wrap;
  word-break: break-word;
}
.bcomp__input--multi {
  min-height: 42px;
}
.bcomp__input.is-focus {
  background: #fff;
  border-color: rgba(58, 80, 191, 0.45);
  box-shadow: 0 0 0 3px rgba(58, 80, 191, 0.10);
}
.bcomp__caret {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: #3A50BF;
  vertical-align: text-bottom;
  margin-left: 1px;
  opacity: 0;
  transition: opacity 120ms;
}
.bcomp__input.is-focus .bcomp__caret {
  opacity: 1;
  animation: bcompCaret 900ms steps(2) infinite;
}
@keyframes bcompCaret {
  50% { opacity: 0; }
}
.bcomp__btn {
  margin-top: 2px;
  padding: 9px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3A50BF 0%, #29ADB2 100%);
  border: none;
  border-radius: 10px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.55;
  filter: saturate(0.7);
  transition: all 260ms cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.bcomp__btn.is-ready {
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 6px 16px -8px rgba(58, 80, 191, 0.55);
}
.bcomp__btn.is-pressing {
  transform: scale(0.97);
  box-shadow: 0 2px 6px -4px rgba(58, 80, 191, 0.5);
}
.bcomp__btn.is-sending {
  opacity: 1;
  filter: saturate(1);
}
.bcomp__btn.is-sending::after {
  content: '';
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bcompSpin 700ms linear infinite;
  margin-left: 2px;
}
@keyframes bcompSpin { to { transform: rotate(360deg); } }
.bcomp__btn.is-sent {
  background: #16a34a;
  filter: none;
  opacity: 1;
}
.bcomp__log {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid #eef0f4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bcomp__log.is-on {
  opacity: 1;
  transform: none;
}
.bcomp__log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}
.bcomp__log-count b {
  color: #111;
  font-weight: 700;
}
.bcomp__log-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bcomp__log-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #4b5563;
  padding: 5px 7px;
  background: #fafbfc;
  border: 1px solid #eef0f4;
  border-radius: 7px;
  opacity: 0;
  transform: translateX(-6px);
  animation: bcompRowIn 380ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bcompRowIn {
  to { opacity: 1; transform: none; }
}
.bcomp__log-row b {
  color: #111;
  font-weight: 600;
}
.bcomp__log-check {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bcomp__log-time {
  margin-left: auto;
  font-size: 9.5px;
  color: #9aa3b8;
}
@media (prefers-reduced-motion: reduce) {
  .bcomp__caret { animation: none; }
  .bcomp__btn.is-sending::after { animation: none; }
}

/* ===== Wishlist phase — Live Activity Feed ===== */
.bfeed {
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.08);
  border-radius: 14px;
  padding: 12px 13px 12px;
  box-shadow: 0 6px 18px -12px rgba(10, 22, 56, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bfeed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f4;
}
.bfeed__title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}
.bfeed__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8192c;
  background: rgba(232, 25, 44, 0.08);
  padding: 3px 7px 3px 6px;
  border-radius: 999px;
}
.bfeed__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8192c;
  position: relative;
  box-shadow: 0 0 0 0 rgba(232, 25, 44, 0.4);
  animation: bfeedPulse 1600ms ease-out infinite;
}
@keyframes bfeedPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 25, 44, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(232, 25, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 25, 44, 0); }
}
.bfeed__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 168px;
}
.bfeed__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #eef0f4;
  background: #fafbfc;
  border-radius: 9px;
  font-size: 10.5px;
  color: #4b5563;
  line-height: 1.3;
  transform-origin: top center;
}
.bfeed__row.is-new {
  animation: bfeedRowSlide 460ms cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(58, 80, 191, 0.04);
  border-color: rgba(58, 80, 191, 0.18);
}
@keyframes bfeedRowSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.bfeed__row.is-fading {
  animation: bfeedFadeBg 1400ms ease-out forwards;
}
@keyframes bfeedFadeBg {
  to { background: #fafbfc; border-color: #eef0f4; }
}
.bfeed__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.bfeed__row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bfeed__row-text b {
  color: #111;
  font-weight: 600;
}
.bfeed__row-product {
  font-size: 9.5px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bfeed__row-heart {
  color: #e8192c;
  font-size: 11px;
  flex-shrink: 0;
}
.bfeed__row-time {
  font-size: 9px;
  color: #9aa3b8;
  flex-shrink: 0;
  margin-left: 2px;
}
.bfeed__stat {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #eef0f4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bfeed__stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10.5px;
  color: #4b5563;
}
.bfeed__stat-row--sub {
  font-size: 9.5px;
  color: #9aa3b8;
}
.bfeed__stat-label {
  font-weight: 600;
  color: #4b5563;
}
.bfeed__stat-num {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1), color 280ms ease;
}
.bfeed__stat-num.is-pop {
  transform: scale(1.12);
  color: #3A50BF;
}
.bfeed__stat-up {
  color: #16a34a;
  font-weight: 700;
}
.bfeed__stat-bar {
  height: 4px;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
}
.bfeed__stat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3A50BF 0%, #29ADB2 100%);
  width: 0;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Filter phase — Usage Insights chart ===== */
.binsight {
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.08);
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: 0 6px 18px -12px rgba(10, 22, 56, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.binsight__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f4;
}
.binsight__title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}
.binsight__window {
  font-size: 9.5px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f7;
  padding: 3px 7px;
  border-radius: 999px;
}
.binsight__bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.binsight__bar {
  display: grid;
  grid-template-columns: 78px 1fr 32px;
  align-items: center;
  gap: 8px;
  transition: opacity 280ms ease;
}
.binsight__bar-label {
  font-size: 10.5px;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 280ms ease, font-weight 280ms ease;
}
.binsight__bar-track {
  height: 6px;
  border-radius: 999px;
  background: #eef0f4;
  overflow: hidden;
  position: relative;
}
.binsight__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
  background: linear-gradient(90deg, #3A50BF 0%, #29ADB2 100%);
  transition: width 750ms cubic-bezier(0.22, 1, 0.36, 1);
}
.binsight__bar-pct {
  font-size: 10px;
  font-weight: 700;
  color: #111;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 280ms ease;
}
.binsight__bar.is-active .binsight__bar-label {
  color: #111;
  font-weight: 700;
}
.binsight__bar.is-active .binsight__bar-pct {
  color: #3A50BF;
}
.binsight__bar.is-active .binsight__bar-track {
  background: rgba(58, 80, 191, 0.10);
  box-shadow: 0 0 0 2px rgba(58, 80, 191, 0.10);
}
.binsight__stats {
  padding-top: 10px;
  border-top: 1px solid #eef0f4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.binsight__stat {
  padding: 8px 10px;
  background: #fafbfc;
  border: 1px solid #eef0f4;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.binsight__stat-num {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  transition: color 280ms ease, transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.binsight__stat-num.is-pop {
  color: #3A50BF;
  transform: scale(1.08);
}
.binsight__stat-num--up {
  color: #16a34a;
}
.binsight__stat-label {
  font-size: 9px;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bcard {
  background: #fff;
  border: 1px solid rgba(10, 22, 56, 0.07);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  cursor: grab;
  will-change: transform;
  transition: box-shadow 0.2s, opacity 0.2s, transform 0.2s, border-color 0.2s;
}
.bcard:hover {
  border-color: rgba(58, 80, 191, 0.16);
}
.bcard__handle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 1px;
  flex-shrink: 0;
  opacity: 0.25;
  transition: opacity 0.2s ease;
}
.bcard:hover .bcard__handle { opacity: 0.5; }
.bcard__handle span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #555;
}
.bcard__info { flex: 1; min-width: 0; }
.bcard__title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.bcard__desc {
  font-size: 11px;
  color: #8a93aa;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.builder-phone {
  --phone-glow: rgba(58, 80, 191, 0.22);
  width: 248px;
  height: 506px;
  background: #1c1c1e;
  border-radius: 42px;
  padding: 5px;
  box-shadow:
    0 0 0 2px #2a2a2c,
    0 0 0 3px #444,
    0 35px 70px -10px rgba(0, 0, 0, 0.45),
    0 15px 35px -10px rgba(0, 0, 0, 0.30),
    0 60px 120px -30px var(--phone-glow);
  position: relative;
  flex-shrink: 0;
  transition:
    box-shadow 800ms cubic-bezier(0.65, 0, 0.35, 1),
    transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}
.builder-phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 20;
}
.builder-phone::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 96px;
  width: 3px;
  height: 32px;
  background: #2a2a2c;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 46px 0 #2a2a2c, 0 96px 0 #2a2a2c;
}
.builder-phone::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 130px;
  width: 3px;
  height: 60px;
  background: #2a2a2c;
  border-radius: 0 2px 2px 0;
}

.builder-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;

  /* default theme — Ivory (matches Theme.html) */
  --bg: #FAF6F0;
  --surface: #ffffff;
  --surface-alt: #F0EADF;
  --text: #2C2620;
  --text-muted: #8B7F70;
  --accent-1: #C9A961;
  --accent-2: #E8DBAF;
  --on-accent: #FAF6F0;
  --primary: #2C2620;
  --on-primary: #FAF6F0;
  --accent: #C9A961;
  --border-soft: rgba(44, 38, 32, 0.08);
  --logo-a: #2C2620;
  --logo-b: #C9A961;

  background: var(--bg);
  transition:
    background-color 700ms cubic-bezier(0.65, 0, 0.35, 1),
    --accent-1 700ms cubic-bezier(0.65, 0, 0.35, 1),
    --accent-2 700ms cubic-bezier(0.65, 0, 0.35, 1),
    --on-accent 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.builder-phone__screen[data-theme="blush"] {
  --bg: #FBEDEA;
  --surface: #ffffff;
  --surface-alt: #F7DAD3;
  --text: #3D1F1F;
  --text-muted: #A87878;
  --accent-1: #D4727F;
  --accent-2: #E89AA3;
  --on-accent: #ffffff;
  --primary: #B8455C;
  --on-primary: #ffffff;
  --accent: #D4727F;
  --border-soft: rgba(61, 31, 31, 0.08);
  --logo-a: #B8455C;
  --logo-b: #E89AA3;
}
.builder-phone__screen[data-theme="sage"] {
  --bg: #ECF1E6;
  --surface: #ffffff;
  --surface-alt: #D8E3CC;
  --text: #1F2D24;
  --text-muted: #7A8A7C;
  --accent-1: #5E8C61;
  --accent-2: #7BAE7E;
  --on-accent: #ffffff;
  --primary: #2D4030;
  --on-primary: #ECF1E6;
  --accent: #5E8C61;
  --border-soft: rgba(31, 45, 36, 0.08);
  --logo-a: #2D4030;
  --logo-b: #7BAE7E;
}
.builder-phone__screen[data-theme="midnight"] {
  --bg: #0F1117;
  --surface: #1A1C24;
  --surface-alt: #25282F;
  --text: #F0EEE8;
  --text-muted: #7A7D88;
  --accent-1: #C9B888;
  --accent-2: #E8DBAF;
  --on-accent: #0F1117;
  --primary: #C9B888;
  --on-primary: #0F1117;
  --accent: #C9B888;
  --border-soft: rgba(240, 238, 232, 0.08);
  --logo-a: #C9B888;
  --logo-b: #E8DBAF;
}
.builder-phone__screen[data-theme="lavender"] {
  --bg: #F0EDF7;
  --surface: #ffffff;
  --surface-alt: #DFD8EF;
  --text: #251F35;
  --text-muted: #7A7595;
  --accent-1: #7B6CA8;
  --accent-2: #9F8FCD;
  --on-accent: #ffffff;
  --primary: #4A3D6E;
  --on-primary: #F0EDF7;
  --accent: #7B6CA8;
  --border-soft: rgba(37, 31, 53, 0.08);
  --logo-a: #4A3D6E;
  --logo-b: #9F8FCD;
}

/* Smooth theme-wide color transitions on every descendant */
.builder-phone__screen *,
.builder-phone__screen *::before,
.builder-phone__screen *::after {
  transition:
    background-color 700ms cubic-bezier(0.65, 0, 0.35, 1),
    color 700ms cubic-bezier(0.65, 0, 0.35, 1),
    border-color 700ms cubic-bezier(0.65, 0, 0.35, 1),
    fill 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.builder-phone__statusbar {
  flex-shrink: 0;
  height: 36px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}
.builder-phone__icons {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--text);
}
.builder-phone__bt {
  width: 7px;
  height: 11px;
  display: block;
}
.builder-phone__signal-stack {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}
.builder-phone__5g {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  align-self: flex-start;
  margin-top: 1px;
  color: var(--text);
}
.builder-phone__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.2px;
  height: 9px;
}
.builder-phone__bars i {
  width: 2.5px;
  background: currentColor;
  border-radius: 0.5px;
  display: inline-block;
}
.builder-phone__bars i:nth-child(1) { height: 3px; }
.builder-phone__bars i:nth-child(2) { height: 4.5px; }
.builder-phone__bars i:nth-child(3) { height: 6.5px; }
.builder-phone__bars i:nth-child(4) { height: 9px; }
.builder-phone__battery-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 1px;
}
.builder-phone__battery-pct {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.builder-phone__battery {
  position: relative;
  width: 20px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2.5px;
  opacity: 0.5;
  display: inline-block;
}
.builder-phone__battery::after {
  content: '';
  position: absolute;
  right: -2.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.builder-phone__battery::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  width: calc(94% - 2px);
  background: currentColor;
  border-radius: 1px;
}

.builder-phone__home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3.5px;
  background: var(--text);
  opacity: 0.35;
  border-radius: 2px;
  z-index: 12;
  pointer-events: none;
}
.builder-phone__topnav {
  flex-shrink: 0;
  background: #fff;
  padding: 8px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid #eee;
  color: var(--text);
}
.builder-phone__topnav-icon {
  display: inline-flex;
  position: relative;
  color: #555;
}
.builder-phone__topnav-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.builder-phone__topnav-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.builder-phone__sections {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  background: var(--bg);
  position: relative;
  scrollbar-width: none;
}
.builder-phone__sections::-webkit-scrollbar { display: none; }
.builder-phone__bottomnav {
  flex-shrink: 0;
  background: #fff;
  border-top: 0.5px solid #eee;
  padding: 6px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.builder-phone__bnav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: #999;
}
.builder-phone__bnav small {
  font-size: 8px;
  font-weight: 500;
}
.builder-phone__bnav.is-active { color: #111; }
.builder-phone__bnav svg { width: 18px; height: 18px; }

/* Each draggable section in the phone */
.psec {
  flex-shrink: 0;
  margin: 0 6px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  will-change: transform;
  position: relative;
}
.psec--rotating {
  background: #000;
  position: relative;
  padding: 0;
  color: var(--on-accent);
}

/* ===== Real-screenshot blocks inside .psec ===== */
.auto-slider {
  position: relative;
  width: 100%;
  height: 135px;
  overflow: hidden;
  background: #000;
  border-radius: 10px;
}
.auto-slider .slider-track {
  display: flex;
  width: 400%;
  height: 100%;
  animation: autoSlide 9s infinite cubic-bezier(0.45, 0, 0.55, 1);
}
.auto-slider .slider-track img {
  width: 25%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
@keyframes autoSlide {
  0%, 22%   { transform: translateX(0%); }
  25%, 47%  { transform: translateX(-25%); }
  50%, 72%  { transform: translateX(-50%); }
  75%, 97%  { transform: translateX(-75%); }
  100%      { transform: translateX(-100%); }
}
.auto-slider .slider-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
}
.auto-slider .slider-dots span {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}
.auto-slider .slider-dots span:nth-child(1) { animation: ps-dot1 9s infinite; }
.auto-slider .slider-dots span:nth-child(2) { animation: ps-dot2 9s infinite; }
.auto-slider .slider-dots span:nth-child(3) { animation: ps-dot3 9s infinite; }
@keyframes ps-dot1 { 0%,22%,100%{background:#fff;width:18px;} 25%,97%{background:rgba(255,255,255,0.4);width:14px;} }
@keyframes ps-dot2 { 0%,22%,50%,100%{background:rgba(255,255,255,0.4);width:14px;} 25%,47%{background:#fff;width:18px;} }
@keyframes ps-dot3 { 0%,47%,75%,100%{background:rgba(255,255,255,0.4);width:14px;} 50%,72%{background:#fff;width:18px;} }

.coll-img-block,
.banner-img-block,
.prod-img-block {
  background: var(--surface);
  border-radius: inherit;
  overflow: hidden;
}
.coll-img-block img,
.banner-img-block img,
.prod-img-block img {
  width: 100%;
  height: auto;
  display: block;
}

.video-block {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 10px;
  height: 58px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.video-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.2), transparent 50%);
}
.video-block .play-pulse {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ps-pulseRing 2s infinite ease-out;
  z-index: 2;
}
.video-block .play-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: ps-pulseExpand 2s infinite ease-out;
}
@keyframes ps-pulseRing   { 0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,0.6);} 50%{box-shadow:0 0 0 6px rgba(255,255,255,0);} }
@keyframes ps-pulseExpand { 0%{transform:scale(1);opacity:1;} 100%{transform:scale(1.8);opacity:0;} }
.video-block .video-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  z-index: 2;
}
.psec--rotating .ps-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.psec--rotating .ps-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-top: 4px;
}
.psec--rotating .ps-cta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--on-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-accent) 40%, transparent);
  border-radius: 999px;
}
.psec--rotating .ps-dots {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: flex;
  gap: 4px;
}
.psec--rotating .ps-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on-accent) 45%, transparent);
}
.psec--rotating .ps-dots span:first-child {
  background: var(--on-accent);
  width: 14px;
  border-radius: 3px;
}

.psec--collection {
  padding: 0;
  background: var(--surface);
}
.psec--collection .ps-mini-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.psec--collection .ps-pills {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.psec--collection .ps-pills span {
  flex: 1;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-alt);
}

.psec--banner {
  background: var(--surface);
  padding: 0;
  color: var(--on-accent);
  position: relative;
}
.psec--banner .ps-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.psec--banner .ps-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--on-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-accent) 40%, transparent);
  border-radius: 999px;
}

.psec--product {
  padding: 0;
  background: var(--surface);
}
.psec--product .ps-mini-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.psec--product .ps-tiles {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.psec--product .ps-tiles span {
  flex: 1;
  height: 52px;
  border-radius: 6px;
  background: var(--surface-alt);
}

.psec--video {
  background: transparent;
  padding: 0;
}
.psec--video .ps-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}
.psec--video .ps-play svg { width: 10px; height: 12px; fill: #1a1a2e; }

/* keyframes used after drop to nudge fresh section render */
@keyframes psecSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Wishlist phase: product detail overlay inside the phone ===== */
.phone-wishlist {
  position: absolute;
  inset: 36px 0 0 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 380ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    transform 380ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  z-index: 5;
}
.builder-stage[data-phase="wishlist"] .phone-wishlist {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  /* delay fade-in until phone is mostly centered */
  transition:
    opacity 420ms cubic-bezier(0.4, 0, 0.2, 1) 320ms,
    transform 420ms cubic-bezier(0.4, 0, 0.2, 1) 320ms;
}
.builder-stage[data-phase="wishlist"] .builder-phone__sections {
  opacity: 0;
  transition: opacity 280ms ease;
}

/* Wishlist phase uses neutral shopping-app colors regardless of phone theme */
.phone-wishlist {
  background: #f5f5f0;
  color: #111;
}

/* Top nav: back / heart / share */
.pw-topnav {
  flex-shrink: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #f5f5f0;
}
.pw-back {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: #111;
  line-height: 1;
}
.pw-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.pw-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.2px solid #ddd;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  padding: 0;
  overflow: visible;
  color: #111;
}
.pw-nav-btn svg {
  width: 13px;
  height: 13px;
}
.pw-heart-svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #111;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.25s ease, stroke 0.25s ease;
}
.pw-nav-btn.is-liked .pw-heart-svg {
  fill: #e8192c;
  stroke: #e8192c;
  animation: pwHeartPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pwHeartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}

.pw-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.pw-bp {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* Scrollable content */
.pw-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.pw-content::-webkit-scrollbar { display: none; }

.pw-image {
  width: 100%;
  height: 213px;
  background: #f0ece6;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.pw-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pw-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 0 5px;
  background: #f5f5f0;
}
.pw-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
}
.pw-dot.is-active {
  background: #111;
  width: 12px;
  border-radius: 3px;
}

.pw-details {
  background: #fff;
  padding: 11px 11px 0;
}
.pw-name {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.pw-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1px;
}
.pw-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
}
.pw-price-orig {
  font-size: 10px;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 5px;
  font-weight: 400;
}
.pw-in-stock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: #22a45d;
}
.pw-in-stock::before {
  content: '✓';
  font-size: 9px;
  font-weight: 700;
}
.pw-price-note {
  font-size: 8px;
  color: #888;
  margin-bottom: 5px;
}
.pw-size-guide {
  display: block;
  font-size: 8.5px;
  color: #333;
  text-decoration: underline;
  margin-bottom: 9px;
  cursor: pointer;
}
.pw-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0 -11px;
}
.pw-size-section {
  padding: 10px 0 6px;
}
.pw-size-label {
  font-size: 10px;
  font-weight: 700;
  color: #111;
  margin-bottom: 7px;
}
.pw-sizes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.pw-chip {
  width: 36px;
  height: 25px;
  border-radius: 6px;
  border: 1.2px solid #ddd;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  color: #444;
}
.pw-chip.is-active {
  border-color: #111;
  background: #fff;
  font-weight: 700;
  color: #111;
}
.pw-chip--unavailable {
  color: #ccc;
  border-color: #eee;
  text-decoration: line-through;
}

/* Bottom CTA bar */
.pw-bottom-bar {
  flex-shrink: 0;
  display: flex;
  gap: 7px;
  padding: 7px 10px 14px;
  background: #fff;
  border-top: 1px solid #eee;
}
.pw-buy,
.pw-bag {
  flex: 1;
  height: 34px;
  border-radius: 17px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.2px;
  border: none;
}
.pw-buy {
  background: #111;
  color: #fff;
}
.pw-bag {
  background: #fff;
  color: #111;
  border: 1.2px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 600;
}
.pw-bag svg { width: 11px; height: 11px; }

/* ===== Wishlist confirmation sheet (slides up over the entire wishlist phase) ===== */
.pw-sheet {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  z-index: 10;
}
.pw-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pw-sheet-card {
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 0 0 16px;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.32, 1.2, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.pw-sheet.is-open .pw-sheet-card {
  transform: translateY(0);
}
.pw-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.pw-cf {
  position: absolute;
  top: -10px;
  opacity: 0;
  border-radius: 2px;
}
@keyframes pwCfFall {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(180px) rotate(720deg); }
}
.pw-sheet-handle {
  width: 25px;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  margin: 8px auto 0;
}

.pw-sheet-heart-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 19px 0 8px;
  height: 70px;
}
.pw-ring {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.6px solid rgba(232, 25, 44, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.pw-sheet.is-open .pw-ring {
  animation: pwRingPulse 1.6s ease-in-out infinite;
}
.pw-ring--2 {
  width: 76px;
  height: 76px;
  border-color: rgba(232, 25, 44, 0.1);
}
.pw-sheet.is-open .pw-ring--2 {
  animation-delay: 0.4s;
}
@keyframes pwRingPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.2; }
}
.pw-sheet-heart-svg {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  filter: drop-shadow(0 3px 9px rgba(232, 25, 44, 0.35));
}
.pw-sheet.is-open .pw-sheet-heart-svg {
  animation: pwBigHeartIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}
@keyframes pwBigHeartIn {
  0%   { opacity: 0; transform: scale(0) rotate(-20deg); }
  60%  { opacity: 1; transform: scale(1.18) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.pw-mh {
  position: absolute;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
}
.pw-sheet.is-open .pw-mh {
  animation: pwMhFloat var(--d) ease-out var(--dl) forwards;
}
@keyframes pwMhFloat {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), -45px) scale(1.1); }
}

.pw-sheet-product {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
  opacity: 0;
  transform: translateY(6px);
}
.pw-sheet.is-open .pw-sheet-product {
  animation: pwFadeUp 0.35s ease 0.32s forwards;
}
.pw-sheet-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f0ece6;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.pw-sheet-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.pw-sheet-product-info { min-width: 0; }
.pw-sheet-product-name {
  font-size: 10px;
  font-weight: 600;
  color: #111;
  margin-bottom: 1px;
}
.pw-sheet-product-price {
  font-size: 9px;
  color: #888;
}

.pw-sheet-text {
  text-align: center;
  padding: 0 16px 14px;
}
.pw-sheet-title {
  font-size: 12px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(6px);
}
.pw-sheet.is-open .pw-sheet-title {
  animation: pwFadeUp 0.35s ease 0.38s forwards;
}
.pw-sheet-sub {
  font-size: 9px;
  color: #888;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
}
.pw-sheet.is-open .pw-sheet-sub {
  animation: pwFadeUp 0.35s ease 0.48s forwards;
}

.pw-sheet-btns {
  display: flex;
  gap: 7px;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(6px);
}
.pw-sheet.is-open .pw-sheet-btns {
  animation: pwFadeUp 0.35s ease 0.56s forwards;
}
.pw-sheet-btn-secondary,
.pw-sheet-btn-primary {
  height: 32px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 9px;
  cursor: pointer;
  border: none;
}
.pw-sheet-btn-secondary {
  flex: 1;
  border: 1.2px solid #eee;
  background: #fff;
  font-weight: 600;
  color: #555;
}
.pw-sheet-btn-primary {
  flex: 1.3;
  background: #e8192c;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 3px 10px rgba(232, 25, 44, 0.3);
}

@keyframes pwFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Theme phase: themed shopping-app preview (mirrors Theme.html) ===== */
.phone-theme {
  position: absolute;
  inset: 36px 0 0 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Reserve space at the bottom for the absolutely-positioned tab-bar so content above never collides with it */
  padding-bottom: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}
.builder-stage[data-phase="theme"] .phone-theme {
  opacity: 1;
  pointer-events: auto;
}
/* Hide drag-phase chrome during theme phase */
.builder-stage[data-phase="theme"] .builder-phone__topnav,
.builder-stage[data-phase="theme"] .builder-phone__sections,
.builder-stage[data-phase="theme"] .builder-phone__bottomnav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
/* During theme phase, statusbar bg blends with the theme */
.builder-stage[data-phase="theme"] .builder-phone__statusbar {
  background: var(--bg);
}

.pt-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 6px;
  color: var(--text);
  flex-shrink: 0;
}
.pt-icon-btn {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.pt-icon-btn svg { width: 18px; height: 18px; }
.pt-brand-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--logo-a) 0%, var(--logo-b) 100%);
  -webkit-mask-image: var(--logo-mask);
          mask-image: var(--logo-mask);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  flex-shrink: 0;
}

.pt-hero {
  margin: 4px 0 10px;
  position: relative;
  height: 175px;
  background-size: cover;
  background-position: center 65%;
  flex-shrink: 0;
  isolation: isolate;
}
.pt-hero-content {
  position: absolute;
  inset: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 18px;
  text-align: center;
  z-index: 3;
  height: max-content;
  bottom: auto;
}
.pt-hero-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.pt-hero-subtitle {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pt-hero-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
/* On midnight, the hero photo is bright — keep title/subtitle dark for contrast */
.builder-phone__screen[data-theme="midnight"] .pt-hero-title { color: #2C2620; }
.builder-phone__screen[data-theme="midnight"] .pt-hero-subtitle { color: #6B6155; }

.pt-section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 16px 4px;
  flex-shrink: 0;
}
.pt-section-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.pt-see-all {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.pt-trending {
  display: block;
  width: 100%;
  padding: 0 14px 2px;
  flex-shrink: 0;
}
.pt-trending img {
  width: 100%;
  height: auto;
  display: block;
}
.pt-trending-labels {
  padding: 3px 14px 6px;
  flex-shrink: 0;
}
.pt-labels-row {
  position: relative;
  height: 12px;
}
.pt-labels-row span {
  position: absolute;
  top: 0;
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
  transform: translateX(-50%);
}
.pt-labels-row span:nth-child(1) { left: 8.1%; }
.pt-labels-row span:nth-child(2) { left: 31.7%; }
.pt-labels-row span:nth-child(3) { left: 55.3%; }
.pt-labels-row span:nth-child(4) { left: 78.9%; }
.pt-labels-row span:nth-child(5) { left: 97%; }

.pt-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.pt-product-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 5px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pt-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-size: cover;
  background-position: center 20%;
  flex-shrink: 0;
}
.pt-product-info {
  flex: 1;
  min-width: 0;
}
.pt-product-name {
  font-size: 9px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-product-price {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 8.5px;
  color: var(--accent);
  font-weight: 700;
}

.pt-tab-bar {
  /* Pin to the bottom edge of .phone-theme regardless of how tall the scrolling content
     above grows — prevents the bar from being pushed past the phone bezel. */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  z-index: 2;
}
.pt-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
}
.pt-tab.is-active { color: var(--primary); }
.pt-tab svg { width: 16px; height: 16px; }
.pt-tab small { font-size: 7.5px; font-weight: 600; }

/* Theme transitions: smooth color changes across all themed elements */
.phone-theme,
.phone-theme *,
.phone-theme *::before,
.phone-theme *::after {
  transition:
    background-color 700ms cubic-bezier(0.65, 0, 0.35, 1),
    color 700ms cubic-bezier(0.65, 0, 0.35, 1),
    border-color 700ms cubic-bezier(0.65, 0, 0.35, 1),
    fill 700ms cubic-bezier(0.65, 0, 0.35, 1),
    stroke 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== Notify phase: dark lockscreen with Styld push notifications ===== */
.phone-notify {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  z-index: 6;
}
.builder-stage[data-phase="notify"] .phone-notify {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 420ms cubic-bezier(0.4, 0, 0.2, 1) 320ms;
}
.builder-stage[data-phase="notify"] .builder-phone__sections,
.builder-stage[data-phase="notify"] .builder-phone__statusbar {
  opacity: 0;
  transition: opacity 280ms ease;
}

/* Wallpaper — soft dark gradient (no filter:blur — keeps compositor cheap) */
.pn-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 140, 90, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 78% 82%, rgba(120, 70, 180, 0.38) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(60, 50, 110, 0.28) 0%, transparent 60%),
    linear-gradient(165deg, #221830 0%, #14101e 60%, #0a0814 100%);
}
.pn-wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

/* Status bar — Jio / mute / wifi / signal / battery */
.pn-statusbar {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 0;
  font-size: 8.5px;
  color: #fff;
  font-weight: 500;
  z-index: 5;
}
.pn-carrier {
  font-size: 8.5px;
  opacity: 0.9;
  letter-spacing: 0.1px;
}
.pn-statusbar-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}
.pn-status-icon {
  width: 11px;
  height: 11px;
  opacity: 0.9;
}
.pn-battery-pill {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: #fff;
  border-radius: 3px;
  padding: 1px 4px 1px 3px;
  font-size: 8px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}
.pn-battery-pill svg {
  width: 9px;
  height: 9px;
}

/* Time block — top-left */
.pn-time {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  padding: 0 15px;
  color: #fff;
  z-index: 5;
}
.pn-time-big {
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1.5px;
  color: #fff;
}
.pn-time-date {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 400;
  margin-top: 2px;
  color: #fff;
}

/* Gear icon — top-right */
.pn-gear {
  position: absolute;
  right: 13px;
  top: 50px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 6;
}
.pn-gear svg {
  width: 16px;
  height: 16px;
}

/* Quick settings: 6 circular tiles + brightness row */
.pn-qs {
  position: absolute;
  top: 105px;
  left: 10px;
  right: 10px;
  z-index: 5;
}
.pn-qs-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.pn-qs-tile {
  flex: 1;
  aspect-ratio: 1;
  max-width: 30px;
  max-height: 30px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pn-qs-tile.is-active {
  background: rgba(220, 220, 220, 0.82);
}
.pn-qs-tile svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pn-qs-tile.is-active svg { stroke: #333; }

.pn-brightness {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: rgba(220, 220, 220, 0.2);
  border-radius: 16px;
  padding: 5px 8px;
}
.pn-brightness-sun svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #e87a30;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.pn-brightness-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  display: block;
}
.pn-brightness-fill {
  display: block;
  width: 30%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}
.pn-brightness-dots svg {
  width: 11px;
  height: 11px;
}
.pn-brightness-dots svg circle {
  fill: rgba(255, 255, 255, 0.7);
}

/* Notification stack — absolute positions matching reference proportionally */
.pn-stack {
  position: absolute;
  top: 170px;
  left: 10px;
  right: 10px;
  height: 265px;
  z-index: 5;
}
.pn-notif {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(40, 40, 60, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 17px;
  padding: 9px 11px 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translate3d(0, -12px, 0) scale(0.96);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.pn-notif.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.pn-notif:nth-child(1) { top: 0; }
.pn-notif:nth-child(2) { top: 92px; }
.pn-notif:nth-child(3) { top: 184px; }

.pn-notif-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}
.pn-notif-icon {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.pn-notif-icon img {
  width: 17px;
  height: 17px;
  object-fit: cover;
  display: block;
}
.pn-notif-app {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
}
.pn-notif-time {
  margin-left: auto;
  font-size: 8px;
  opacity: 0.6;
}
.pn-notif-title {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.3;
}
.pn-notif-desc {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

/* Bottom buttons */
.pn-bottom-buttons {
  position: absolute;
  bottom: 22px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
}
.pn-bottom-btn {
  background: rgba(40, 40, 55, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 6px 13px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}

/* ===== Filter phase: Men's Collection product filter sheet ===== */
.phone-filter {
  position: absolute;
  inset: 36px 0 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 7;
}
.builder-stage[data-phase="filter"] .phone-filter {
  opacity: 1;
  pointer-events: auto;
}
.builder-stage[data-phase="filter"] .builder-phone__topnav,
.builder-stage[data-phase="filter"] .builder-phone__sections,
.builder-stage[data-phase="filter"] .builder-phone__bottomnav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.builder-stage[data-phase="filter"] .builder-phone__statusbar {
  background: #000;
  color: #fff;
}
.builder-stage[data-phase="filter"] .builder-phone__statusbar .builder-phone__time,
.builder-stage[data-phase="filter"] .builder-phone__statusbar .builder-phone__5g,
.builder-stage[data-phase="filter"] .builder-phone__statusbar .builder-phone__battery-pct {
  color: #fff;
}

.pf-navbar {
  background: #000;
  color: #fff;
  font-size: 10.5px;
  padding: 5px 11px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pf-back {
  color: #c8a060;
  font-size: 14px;
  line-height: 1;
  font-weight: 300;
}
.pf-navtitle {
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.pf-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex-shrink: 0;
  height: 78px;
  overflow: hidden;
  background: #f5f5f5;
}
.pf-preview-img {
  width: 100%;
  height: 100%;
}
.pf-preview-img--1 {
  background: linear-gradient(135deg, #d8c8b0 0%, #b89a78 100%);
}
.pf-preview-img--2 {
  background: linear-gradient(135deg, #303642 0%, #1a1f28 100%);
}

.pf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

.pf-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.22);
  height: 82%;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 1.2, 0.64, 1);
}
.builder-stage[data-phase="filter"] .pf-sheet {
  transform: translateY(0);
}

.pf-handle {
  display: flex;
  justify-content: center;
  padding: 6px 0 3px;
  flex-shrink: 0;
}
.pf-handle span {
  width: 28px;
  height: 3px;
  background: #ccc;
  border-radius: 2px;
}
.pf-header {
  padding: 8px 12px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 0.5px solid #e0e0e0;
  flex-shrink: 0;
}
.pf-close {
  font-size: 12px;
  color: #555;
}
.pf-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.pf-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.pf-cats {
  width: 92px;
  border-right: 0.5px solid #e0e0e0;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.pf-cats::-webkit-scrollbar { display: none; }
.pf-cat {
  padding: 9px 8px 9px 10px;
  font-size: 10px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.pf-cat.is-active {
  font-weight: 700;
  color: #111;
  border-left-color: #111;
}
.pf-cat.is-done { color: #555; }
.pf-cat-check {
  font-size: 8px;
  color: #111;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.25s;
}
.pf-cat.is-done .pf-cat-check { opacity: 1; }

.pf-options {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: none;
  min-width: 0;
}
.pf-options::-webkit-scrollbar { display: none; }
.pf-option {
  display: flex;
  align-items: center;
  padding: 8px 11px;
  font-size: 10.5px;
  color: #999;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.pf-option.is-selected {
  color: #111;
  font-weight: 500;
}
.pf-option.is-flash { background: #f2f2f2; }
.pf-opt-check {
  width: 13px;
  height: 13px;
  border: 1.4px solid #ccc;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
  font-size: 8px;
  color: transparent;
}
.pf-option.is-selected .pf-opt-check {
  background: #111;
  border-color: #111;
  color: #fff;
}
.pf-color-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 0.5px solid #ddd;
}

.pf-price-slider { padding: 11px; }
.pf-price-vals {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #888;
  margin-bottom: 8px;
}
.pf-slider-track {
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  position: relative;
  margin: 10px 0;
}
.pf-slider-fill {
  position: absolute;
  height: 100%;
  background: #111;
  border-radius: 2px;
  left: 0;
  transition: width 0.7s ease;
}
.pf-slider-thumb {
  width: 11px;
  height: 11px;
  background: #111;
  border-radius: 3px;
  position: absolute;
  top: -4px;
  transition: left 0.7s ease;
}

.pf-footer {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border-top: 0.5px solid #e0e0e0;
  flex-shrink: 0;
}
.pf-btn-reset {
  padding: 8px;
  font-size: 10.5px;
  font-weight: 500;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: transparent;
  text-align: center;
  color: #333;
}
.pf-btn-show {
  padding: 8px;
  font-size: 10.5px;
  font-weight: 500;
  border-radius: 20px;
  background: #111;
  color: #fff;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
}
@keyframes pfPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.95); }
}
.pf-btn-show.is-pulse { animation: pfPulse 0.4s ease; }

