.iphone-mockup-shell {
      --bg: #edf1f4;
      --frame-light: #d7dde3;
      --frame-mid: #b1bac3;
      --frame-dark: #7b848e;
      --bezel: #0d1015;
      --screen: #f6f7fa;
      --shadow: rgba(0, 0, 0, 0.25);
      --text: #0b0d10;
      --phone-scale-base: 0.6;
    }

.iphone-mockup-shell * { box-sizing: border-box; }

.iphone-mockup-shell {
      width: 100%;
      max-width: 460px;
      display: grid;
      place-items: center;
      margin: 0 auto;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
      color: var(--text);
    }

.iphone-mockup-shell .mockup {
      display: flex;
      align-items: center;
      gap: 28px;
      position: relative;
    }

.iphone-mockup-shell .phone {
      width: 438px;
      height: 892px;
      border-radius: 62px;
      background: linear-gradient(160deg, var(--frame-light) 0%, var(--frame-mid) 45%, var(--frame-dark) 100%);
      box-shadow:
        0 40px 90px var(--shadow),
        0 10px 25px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 -3px 10px rgba(0,0,0,0.18);
      position: relative;
      padding: 14px;
      transform-origin: left center;
      transform: scale(calc(var(--phone-scale, 1) * var(--phone-scale-base, 1)));
      opacity: 0;
      transition: opacity 180ms ease;
      will-change: transform;
    }

.iphone-mockup-shell.is-ready .phone {
      opacity: 1;
    }

.iphone-mockup-shell .bezel {
      width: 100%;
      height: 100%;
      border-radius: 52px;
      background: var(--bezel);
      padding: 10px;
      position: relative;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    }

.iphone-mockup-shell .screen {
      width: 100%;
      height: 100%;
      border-radius: 44px;
      background: linear-gradient(180deg, #ffffff 0%, #f0f2f6 100%);
      position: relative;
      overflow: hidden;
    }

.iphone-mockup-shell .bezel::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(35deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 62%);
      pointer-events: none;
    }

.iphone-mockup-shell .dynamic-island {
      position: absolute;
      top: 12px;
      left: 50%;
      transform: translateX(-50%);
      width: 140px;
      height: 34px;
      border-radius: 20px;
      background: #0b0d10;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
      z-index: 3;
      display: grid;
      place-items: center;
    }

.iphone-mockup-shell .dynamic-island .camera {
      width: 60px;
      height: 16px;
      border-radius: 12px;
      background: #1a1e24;
      position: relative;
    }

    .dynamic-island .camera::before,
.iphone-mockup-shell .dynamic-island .camera::after {
      content: "";
      position: absolute;
      top: 4px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #3a3f46, #0b0d10 70%);
    }

.iphone-mockup-shell .dynamic-island .camera::before { left: 8px; }
.iphone-mockup-shell .dynamic-island .camera::after { right: 8px; }

.iphone-mockup-shell .status-bar {
      position: absolute;
      top: 10px;
      left: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 22px;
      font-size: 12px;
      font-weight: 600;
      color: #0b0d10;
      z-index: 4;
    }

.iphone-mockup-shell .status-icons {
      display: flex;
      align-items: center;
      gap: 8px;
    }

.iphone-mockup-shell .signal {
      display: inline-grid;
      grid-auto-flow: column;
      gap: 2px;
      align-items: end;
    }

.iphone-mockup-shell .signal span {
      width: 3px;
      background: #0b0d10;
      border-radius: 1px;
      display: block;
    }

.iphone-mockup-shell .signal span:nth-child(1) { height: 5px; opacity: 0.5; }
.iphone-mockup-shell .signal span:nth-child(2) { height: 7px; opacity: 0.7; }
.iphone-mockup-shell .signal span:nth-child(3) { height: 9px; opacity: 0.85; }
.iphone-mockup-shell .signal span:nth-child(4) { height: 11px; }

.iphone-mockup-shell .battery {
      position: relative;
      width: 20px;
      height: 10px;
      border: 1.5px solid #0b0d10;
      border-radius: 3px;
    }

.iphone-mockup-shell .battery::after {
      content: "";
      position: absolute;
      right: -3px;
      top: 3px;
      width: 2px;
      height: 4px;
      background: #0b0d10;
      border-radius: 1px;
    }

.iphone-mockup-shell .battery .level {
      width: 100%;
      height: 100%;
      background: #0b0d10;
      border-radius: 2px;
    }

.iphone-mockup-shell .screen-content {
      position: relative;
      height: 100%;
      padding: 0;
      z-index: 1;
      overflow: hidden;
    }

