/* === Effet de fond général === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  background: radial-gradient(ellipse at top left, #2e0249, #57059e, #0f0f0f);
  filter: blur(100px);
  opacity: 0.2;
}

/* === Cartes glassmorphisme === */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Boutons classiques Glow (header ou actions simples) === */
.btn-glow {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.btn-glow:active {
  transform: scale(0.97);
}

/* === Boutons secondaires circulaires (modale) === */
.btn-glow-secondary {
  padding: 10px 20px;
  border-radius: 999px;
  color: white;
  transition: all 0.3s ease;
}

.btn-glow-secondary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-glow-secondary:active {
  transform: scale(0.96);
}

/* === Boutons d'action uniformisés (ex : Envoyer, Recevoir, Historique) === */
.btn-action {
  color: white;
  font-weight: 500;
  padding: 12px;
  border-radius: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.06));
  transition: all 0.2s ease;
}

.btn-action:hover,
.btn-action:active {
  transform: scale(0.97);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.2);
}

/* === Footer navigation === */
.nav-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 12px 0 10px;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #ccc;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.nav-item:hover {
  color: #0ff;
}

.nav-item.active {
  color: #0ff;
  border-bottom: 2px solid #0ff;
}

/* === Modales === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.modal-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 24px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* === Utils === */
.hidden {
  display: none;
}

.notif-ping {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 999px;
  animation: ping 1s infinite;
}

/* Apparition fluide des modales */
.modal-box {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* Lorsque la modale est visible */
.modal.show .modal-box {
  opacity: 1;
  transform: translateY(0);
}

#qrCanvas {
  width: 150px;
  height: 150px;
}

/* Nouvelle nav-footer avec style glass */
.nav-footer-modern {
  position: fixed;
  bottom: 0;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 10px;
  margin-bottom: 12px;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 40;
}

.nav-item-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #ccc;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.nav-item-modern:hover {
  color: #0ff;
}

.nav-item-modern.active {
  color: #0ff;
}

/* --- Animation modale iOS style --- */
.modal {
  transition: background 0.25s cubic-bezier(.45, .13, .48, .87);
}

.account-modal-box-anim {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition:
    opacity 0.44s cubic-bezier(.42, 0, .58, 1),
    transform 0.48s cubic-bezier(.32, 1.36, .52, 1);
  will-change: transform, opacity;
}

.modal.show .account-modal-box-anim {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.44s cubic-bezier(.42, 0, .58, 1),
    transform 0.44s cubic-bezier(.32, 1.36, .52, 1);
}

.invite-modal-box-anim {
  opacity: 0;
  transform: translateY(64px) scale(0.99);
  transition:
    opacity 0.44s cubic-bezier(.42, 0, .58, 1),
    transform 0.44s cubic-bezier(.32, 1.36, .52, 1);
  will-change: transform, opacity;
}

.modal.show .invite-modal-box-anim {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Fix icon alignement et espacement général des rectangles */
.glass .flex.items-start>i,
.glass .flex.items-center>i {
  min-width: 20px;
  min-height: 20px;
  max-width: 22px;
  max-height: 22px;
  margin-top: 2px;
}

/* Espacement vertical dans les steps d'invitation */
.glass.rounded-xl.flex.flex-col.gap-4.shadow-sm>div {
  padding-bottom: 3px;
  padding-top: 3px;
}

/* Icône dans le bouton "Copier le code" */
#copyParrainCodeBtn i {
  width: 22px;
  height: 22px;
}

.input-glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.8rem;
  padding: 10px 14px;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 4px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(5px);
}

.input-glass:disabled {
  color: #bdbdbd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0.8;
}

.input-glass:focus {
  border: 1.5px solid #0ff;
  box-shadow: 0 0 0 1.5px #0ff3;
  background: rgba(255, 255, 255, 0.14);
}

.modal-box {
  /* ... (déjà existant) */
  box-shadow: 0 4px 48px 0 rgba(0, 0, 0, 0.40);
}

.glass .flex.items-start>i,
.glass .flex.items-center>i {
  min-width: 20px;
  min-height: 20px;
  max-width: 22px;
  max-height: 22px;
  margin-top: 2px;
}

.glass .flex.items-center>i {
  min-width: 24px;
  min-height: 24px;
  max-width: 26px;
  max-height: 26px;
  margin-top: 0;
}

