/*@font-face {
  font-family: "TokTok";
  src: url("../font/toktok.woff") format("woff");
}*/

/* ===== Global reset to prevent horizontal overflow on mobile ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================================
   TIKTOK LOADER — from github.com/trananhtuat/css-tiktok-loader
   ============================================================ */

/* --- Base loader (splash + processing) --- */
.tiktok-loader {
  width: 44px;
  height: 22px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.tiktok-loader::before,
.tiktok-loader::after {
  position: absolute;
  content: "";
  top: 3px;
  background-color: #ff3e9e;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: tiktok-loader-anim 1s linear infinite;
}
.tiktok-loader::after {
  background-color: #4de8f4;
  animation-delay: 0.5s;
}
@keyframes tiktok-loader-anim {
  0%, 100% { top: 3px;  left: 0px;  width: 16px; height: 16px; z-index: 0; }
  25%       { top: 0px;  left: 11px; width: 22px; height: 22px; z-index: 1; }
  50%       { top: 3px;  left: 26px; width: 16px; height: 16px; }
  75%       { top: 4px;  left: 14px; width: 16px; height: 16px; }
}

/* --- Small inline variant (inside verify status row) --- */
.tiktok-loader.small {
  width: 30px;
  height: 15px;
}
.tiktok-loader.small::before,
.tiktok-loader.small::after {
  top: 2px;
  width: 11px;
  height: 11px;
  animation-name: tiktok-loader-anim-sm;
}
@keyframes tiktok-loader-anim-sm {
  0%, 100% { top: 2px;  left: 0px;  width: 11px; height: 11px; z-index: 0; }
  25%       { top: 0px;  left: 7px;  width: 15px; height: 15px; z-index: 1; }
  50%       { top: 2px;  left: 17px; width: 11px; height: 11px; }
  75%       { top: 3px;  left: 9px;  width: 11px; height: 11px; }
}

/* Startup splash overlay that hosts the loader */
.tiktok-splash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.tiktok-splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loader inside the Pay button (small) reuses the same animation */
.pay-loader-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Full-screen processing loader shown during payment */
.processing-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.processing-loader[hidden] { display: none !important; }
.processing-loader.show { display: flex !important; }
.processing-text {
  font-size: 16px;
  font-weight: 600;
  color: #161823;
  font-family: "Nunito Sans", Arial, sans-serif;
  margin: 0;
}

/* Styles généraux de la barre de défilement */
::-webkit-scrollbar {
  width: 8px; /* Largeur de la barre de défilement */
}

/* Barre de défilement en arrière-plan */
::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Poignée de la barre de défilement */
::-webkit-scrollbar-thumb {
  background-color: #88888812;
  border-radius: 4px;
}

/* Styles au survol de la barre de défilement */
::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Styles lors du défilement actif */
::-webkit-scrollbar-thumb:active {
  background-color: #333;
}

body {
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.popup-open {
  background-color: rgba(0, 0, 0, 0.5); /* Couleur de fond semi-transparente */
}

header.popup-open {
  background-color: rgba(0, 0, 0, 0.5); /* Couleur d'assombrissement */
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 10vh;
  flex-direction: column;
  margin-bottom: 0px;
}

h1 {
  text-align: center;
  margin-top: 100px;
  font-size: 40px;
  font-weight: 800;
  color: #161823;
}

h2 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0px;
  font-size: 26px;
  font-weight: 800;
  color: #161823;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.input2 {
  flex: 1;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 20px;
  border: 1.5px solid #d4d4d8;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: #161823;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input2::placeholder {
  color: #9a9a9f;
  font-weight: 500;
  opacity: 1;
}

.input2:focus {
  outline: none;
  border-color: rgb(254, 44, 85);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}

.buttonwaw {
  margin-bottom: 20px;
  border-radius: 12px;
  border: none;
  color: rgb(255, 255, 255);
  background-color: #fe2c55;
  min-height: 36px;
  display: flex;
  position: relative;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 6px 8px;
  user-select: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: "Nunito Sans", Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.03px;
  margin-left: 0px;
  min-width: 100px;
  width: 200px;
  height: 46px;
  transition: background-color 0.15s;
}

.buttonwaw:hover {
  background-color: #f01d49;
}

.buttonwaw:active {
  background-color: #e21545;
}

/************ Ajout des popup ************/

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
}