.iphone-mockup-shell .screen-iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
      border-radius: inherit;
      scrollbar-width: none;
      overflow: hidden;
      -ms-overflow-style: none;
      pointer-events: none;
    }

@media (max-width: 767px) {
  .iphone-mockup-shell .screen-content {
    display: block;
  }
}

.iphone-mockup-shell .screen-iframe::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

.iphone-mockup-shell .safari-bottom {
      position: absolute;
      bottom: 18px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 28px);
      height: 56px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px;
      z-index: 2;
    }

.iphone-mockup-shell .safari-bottom {
      display: none;
    }


.iphone-mockup-shell .safari-pill {
      height: 36px;
      border-radius: 999px;
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(15, 23, 42, 0.1);
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 16px;
      font-size: 12px;
      color: #111827;
      backdrop-filter: blur(6px);
    }

.iphone-mockup-shell .safari-pill .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #6b7280;
    }

.iphone-mockup-shell .safari-side {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #111827;
      font-size: 14px;
      font-weight: 600;
    }

.iphone-mockup-shell .safari-side.right {
      justify-content: flex-end;
    }

.iphone-mockup-shell .safari-side .circle {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      background: rgba(255,255,255,0.9);
      border: 1px solid rgba(15, 23, 42, 0.1);
      display: grid;
      place-items: center;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
      font-size: 12px;
    }

.iphone-mockup-shell .side-button {
      position: absolute;
      width: 6px;
      background: linear-gradient(180deg, #d0d6dd, #8a929b);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
      border-radius: 6px;
    }

.iphone-mockup-shell .side-button.left-1 { left: -3px; top: 150px; height: 60px; }
.iphone-mockup-shell .side-button.left-2 { left: -3px; top: 230px; height: 80px; }
.iphone-mockup-shell .side-button.left-3 { left: -3px; top: 330px; height: 80px; }
.iphone-mockup-shell .side-button.right-1 { right: -3px; top: 220px; height: 90px; }

.iphone-mockup-shell .camera-bump {
      position: absolute;
      top: 22px;
      left: 22px;
      width: 110px;
      height: 110px;
      border-radius: 26px;
      background: linear-gradient(145deg, #dfe4ea, #b4bcc5);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 18px rgba(0,0,0,0.2);
      display: grid;
      gap: 8px;
      padding: 10px;
      grid-template-columns: repeat(2, 1fr);
    }

.iphone-mockup-shell .lens {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #333a44, #0b0d10 60%, #050608 100%);
      box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 2px 4px rgba(0,0,0,0.5);
    }

.iphone-mockup-shell .lens.small {
      width: 28px;
      height: 28px;
      align-self: end;
      justify-self: end;
      background: radial-gradient(circle at 40% 40%, #444b55, #13171d 60%, #07090c 100%);
    }

.iphone-mockup-shell .progress-hud {
      position: absolute;
      right: 18px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 12px;
      color: #2b3442;
      font-size: 12px;
      letter-spacing: 0.02em;
      align-items: start;
    }

.iphone-mockup-shell .progress-item {
      display: flex;
      align-items: center;
      gap: 10px;
      opacity: 0.45;
      transition: opacity 400ms ease;
    }

.iphone-mockup-shell .progress-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #2b3442;
      opacity: 0.5;
      transition: transform 400ms ease, opacity 400ms ease;
    }

.iphone-mockup-shell .progress-label {
      font-weight: 600;
      white-space: nowrap;
      transition: opacity 400ms ease;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.75);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
      backdrop-filter: blur(8px);
    }

.iphone-mockup-shell .progress-item.is-active {
      opacity: 1;
    }

.iphone-mockup-shell .progress-item.is-active .progress-dot {
      opacity: 1;
      transform: scale(1.15);
    }

    @media (max-width: 520px) {
      .iphone-mockup-shell {
        --phone-scale-base: 1;
      }
.iphone-mockup-shell .mockup { flex-direction: column; gap: 8px; }
.iphone-mockup-shell .phone { width: 244px; height: 500px; border-radius: 34px; transform-origin: center top; transform: none; }
.iphone-mockup-shell .bezel { border-radius: 26px; }
.iphone-mockup-shell .screen { border-radius: 22px; }
.iphone-mockup-shell .camera-bump { width: 60px; height: 60px; border-radius: 12px; }
.iphone-mockup-shell .dynamic-island { width: 92px; height: 22px; }
.iphone-mockup-shell .phone { margin-bottom: -6px; }
.iphone-mockup-shell .progress-hud {
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
        margin-top: -16px;
      }

.iphone-mockup-shell .progress-hud {
        display: none;
      }

.iphone-mockup-shell .progress-label {
        padding: 3px 7px;
        font-size: 10px;
      }
    }
