/* ═══════════════════════════════════════════════════════════════════
   PopShop™ — UX Polish System (PS-4200)
   Comprehensive production experience layer.
   Covers: micro-interactions, motion system extensions, empty states,
   skeleton loading, gesture feedback, visual consistency, accessibility,
   instructional UX, shop atmosphere, responsive QA.

   Load: after all component CSS, before body close.
   Authorities extended: motion.css, ps-accessibility.css, core.css
   New globals declared: none (JS authorities registered separately)
   ═══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════
   § 1  MOTION SYSTEM EXTENSIONS (WS-3)
   ══════════════════════════════════════════════════════════════════ */

/* ── Modal exit ─────────────────────────────────────────────────── */
@keyframes ps-modalCardOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(32px) scale(0.97); }
}
.modal-overlay.closing .modal-card {
  animation: ps-modalCardOut 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes ps-overlayFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.modal-overlay.closing {
  animation: ps-overlayFadeOut 0.22s ease-out both;
  pointer-events: none;
}

/* ── Drawer content stagger ─────────────────────────────────────── */
.drawer.open .drawer-scroll > * {
  animation: ps-fadeUp var(--ps-dur-base, 240ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
  animation-delay: calc(var(--ps-i, 0) * 40ms);
}

/* ── Page-level screen transitions ─────────────────────────────── */
@keyframes ps-screenIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ps-screenOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-16px); }
}
.ps-screen-enter {
  animation: ps-screenIn var(--ps-dur-base, 240ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
}
.ps-screen-exit {
  animation: ps-screenOut var(--ps-dur-fast, 180ms) var(--ps-ease-in, cubic-bezier(.4,0,1,1)) both;
  pointer-events: none;
}

/* ── List item enter / exit ─────────────────────────────────────── */
@keyframes ps-listIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ps-listOut {
  from { opacity: 1; transform: translateY(0) scale(1); max-height: 200px; }
  to   { opacity: 0; transform: translateY(-8px) scale(0.98); max-height: 0; }
}
.ps-list-item-enter {
  animation: ps-listIn var(--ps-dur-base, 240ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
  animation-delay: calc(var(--ps-i, 0) * 45ms);
}
.ps-list-item-exit {
  animation: ps-listOut 0.2s ease-in both;
  overflow: hidden;
  pointer-events: none;
}

/* ── Skeleton → content crossfade ──────────────────────────────── */
.ps-content-reveal {
  animation: ps-fadeIn var(--ps-dur-slow, 320ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
}
@keyframes ps-contentReveal {
  from { opacity: 0; filter: blur(4px); }
  to   { opacity: 1; filter: blur(0); }
}
.ps-content-reveal-blur {
  animation: ps-contentReveal 0.38s var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
}

/* ── Camera transitions ─────────────────────────────────────────── */
@keyframes ps-cameraIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.ps-camera-enter { animation: ps-cameraIn 0.35s var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both; }

/* ── Live Studio panel transitions ─────────────────────────────── */
@keyframes ps-studioSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ps-studio-enter { animation: ps-studioSlideIn 0.3s var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both; }

/* ══════════════════════════════════════════════════════════════════
   § 2  MICRO-INTERACTIONS (WS-2)
   ══════════════════════════════════════════════════════════════════ */

/* ── Universal button press depth ──────────────────────────────── */
.ps-btn,
.ps-action-btn,
.modal-btn,
.modal-btn-primary,
.modal-btn-secondary,
.modal-btn-danger,
.ps-tap,
.category-pill,
.type-tab {
  transition: transform var(--ps-dur-fast, 180ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)),
              box-shadow var(--ps-dur-fast, 180ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)),
              background-color var(--ps-dur-fast, 180ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1));
}

/* ── Success animation ──────────────────────────────────────────── */
@keyframes ps-successPop {
  0%   { transform: scale(0.85); opacity: 0; }
  50%  { transform: scale(1.10); }
  75%  { transform: scale(0.95); }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes ps-successGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--ps-primary-rgb, 0,230,195), 0); }
  40%     { box-shadow: 0 0 0 8px rgba(var(--ps-primary-rgb, 0,230,195), 0.22); }
}
.ps-success-animate {
  animation: ps-successPop 0.38s var(--ps-ease-spring, cubic-bezier(.34,1.2,.64,1)) both,
             ps-successGlow 0.6s ease-out both;
}

/* ── Error shake ─────────────────────────────────────────────────── */
@keyframes ps-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(5px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(3px); }
}
.ps-error-shake {
  animation: ps-shake 0.38s ease both;
}

/* ── Card hover elevation ───────────────────────────────────────── */
.item-card,
.lz-item-card,
.appt-card,
.ps-card {
  transition: transform 0.22s var(--ps-ease, cubic-bezier(.22,.8,.25,1)),
              box-shadow 0.22s var(--ps-ease, cubic-bezier(.22,.8,.25,1));
}
@media (hover: hover) {
  .item-card:hover,
  .lz-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ps-depth-3, 0 16px 48px rgba(0,0,0,0.78));
  }
  .appt-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ps-depth-2, 0 8px 24px rgba(0,0,0,0.65));
  }
}

