/* ========================================
   SOONUP - Styles personnalisés
   ======================================== */

/* Fallback styles for elements before Tailwind loads */
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
#app { min-height: 100vh; }

/* Variables CSS */
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #8b5cf6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   FOND DYNAMIQUE ANIMÉ
   ======================================== */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fond subtil pour les pages internes */
.subtle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

/* Particules flottantes */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) scale(1);
    opacity: 0;
  }
}

/* ========================================
   ANIMATIONS GÉNÉRALES
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Classes utilitaires pour les animations */
.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease-out;
}

.animate-slide-in-left {
  animation: slideInFromLeft var(--transition-normal) ease-out;
}

.animate-slide-in-right {
  animation: slideInFromRight var(--transition-normal) ease-out;
}

.animate-scale-in {
  animation: scaleIn var(--transition-normal) ease-out;
}

/* ========================================
   STYLE DES COMBO BOX / SELECT
   ======================================== */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  transition: all var(--transition-normal);
}

select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

select:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* Style moderne pour les selects */
.custom-select {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-select select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  background-color: white;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.custom-select select:focus {
  border-color: var(--primary-color);
  background-color: #f9fafb;
}

/* ========================================
   INPUTS AMÉLIORÉS
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
textarea {
  transition: all var(--transition-normal);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

input:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: #9ca3af;
}

/* ========================================
   BOUTONS AMÉLIORÉS
   ======================================== */
button,
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button:active,
.btn:active {
  transform: translateY(0);
}

/* Effet ripple sur les boutons */
button::before,
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before,
.btn:active::before {
  width: 300px;
  height: 300px;
}

/* ========================================
   CARTES AMÉLIORÉES
   ======================================== */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.1);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  background: linear-gradient(to bottom right, #ffffff, #f9fafb);
}

/* ========================================
   STATISTIQUES AMÉLIORÉES
   ======================================== */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Animation pour les chiffres */
.stat-number {
  display: inline-block;
  transition: all var(--transition-normal);
}

.stat-card:hover .stat-number {
  transform: scale(1.1);
  color: var(--primary-color);
}

/* ========================================
   BADGES ET LABELS
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.badge:hover {
  transform: scale(1.05);
}

/* ========================================
   BARRES DE PROGRESSION
   ======================================== */
.progress-bar {
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  background: #e5e7eb;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  transition: width var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========================================
   NAVBAR AMÉLIORÉE
   ======================================== */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.navbar-link {
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   NOTIFICATIONS / TOASTS
   ======================================== */
.notification {
  animation: slideInFromRight var(--transition-normal) ease-out;
}

.notification.removing {
  animation: slideOutToRight var(--transition-normal) ease-out;
}

@keyframes slideOutToRight {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ========================================
   MODALS
   ======================================== */
.modal-backdrop {
  animation: fadeIn var(--transition-normal);
}

.modal-content {
  animation: scaleIn var(--transition-normal);
}

/* ========================================
   ÉTOILES DE NOTATION
   ======================================== */
.star-rating {
  display: inline-flex;
  gap: 0.25rem;
}

.star {
  transition: all var(--transition-fast);
  cursor: pointer;
}

.star:hover {
  transform: scale(1.2) rotate(15deg);
}

/* ========================================
   EFFETS DE SURVOL SPÉCIAUX
   ======================================== */
.hover-lift {
  transition: all var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  transition: all var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ========================================
   SCROLLBAR PERSONNALISÉE
   ======================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-hover), var(--secondary-color));
}

/* ========================================
   ANIMATIONS DE CHARGEMENT
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   RESPONSIVE ANIMATIONS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.shine-effect:hover::before {
  left: 100%;
}

/* ========================================
   DARK MODE STYLES
   ======================================== */
.dark body {
  background-color: #111827;
}

.dark .navbar-modern {
  background: rgba(17, 24, 39, 0.95);
  border-bottom-color: rgba(55, 65, 81, 0.5);
}

.dark .card {
  background: #1f2937;
  border-color: #374151;
}

.dark .card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.dark input,
.dark textarea,
.dark select {
  background-color: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

.dark input:focus,
.dark textarea:focus,
.dark select:focus {
  border-color: var(--primary-color);
  background-color: #111827;
}

.dark .bg-white {
  background-color: #1f2937;
}

.dark .bg-gray-50 {
  background-color: #111827;
}

.dark .text-gray-900 {
  color: #f9fafb;
}

.dark .text-gray-600 {
  color: #9ca3af;
}

.dark .text-gray-500 {
  color: #6b7280;
}

.dark .border-gray-200 {
  border-color: #374151;
}

.dark .border-gray-300 {
  border-color: #4b5563;
}

.dark ::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4b5563, #6b7280);
}

.dark .skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
}