.popup p {
  margin: 0;
}

.popup-left {
  background-color: #ff0000;
  border-radius: 10px;
  padding: 20px;
  position: fixed;
}

.popup-right {
  background-color: green;
  border-radius: 10px;
  padding: 20px;
  position: fixed;
}

.popup-text {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.popup-left.loading .popup-text,
.popup-right.loading .popup-text {
  display: none;
}

.popup-left.loading .loading-spinner,
.popup-right.loading .loading-spinner {
  display: block;
}
.popup-left.loading,
.popup-right.loading {
  background-color: #e0e0e0; /* Couleur neutre pendant le chargement */
}

.loading-spinner {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 8px solid #ccc;
  border-top-color: rgb(254, 44, 85);
  animation: loading 5s linear infinite;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/***Classe mais pas dans le site de base 
  hr {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
  }***/

/************ Ajout de la classe grid ************/
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 16px;
  width: 100%;
}

.grid-item {
  background-color: #f1f1f2;
  padding: 16px 18px;
  width: 100%;
  height: auto;
  min-height: 82px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.15s, background-color 0.15s;
}

.grid-item:hover {
  background-color: #eaeaec;
}

.grid-item:focus {
  outline: none;
}

.grid-item.grid-selected {
  background-color: #fff5f7 !important;
  border-color: rgb(254, 44, 85) !important;
}

.grid-item.invalid,
.grid-item.active {
  border-color: rgb(254, 44, 85);
  background-color: #fff5f7;
}

/* Coin icon + number sit inline on the top row */
.coin-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coin-image {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;
}

.coin-number {
  font-size: 22px;
  line-height: 1.1;
  color: #161823;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.coin-number-euro {
  display: block;
  text-align: left;
  color: rgba(22, 24, 35, 0.5);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}

/* Custom tile — centered label */
.grid-item-custom {
  align-items: center;
  justify-content: center;
}

.coin-number-perso {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #161823;
  letter-spacing: -0.2px;
}

.grid-item-custom.grid-selected .coin-number-perso {
  color: rgb(254, 44, 85);
}

/************* Total Price *************************/
.euro {
  font-weight: bold;
}
.signeeuro {
  font-weight: bold;
}

.total-payement {

  padding-right: 5px;
  font-size: 18px;
}

.total-payement span {
  font-weight: bold;
}

.custom-button {
  display: inline-block;
  background-color: #c10f2e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: Arial, sans-serif;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  cursor: pointer;
}

.custom-button:hover {
  background-color: #ff3c6c;
}

.custom-input {
  border: none;
  background-color: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 5px;
  margin-right: 10px;
  width: 150px;
  letter-spacing: 0.093px;
}

/************ Recharger************/

.recharger {

  margin-bottom: 100px;
  border-radius: 4px;
  border: none;
  color: rgb(255, 255, 255);
  background-color: rgb(254, 44, 85);
  min-height: 36px;
  display: flex;
  position: relative;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 6px 8px;
  user-select: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: TikTokFont, Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.03px;
  margin-left: 0px;
  min-width: 100px;
  width: 200px;
  height: 46px;
}
/************** NOTIFICATIONS *************/

.tiktok-ae6u8i-SupBadge {
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  background: rgb(254, 44, 85);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  position: absolute;
  top: -6px;
  right: -8px;
  padding: 0px 4px;
  border: 2px solid #fff;
  z-index: 2;
}

.montant {
  width: 134px;
  background-color: transparent;
  border-bottom: 1px solid rgb(22, 24, 35);
  border: 0px;
  text-align: center;
  color: rgb(22, 24, 35);
  font-weight: 100;
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0.24px;
  margin-bottom: 5px;
}

.montant:focus {
  outline: none;
  border-bottom: 1px solid rgb(22, 24, 35);
}

/************ Header ************/
header {
  background-color: #fff;
  border-bottom: 1px solid #ebebeb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
}

.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/************ search-bar ************/
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  background-color: #f1f1f2;
  padding: 8px 18px;
  flex: 1;
  max-width: 340px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}

.search-bar:focus-within {
  background-color: #fff;
  border-color: #e0e0e0;
}

