/* Patch performance iPhone/Safari PWA */
@supports (-webkit-touch-callout: none) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }

  .animated-bg::before,
  .animated-bg::after,
  .bg-blob,
  .page-transition,
  .havana-title::before,
  .havana-title::after,
  .reward-badge,
  .notification-dot,
  .scan-line {
    animation: none !important;
    transition: none !important;
  }

  .glass-card,
  .bottom-nav,
  .ios-install-modal,
  .remember-card,
  .menu-glass-card,
  .event-card-premium,
  .havana-card,
  .admin-card,
  .dashboard-card,
  .client-card,
  .modal-content {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  body,
  .app-shell,
  .page-transition {
    transform: none !important;
    will-change: auto !important;
  }
}

/* Patch v3 : Safari iPhone très agressif — priorité fluidité */
@supports (-webkit-touch-callout: none) {
  *, *::before, *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body::before,
  body::after,
  .animated-bg,
  .animated-bg::before,
  .animated-bg::after,
  .bg-blob,
  .blob,
  .glow,
  .page-transition,
  .havana-page-leaving,
  .reward-badge,
  .notification-dot,
  .scan-line {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
  }

  .glass-card,
  .bottom-nav,
  .bottom-nav a,
  .client-card,
  .dashboard-card,
  .havana-card,
  .admin-card,
  .modal-content,
  .menu-glass-card,
  .event-card-premium,
  .in-app-notification,
  .ios-install-modal,
  .legal-footer-links {
    background-color: rgba(18, 18, 18, 0.94) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.22) !important;
  }

  img,
  video,
  canvas {
    transform: translateZ(0);
  }
}