.dark .glass-effect {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(55, 65, 81, 0.5);
}

.dark .subtle-background {
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

/* ========================================
   PREMIUM DARK THEME SYSTEM (2026)
   ======================================== */

/* Base font */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

/* Dark premium body */
body[data-page="premium"] {
  background: #16163a;
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Fix ring-offset color in dark pages */
body[data-page="premium"] .ring-offset-2 {
  --tw-ring-offset-color: #16163a;
}

/* ---- Floating Orbs ---- */
.premium-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -250px;
  right: -150px;
  animation: orbDrift1 28s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -200px;
  left: -150px;
  animation: orbDrift2 34s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: 40%;
  left: 45%;
  animation: orbDrift3 22s ease-in-out infinite;
  opacity: 0.1;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-60px, 90px) scale(1.08); }
  66%       { transform: translate(40px, -50px) scale(0.94); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(70px, -80px) scale(1.06); }
  66%       { transform: translate(-40px, 60px) scale(1.12); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.10; }
  50%       { transform: translate(-55%, -45%) scale(1.3); opacity: 0.14; }
}

/* ---- Grid Mesh ---- */
.mesh-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---- Glass Cards ---- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 40px rgba(99,102,241,0.08);
}

.glass-card-static {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

/* ---- Gradient Texts ---- */
.gradient-text-premium {
  background: linear-gradient(135deg, #e2e8f0 0%, #a5b4fc 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Premium Buttons ---- */
.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  overflow: hidden;
  letter-spacing: -0.01em;
  font-family: inherit;
  text-decoration: none;
}

.btn-premium-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white !important;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.btn-premium-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 35px rgba(99,102,241,0.55), 0 0 0 1px rgba(99,102,241,0.4) !important;
}

.btn-premium-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 12px rgba(99,102,241,0.4) !important;
}

.btn-premium-ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

.btn-premium-ghost:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.22) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

.btn-premium-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white !important;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}

.btn-premium-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(16,185,129,0.5) !important;
}

/* Shine sweep */
.btn-premium::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.55s ease;
}
.btn-premium:hover::before { left: 100%; }

/* ---- Premium Inputs ---- */
.input-premium {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.875rem;
  padding: 0.875rem 1.25rem;
  color: #f8fafc;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: inherit;
}

.input-premium::placeholder {
  color: rgba(255,255,255,0.28);
}

.input-premium:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

.input-premium:focus {
  border-color: rgba(99,102,241,0.7);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18), 0 0 25px rgba(99,102,241,0.12);
  transform: none !important;
}

/* ---- Badges ---- */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-accent {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
}

.badge-success {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6ee7b7;
}

.badge-violet {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
}

/* ---- Color Swatches ---- */
.color-swatch {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  flex-shrink: 0;
}

.color-swatch:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(255,255,255,0.35);
}

.color-swatch.ring-2 {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.8), 0 0 18px rgba(99,102,241,0.4) !important;
  transform: scale(1.12);
}

