/* Cartes d'adhésion (Weekly Lite, Weekly, Monthly) et fenêtre « Détails » — voir js/membership.js */
.mcard { position: relative; display: inline-block; width: 92px; aspect-ratio: 100 / 64; max-width: 100%; border-radius: 12px; overflow: hidden; vertical-align: middle; line-height: 0;
  filter: drop-shadow(0 6px 14px var(--mc-glow, rgba(59,130,246,.45))); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.mcard svg { width: 100%; height: 100%; display: block; }
.mcard--lite { --mc-glow: rgba(59,130,246,.5); }
.mcard--weekly { --mc-glow: rgba(168,85,247,.55); }
.mcard--monthly { --mc-glow: rgba(245,158,11,.5); }
.mcard__shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: mcShine 3.6s ease-in-out infinite; pointer-events: none; }
.card:nth-child(2n) .mcard__shine { animation-delay: -1.2s; }
.card:nth-child(3n) .mcard__shine { animation-delay: -2.4s; }
@keyframes mcShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.card:hover .mcard { transform: perspective(400px) rotateY(-10deg) rotateX(4deg) scale(1.05); }
.card__icon:has(.mcard) { font-size: 0; filter: none; }
.mcard--big { width: min(220px, 70%); border-radius: 18px; display: block; margin: 0 auto .9rem; }