.search-bar input {
  border: none;
  background-color: transparent;
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("../img/loupe.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  cursor: pointer;
}

/************ Ajout des classes upload-button et upload-box ************/
.upload-button {
  display: flex;
  align-items: center;
  position: relative;
}

.upload-box {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 10px;
  padding-right: 20px;
  border-radius: 2px;
  transition: background-color 0.3s;
  border: solid 1px #ccc;
}

.upload-box:hover {
  background-color: #efefef;
}

.upload-link {
  text-decoration: none; /* Suppression du soulignement du lien */
  color: inherit;
}

.upload-icon {
  height: 12px;
  width: 12px;
  margin-right: 15px;
  margin-left: 10px;
}

/************ Header icons ************/
.message-button {
  display: flex;
  align-items: center;
  gap: 18px;
}
.inbox-button {
  display: flex;
  align-items: center;
}

.message-icon,
.inbox-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.message-icon img,
.inbox-icon img {
  height: 28px;
  width: 28px;
  display: block;
}

.message-button button,
.inbox-button button {
  border: none;
  background-color: transparent;
  padding: 5px 10px;
}

/************ user-avatar ************/
.user-avatar {
  cursor: pointer;
  position: relative;
}
.user-avatar img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  display: block;
}
/* When an account is saved, show a pink ring so users know it's tappable to edit */
.user-avatar.has-account img {
  border: 2px solid #fe2c55;
}

/***************************************************************/

.payment-methods {
  text-align: center;
}

