/* YEDA app-v2 — styles communs (mobile + PC) */
:root { --gold: #ffc727; --gold-2: #f5b81c; --ink: #0a0a0c; --line: #eceef3; }
* { -webkit-tap-highlight-color: transparent; }
html, body { font-family: 'Inter', system-ui, sans-serif; }
body { background: #f5f6f8; color: #111; font-size: 14px; }
.scroll-thin { scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Coquille ---------- */
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: #d9d9df; transition: background .15s; }
.side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-link.on { background: linear-gradient(180deg, #ffd54a, #f5b81c); color: #111; font-weight: 600; }
.side-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #6b6b75; padding: 14px 12px 6px; }
.mob-head { background: radial-gradient(120% 90% at 90% 0%, rgba(255,199,39,.22), transparent 60%), var(--ink); }
.bottom-nav { display: flex; justify-content: space-around; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: #8a8a93; width: 62px; }
.bottom-nav a.on { color: #111; font-weight: 600; }
.bottom-nav a.on svg { color: #f5b81c; }

/* ---------- Cartes & éléments ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.panel-title { font-size: 14.5px; font-weight: 700; }
.link-more { font-size: 12px; color: #2563eb; font-weight: 500; }
.btn-gold, .btn-light, .btn-dark, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: filter .15s, background .15s, transform .1s; }
.btn-gold { background: linear-gradient(180deg, #ffd54a, #f5b81c); color: #111; box-shadow: 0 4px 12px rgba(255,199,39,.25); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-gold:active, .btn-light:active { transform: scale(.98); }
.btn-light { background: #fff; border: 1px solid #e3e5ea; color: #222; }
.btn-light:hover { background: #f7f8fa; }
.btn-dark { background: #111; color: #fff; }
.btn-danger { background: #fdecec; border: 1px solid #f8c9c9; color: #dc2626; }
.btn-lg { height: 44px; font-size: 14px; }
.seg { display: flex; background: #f1f2f5; border-radius: 10px; padding: 3px; }
.seg button { flex: 1; padding: 7px 0; border-radius: 8px; font-size: 13px; font-weight: 600; color: #555; transition: background .15s; }
.seg button.on { background: linear-gradient(180deg, #ffd54a, #f5b81c); color: #111; box-shadow: 0 2px 6px rgba(255,199,39,.3); }
.chip { padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #555; white-space: nowrap; }
.chip:hover { background: #f1f2f5; }
.chip.on { background: #111; color: #fff; }
.field { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid #e3e5ea; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,199,39,.15); }
.field input, .field select { flex: 1; min-width: 0; background: transparent; outline: none; font-size: 13.5px; }
.field input::placeholder { color: #9a9aa3; }
.label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 5px; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.pill-ok { background: #e8f8ee; color: #16a34a; }
.pill-wait { background: #fff4d6; color: #b7791f; }
.pill-err { background: #fdecec; color: #dc2626; }
.pill-mute { background: #f1f2f5; color: #6b7280; }
.row-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.row-link:hover { background: #fafafb; }
.ico-btn { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #333; }
.qa span { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #fff4d0; color: #8a5a00; transition: transform .15s; }
.qa:hover span { transform: translateY(-2px); }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d9dce3; border-radius: 99px; transition: background .2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 99px; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: #f5b81c; }
.switch input:checked + span::before { transform: translateX(16px); }
.hide-num { filter: blur(7px); }

/* ---------- Carte bancaire ---------- */
.yeda-card { position: relative; border-radius: 16px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #1b1b1f 0%, #0c0c0e 55%, #26262b 100%); box-shadow: 0 14px 28px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08); transition: filter .3s; }
.yeda-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255,199,39,.18) 50%, transparent 65%); pointer-events: none; }
.yeda-card.frozen { filter: grayscale(1) brightness(.7); }
.yeda-card > * { position: relative; }
.balance-card { background: radial-gradient(90% 120% at 100% 0%, rgba(255,199,39,.35), transparent 55%), linear-gradient(135deg, #17171b, #0b0b0e); color: #fff; }

/* ---------- Pages d'authentification ---------- */
.auth-bg { background: radial-gradient(60% 50% at 20% 100%, rgba(255,170,20,.28), transparent 60%), radial-gradient(50% 40% at 90% 0%, rgba(255,199,39,.18), transparent 70%), #060607; }
.streak { position: fixed; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,199,39,.4) 49%, rgba(255,235,160,.75) 50%, rgba(255,199,39,.3) 51%, transparent 60%); filter: blur(1px); }
.glass { background: linear-gradient(180deg, rgba(30,30,34,.92), rgba(16,16,19,.94)); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); }
/* Bouton Google : habillage maison ; le vrai bouton Google (invisible) est posé par-dessus pour recevoir le clic */
.google-btn { position: relative; height: 44px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s, background .15s; }
.google-btn:hover { background: #f4f6fb; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 8px 20px rgba(0,0,0,.3); }
.google-btn:active { transform: translateY(0); }
.google-btn-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #1f2937; font-size: 14px; font-weight: 600; pointer-events: none; }
.google-btn-hit { position: absolute; inset: 0; opacity: 0.01; display: flex; justify-content: center; }
.google-btn-hit > div { transform: scaleY(1.15); transform-origin: top; }
.dark-field { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: border-color .15s, box-shadow .15s; }
.dark-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,199,39,.15); }
.dark-field input { flex: 1; min-width: 0; background: transparent; outline: none; font-size: 13.5px; }
.dark-field input::placeholder { color: rgba(255,255,255,.35); }
.coin3d { border-radius: 999px; display: flex; align-items: center; justify-content: center; box-shadow: inset -8px -10px 20px rgba(0,0,0,.35), inset 6px 8px 16px rgba(255,255,255,.35), 0 20px 40px rgba(0,0,0,.5); }
.float { animation: float 5s ease-in-out infinite; }
.float-2 { animation: float 5s ease-in-out -2.5s infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-10px) rotate(var(--r,0deg)); } }
.dots { display: flex; gap: 5px; justify-content: center; }
.dots span { width: 6px; height: 6px; border-radius: 99px; background: #555; transition: all .25s; cursor: pointer; }
.dots span.on { width: 18px; background: var(--gold); }
.otp input { width: 42px; height: 50px; border-radius: 10px; background: rgba(255,255,255,.95); color: #111; text-align: center; font-size: 20px; font-weight: 600; outline: none; border: 2px solid transparent; }
.otp input:focus { border-color: var(--gold); }

/* ---------- Drapeaux (les emojis drapeaux ne s'affichent pas sous Windows) ---------- */
.flag { display: inline-block; width: 18px; height: 13px; border-radius: 3px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag-ht { background: linear-gradient(#00209f 50%, #d21034 50%); }
.flag-us { background: linear-gradient(90deg, #3c3b6e 40%, transparent 40%), repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px); background-size: 100% 57%, 100% 100%; background-repeat: no-repeat; }
.flag-do { background: linear-gradient(90deg, transparent 43%, #fff 43% 57%, transparent 57%), linear-gradient(transparent 43%, #fff 43% 57%, transparent 57%), conic-gradient(#ce1126 0 25%, #002d62 0 50%, #ce1126 0 75%, #002d62 0); }

#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(10px); background: #111; color: #fff; padding: 9px 15px; border-radius: 11px; font-size: 13px; border: 1px solid rgba(255,199,39,.4); opacity: 0; pointer-events: none; transition: all .25s; z-index: 70; white-space: nowrap; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 1024px) { #toast { bottom: 28px; } }

/* intl-tel-input (champ téléphone avec indicatif) sur fond sombre */
.dark-field .iti { width: 100%; flex: 1; }
.dark-field .iti input { background: transparent; color: #fff; width: 100%; height: 40px; border: 0; outline: 0; }
.iti { --iti-dropdown-bg: #17171c; --iti-border-color: rgba(255,255,255,.12); --iti-hover-color: rgba(255,255,255,.08); --iti-dialcode-color: rgba(255,255,255,.55); --iti-path-flags-1x: url('https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/img/flags.webp'); --iti-path-flags-2x: url('https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/img/flags@2x.webp'); --iti-path-globe-1x: url('https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/img/globe.webp'); --iti-path-globe-2x: url('https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/img/globe@2x.webp'); }
.iti__dropdown-content { background: #17171c; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.iti__search-input { background: #0f0f13; color: #fff; border-color: rgba(255,255,255,.12); }
.iti__selected-dial-code { color: rgba(255,255,255,.75); font-size: 13.5px; }
.iti__country-container { left: 0; }
.dark-field:has(.iti) > i[data-lucide], .dark-field:has(.iti) > svg.lucide-smartphone { display: none; }

/* ---------- P2P (style Binance P2P) ---------- */
.p2p { --buy: #0ecb81; --buy-d: #0aa86a; --sell: #f6465d; --sell-d: #d93249; }
.p2p-nav { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #eceef3; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.p2p-nav::-webkit-scrollbar { display: none; }
.p2p-nav a { padding: 7px 11px; font-size: 13.5px; font-weight: 600; color: #8a8f99; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p2p-nav a.on { color: #111; border-bottom-color: #f5b81c; }
.p2p-nav .p2p-nav-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff4d0; color: #8a5a00; border-radius: 9px; padding: 4px 10px; margin-bottom: 3px; font-size: 13px; border: 0; }
.p2p-nav .p2p-nav-cta.on { background: #f5b81c; color: #111; }
.p2p-side { display: inline-flex; background: #f1f2f5; border-radius: 9px; padding: 2px; }
.p2p-side button { padding: 5px 20px; border-radius: 7px; font-size: 13.5px; font-weight: 700; color: #6b7280; }
.p2p-side button.buy.on { background: var(--buy); color: #fff; }
.p2p-side button.sell.on { background: var(--sell); color: #fff; }
.p2p-coins { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.p2p-coins::-webkit-scrollbar { display: none; }
.p2p-coins button { padding: 3px 0; font-size: 13.5px; font-weight: 600; color: #8a8f99; border-bottom: 2px solid transparent; white-space: nowrap; }
.p2p-coins button.on { color: #111; border-bottom-color: #f5b81c; }
.p2p-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p2p-filters .field { height: 34px; }
.p2p-thead { display: none; }
.p2p-grid { grid-template-columns: 1fr auto; }
@media (min-width: 1024px) {
  .p2p-thead { display: grid; }
  .p2p-grid { grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr 130px; }
}
.p2p-row { padding: 8px 12px; }
.p2p-row + .p2p-row { border-top: 1px solid #f2f3f6; }
.p2p-price { font-size: 16px; font-weight: 700; line-height: 1.1; }
.p2p-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #4b5563; padding-left: 6px; border-left: 3px solid var(--c, #9ca3af); line-height: 1.2; }
.p2p-btn { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.p2p-btn.buy { background: var(--buy); } .p2p-btn.buy:hover { background: var(--buy-d); }
.p2p-btn.sell { background: var(--sell); } .p2p-btn.sell:hover { background: var(--sell-d); }
.p2p-btn[disabled] { opacity: .5; }
.p2p-trade { background: #fafbfc; border-top: 1px solid #eceef3; padding: 10px 12px; display: grid; gap: 12px; }
@media (min-width: 900px) { .p2p-trade { grid-template-columns: 1fr 1fr; } }
.p2p-input { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e5ea; background: #fff; border-radius: 9px; padding: 0 10px; height: 38px; }
.p2p-input:focus-within { border-color: #f5b81c; }
.p2p-input input, .p2p-input select { flex: 1; min-width: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 600; }
.p2p-input .unit { font-size: 12px; font-weight: 700; color: #6b7280; white-space: nowrap; }
.p2p-input .max { font-size: 12px; font-weight: 700; color: #b7791f; }
.p2p-steps { display: flex; align-items: center; gap: 6px; }
.p2p-step { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #9ca3af; }
.p2p-step i { width: 20px; height: 20px; border-radius: 99px; background: #e5e7eb; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; }
.p2p-step.on { color: #111; } .p2p-step.on i { background: #f5b81c; color: #111; }
.p2p-step.done i { background: var(--buy); }
.p2p-step-line { flex: 1; height: 2px; background: #e5e7eb; min-width: 16px; }
.p2p-step-line.done { background: var(--buy); }
.p2p-bubble { max-width: 85%; border-radius: 14px; padding: 6px 10px; font-size: 12.5px; line-height: 1.3; word-break: break-word; }
.p2p-bubble.me { background: #fff4d0; margin-left: auto; border-bottom-right-radius: 4px; }
.p2p-bubble.other { background: #f1f2f5; border-bottom-left-radius: 4px; }
.p2p-bubble.support { background: #e6efff; }
.p2p-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.p2p-tag.buy { background: rgba(14,203,129,.12); color: var(--buy-d); }
.p2p-tag.sell { background: rgba(246,70,93,.12); color: var(--sell-d); }
/* ---------- Saisie du PIN : cases (design KrezyPay) ---------- */
.pin-head { text-align: center; }
.pin-ico { width: 48px; height: 48px; border-radius: 99px; background: linear-gradient(135deg, #fff4d0, #ffe9a8); color: #8a5a00; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.pin-boxes { display: flex; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.pin-box { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border: 2px solid #d9dce3; border-radius: 12px; background: #f9fafb; outline: 0; caret-color: transparent; transition: border-color .15s, background .15s, box-shadow .15s; }
.pin-box:focus { border-color: #f5b81c; background: #fff; box-shadow: 0 0 0 3px rgba(245, 184, 28, .2); }
.pin-box.filled { border-color: #111; background: #fff; }
.pin-boxes.err .pin-box { border-color: #ef4444; animation: pinshake .3s; }
@keyframes pinshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 380px) { .pin-box { width: 40px; height: 50px; } .pin-boxes { gap: 7px; } }
