/* ═══════════════════════════════════════════════════
   PHONE SHELL & NAVIGATION
   ═══════════════════════════════════════════════════ */

/* ── Phone Frame ── */
.phone-shell {
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 0;
  border: none;
  overflow: hidden;
  position: relative;
  box-shadow: none;
  font-family: var(--font-body);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.phone-shell--dark {
  background: var(--ink-900);
  border-color: var(--ink-700);
}

/* ── Notch ── */
.phone-notch { display: none; }
.phone-notch--dark { display: none; }

/* ── Status Bar (hidden — real device has its own) ── */
.phone-status { display: none; }
.phone-status--dark { display: none; }
.phone-status__icons { display: none; }

/* ── Phone Content ── */
.phone-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 85px;
}

.phone-content--no-nav { padding-bottom: 20px; }
.phone-content.has-summary-bar { padding-bottom: 156px; }

/* Lifted out of the scroller onto the phone shell, just above the tab bar. */
.salon-summary-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  z-index: 30;
  display: none;
  padding: 10px 20px 12px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 24px -12px rgba(18, 15, 13, 0.18);
  animation: none;
  transform: none;
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 78px;
  background: rgba(251, 249, 248, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid var(--ink-150);
  display: flex;
  align-items: center;
  padding: 0 8px 14px;
  gap: 4px;
  z-index: 20;
}

.bottom-nav__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-3);
  cursor: pointer;
  font-weight: 500;
  background: none;
  border: none;
  font-family: inherit;
  padding: 7px 4px;
  border-radius: 12px;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
  position: relative;
}
.bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 21px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--bg);
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.bottom-nav__item--active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-surface);
}

/* ── Salon Dashboard Bottom Nav ── */
.bottom-nav--dashboard {
  background: rgba(31, 26, 23, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--ink-700);
}
.bottom-nav--dashboard .bottom-nav__item {
  color: var(--ink-500);
}
.bottom-nav--dashboard .bottom-nav__item--active {
  color: var(--rose-400);
  background: rgba(244, 63, 94, 0.12);
}

/* ── Page Wrapper ── */
.demo-wrapper {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  display: block;
  padding: 0;
}

.demo-header { display: none; }
.demo-header__logo { display: none; }
.demo-header__sub { display: none; }

/* ── Screen Navigation Pills (hidden in normal view) ── */
.screen-nav { display: none; }

/* ── Screen Container ── */
.screen-container {
  display: none;
  animation: slideUpFade 0.28s var(--ease-smooth) both;
}
.screen-container--active {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Staggered Content Reveals ── */
.phone-content > * {
  animation: slideUpFade 0.32s var(--ease-smooth) both;
}
.phone-content > *:nth-child(2) { animation-delay: 0.04s; }
.phone-content > *:nth-child(3) { animation-delay: 0.08s; }
.phone-content > *:nth-child(4) { animation-delay: 0.12s; }
.phone-content > *:nth-child(5) { animation-delay: 0.16s; }
.phone-content > *:nth-child(6) { animation-delay: 0.20s; }

/* Tab panels reveal with opacity only. A finished `transform` animation keeps
   winning over inline styles, which silently cancelled the translate the tab
   pager applies while a finger is dragging. */
.phone-content > .tab-panel { animation-name: tabPanelReveal; }
@keyframes tabPanelReveal { from { opacity: 0; } to { opacity: 1; } }

/* ── Screen Label (hidden in normal view) ── */
.screen-label { display: none; }