/* Résumé sur la carte produit + bouton détails */
.mbr-sum { display: block; margin: .15rem 0 .4rem; font-size: .85rem; line-height: 1.5; color: var(--muted, #aab); text-align: left; }
.mbr-sum__total { color: #7dd3fc !important; }
.mbr-sum strong { color: var(--text, #fff); }
.mbr-more { display: block; align-self: flex-start; margin-right: auto !important; text-align: left; background: none; border: 0; padding: .2rem 0; margin: 0 0 .4rem; color: #93c5fd; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mbr-more:hover, .mbr-more:focus-visible { color: #fff; }

/* Tableau des récompenses */
.mbr-table { display: grid; gap: 1px; margin: 1rem 0; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.08); text-align: left; }
.mbr-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .9rem; background: rgba(10,14,28,.75); }
.mbr-row small { color: var(--muted, #aab); font-weight: 400; }
.mbr-row strong { white-space: nowrap; font-size: 1.05rem; }
.mbr-row--total { background: rgba(59,130,246,.16); }
.mbr-row--total strong { font-size: 1.2rem; color: #7dd3fc; }
.mbr-details { text-align: center; }
.mbr-details h2 { margin: 0 0 .2rem; }
.mbr-steps { text-align: left; margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: .45rem; line-height: 1.45; }
.pux .mbr-table, .confirm .mbr-table { margin: .6rem 0 .9rem; font-size: .92rem; }
.pux-avatar:has(.mcard) { width: auto; height: auto; border-radius: 12px; background: none; box-shadow: none; }
.pux-avatar .mcard { width: 104px; }
.confirm__icon .mcard { width: 120px; }

@media (prefers-reduced-motion: reduce) { .mcard__shine { animation: none; display: none; } .card:hover .mcard { transform: none; } }
@media (max-width: 760px), (pointer: coarse) and (max-width: 900px) {
  .mcard { width: 72px; }
  .mbr-row { padding: .6rem .7rem; }
  .card.sub:has(.mcard) .badge { position: static; display: inline-block; align-self: flex-start; width: auto; margin: 0 0 .5rem; }
  .card.sub:has(.mcard) .card__icon { display: block; }
}

/* ===== Tuile des autres recharges : logo Garena ===== */
.rtile { position: relative; display: inline-block; width: 84px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; vertical-align: middle; line-height: 1;
  background: radial-gradient(circle at 50% 45%, #2a0b0e 0%, #0b0b10 72%); border: 1px solid rgba(230,30,40,.4);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 16px rgba(230,30,40,.22);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.rtile img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 0 6px rgba(230,30,40,.55)); animation: rtBreath 4s ease-in-out infinite; }
.rtile__shine { position: absolute; inset: 0; z-index: 3; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-130%); animation: mcShine 3.8s ease-in-out infinite; pointer-events: none; }
.card:nth-child(2n) .rtile__shine, .card:nth-child(2n) .rtile img { animation-delay: -1.3s; }
.card:nth-child(3n) .rtile__shine, .card:nth-child(3n) .rtile img { animation-delay: -2.6s; }
.card:hover .rtile { transform: perspective(400px) rotateY(-12deg) rotateX(5deg) scale(1.06); box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 26px rgba(230,30,40,.45); }
.card__icon:has(.rtile) { font-size: 0; filter: none; }
.card--out .rtile { filter: grayscale(.8); opacity: .55; }
.pux-avatar:has(.rtile) { width: auto; height: auto; border-radius: 20px; background: none; box-shadow: none; }
.pux-avatar .rtile { width: 104px; }
@keyframes rtBreath { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(230,30,40,.45)); } 50% { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(255,60,60,.85)); } }
@media (prefers-reduced-motion: reduce) { .rtile img, .rtile__shine { animation: none; } .rtile__shine { display: none; } .card:hover .rtile { transform: none; } }
@media (max-width: 760px) { .rtile { width: 76px; border-radius: 16px; } }

/* ===== Packs populaires (100 et 200 diamants) ===== */
.badge--hot { z-index: 4; background: linear-gradient(135deg, #ff4d2e, #f5c542); color: #1a0d00; box-shadow: 0 0 14px rgba(255,98,46,.55); letter-spacing: .03em; }
.card--hot { border-color: rgba(245,197,66,.55) !important; box-shadow: 0 0 0 1px rgba(245,197,66,.25), 0 10px 30px rgba(255,98,46,.18), 0 0 26px rgba(245,197,66,.16); }
.card--hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(245,197,66,.12), transparent 60%); }
.card--hot.card--out .badge--hot { filter: grayscale(.8); }
@media (max-width: 760px), (pointer: coarse) and (max-width: 900px) {
  .card--hot .badge--hot { position: static; align-self: flex-start; margin: 0 0 .5rem; }
}

/* ===== Choix du réseau USDT (BEP20 · TRC20 · ERC20) ===== */
.netpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0 .8rem; }
.netpick__opt { display: grid; gap: .1rem; justify-items: center; padding: .55rem .3rem; border-radius: 12px; cursor: pointer; font: inherit; color: var(--text, #fff);
  background: rgba(255,255,255,.04); border: 1px solid var(--border, rgba(255,255,255,.14)); min-height: 44px; }
.netpick__opt strong { font-size: .95rem; letter-spacing: .02em; }
.netpick__opt small { font-size: .72rem; color: var(--muted, #b4bccb); line-height: 1.25; text-align: center; }
.netpick__opt:hover { border-color: rgba(255,255,255,.35); }
.netpick__opt.is-active { border-color: #2ecc71; background: rgba(46,204,113,.12); box-shadow: 0 0 0 1px #2ecc71 inset; }
.netpick__opt:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }

/* ===== Ajouter du solde : USDT / MVola / Orange Money ===== */
.deptabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .4rem; margin: .4rem 0 .8rem; }
.deptab { min-height: 44px; border-radius: 12px; border: 1px solid var(--border, rgba(255,255,255,.14)); background: rgba(255,255,255,.04); color: var(--text, #fff); font: inherit; font-weight: 600; cursor: pointer; padding: .4rem; }
.deptab.is-active { border-color: #2ecc71; background: rgba(46,204,113,.12); box-shadow: 0 0 0 1px #2ecc71 inset; }
.deptab:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.momo-pay { display: grid; gap: .8rem; }
.momo-pay__amount { display: grid; gap: .1rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.35); }
.momo-pay__amount span, .momo-pay__to > span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #b4bccb); }
.momo-pay__amount strong { font-size: 1.6rem; }
.momo-pay__amount small, .momo-pay__to small { color: var(--muted, #b4bccb); }
.momo-pay__to { display: grid; gap: .35rem; }
.momo-pay__steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; line-height: 1.45; }
.momo-mine { display: grid; gap: .4rem; margin-top: 1rem; }
.momo-mine__row { display: grid; gap: .1rem; padding: .55rem .8rem; border-radius: 10px; background: rgba(255,255,255,.04); border-left: 3px solid #f5c542; overflow-wrap: anywhere; }
.momo-mine__row--ok { border-left-color: #2ecc71; }
.momo-mine__row--ko { border-left-color: #ff6b81; }
.momo-mine__row small { color: var(--muted, #b4bccb); }

/* Comparatif automatique / manuel */
.payhow { display: grid; gap: .5rem; margin: .2rem 0 .8rem; }
.payhow__item { display: grid; gap: .15rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 3px solid #2ecc71; }
.payhow__item--manual { border-left-color: #f5c542; }
.payhow__item small { color: var(--muted, #b4bccb); line-height: 1.4; }
.momo-pay__manual { margin: 0; padding: .6rem .8rem; border-radius: 12px; background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.35); line-height: 1.45; }

/* Icônes des moyens de paiement */
.deptab { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.deptab img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.netpick__opt img { width: 34px; height: 34px; margin-bottom: .15rem; }

/* ===== Prix en Ariary à côté du dollar : petit, écriture fine ===== */
.price-ar { font-family: Inter, system-ui, sans-serif; font-size: .62em; font-weight: 400; vertical-align: .12em; color: var(--muted, #b4bccb); letter-spacing: 0; white-space: nowrap; margin-left: .25em; }
.line--total .price-ar { font-size: .6em; }
/* ===== Référence de commande ===== */
.refbox { display: grid; gap: .3rem; justify-items: center; text-align: center; margin: .4rem 0 1rem; padding: .8rem 1rem; border-radius: 14px;
  border: 1px dashed rgba(125,211,252,.55); background: rgba(56,189,248,.07); }
.refbox__label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #b4bccb); }
.refbox .delivery__ref { margin: 0; }
.refbox .delivery__ref strong { font-size: 1.25rem; letter-spacing: .04em; color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; }
.refbox small { color: var(--muted, #b4bccb); line-height: 1.4; }
.momo-mine > small { font-size: .8rem; }

/* ===== Paiement mobile : capture d'écran et attente ===== */
.momo-hint { display: block; margin-top: .3rem; font-size: .8rem; color: var(--muted, #b4bccb); }
.momo-hint.is-bad { color: #ff8a9b; }
.momo-proof { display: grid; gap: .45rem; }
.momo-proof > span small { color: var(--muted, #b4bccb); font-weight: 400; }
.momo-proof__pick { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; cursor: pointer;
  border: 1px dashed rgba(125,211,252,.55); background: rgba(56,189,248,.06); color: var(--text, #fff); font-weight: 600; }
.momo-proof__pick:focus-within { outline: 2px solid #7dd3fc; outline-offset: 2px; }
#momoProofPreview { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.14)); justify-self: center; }
.momo-wait { display: grid; gap: .6rem; justify-items: center; text-align: center; }
.momo-wait h2 { margin: .2rem 0 0; }
.momo-wait p { margin: 0; line-height: 1.5; }
.momo-wait__ref strong { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.momo-wait .btn:not(.btn--small) { width: 100%; }
.momo-wait__ref { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.momo-wait__loader-old { width: 74px; height: 74px; border-radius: 50%; position: relative; margin: .4rem 0;
  background: conic-gradient(from 0deg, #f5c542, rgba(245,197,66,0) 70%); animation: momoSpin 1.1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
@keyframes momoSpin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .momo-wait__loader-old { animation-duration: 3s; } }

/* ===== Exemple de SMS : référence surlignée ===== */
.sms-example { display: grid; gap: .45rem; margin-top: -.2rem; }
.sms-example__title { font-size: .85rem; font-weight: 600; }
.sms-example > small { color: var(--muted, #b4bccb); line-height: 1.4; }
.sms { padding: .75rem .9rem; border-radius: 16px 16px 16px 4px; line-height: 1.55; font-size: .9rem; max-width: 100%; overflow-wrap: anywhere; }
.sms--orange { background: #2b2d31; color: #f2f2f2; }
.sms--mvola { background: #eceef2; color: #16181d; }
.sms__ref { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; }
.sms mark { background: #ffd43b; color: #111; padding: .05rem .3rem; border-radius: 5px; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; box-shadow: 0 0 0 2px rgba(255,212,59,.35); }
.sms__arrow { font-size: .72rem; font-weight: 800; color: #e11d48; white-space: nowrap; letter-spacing: .01em; }
.sms--orange .sms__arrow { color: #ff8a9b; }

/* ===== Chargement animé du suivi (USDT et MVola / Orange) ===== */
/* Anneau doré qui tourne autour de l'étape en cours */
.steps3__item.is-current .steps3__dot { position: relative; }
.steps3__item.is-current .steps3__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2.5px solid transparent; border-top-color: #f0b90b; border-right-color: rgba(240, 185, 11, .45); animation: stepSpin .9s linear infinite; }
/* Barre vers l'étape suivante : rayures qui avancent */
.steps3__item.is-current + .steps3__bar { background: repeating-linear-gradient(90deg, rgba(240, 185, 11, .14) 0 8px, rgba(240, 185, 11, .6) 8px 16px);
  background-size: 32px 100%; animation: barMove .7s linear infinite; }
.steps3.is-expired .steps3__item.is-current .steps3__dot::after { display: none; }
.steps3.is-expired .steps3__item.is-current + .steps3__bar { animation: none; background: var(--border); }
@keyframes stepSpin { to { transform: rotate(1turn); } }
@keyframes barMove { to { background-position: 32px 0; } }
@media (prefers-reduced-motion: reduce) { .steps3__item.is-current .steps3__dot::after { animation-duration: 3s; } .steps3__item.is-current + .steps3__bar { animation: none; } }
/* Fenêtre MVola / Orange : même en-tête que l'USDT */
.momo-wait .trackhead { width: 100%; margin-bottom: .3rem; }
.trackhead__status.is-ok { color: #6fdc9a; }
.trackhead__status.is-ko { color: #ff8a9b; }

/* ===== Dépôt mobile non validé après 30 minutes ===== */
.momo-late { display: grid; gap: .4rem; width: 100%; padding: .8rem .9rem; border-radius: 14px; text-align: left;
  background: rgba(37,211,102,.08); border: 1px solid rgba(37,211,102,.45); }
.momo-late span { color: var(--muted, #b4bccb); line-height: 1.45; font-size: .9rem; }
.btn--wa { background: #25d366 !important; color: #06210f !important; border-color: #25d366 !important; font-weight: 700; }
.momo-mine__wa { color: #4ade80; font-weight: 600; font-size: .85rem; }

/* Lien WhatsApp simple (dépôt mobile non validé après 30 min) */
.wa-mini { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .2rem; color: var(--text, #fff); text-decoration: none; text-align: left; font-size: .9rem; line-height: 1.35; }
.wa-mini[hidden] { display: none; }
.wa-mini img { flex: none; border-radius: 8px; }
.wa-mini strong { color: #4ade80; }
.wa-mini:hover strong, .wa-mini:focus-visible strong { text-decoration: underline; }
.momo-mine__wa { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.momo-mine__wa[hidden] { display: none; }
.momo-mine__wa img { border-radius: 5px; }