/* ── AI thinking state ──────────────────────────────────────────── */
@keyframes ps-aiThink {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.ps-ai-thinking {
  background: linear-gradient(
    135deg,
    var(--ps-surface-2, #121212),
    rgba(var(--ps-primary-rgb, 0,230,195), 0.12),
    var(--ps-surface-3, #1a1a1a),
    rgba(var(--ps-primary-rgb, 0,230,195), 0.08)
  );
  background-size: 300% 300%;
  animation: ps-aiThink 2.4s ease-in-out infinite;
}
@keyframes ps-aiTyping {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-5px); }
}
.ps-ai-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ps-primary, #00E6C3);
  animation: ps-aiTyping 1.2s ease-in-out infinite;
}
.ps-ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ps-ai-dot:nth-child(3) { animation-delay: 0.30s; }
.ps-ai-thinking-dots {
  display: inline-flex; gap: 4px; align-items: center; padding: 4px 8px;
}

/* ── Share completion ───────────────────────────────────────────── */
@keyframes ps-shareBurst {
  0%   { transform: scale(0) rotate(0deg); opacity: 1; }
  100% { transform: scale(2.5) rotate(20deg); opacity: 0; }
}
.ps-share-burst {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ps-primary-rgb,0,230,195),0.45) 0%, transparent 70%);
  animation: ps-shareBurst 0.5s ease-out both;
}

/* ── Save confirmation check ────────────────────────────────────── */
@keyframes ps-checkDraw {
  from { stroke-dashoffset: 32; }
  to   { stroke-dashoffset: 0; }
}
.ps-check-icon path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: ps-checkDraw 0.35s ease-out 0.05s both;
}