.payment-methods p {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-methods p img {
  width: 22px;
  height: 14;
  margin-left: 5px;
}

/************ support ************/
.support-button {
  border: 1px solid rgba(22, 24, 35, 0.12);
  background: none rgb(255, 255, 255);
  outline: none;
  position: fixed;
  inset-inline-end: 24px;
  right: 100px;
  bottom: 24px;
  padding: 10px;
  min-width: 48px;
  width: 48px;
  height: 48px;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 8px;
  border-radius: 48px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  background-image: url(../img/support.png); /* Remplacez le chemin par le chemin de votre image */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 25px 25px;
}

.support-button:hover {
  background-color: #e3e3e3;
}

/********************************************** PAIEMENT POP UP  ********************************/

.popup-paiement {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  font-family: Proxima;
  margin: auto;
  background-color: rgb(255, 255, 255);
  width: 100%;
  max-width: 880px;
  min-width: 700px;
  padding: 24px 24px 0px;
  border-radius: 7px;
  z-index: 9999; /* Assurez-vous que l'overlay soit au-dessus de tous les autres éléments */

}

.resumer {
  font-size: 24px;
  line-height: 32px;
  color: rgb(22, 24, 35);
  font-weight: 700;
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0px -24px;
  padding: 0px 24px 24px;
  border-bottom: 0.5px solid rgba(22, 24, 35, 0.2);
  text-align: left;
}

.compte {
  color: rgb(22, 24, 35);
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 0.03px;
  font-size: 18px;
}

.compte2 {
  color: rgb(22, 24, 35);
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 100;
  line-height: 21px;
  letter-spacing: 0.03px;
  font-size: 18px;
  margin-left: 30rem;
}

.compte3 {
  color: rgb(22, 24, 35);
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 100;
  line-height: 21px;
  letter-spacing: 0.03px;
  font-size: 18px;
  margin-left: 29.1rem;
}

/* ---- Recipient profile in Order Summary ---- */
.summary-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 6px;
}
.summary-profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f1f2;
  flex-shrink: 0;
}
.summary-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.summary-profile-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 800;
  color: #161823;
  line-height: 1.2;
}
.summary-verified {
  display: inline-flex;
  align-items: center;
}
.summary-profile-followers {
  font-size: 13px;
  color: rgba(22, 24, 35, 0.5);
  font-weight: 600;
}
.compte-gifted {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compte-gifted .compte3 {
  margin-left: 0;
  font-size: 15px;
  font-weight: 400;
  color: rgba(22, 24, 35, 0.6);
}

.piece {
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  margin: 2px 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 22px;
  font-size: 16px;
  color: rgb(22, 24, 35);
  font-weight: 200;
}

.prix {
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  margin: 2px 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 22px;
  font-size: 16px;
  color: rgb(22, 24, 35);
  font-weight: 700;
}

.modepaiement {
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  margin-bottom: 14px;
  padding-bottom: 0px;
  font-size: 18px;
  line-height: 24px;
  color: rgb(22, 24, 35);
  font-weight: 700;
}

.gerer {
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Aligne le contenu vers la droite */
  user-select: none;
  cursor: pointer;
  box-sizing: border-box;
  font-size: 14px;
  letter-spacing: 0.093px;
  margin: 0; /* Supprime les marges pour ajuster le décalage avec le <span> */
  background: 0px 0px;
  border-color: transparent;
  box-shadow: none;
  padding: 0px;
  height: 24px;
  line-height: 24px;
  width: auto;
  min-width: auto;
  min-height: auto;
  position: relative;
  top: 0px; /* Modifier la valeur pour ajuster le décalage vers le haut */
  right: 0px;
  font-weight: bold;
  color: rgb(254, 44, 85);
  text-decoration: none;
}

.gerer-span {
  margin-left: 10px; /* Ajuste l'espace entre le bouton et le <span> */
}

.ligne {
  padding: 3px 0px;
  margin-top: 5px;
  margin-bottom: 11px;
  border-bottom: 1px solid rgb(238, 238, 240);
}

.paypal {
  color: rgb(22, 24, 35);
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 0.03px;
  font-size: 18px;

  border: 1px solid #eeeeee;
  border-radius: 2px;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  align-items: center;
  padding: 18px 18px 18px 15px;
}


.pseudopp {
  margin-right: 31rem;
  font-weight: bold;
  color: #333;
}

.paypal2 {
  vertical-align: middle;
}

.paypal3 {
  vertical-align: middle;
  margin-left: 5rem;
}

/* ============================================================
   PAYMENT METHODS — selectable list (PayPal, Card, Google/Apple Pay)
   ============================================================ */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #eeeeee;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  position: relative;
}
.pay-method:hover {
  border-color: #d4d4d8;
}
.pay-method.selected {
  border-color: rgb(254, 44, 85);
  background: #fff5f7;
}
.pay-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pay-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d4d4d8;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}
.pay-method.selected .pay-radio {
  border-color: rgb(254, 44, 85);
  background: rgb(254, 44, 85);
}
.pay-method.selected .pay-radio::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.pay-method-label {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #161823;
  font-family: "Nunito Sans", Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pay-method-detail {
  font-size: 14px;
  font-weight: 400;
  color: rgba(22, 24, 35, 0.5);
  letter-spacing: 0.5px;
}
.pay-method-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.pay-method-icon img {
  height: 22px;
  display: block;
}
.pay-method-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.pay-method-icons img {
  height: 20px;
  display: block;
}
.gpay-icon svg, .apay-icon svg {
  display: block;
  border-radius: 4px;
}

/* Confirmation row: keep label + logos on one aligned row */
#confirm-method {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.confirm-pay-logos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.confirm-pay-logos img,
#confirm-method .paypal3 {
  height: 20px;
  margin-left: 0;
  vertical-align: middle;
}
.confirm-pay-logo {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}
.confirm-pay-logo svg {
  display: block;
  border-radius: 4px;
}
#confirm-method .pseudopp {
  margin: 0;
  font-size: 14px;
  color: rgba(22, 24, 35, 0.5);
  font-weight: 400;
}

.pay-button {
  border-radius: 4px;
  border: none;
  color: rgb(255, 255, 255);
  background-color: rgb(254, 44, 85);
  min-height: 36px;
  display: flex;
  position: relative;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  user-select: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: "Nunito Sans", Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0.03px;
  min-width: 140px;
  height: 36px;
  margin-inline-start: 8px;
}

/* Small, centered spinner shown inside the pay button while processing */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
  vertical-align: middle;
}

.pay-button.loading {
  background-color: rgba(254, 44, 85, 0.55);
  cursor: wait;
}

/* When loading, keep the spinner white even though :disabled dims text */
.pay-button.loading .btn-spinner {
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
}

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

.help-button {
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  color: rgb(22, 24, 35);
  border-color: rgba(22, 24, 35, 0.12);
  background-color: rgb(255, 255, 255);
  min-height: 36px;
  line-height: 25px;
  font-weight: 600;
  font-family: "TokTok", PingFangSC, sans-serif;
  display: flex;
  position: relative;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 8px;
  user-select: none;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 38px;
  font-size: 16px; /* Ajustez la taille de la police selon vos préférences */
  transform: none;
}

