/* ==========================================================================
   iPhone 15 Pro Device Frame & Desktop Stage
   ========================================================================== */

/* Top Workbench Toolbar on Desktop */
.workbench-toolbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 32, 38, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-badge img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.screen-pills-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 580px;
  overflow-x: auto;
  padding: 2px 4px;
}

.screen-pills-scroll::-webkit-scrollbar {
  display: none;
}

.screen-pill-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  color: #A0A5B1;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.screen-pill-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.screen-pill-btn.active {
  color: #0D0D0D;
  background: var(--color-brand-lime);
  box-shadow: 0 0 12px rgba(206, 253, 54, 0.4);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.toolbar-action-btn {
  color: #CCD1DC;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.toolbar-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.toolbar-action-btn.active {
  background: #FFFFFF;
  color: #0D0D0D;
}

/* Device Wrapper Stage */
.device-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 40px;
  transition: transform var(--transition-normal);
}

/* iPhone 15 Pro Chassis */
.iphone-frame {
  position: relative;
  width: 393px;
  height: 852px;
  border-radius: 54px;
  background: #000000;
  box-shadow: 
    0 0 0 4px #2c2d30,
    0 0 0 6px #1b1c1e,
    0 0 0 7px #414347,
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 10px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
}

/* Antenna bands & buttons hints */
.iphone-frame::before {
  content: "";
  position: absolute;
  top: 110px;
  left: -8px;
  width: 4px;
  height: 28px;
  background: #2b2c2f;
  border-radius: 2px 0 0 2px;
}

/* Screen Viewport Inside iPhone */
.screen-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 48px;
  background: var(--color-bg-page);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* Seamless Mobile View when viewport is phone width */
@media (max-width: 480px) {
  .workbench-toolbar {
    top: auto;
    bottom: 8px;
    width: 96%;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 20px;
  }
  .brand-badge {
    display: none;
  }
  .device-stage {
    padding-top: 0;
  }
  .iphone-frame {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .screen-viewport {
    border-radius: 0;
  }
}

/* Clean Mode (No frame border on desktop if toggled) */
.iphone-frame.frameless {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border-radius: 36px;
}
.iphone-frame.frameless .screen-viewport {
  border-radius: 36px;
}

/* Side-by-side comparison modal */
.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: difference;
  display: none;
  z-index: 999;
}
.compare-overlay.active {
  display: block;
}

/* Status Bar */
.ios-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--status-bar-height);
  padding: 12px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.status-time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--color-text-main);
  padding-left: 4px;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 35px;
  background: #000000;
  border-radius: 20px;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  transition: all var(--transition-bounce);
}

.island-camera-lens {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #081d3d 30%, #000 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Status Icons */
.status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 4px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 11px;
}

.signal-bar {
  width: 3px;
  background: var(--color-text-main);
  border-radius: 1px;
}
.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 6px; }
.signal-bar:nth-child(3) { height: 8px; }
.signal-bar:nth-child(4) { height: 11px; }

.wifi-icon svg {
  width: 16px;
  height: 12px;
  fill: var(--color-text-main);
}

.battery-pill {
  width: 24px;
  height: 12px;
  border: 1.5px solid var(--color-text-main);
  border-radius: 4px;
  padding: 1.5px;
  display: flex;
  align-items: center;
  position: relative;
}

.battery-pill::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: var(--color-text-main);
  border-radius: 0 1px 1px 0;
}

.battery-fill {
  width: 85%;
  height: 100%;
  background: var(--color-text-main);
  border-radius: 1.5px;
}

/* Home Bar Indicator */
.ios-home-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--home-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.ios-home-indicator {
  width: 134px;
  height: 5px;
  background: #000000;
  border-radius: 999px;
  margin-bottom: 2px;
}

/* Dark mode overrides for status bar inside dark screens (e.g. Screen 05) */
.ios-status-bar.dark-style .status-time,
.ios-status-bar.dark-style .signal-bar,
.ios-status-bar.dark-style .wifi-icon svg,
.ios-status-bar.dark-style .battery-pill,
.ios-status-bar.dark-style .battery-fill,
.ios-status-bar.dark-style .battery-pill::after {
  color: #FFFFFF;
  fill: #FFFFFF;
  background-color: #FFFFFF;
  border-color: #FFFFFF;
}
.ios-home-bar-wrap.dark-style .ios-home-indicator {
  background: #FFFFFF;
}