/* ── Ripple host ─────────────────────────────────────────────────── */
/* (ps-ripple-host + ps-ripple-dot defined in motion.css, extended here) */
.ps-btn.ps-ripple-host,
.modal-btn.ps-ripple-host {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   § 3  SKELETON LOADING (WS-5)
   ══════════════════════════════════════════════════════════════════ */

@keyframes ps-skeleton-wave {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Base shimmer */
.ps-skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--ps-surface-2, #121212) 0%,
    var(--ps-surface-3, #1a1a1a) 40%,
    var(--ps-surface-4, #222) 50%,
    var(--ps-surface-3, #1a1a1a) 60%,
    var(--ps-surface-2, #121212) 100%
  );
  background-size: 200% 100%;
  animation: ps-skeleton-wave 1.8s linear infinite;
  border-radius: var(--ps-radius-sm, 8px);
}

/* ── Product card skeleton ───────────────────────────────────────── */
.ps-skeleton-card {
  flex-shrink: 0;
  width: 140px; min-width: 140px;
  background: var(--ps-surface-2, #121212);
  border-radius: var(--ps-radius, 14px);
  overflow: hidden;
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
}
.ps-skeleton-card__image {
  width: 100%; height: 110px;
  background: linear-gradient(90deg,
    var(--ps-surface-2, #121212) 0%,
    var(--ps-surface-3, #1a1a1a) 40%,
    var(--ps-surface-4, #222) 50%,
    var(--ps-surface-3, #1a1a1a) 60%,
    var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%;
  animation: ps-skeleton-wave 1.8s linear infinite;
}
.ps-skeleton-card__body {
  padding: 8px 10px 10px;
}
.ps-skeleton-card__line {
  height: 12px;
  background: linear-gradient(90deg,
    var(--ps-surface-2, #121212) 0%,
    var(--ps-surface-3, #1a1a1a) 40%,
    var(--ps-surface-4, #222) 50%,
    var(--ps-surface-3, #1a1a1a) 60%,
    var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%;
  animation: ps-skeleton-wave 1.8s linear infinite;
  border-radius: 6px;
  margin-bottom: 6px;
}
.ps-skeleton-card__line--short { width: 60%; }
.ps-skeleton-card__line--price { width: 40%; height: 10px; }

/* ── Service card skeleton ───────────────────────────────────────── */
.ps-skeleton-service {
  padding: 14px 16px;
  background: var(--ps-surface-2, #121212);
  border-radius: var(--ps-radius, 14px);
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  display: flex; gap: 12px; align-items: center;
}
.ps-skeleton-service__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
}
.ps-skeleton-service__lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ps-skeleton-service__line {
  height: 11px;
  background: linear-gradient(90deg,
    var(--ps-surface-2, #121212) 0%,
    var(--ps-surface-3, #1a1a1a) 40%,
    var(--ps-surface-4, #222) 50%,
    var(--ps-surface-3, #1a1a1a) 60%,
    var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%;
  animation: ps-skeleton-wave 1.8s linear infinite;
  border-radius: 6px;
}
.ps-skeleton-service__line--short { width: 55%; }

/* ── Appointment skeleton ────────────────────────────────────────── */
.ps-skeleton-appt {
  padding: 12px 14px;
  background: var(--ps-surface-2, #121212);
  border-radius: var(--ps-radius, 14px);
  border-left: 3px solid var(--ps-surface-4, #222);
  display: flex; flex-direction: column; gap: 7px;
}
.ps-skeleton-appt__header {
  display: flex; justify-content: space-between; align-items: center;
}
.ps-skeleton-appt__title {
  height: 13px; width: 55%;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite; border-radius: 6px;
}
.ps-skeleton-appt__time {
  height: 11px; width: 28%;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite; border-radius: 6px;
}
.ps-skeleton-appt__sub {
  height: 10px; width: 40%;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite; border-radius: 6px;
}

/* ── Customer list skeleton ──────────────────────────────────────── */
.ps-skeleton-customer {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px;
}
.ps-skeleton-customer__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite;
}
.ps-skeleton-customer__info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ps-skeleton-customer__name {
  height: 12px; width: 48%;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite; border-radius: 6px;
}
.ps-skeleton-customer__meta {
  height: 10px; width: 30%;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite; border-radius: 6px;
}

/* Skeleton shimmer shared class for inline use */
.ps-skeleton-avatar { border-radius: 50%; }

/* Discovery card skeleton */
.ps-skeleton-discovery {
  border-radius: var(--ps-radius, 14px);
  background: var(--ps-surface-2, #121212);
  overflow: hidden;
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
}
.ps-skeleton-discovery__image {
  height: 120px;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite;
}
.ps-skeleton-discovery__body {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.ps-skeleton-discovery__line {
  height: 11px;
  background: linear-gradient(90deg, var(--ps-surface-2, #121212) 0%, var(--ps-surface-3, #1a1a1a) 40%, var(--ps-surface-4, #222) 50%, var(--ps-surface-3, #1a1a1a) 60%, var(--ps-surface-2, #121212) 100%);
  background-size: 200% 100%; animation: ps-skeleton-wave 1.8s linear infinite; border-radius: 6px;
}
.ps-skeleton-discovery__line--short { width: 50%; }

/* Light mode skeleton overrides */
body[data-appearance="light"] .ps-skeleton-shimmer,
body[data-appearance="light"] .ps-skeleton-card,
body[data-appearance="light"] .ps-skeleton-card__image,
body[data-appearance="light"] .ps-skeleton-card__line,
body[data-appearance="light"] .ps-skeleton-service__line,
body[data-appearance="light"] .ps-skeleton-appt__title,
body[data-appearance="light"] .ps-skeleton-appt__time,
body[data-appearance="light"] .ps-skeleton-appt__sub,
body[data-appearance="light"] .ps-skeleton-customer__avatar,
body[data-appearance="light"] .ps-skeleton-customer__name,
body[data-appearance="light"] .ps-skeleton-customer__meta,
body[data-appearance="light"] .ps-skeleton-discovery__image,
body[data-appearance="light"] .ps-skeleton-discovery__line {
  background: linear-gradient(
    90deg,
    var(--ps-surface-2, #f0f0f2) 0%,
    var(--ps-surface-3, #e8e8ea) 40%,
    var(--ps-surface-4, #e0e0e2) 50%,
    var(--ps-surface-3, #e8e8ea) 60%,
    var(--ps-surface-2, #f0f0f2) 100%
  );
  background-size: 200% 100%;
  animation: ps-skeleton-wave 1.8s linear infinite;
}

/* ══════════════════════════════════════════════════════════════════
   § 4  EMPTY STATES (WS-4)
   ══════════════════════════════════════════════════════════════════ */

/* ── Base enhanced empty state ──────────────────────────────────── */
.ps-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 12px;
  animation: ps-fadeUp var(--ps-dur-slow, 320ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
}

.ps-empty__illustration {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(var(--ps-primary-rgb, 0,230,195), 0.12) 0%,
    rgba(var(--ps-primary-rgb, 0,230,195), 0.04) 60%,
    transparent 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 4px;
  animation: ps-emptyBreath 3.5s ease-in-out infinite;
}
@keyframes ps-emptyBreath {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%     { transform: scale(1.06); opacity: 0.85; }
}

.ps-empty__title {
  font-family: var(--ps-font-display, 'Outfit', sans-serif);
  font-size: 18px; font-weight: 700;
  color: var(--ps-text, #f0f0f0);
  margin: 0;
}
.ps-empty__body {
  font-size: 14px; color: var(--ps-text-muted, #666);
  line-height: 1.55; max-width: 280px;
}
.ps-empty__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  padding: 12px 24px;
  background: var(--ps-primary, #00E6C3); color: #000;
  border: none; border-radius: var(--ps-radius, 14px);
  font-family: var(--ps-font, 'DM Sans', sans-serif);
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px var(--ps-primary-glow, rgba(0,230,195,0.28));
  transition: transform 0.15s, filter 0.15s;
}
.ps-empty__cta:active { transform: scale(0.96); filter: brightness(0.9); }
.ps-empty__ai-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ps-text-muted, #666);
  padding: 8px 14px;
  background: var(--ps-glass-1, rgba(255,255,255,0.04));
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  border-radius: 20px; cursor: pointer;
  transition: background 0.18s;
}
.ps-empty__ai-hint:active { background: var(--ps-glass-2, rgba(255,255,255,0.07)); }

/* ── Contextual empty state variants ────────────────────────────── */
/* (JS targets these IDs and injects .ps-empty content) */
.ps-empty--products .ps-empty__illustration { font-size: 36px; }
.ps-empty--services .ps-empty__illustration { font-size: 36px; }
.ps-empty--orders   .ps-empty__illustration { font-size: 34px; }

/* Legacy empty-state upgrade — wrap into consistent system */
.empty-state,
.lz-empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px; gap: 10px;
  color: var(--ps-text-muted, #666);
}

.store-empty-card {
  animation: ps-fadeUp var(--ps-dur-slow, 320ms) var(--ps-ease, cubic-bezier(.22,.8,.25,1)) 0.2s both,
             emptyPulse 3s ease-in-out 1s infinite;
}
@keyframes emptyPulse {
  0%,100% { border-color: rgba(var(--ps-primary-rgb,0,230,195), 0.08); }
  50%     { border-color: rgba(var(--ps-primary-rgb,0,230,195), 0.20); }
}

/* ══════════════════════════════════════════════════════════════════
   § 5  SHOP ATMOSPHERE — MUSIC CHIP + MINI PLAYER (WS-6 / FA-009)
   ══════════════════════════════════════════════════════════════════ */

/* ── Now-playing chip ────────────────────────────────────────────── */
.ps-music-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%),
    var(--ps-surface-2, #121212);
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--ps-text, #f0f0f0);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  max-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  animation: ps-fadeUp 0.4s var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
}
.ps-music-chip:active { transform: scale(0.96); }
.ps-music-chip__note {
  font-size: 14px;
  animation: ps-musicNoteBounce 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ps-musicNoteBounce {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-3px) rotate(-8deg); }
}
.ps-music-chip__label {
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ps-music-chip__title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 600; max-width: 130px;
}
.ps-music-chip__artist {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px; color: var(--ps-text-muted, #666); max-width: 130px;
}

/* ── Mini player panel ───────────────────────────────────────────── */
.ps-mini-player {
  position: fixed;
  bottom: calc(var(--ps-footer-h, 58px) + var(--ps-safe-bottom, 0px) + 8px);
  left: 12px; right: 12px;
  z-index: 9990;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%),
    var(--ps-surface-2, #121212);
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.38s var(--ps-ease, cubic-bezier(.22,.8,.25,1));
  will-change: transform;
}
.ps-mini-player.ps-mini-player--open { transform: translateY(0); }

.ps-mini-player__header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.ps-mini-player__artwork {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: var(--ps-surface-3, #1a1a1a);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  overflow: hidden;
}
.ps-mini-player__artwork img {
  width: 100%; height: 100%; object-fit: cover;
}
.ps-mini-player__info { flex: 1; min-width: 0; }
.ps-mini-player__song {
  font-family: var(--ps-font-display, 'Outfit', sans-serif);
  font-size: 15px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ps-mini-player__artist {
  font-size: 12px; color: var(--ps-text-muted, #666);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ps-mini-player__controls {
  display: flex; align-items: center; gap: 4px;
}
.ps-mini-player__btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ps-glass-1, rgba(255,255,255,0.04));
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  border-radius: 50%; cursor: pointer; font-size: 16px;
  transition: transform 0.15s, background 0.15s;
  color: var(--ps-text, #f0f0f0);
}
.ps-mini-player__btn:active { transform: scale(0.88); }
.ps-mini-player__btn--play {
  width: 44px; height: 44px; font-size: 18px;
  background: var(--ps-primary, #00E6C3);
  border-color: var(--ps-primary, #00E6C3); color: #000;
}
.ps-mini-player__progress {
  padding: 0 16px 16px;
}
.ps-mini-player__progress-bar {
  height: 3px; border-radius: 2px;
  background: var(--ps-surface-4, #222);
  position: relative; cursor: pointer;
}
.ps-mini-player__progress-fill {
  height: 100%; border-radius: 2px;
  background: var(--ps-primary, #00E6C3);
  transition: width 0.5s linear;
}

/* Discovery music badge */
.ps-music-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: rgba(var(--ps-primary-rgb,0,230,195), 0.12);
  border: 1px solid rgba(var(--ps-primary-rgb,0,230,195), 0.20);
  border-radius: 12px;
  font-size: 10px; font-weight: 600;
  color: var(--ps-primary, #00E6C3);
}

/* ══════════════════════════════════════════════════════════════════
   § 6  UNIFIED GESTURE FEEDBACK (WS-12 / FA-011)
   ══════════════════════════════════════════════════════════════════ */

/* ── Drag pickup state ──────────────────────────────────────────── */
.ps-drag-active {
  z-index: 9000 !important;
  cursor: grabbing !important;
  user-select: none !important;
  pointer-events: auto !important;
}
.ps-drag-pickup {
  transform: scale(1.04) translateY(-4px) !important;
  box-shadow:
    var(--ps-depth-3, 0 16px 48px rgba(0,0,0,0.78)),
    0 0 0 2px rgba(var(--ps-primary-rgb,0,230,195), 0.20) !important;
  opacity: 0.92 !important;
  transition: transform 0.18s var(--ps-ease-spring, cubic-bezier(.34,1.2,.64,1)),
              box-shadow 0.18s ease,
              opacity 0.18s ease !important;
}
@keyframes ps-pickupPulse {
  0%   { box-shadow: var(--ps-depth-3, 0 16px 48px rgba(0,0,0,0.78)), 0 0 0 2px rgba(var(--ps-primary-rgb,0,230,195), 0.15); }
  50%  { box-shadow: var(--ps-depth-3, 0 16px 48px rgba(0,0,0,0.78)), 0 0 0 6px rgba(var(--ps-primary-rgb,0,230,195), 0.08); }
  100% { box-shadow: var(--ps-depth-3, 0 16px 48px rgba(0,0,0,0.78)), 0 0 0 2px rgba(var(--ps-primary-rgb,0,230,195), 0.15); }
}
.ps-drag-pickup {
  animation: ps-pickupPulse 1.2s ease-in-out infinite !important;
}

/* ── Drop target glow ────────────────────────────────────────────── */
.ps-drop-target {
  outline: 2px dashed rgba(var(--ps-primary-rgb,0,230,195), 0.35) !important;
  outline-offset: 3px !important;
  background-color: rgba(var(--ps-primary-rgb,0,230,195), 0.05) !important;
  transition: background-color 0.15s, outline-color 0.15s !important;
}
.ps-drop-target--active {
  outline-color: rgba(var(--ps-primary-rgb,0,230,195), 0.70) !important;
  background-color: rgba(var(--ps-primary-rgb,0,230,195), 0.10) !important;
  box-shadow: 0 0 0 4px rgba(var(--ps-primary-rgb,0,230,195), 0.08) inset !important;
}

/* ── Invalid drop state ──────────────────────────────────────────── */
.ps-drag-invalid {
  outline: 2px solid rgba(255,77,77,0.50) !important;
  background-color: rgba(255,77,77,0.06) !important;
  opacity: 0.75 !important;
}
@keyframes ps-invalidShake {
  0%,100% { transform: scale(1.04) translateX(0); }
  25%     { transform: scale(1.04) translateX(-4px); }
  75%     { transform: scale(1.04) translateX(4px); }
}
.ps-drag-invalid { animation: ps-invalidShake 0.22s ease both !important; }

/* ── Drag hold indicator ─────────────────────────────────────────── */
.ps-hold-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(var(--ps-primary-rgb,0,230,195), 0.70);
  pointer-events: none;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  z-index: 9999;
}
.ps-hold-ring.ps-hold-ring--charging {
  animation: ps-holdCharge 350ms ease-out both;
}
@keyframes ps-holdCharge {
  from { transform: scale(0); opacity: 0.8; }
  to   { transform: scale(1); opacity: 0; }
}

/* Draggable cursor hints */
[data-draggable="true"] { cursor: grab; }
[data-draggable="true"]:active { cursor: grabbing; }

/* ── Appointment drag states (extends existing .dragging) ──────── */
.appt.dragging {
  z-index: 9000 !important;
  transform: scale(1.04) !important;
  box-shadow: var(--ps-depth-3, 0 16px 48px rgba(0,0,0,0.78)) !important;
  opacity: 0.88 !important;
}
.appt.invalid {
  outline: 2px solid var(--ps-danger, #ff4d4d) !important;
  background-color: rgba(255,77,77,0.08) !important;
}

/* ── Portfolio / section drag ───────────────────────────────────── */
.ps-portfolio-item.ps-drag-pickup,
.ps-shop-section.ps-drag-pickup {
  border-radius: var(--ps-radius, 14px);
  background: var(--ps-surface-3, #1a1a1a) !important;
}

/* ══════════════════════════════════════════════════════════════════
   § 7  HAPTICS VISUAL FEEDBACK (WS-7)
   ══════════════════════════════════════════════════════════════════ */

/* Visual feedback classes that accompany haptic triggers */
@keyframes ps-hapticSuccess {
  0%   { box-shadow: 0 0 0 0 rgba(var(--ps-primary-rgb,0,230,195), 0.45); }
  50%  { box-shadow: 0 0 0 12px rgba(var(--ps-primary-rgb,0,230,195), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--ps-primary-rgb,0,230,195), 0); }
}
.ps-haptic-success {
  animation: ps-hapticSuccess 0.5s ease-out both;
}
@keyframes ps-hapticError {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,77,0.45); }
  50%  { box-shadow: 0 0 0 10px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}
.ps-haptic-error {
  animation: ps-hapticError 0.45s ease-out both;
}
@keyframes ps-hapticPress {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.ps-haptic-press {
  animation: ps-hapticPress 0.18s ease both;
}

/* ══════════════════════════════════════════════════════════════════
   § 8  ACCESSIBILITY EXTENSIONS (WS-8)
   ══════════════════════════════════════════════════════════════════ */

/* ── Focus ring enhancement for dark theme ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--ps-primary, #00E6C3);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Keyboard navigation hint ───────────────────────────────────── */
.ps-kbd-hint {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px;
  background: var(--ps-surface-3, #1a1a1a);
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  border-bottom-width: 2px;
  border-radius: 4px; font-size: 11px; font-family: monospace;
  color: var(--ps-text-muted, #666);
}

/* ── Dynamic text scaling ────────────────────────────────────────── */
/* Respect browser font size preferences */
html { font-size: clamp(14px, 1rem, 20px); }

/* ── ARIA live region ────────────────────────────────────────────── */
[aria-live="polite"],
[aria-live="assertive"] {
  /* These must exist in the DOM but can be visually hidden until they have content */
}
.ps-live-region:empty { display: none; }
.ps-live-region:not(:empty) {
  position: fixed;
  bottom: calc(var(--ps-footer-h, 58px) + 16px);
  left: 50%; transform: translateX(-50%);
  z-index: 99999;
  padding: 10px 18px;
  background: var(--ps-surface-2, #121212);
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  border-radius: var(--ps-radius, 14px);
  box-shadow: var(--ps-depth-2, 0 8px 24px rgba(0,0,0,0.65));
  font-size: 14px; font-weight: 500;
  color: var(--ps-text, #f0f0f0);
  pointer-events: none;
  max-width: 90vw; text-align: center;
  animation: ps-fadeUp 0.3s ease both;
}

/* ── Semantic role hints ─────────────────────────────────────────── */
/* Ensure minimum contrast for text on primary backgrounds */
.ps-on-primary { color: #000 !important; }
.ps-on-danger  { color: #fff !important; }
.ps-on-success { color: #fff !important; }

/* ── High-contrast glow for focus on primary actions ────────────── */
.modal-btn-primary:focus-visible {
  outline: 2.5px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(var(--ps-primary-rgb,0,230,195), 0.45) !important;
}

/* ── Reduced motion — preserve opacity only ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ps-empty__illustration,
  .ps-music-chip__note,
  .ps-ai-dot,
  .ps-skeleton-shimmer,
  .ps-skeleton-card__image,
  .ps-skeleton-card__line,
  .ps-skeleton-service__line,
  .ps-skeleton-appt__title,
  .ps-skeleton-appt__time,
  .ps-skeleton-appt__sub,
  .ps-skeleton-customer__avatar,
  .ps-skeleton-customer__name,
  .ps-skeleton-customer__meta,
  .ps-skeleton-discovery__image,
  .ps-skeleton-discovery__line,
  .store-empty-card {
    animation: none !important;
    transition: none !important;
  }
  .ps-skeleton-shimmer,
  [class*="ps-skeleton-"] {
    background: var(--ps-surface-3, #1a1a1a) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   § 9  PERFORMANCE HELPERS (WS-9)
   ══════════════════════════════════════════════════════════════════ */

/* ── Compositing hints for animated elements ────────────────────── */
.drawer,
.modal-card,
.ps-mini-player,
.appt {
  will-change: transform;
}
/* Remove will-change when not animating */
.drawer:not(.open),
.modal-overlay:not(:last-child) > .modal-card {
  will-change: auto;
}

/* ── Content visibility for long lists ──────────────────────────── */
.type-row,
.category-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 160px;
}

/* ── Image loading transitions ──────────────────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.35s ease;
}
img[loading="lazy"].loaded,
img.ps-loaded {
  opacity: 1;
}
.item-card-image img { transition: transform 0.4s ease, opacity 0.35s ease; }

/* ══════════════════════════════════════════════════════════════════
   § 10  RESPONSIVE QA (WS-10)
   ══════════════════════════════════════════════════════════════════ */

/* ── Tablet (≥ 600px) ───────────────────────────────────────────── */
@media (min-width: 600px) {
  .ps-mini-player { left: 20px; right: 20px; border-radius: 22px; }
  .ps-music-chip  { max-width: 240px; }
  .ps-empty       { padding: 56px 32px; }
  .ps-empty__body { font-size: 15px; max-width: 340px; }
}

/* ── Desktop (≥ 1024px) ─────────────────────────────────────────── */
@media (min-width: 1024px) {
  .ps-mini-player { max-width: 440px; left: 50%; transform: translateX(-50%); }
  .ps-mini-player.ps-mini-player--open { transform: translateX(-50%) translateY(0); }
}

/* ── Landscape phone ─────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .ps-mini-player { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .ps-empty        { padding: 24px 20px; }
  .ps-empty__illustration { width: 56px; height: 56px; font-size: 24px; }
}

/* ── Safe area insets for notched devices ───────────────────────── */
.ps-mini-player {
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

/* ══════════════════════════════════════════════════════════════════
   § 11  INSTRUCTIONAL EXPERIENCE (WS-11)
   ══════════════════════════════════════════════════════════════════ */

/* ── Help tooltip ────────────────────────────────────────────────── */
.ps-help-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ps-glass-1, rgba(255,255,255,0.04));
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  font-size: 11px; font-weight: 700; cursor: help;
  color: var(--ps-text-muted, #666);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.ps-help-tip:hover { background: var(--ps-glass-2, rgba(255,255,255,0.07)); color: var(--ps-text, #f0f0f0); }

/* ── Help overlay / callout ─────────────────────────────────────── */
.ps-callout {
  position: absolute; z-index: 5000;
  background: var(--ps-surface-3, #1a1a1a);
  border: 1px solid var(--ps-border-2, rgba(255,255,255,0.10));
  border-radius: var(--ps-radius-md, 12px);
  padding: 12px 16px;
  max-width: 240px;
  box-shadow: var(--ps-depth-2, 0 8px 24px rgba(0,0,0,0.65));
  font-size: 13px; line-height: 1.5;
  color: var(--ps-text, #f0f0f0);
  animation: ps-fadeUp 0.25s var(--ps-ease, cubic-bezier(.22,.8,.25,1)) both;
  pointer-events: auto;
}
.ps-callout::before {
  content: '';
  position: absolute; top: -7px; left: 20px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--ps-border-2, rgba(255,255,255,0.10));
}
.ps-callout__title {
  font-weight: 700; font-size: 13px; margin-bottom: 4px;
  color: var(--ps-text, #f0f0f0);
}
.ps-callout__body { font-size: 12px; color: var(--ps-text-muted, #666); line-height: 1.5; }
.ps-callout__close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--ps-text-muted, #666); font-size: 14px;
  padding: 2px 4px; border-radius: 4px;
}

/* ── Onboarding progress bar ────────────────────────────────────── */
.ps-onboard-progress {
  height: 3px; border-radius: 2px;
  background: var(--ps-surface-3, #1a1a1a);
  overflow: hidden; position: relative;
}
.ps-onboard-progress__fill {
  height: 100%; border-radius: 2px;
  background: var(--ps-primary, #00E6C3);
  transition: width 0.5s var(--ps-ease, cubic-bezier(.22,.8,.25,1));
}

/* ── Instructional highlight pulse ──────────────────────────────── */
@keyframes ps-highlight {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--ps-primary-rgb,0,230,195), 0.45); }
  50%     { box-shadow: 0 0 0 8px rgba(var(--ps-primary-rgb,0,230,195), 0); }
}
.ps-highlight { animation: ps-highlight 1.8s ease-in-out 3; }

/* Guided onboarding step indicator */
.ps-step-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ps-surface-4, #222);
  transition: background 0.2s, transform 0.2s;
}
.ps-step-dot.active {
  background: var(--ps-primary, #00E6C3);
  transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════════════════
   § 12  VISUAL CONSISTENCY AUDIT (WS-13)
   ══════════════════════════════════════════════════════════════════ */

/* ── Icon sizing system ──────────────────────────────────────────── */
:root {
  --ps-icon-xs: 14px;
  --ps-icon-sm: 16px;
  --ps-icon-md: 20px;
  --ps-icon-lg: 24px;
  --ps-icon-xl: 28px;
  --ps-icon-2x: 36px;
}
.ps-icon-xs { font-size: var(--ps-icon-xs); }
.ps-icon-sm { font-size: var(--ps-icon-sm); }
.ps-icon-md { font-size: var(--ps-icon-md); }
.ps-icon-lg { font-size: var(--ps-icon-lg); }
.ps-icon-xl { font-size: var(--ps-icon-xl); }

/* ── Spacing scale ───────────────────────────────────────────────── */
:root {
  --ps-space-1: 4px;
  --ps-space-2: 8px;
  --ps-space-3: 12px;
  --ps-space-4: 16px;
  --ps-space-5: 20px;
  --ps-space-6: 24px;
  --ps-space-8: 32px;
  --ps-space-10: 40px;
}

/* ── Typography hierarchy enforcement ───────────────────────────── */
.ps-text-display {
  font-family: var(--ps-font-display, 'Outfit', sans-serif);
  font-weight: 700; letter-spacing: -0.3px;
}
.ps-text-title   { font-size: 18px; font-weight: 700; }
.ps-text-heading { font-size: 15px; font-weight: 600; }
.ps-text-body    { font-size: 14px; font-weight: 400; line-height: 1.55; }
.ps-text-caption { font-size: 12px; color: var(--ps-text-muted, #666); }
.ps-text-micro   { font-size: 11px; color: var(--ps-text-sub, #444); }
.ps-text-label   { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ps-text-muted, #666); }

/* ── Button sizing standardization ──────────────────────────────── */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--ps-radius, 14px); font-family: var(--ps-font, 'DM Sans', sans-serif); cursor: pointer; font-weight: 600; border: none; }
.ps-btn-sm  { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--ps-radius-sm, 8px); }
.ps-btn-md  { height: 44px; padding: 0 20px; font-size: 14px; }
.ps-btn-lg  { height: 52px; padding: 0 28px; font-size: 16px; }
.ps-btn-xl  { height: 56px; padding: 0 32px; font-size: 17px; }
.ps-btn-primary { background: var(--ps-primary, #00E6C3); color: #000; box-shadow: 0 4px 16px var(--ps-primary-glow, rgba(0,230,195,0.28)); }
.ps-btn-secondary { background: var(--ps-surface-3, #1a1a1a); color: var(--ps-text, #f0f0f0); border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06)); }
.ps-btn-danger { background: rgba(255,77,77,0.12); color: var(--ps-danger, #ff4d4d); border: 1px solid rgba(255,77,77,0.20); }
.ps-btn-ghost  { background: transparent; color: var(--ps-text-muted, #666); border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06)); }
.ps-btn:active { transform: scale(0.96); }
.ps-btn-primary:active { filter: brightness(0.9); }

/* ── Border radius consistency ───────────────────────────────────── */
/* Chips / pills → 20px */
.ps-chip,
.category-pill,
.type-tab { border-radius: 20px; }
/* Cards → var(--ps-radius) = 14px */
.item-card, .lz-item-card, .appt-card, .ps-card { border-radius: var(--ps-radius, 14px); }
/* Modals → 20px top */
.modal-card { border-radius: 20px 20px 16px 16px; }
/* Drawers → 0 (full height) */
/* Buttons → var(--ps-radius) = 14px */
button.ps-btn { border-radius: var(--ps-radius, 14px); }

/* ── Elevation hierarchy ─────────────────────────────────────────── */
/*
  depth-0: flat (no shadow)
  depth-1: subtle (cards in lists)
  depth-2: raised (active cards)
  depth-3: floating (modals, drawers)
  depth-4: overlay (full-screen overlays)
*/
.ps-elevation-0 { box-shadow: none; }
.ps-elevation-1 { box-shadow: var(--ps-depth-1, 0 2px 8px rgba(0,0,0,0.50)); }
.ps-elevation-2 { box-shadow: var(--ps-depth-2, 0 8px 24px rgba(0,0,0,0.65)); }
.ps-elevation-3 { box-shadow: var(--ps-depth-3, 0 16px 48px rgba(0,0,0,0.78)); }

/* ── Glass effects consistency ───────────────────────────────────── */
.ps-glass-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.018) 30%, rgba(0,0,0,0.12) 100%),
    var(--ps-surface-2, #121212);
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  backdrop-filter: blur(var(--ps-ui-blur, 18px));
  -webkit-backdrop-filter: blur(var(--ps-ui-blur, 18px));
}

/* ── Map overlay consistency ─────────────────────────────────────── */
.ps-map-overlay,
.maplibregl-popup-content {
  font-family: var(--ps-font, 'DM Sans', sans-serif);
  background: var(--ps-surface-2, #121212);
  border: 1px solid var(--ps-border-1, rgba(255,255,255,0.06));
  border-radius: var(--ps-radius-md, 12px);
  color: var(--ps-text, #f0f0f0);
  box-shadow: var(--ps-depth-2, 0 8px 24px rgba(0,0,0,0.65));
  padding: 12px 16px;
}

/* ── AI panel consistency ─────────────────────────────────────────── */
.lz-ai-message {
  font-family: var(--ps-font, 'DM Sans', sans-serif);
  line-height: 1.55;
}

/* ── Bottom navigation consistency ──────────────────────────────── */
#footerNav {
  /* Ensure footer nav respects safe area on all devices */
  padding-bottom: max(var(--ps-safe-bottom, 0px), env(safe-area-inset-bottom, 0px));
}

/* ── Header alignment consistency ────────────────────────────────── */
.shop-header,
#shopHeader,
#psShopHeader {
  /* Ensure header respects notch */
  padding-top: max(14px, calc(14px + env(safe-area-inset-top, 0px)));
}

/* ── Glass effect consistency in light mode ─────────────────────── */
body[data-appearance="light"] .ps-glass-panel {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.07);
  backdrop-filter: blur(12px);
}
body[data-appearance="light"] .ps-mini-player {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.08);
}
body[data-appearance="light"] .ps-music-chip {
  background: rgba(255,255,255,0.90);
  border-color: rgba(0,0,0,0.08);
  color: #111;
}
body[data-appearance="light"] .ps-empty__illustration {
  background: radial-gradient(ellipse at center, rgba(var(--ps-primary-rgb,0,230,195),0.10) 0%, transparent 70%);
}
body[data-appearance="light"] .ps-callout {
  background: var(--ps-surface-1, #fff);
  border-color: var(--ps-border-1, rgba(0,0,0,0.07));
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body[data-appearance="light"] .ps-callout::before {
  border-bottom-color: rgba(0,0,0,0.07);
}

/* ══════════════════════════════════════════════════════════════════
   § 13  LEGENDS THEME CONSISTENCY
   ══════════════════════════════════════════════════════════════════ */

body[data-ui="legends"] .ps-music-chip {
  border-color: rgba(207,175,74,0.20);
  box-shadow: 0 2px 12px rgba(207,175,74,0.08);
}
body[data-ui="legends"] .ps-empty__cta {
  box-shadow: 0 4px 16px rgba(207,175,74,0.25);
}
body[data-ui="legends"] .ps-drag-pickup {
  box-shadow: var(--ps-depth-3), 0 0 0 2px rgba(207,175,74,0.30) !important;
}

/* ══════════════════════════════════════════════════════════════════
   § 14  TRANSITION HELPERS (global utility)
   ══════════════════════════════════════════════════════════════════ */

.ps-no-transition { transition: none !important; animation: none !important; }
.ps-instant { transition-duration: 0ms !important; }
.ps-delay-1 { animation-delay: 50ms; }
.ps-delay-2 { animation-delay: 100ms; }
.ps-delay-3 { animation-delay: 150ms; }
.ps-delay-4 { animation-delay: 200ms; }