.blabla {
  font-size: 14px;
  line-height: 20px;
  color: rgba(22, 24, 35, 0.5);
  font-weight: 400;
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  margin-top: 10px;
  margin-bottom: 10px;
}

.blabla > b {
  color: rgb(22, 24, 35);
}

.pseudopp {
  color: rgb(22, 24, 35);
  font-family: "TokTok", Arial, Tahoma, PingFangSC, sans-serif;
  font-weight: 100;
  line-height: 21px;
  letter-spacing: 0.03px;
  font-size: 18px;
  text-align: right;
  margin-left: 3rem;
}

.offert {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  margin-left: 10px;
}

.button-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.pay-button:disabled {
  border: none;
  color: rgba(22, 24, 35, 0.34);
  background-color: rgba(22, 24, 35, 0.06);
  pointer-events: none;
}

/* Loading state overrides the plain disabled greys */
.pay-button:disabled.loading {
  color: #ffffff;
  background-color: rgba(254, 44, 85, 0.55);
}

.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  appearance: none;
  border: 1.5px solid rgba(22, 24, 35, 0.12);
  margin: 0px 4px -2.5px 0px;
  cursor: pointer;
  overflow: visible;
  background-color: transparent;
  font-family: inherit;
  line-height: 1.15;
  margin: 0;
}

