/* ── Phone Mockup ── */
.phone-mock {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-bezel {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: #0f0f0f;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(var(--brand-navy-rgb,15,39,68),0.2), 0 0 0 1px rgba(var(--brand-navy-rgb,15,39,68),0.1);
}
@media (max-width: 575.98px) {
  .phone-bezel { border-radius: 32px; padding: 10px; }
}

.phone-bezel .screen {
  width: 100%;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19;
}
@media (max-width: 575.98px) {
  .phone-bezel .screen { border-radius: 22px; }
}

.dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: #111;
  padding: 5px 14px;
  border-radius: 18px;
  z-index: 10;
}
.dynamic-island .sensor { width: 8px; height: 8px; border-radius: 50%; background: #1a3a6a; }
.dynamic-island .cam { width: 6px; height: 6px; border-radius: 50%; background: #2a2a3e; border: 1px solid #333; }
.dynamic-island .mic { width: 5px; height: 5px; border-radius: 50%; background: #222; }

/* Side buttons */
.side-buttons { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.side-buttons .btn-action { position: absolute; left: -4px; top: 120px; width: 3px; height: 32px; background: #0a1a2e; border-radius: 2px; }
.side-buttons .btn-left { position: absolute; left: -4px; top: 158px; width: 3px; height: 22px; background: #0a1a2e; border-radius: 2px; }
.side-buttons .btn-left2 { position: absolute; left: -4px; top: 185px; width: 3px; height: 22px; background: #0a1a2e; border-radius: 2px; }
.side-buttons .btn-right { position: absolute; right: -4px; top: 145px; width: 3px; height: 44px; background: #0a1a2e; border-radius: 2px; }

/* Status bar */
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.phone-status .ps-time { font-weight: 700; }
.phone-status .ps-left { display: flex; align-items: center; gap: 6px; }
.phone-status .ps-right { display: flex; align-items: center; gap: 4px; }
.phone-status .ps-right svg { display: block; }


/* QR frame */
.phone-bezel .qr-frame {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-bezel .qr-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
/* Fallback state: when there's no custom full-screen preview image and we
   drop in the actual generated (square) QR code instead, it must stay fully
   visible and uncropped rather than being cover-cropped like the branded
   full-bleed preview screenshots. Toggled via JS (see step1.php). */
.phone-bezel .qr-frame img.qr-frame-img-contain {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  border-radius: 10px;
  background: #fff;
}

/* Text labels */
.phone-bezel .phone-copy {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 0.125rem;
  padding: 0 12px;
  flex-shrink: 0;
}
.phone-bezel .phone-sub {
  text-align: center;
  font-size: 0.625rem;
  color: var(--brand-muted);
  margin: 0 0 10px;
  padding: 0 12px;
  flex-shrink: 0;
}

/* ── Content preview areas (step1 dynamic) ── */
.phone-preview-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 2rem 1rem 1rem;
  overflow-y: auto;
}

/* URL bar */
.phone-url-bar {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: #f0f2f5;
  border-radius: 16px;
  font-size: 0.6875rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Website */
.phone-webpage { width: 100%; text-align: center; }
.phone-webpage-title { font-size: 0.875rem; font-weight: 700; color: var(--brand-navy); margin: 0 0 0.25rem; }
.phone-webpage-desc { font-size: 0.75rem; color: var(--brand-muted); margin: 0; line-height: 1.5; }

/* Generic type */
.phone-generic-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
}
.phone-generic-icon { font-size: 2.5rem; color: var(--brand-muted); }
.phone-generic-label { font-size: 0.875rem; color: var(--brand-muted); text-align: center; }

/* WhatsApp */
.phone-wa-bubble {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #dcf8c6;
  border-radius: 16px 16px 16px 4px;
  max-width: 240px;
}
.phone-wa-icon { font-size: 1.25rem; color: #25d366; }
.phone-wa-msg { font-size: 0.75rem; color: #1a1a2e; }

/* Template iframe */
.phone-template-frame {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: var(--bs-border-radius-sm);
  background: #fff;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .phone-mock {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
}