.step-desc {
  margin-top: -0.25rem;
  /* -mt-1 */
  margin-bottom: 0.25rem;
  padding-left: 44px;
  /* Ajuste selon la largeur icône+gap */
  font-size: 0.85rem;
  color: #b3b3b3;
  line-height: 1.15;
}


.btn-row {
  flex-direction: row !important;
  gap: 0.5rem !important;
}
/* Animation ouverture style iOS pour la page contact */
.contact-anim {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition:
    opacity 0.64s cubic-bezier(.42,0,.58,1),
    transform 0.72s cubic-bezier(.42,0,.58,1);
  will-change: transform, opacity;
}
.contact-anim.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.input-glass {
  background: rgba(255,255,255,0.08) !important;
  border-radius: 0.9rem !important;
  border: 1.5px solid rgba(255,255,255,0.14) !important;
  color: #fff !important;
  font-size: 1rem !important;      /* >=16px sur mobile pour éviter le zoom auto */
  min-height: 44px !important;     /* gros tap target */
  box-shadow: none !important;
  outline: none !important;
  width: 100%;
  padding: 13px 16px !important;
  transition: border 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
}
.input-glass:focus {
  border-color: #19c7ff !important;
  box-shadow: 0 0 0 1.5px #19c7ff55 !important;
  background: rgba(255,255,255,0.14) !important;
}
.input-glass:disabled {
  color: #bdbdbd !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid rgba(255,255,255,0.09) !important;
  opacity: 0.85;
}
.input-glass::placeholder {
  color: #d1d5db !important;
  opacity: 0.85 !important;
  font-size: 1rem !important;
}
@media (max-width: 700px) {
  .input-glass, .input-glass::placeholder {
    font-size: 16px !important;
  }
}
input.input-glass, textarea.input-glass {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}
input.input-glass,
textarea.input-glass,
select.input-glass {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: rgba(255,255,255,0.09) !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  border-radius: 1rem !important;
  color: #fff !important;
  font-size: 17px !important;         /* Jamais <16px sinon bug/zoom sur iOS */
  min-height: 46px !important;
  padding: 13px 16px !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
  line-height: 1.25 !important;
  transition: border 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  opacity: 1 !important;
  margin-bottom: 7px !important;
}

input.input-glass:focus,
textarea.input-glass:focus,
select.input-glass:focus {
  border-color: #19c7ff !important;
  box-shadow: 0 0 0 1.5px #19c7ff66 !important;
  background: rgba(255,255,255,0.17) !important;
}

input.input-glass:disabled,
textarea.input-glass:disabled,
select.input-glass:disabled {
  color: #bdbdbd !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid rgba(255,255,255,0.11) !important;
  opacity: 0.85 !important;
}

input.input-glass::placeholder,
textarea.input-glass::placeholder {
  color: #d1d5db !important;
  opacity: 0.8 !important;
  font-size: 16px !important;
  letter-spacing: 0.01em;
}

@media (max-width: 700px) {
  input.input-glass,
  textarea.input-glass {
    font-size: 17px !important;
    min-height: 48px !important;
    padding: 13px 14px !important;
  }/* Animation ouverture style iOS pour la page recevoir */
.appear-anim {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition:
    opacity 0.64s cubic-bezier(.42,0,.58,1),
    transform 0.72s cubic-bezier(.42,0,.58,1);
  will-change: transform, opacity;
}
.appear-anim.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

}
.modal-box {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
  z-index: 100 !important; /* ou la valeur que tu veux */
}
.btn-glow.opacity-50 {
  pointer-events: auto !important;
  background: rgba(255,255,255,0.04);
  filter: grayscale(0.8) brightness(0.7);
  color: #bbb;
  cursor: not-allowed !important;
}
.modal-box {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.64s cubic-bezier(.45,1.6,.52,1),
    transform 0.62s cubic-bezier(.23,1.5,.45,1.13);
  will-change: opacity, transform;
}
.modal.show .modal-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.nav-item-modern.active {
  color: #19c7ff;
  position: relative;
}

.nav-item-modern.active::after {
  content: "";
  display: block;
  height: 3px;
  width: 60%;
  background: linear-gradient(90deg, #19c7ff 60%, #8f6fff 100%);
  border-radius: 6px;
  margin: 7px auto 0 auto;
  box-shadow: 0 0 10px #19c7ff55;
  transition: width 0.33s cubic-bezier(.62,1.33,.45,1.13);
}