.checkbox:checked {
  background-image: none; /* Supprime l'image de fond lorsque la checkbox est cochée */
  background-color: rgb(254, 44, 85); /* Applique une couleur de fond différente lorsque la checkbox est cochée */
  background-image: url("../img/check.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px; /* Ajustez la taille de l'image selon vos besoins */
}

.checkbox-paypal {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  appearance: none;
  border: 1.5px solid rgba(22, 24, 35, 0.12);
  margin: 0px 4px -2.5px 0px;
  cursor: pointer;
  overflow: visible;
  background-color: transparent;
  font-family: inherit;
  line-height: 1.15;
  margin: 0;
  border-radius: 50px;
  margin-right: 50px;
  margin-left: 30px;
  background-image: none; /* Supprime l'image de fond lorsque la checkbox est cochée */
  background-color: rgb(254, 44, 85); /* Applique une couleur de fond différente lorsque la checkbox est cochée */
  background-image: url("../img/check.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px; /* Ajustez la taille de l'image selon vos besoins */
}

.checkbox-paypal2 {
  width: 25px;
  height: 25px;
  border-radius: 2px;
  appearance: none;
  border: 1.5px solid rgba(22, 24, 35, 0.12);
  margin: 0px 4px -2.5px 0px;
  cursor: pointer;
  overflow: visible;
  background-color: transparent;
  font-family: inherit;
  line-height: 1.15;
  margin: 0;
  border-radius: 50px;
  margin-right: 50px;
  margin-left: 20px;
  background-image: none; /* Supprime l'image de fond lorsque la checkbox est cochée */
  background-color: rgb(254, 44, 85); /* Applique une couleur de fond différente lorsque la checkbox est cochée */
  background-image: url("../img/check.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px; /* Ajustez la taille de l'image selon vos besoins */
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
}

.checkbox-wrapper {
  position: relative;
  margin-top: 5px; /* Ajustez la valeur selon vos besoins */
  margin-right: 10px; /* Ajustez la valeur selon vos besoins */
}

.checkbox-wrapper label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.blabla-container {
  margin-top: 5px; /* Ajustez la valeur selon vos besoins */
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Couleur semi-transparente */
  z-index: 9998; /* Assurez-vous que l'overlay soit au-dessus de tous les autres éléments */
  display: none; /* Masquez l'overlay par défaut */
}

.pp {
  margin-left: 30px;
}


/* ============================================================
   PREMIUM ADDITIONS — profile card, account chip, modal
   ============================================================ */

/* ---- Your account row / chip ---- */
.my-account-row {
  width: 100%;
  max-width: 860px;
  margin: 18px auto 8px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
}

.add-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px dashed #d4d4d8;
  color: #555;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.add-account-btn:hover {
  border-color: rgb(254, 44, 85);
  color: rgb(254, 44, 85);
}
.add-account-plus {
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
}

.my-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 100px;
  padding: 6px 8px 6px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.my-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.my-account-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.my-account-name {
  font-size: 14px;
  font-weight: 700;
  color: #161823;
}
.my-account-sub {
  font-size: 12px;
  color: #999;
}
.my-account-edit {
  background: #f1f1f2;
  border: none;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #161823;
  cursor: pointer;
  font-family: inherit;
  margin-left: 4px;
}
.my-account-edit:hover { background: #e5e5e6; }

/* ---- Recipient profile card ---- */
.profile-card {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 10px;
  padding: 0 20px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
.profile-card.show {
  max-height: 400px;
  opacity: 1;
}

.profile-card-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff8fa 100%);
  border: 1px solid #f0e0e5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(254, 44, 85, 0.06);
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f1f2;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.profile-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.profile-info {
  flex: 1;
  min-width: 0;
}
.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: #161823;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-handle {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}
.profile-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}
.profile-stats.stats-loading .profile-stat-num {
  animation: stats-pulse 1s ease-in-out infinite;
}
@keyframes stats-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-stat-num {
  font-size: 17px;
  font-weight: 800;
  color: #161823;
  line-height: 1.1;
}
.profile-stat-label {
  font-size: 12px;
  color: #999;
}
.profile-bio {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.profile-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  min-height: 0;
}
/* Loading: centered transparent — just the TikTok loader, no background */
.profile-status.loading.centered {
  background: transparent;
  justify-content: center;
  padding: 16px 0 4px;
}
/* Keep other states for any future use */
.profile-status.loading { background: transparent; }
.profile-status.success { background: transparent; }
.profile-status.error   { background: #fef3f2; color: #b42318; }
.profile-status .status-text { flex: 1; min-width: 0; }

.mini-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #ddd;
  border-top-color: rgb(254, 44, 85);
  border-radius: 50%;
  animation: mini-spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes mini-spin { to { transform: rotate(360deg); } }

/* ---- Selected coin tile highlight ---- */
.grid-item.grid-selected {
  border: 2px solid rgb(254, 44, 85) !important;
  background: rgba(254, 44, 85, 0.03);
}

/* ---- Account modal ---- */
.account-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.account-modal.show { display: flex; }

.account-modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modal-pop 0.25s ease;
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.account-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f1f2;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  color: #555;
}
.account-modal-close:hover { background: #e5e5e6; }

.account-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #161823;
  margin-bottom: 4px;
}
.account-modal-sub {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.account-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f8f9;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}
.account-preview-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.account-preview-name {
  font-size: 15px;
  font-weight: 700;
  color: #161823;
}
.account-preview-followers {
  font-size: 13px;
  color: #999;
}

.account-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.account-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
}
.account-input-wrap:focus-within {
  border-color: rgb(254, 44, 85);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}
.account-at {
  color: #999;
  font-size: 16px;
  font-weight: 600;
}
.account-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 8px;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
}