/* ---- QR Result Reveal ---- */
@keyframes qrReveal {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.qr-result-appear {
  animation: qrReveal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ---- QR Preview Glow Border ---- */
.qr-glow-wrapper {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.8), rgba(139,92,246,0.8), rgba(59,130,246,0.8));
  box-shadow: 0 0 30px rgba(99,102,241,0.4), 0 0 60px rgba(139,92,246,0.2);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(99,102,241,0.4), 0 0 60px rgba(139,92,246,0.2); }
  50%       { box-shadow: 0 0 50px rgba(99,102,241,0.6), 0 0 90px rgba(139,92,246,0.35); }
}

.qr-glow-wrapper img {
  border-radius: calc(1rem - 3px);
  display: block;
}

/* ---- Navbar Premium ---- */
.nav-premium {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,26,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-premium.scrolled {
  background: rgba(7,7,26,0.92);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ---- Hero Entrance ---- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate   { animation: heroUp 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.hero-delay-1   { animation-delay: 0.05s; }
.hero-delay-2   { animation-delay: 0.15s; }
.hero-delay-3   { animation-delay: 0.25s; }
.hero-delay-4   { animation-delay: 0.38s; }
.hero-delay-5   { animation-delay: 0.52s; }
.hero-delay-6   { animation-delay: 0.65s; }

/* ---- Glow Divider ---- */
.glow-line {
  width: 56px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  box-shadow: 0 0 16px rgba(99,102,241,0.65);
}

/* ---- Step Numbers ---- */
.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 0 22px rgba(99,102,241,0.45);
  flex-shrink: 0;
}

.step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(99,102,241,0.5), rgba(139,92,246,0.5));
  margin: 0 0.75rem;
  margin-top: -1.5rem;
}

/* ---- Feature Icon ---- */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.22);
  color: #a5b4fc;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.glass-card:hover .feature-icon {
  background: rgba(99,102,241,0.22);
  box-shadow: 0 0 28px rgba(99,102,241,0.38);
  transform: scale(1.06);
}

/* ---- Pricing Card Featured ---- */
.pricing-featured {
  background: rgba(99,102,241,0.12) !important;
  border-color: rgba(99,102,241,0.35) !important;
  box-shadow: 0 0 50px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ---- Section backgrounds ---- */
/* Sections sit above fixed orbs (z-index:0) via z-index:1 */
.section-premium-1 {
  position: relative;
  z-index: 1;
  background: rgba(22, 22, 58, 0.88);
}
.section-premium-2 {
  position: relative;
  z-index: 1;
  background: rgba(18, 18, 48, 0.90);
}

/* ---- CTA Gradient Section ---- */
.cta-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
  position: relative;
  overflow: hidden;
}

.cta-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.4), transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.3), transparent 60%);
}

/* ---- Toast Premium ---- */
.toast-premium {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.875rem 1.375rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1000;
  backdrop-filter: blur(20px);
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  border: 1px solid rgba(255,255,255,0.12);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Stat Row ---- */
.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  white-space: nowrap;
}

.stat-pill strong {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

/* ---- Upsell Box ---- */
.upsell-box {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 0.875rem;
  padding: 0.875rem;
}

/* ---- Footer Premium ---- */
.footer-premium {
  position: relative;
  z-index: 1;
  background: rgba(7,7,21,0.96);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- CTA also needs z-index ---- */
.cta-gradient {
  position: relative;
  z-index: 1;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 640px) {
  .orb-1 { width: 400px; height: 400px; }
  .orb-2 { width: 350px; height: 350px; }
  .orb-3 { display: none; }
}

/* ========================================
   APP NAVBAR (pages connectées)
   ======================================== */

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #f0f0f8;
  box-shadow: 0 1px 20px rgba(99, 102, 241, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.app-nav-link:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

.app-nav-link.active,
.app-nav-link.border-blue-500 {
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.08);
}

.app-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9f9ff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.app-user-pill:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.app-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ef4444;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.app-logout-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  transform: none !important;
  box-shadow: none !important;
}

.app-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.15s ease;
}

.app-mobile-link:hover {
  background: #f5f5ff;
  color: #6366f1;
}

/* Ensure app pages use Inter */
body:not([data-page="premium"]) {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