/* Country / region select */
.account-select-wrap {
  position: relative;
  margin-bottom: 20px;
}
.account-select {
  width: 100%;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  padding: 13px 40px 13px 14px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: #161823;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.account-select:focus {
  border-color: rgb(254, 44, 85);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
}
.account-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.account-save-btn {
  width: 100%;
  background: rgb(254, 44, 85);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.account-save-btn:hover { background: rgb(196, 36, 68); }

.account-remove-btn {
  width: 100%;
  background: transparent;
  color: #b42318;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
}
.account-remove-btn:hover { text-decoration: underline; }


/* ============================================================
   RESPONSIVE — mobile-first fixes (desktop preserved above)
   ============================================================ */
/* ============================================================
   RESPONSIVE — mobile-first, everything fits, no overflow
   ============================================================ */

/* Tablet / small desktop */
@media (max-width: 1000px) {
  .hdr-inner { gap: 16px; }
  .search-bar { max-width: 260px; }
}

/* --- Phones (<= 800px): full mobile layout --- */
@media (max-width: 800px) {
  /* HEADER: compact, everything fits one row */
  .hdr-inner {
    gap: 8px;
    padding: 8px 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .logo { flex-shrink: 0; }
  .logo img { height: 30px; }

  .search-bar {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 7px 12px;
    gap: 6px;
  }
  .search-bar input { font-size: 14px; }

  /* Keep upload icon only, hide messages + inbox to save space */
  .upload-text { display: none; }
  .upload-button { flex-shrink: 0; }
  .upload-box { padding: 8px 9px; }
  .upload-icon { margin: 0; }
  .message-icon { display: none; }
  .inbox-button { display: none; }
  .user-avatar { flex-shrink: 0; }

  /* HEADINGS */
  h1 { font-size: 30px; margin-top: 82px; }
  h2 { font-size: 22px; margin-top: 8px; }

  /* CONTAINER: full width, safe side padding */
  .container {
    padding: 0 14px;
    width: 100%;
    max-width: 100%;
  }

  /* ACCOUNT ROW / CHIP */
  .my-account-row {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .my-account-chip { max-width: 100%; }
  .my-account-name, .my-account-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* INPUT + VERIFY stack full width */
  .input-container {
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  .input2 {
    width: 100%;
    flex: none;
    height: 56px;
    min-height: 56px;
    margin-bottom: 14px;
  }
  .buttonwaw {
    width: 100%;
    flex: none;
    height: 56px;
    min-height: 56px;
    min-width: 0;
  }

  /* PROFILE CARD full width */
  .profile-card { padding: 0; max-width: 100%; }
  .profile-card-inner { gap: 14px; padding: 16px; }
  .profile-avatar { width: 64px; height: 64px; }
  .profile-stats { gap: 16px; }
  .profile-name, .profile-handle, .profile-bio {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
  }

  /* COIN GRID: 3 cols, fits exactly */
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    gap: 10px;
    max-width: 100%;
    margin: 16px 0 0;
    width: 100%;
  }
  .grid-item {
    width: 100%;
    min-width: 0;
    min-height: 76px;
    margin: 0;
    padding: 12px 10px;
    align-items: flex-start;
    overflow: hidden;
  }
  .grid-item-custom { align-items: center; }
  .coin-top { max-width: 100%; }
  .coin-number { font-size: 19px; }
  .coin-image { width: 18px; height: 18px; }
  .coin-number-euro { font-size: 12px; }

  /* PAYMENT METHODS */
  .payment-methods { padding: 0; width: 100%; }
  .payment-methods p { flex-wrap: wrap; font-size: 14px; gap: 4px; justify-content: center; }
  .payment-methods p img { width: 20px; }

  /* TOTAL + RECHARGE */
  #total-price {
    text-align: center;
    padding: 14px 0 0;
    width: 100%;
    max-width: 100%;
  }
  .recharger {
    width: 100%;
    max-width: 340px;
    margin: 16px auto 40px;
  }

  /* SUPPORT BUTTON */
  .support-button { right: 16px; bottom: 16px; }

  /* PAYMENT POPUP full width */
  .popup-paiement {
    min-width: unset;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 18px;
    max-height: 88vh;
    overflow-y: auto;
  }
  .resumer { margin: 0 -18px; padding: 0 18px 16px; font-size: 20px; }
  .compte2, .compte3 { margin-left: 0; }
  .pseudopp { margin-left: 0; margin-right: 0; }
  .paypal3 { margin-left: auto; }
  .checkbox-paypal { margin-left: 0; margin-right: 12px; }
  #close-popup { margin-left: auto !important; float: right; font-size: 20px; }
  #close-container { display: flex; justify-content: flex-end; }
}

/* --- Small phones (<= 560px) --- */
@media (max-width: 560px) {
  .profile-card-inner { flex-direction: column; text-align: center; }
  .profile-info { text-align: center; width: 100%; }
  .profile-name { justify-content: center; }
  .profile-stats { justify-content: center; }
}

/* --- Narrow phones (<= 480px) --- */
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .grid { gap: 8px; }
  .grid-item { padding: 11px 8px; }
  .coin-number { font-size: 18px; }
  .coin-image { width: 17px; height: 17px; }
  .search-bar { padding: 6px 10px; }

  /* Verify toast: bottom center */
  .popup-left, .popup-right {
    width: calc(100% - 24px);
    max-width: 380px;
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    text-align: center;
  }
  .popup-text { font-size: 15px; }
  .account-modal-box { padding: 20px; }
}

/* --- Very narrow phones (<= 380px) --- */
@media (max-width: 380px) {
  .grid { gap: 6px; }
  .grid-item { padding: 10px 7px; }
  .coin-number { font-size: 16px; }
  .coin-image { width: 15px; height: 15px; }
  .coin-top { gap: 3px; }
  .coin-number-euro { font-size: 11px; }
  .search-bar input { font-size: 13px; }
  h1 { font-size: 25px; }
}

/* ============================================================
   PURCHASE COMPLETED — in-app full screen (matches reference)
   ============================================================ */
.purchase-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(40px + env(safe-area-inset-top, 0px));
  overflow-y: auto;
}
.purchase-screen[hidden] { display: none !important; }
.purchase-screen.show { display: flex !important; }

.purchase-box {
  max-width: 360px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.purchase-check {
  margin-bottom: 22px;
  animation: purchase-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes purchase-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.purchase-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
}
.purchase-sub {
  font-size: 15px;
  color: #888;
  margin: 0 0 36px;
  line-height: 1.5;
}
.purchase-back-btn {
  width: 100%;
  max-width: 300px;
  height: 52px;
  background: #fe2c55;
  color: #fff;
  border: none;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.purchase-back-btn:hover { background: #e21545; }
.purchase-back-btn:active { transform: scale(0.98); }

@media (max-width: 420px) {
  .purchase-title { font-size: 22px; }
}


/* ============================================================
   CUSTOM BOTTOM SHEET (keypad) — matches reference image 2
   ============================================================ */
.custom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10002;
  display: none;
}
.custom-sheet-overlay.show { display: block; }

.custom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 10003;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.15);
}
.custom-sheet.show { transform: translateY(0); }

.custom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.custom-sheet-back,
.custom-sheet-help {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: #161823;
}

.custom-sheet-body {
  padding: 20px 18px 8px;
}

.custom-coins-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: #161823;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
  font-family: inherit;
}

.custom-amount-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 16px;
  position: relative;
}
.custom-amount-coin {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.custom-amount-value {
  font-size: 24px;
  font-weight: 700;
  color: #161823;
  letter-spacing: -0.3px;
}
.custom-amount-value:empty + .custom-amount-placeholder {
  display: inline;
}
.custom-amount-placeholder {
  font-size: 24px;
  font-weight: 600;
  color: #c4c4c8;
  letter-spacing: -0.3px;
  display: none;
}
.custom-amount-field.has-value .custom-amount-placeholder {
  display: none;
}
.custom-amount-cursor {
  width: 2px;
  height: 26px;
  background: rgb(254, 44, 85);
  animation: blink 1s step-start infinite;
  margin-left: -2px;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Keypad */
.keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 12px 8px;
}
.keypad-key {
  background: #f1f1f2;
  border: none;
  border-radius: 8px;
  height: 56px;
  font-size: 22px;
  font-weight: 700;
  color: #161823;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  user-select: none;
}
.keypad-key:active {
  background: #dcdcdf;
}
.keypad-del {
  background: #e8e8ea;
}

.custom-sheet-footer {
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f0f0;
}
.custom-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.custom-total-label {
  font-size: 18px;
  font-weight: 800;
  color: #161823;
}
.custom-total-value {
  font-size: 18px;
  font-weight: 800;
  color: #161823;
}
.custom-confirm-btn {
  width: 100%;
  height: 52px;
  background: rgb(254, 44, 85);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
}
.custom-confirm-btn:hover { background: rgb(226, 34, 72); }
.custom-confirm-btn:disabled {
  background: #f1c9d2;
  cursor: not-allowed;
}
.custom-error-hint {
  color: rgb(247, 35, 35);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 16px;
}


/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */
#install-banner {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 400px;
  background: #fff;
  border: 1px solid rgba(22,24,35,0.12);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  z-index: 10000;
  display: none;
}
.install-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.install-app-icon { border-radius: 10px; flex-shrink: 0; }
.install-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.install-banner-text strong { font-size: 14px; color: rgb(22,24,35); }
.install-banner-text span { font-size: 12px; color: rgba(22,24,35,0.5); }
#install-btn {
  background: rgb(254,44,85);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
#install-btn:hover { background: rgb(196,36,68); }
#install-dismiss {
  background: none;
  border: none;
  font-size: 18px;
  color: rgba(22,24,35,0.5);
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
}
