/* ════════════════════════════════════════════════════════════════
   AllPredictor — page d'accueil
   ════════════════════════════════════════════════════════════════ */

.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; overflow: hidden; }

/* ─── HERO « poste de pilotage » ─── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 116px 0 72px; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.hx { --p: 0; --hx-ink: 255, 170, 110; background: radial-gradient(120% 80% at 85% 10%, rgba(255, 95, 10, .16), transparent 60%), var(--bg); }
html[data-theme="light"] .hx { --hx-ink: 120, 60, 20; background: radial-gradient(120% 80% at 85% 10%, rgba(255, 95, 10, .14), transparent 60%), var(--bg); }
.hx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: calc(1 - var(--p) * .8); }
/* Voile qui garde le texte lisible au-dessus de la courbe */
.hx-shade {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(0, 0, 0, 0) 58%), linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
html[data-theme="light"] .hx-shade { background: linear-gradient(90deg, var(--bg) 0%, rgba(251, 247, 243, 0) 58%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
@media (max-width: 1039px) { .hx-shade { background: linear-gradient(180deg, var(--bg) 0%, transparent 45%, transparent 80%, var(--bg) 100%); } }

.hx-grid { position: relative; z-index: 2; display: grid; gap: 56px; align-items: center; }
.hx-grid > * { min-width: 0; }
@media (min-width: 1040px) { .hx-grid { grid-template-columns: 1.15fr .85fr; gap: 32px; } }

.hx-copy {
    display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
    transform: translate3d(0, calc(var(--p) * -90px), 0); opacity: calc(1 - var(--p) * 1.3);
}
@media (max-width: 1039px) { .hx-copy { align-items: center; text-align: center; } }

/* Titre : lettres qui montent en 3D, mot central qui tourne */
.hx-title { font-size: clamp(2.2rem, 10.4vw, 4.4rem); margin: 0; line-height: .98; perspective: 900px; }
.hx-visual { display: block; }
.hx-line { display: block; padding-bottom: .06em; }
.hx-title .serif-i { font-size: 1.04em; }
.ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.hx-rot { display: grid; justify-items: start; overflow: hidden; padding: .02em 0 .1em; margin: -.02em 0 -.1em; }
@media (max-width: 1039px) { .hx-rot { justify-items: center; } }
.hx-word { grid-area: 1 / 1; transform: translateY(110%) rotateX(-70deg); opacity: 0; transform-origin: 50% 0; transition: transform .8s var(--ease-out), opacity .5s ease; }
.hx-word.is-on { transform: none; opacity: 1; }
.hx-word.is-out { transform: translateY(-105%) rotateX(70deg); opacity: 0; transition-duration: .55s, .35s; }

.hx-lead { max-width: 560px; }
@media (max-width: 479px) { .hx-copy .eyebrow .ey-more { display: none; } }

/* Chorégraphie d'entrée (seulement si JS + mouvement autorisé) */
.hx.js-anim .ch { opacity: 0; transform: translateY(.9em) rotateX(-80deg); }
.hx.js-anim .hx-rise { opacity: 0; transform: translateY(26px); filter: blur(8px); }
.hx.js-anim .hx-rot { clip-path: inset(0 0 100% 0); }
.hx.is-in .ch { opacity: 1; transform: none; transition: transform .9s var(--ease-out), opacity .5s ease; transition-delay: calc(var(--c) * 22ms + 150ms); }
.hx.is-in .hx-rise { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i) * 110ms + 200ms); }
.hx.is-in .hx-rot { clip-path: inset(0 0 -10% 0); transition: clip-path 1s var(--ease-out) .55s; }

/* Bouton magnétique */
.hx-magnet .store-badge { translate: var(--mx, 0) var(--my, 0); transition: transform .4s var(--ease-spring), box-shadow .35s ease, translate .6s var(--ease-spring); }
.hx-magnet.is-pulling .store-badge { transition: transform .4s var(--ease-spring), box-shadow .35s ease, translate .12s linear; }

.hero-download { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1039px) { .hero-download, .hero-download .sb-reco { align-items: center; } }
.also { display: flex; flex-direction: column; gap: 10px; }
.also-label { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); }
@media (max-width: 1039px) { .also { align-items: center; } .also .badge-row { justify-content: center; } }

.hero-proof { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span {
    width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
    display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
    border: 2.5px solid var(--bg);
}
.avatars span:first-child { margin-left: 0; }
.stars { display: flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.hero-proof p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.hero-proof b { color: var(--text); }
@media (max-width: 1039px) { .hero-proof { text-align: left; } }

/* Poste de pilotage : la zone où la courbe est tracée */
.hx-deck {
    position: relative; height: clamp(380px, 46vw, 560px);
    display: flex; flex-direction: column; justify-content: space-between;
    transform: translate3d(var(--px, 0), calc(var(--py, 0px) + var(--p) * 60px), 0);
}
@media (max-width: 1039px) { .hx-deck { height: 400px; width: 100%; max-width: 560px; margin: 0 auto; } }
@media (max-width: 560px) { .hx-deck { height: 360px; } }
.hx-readout { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.hx-game { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hx-mult { display: flex; align-items: baseline; line-height: .9; font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; color: var(--text); }
.hx-mult .mono { font-family: var(--font-display); font-size: clamp(4.6rem, 9vw, 7.6rem); font-variant-numeric: tabular-nums; }
.hx-mult em { font-style: normal; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--brand-2); margin-left: 4px; }
.hx-mult.is-win .mono { color: #22c55e; }
.hx-mult.is-crashed .mono { color: #ef4444; animation: hxShake .45s var(--ease-out); }
html[data-theme="light"] .hx-mult.is-win .mono { color: #15803d; }
html[data-theme="light"] .hx-mult.is-crashed .mono { color: #b91c1c; }
@keyframes hxShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.hx-state { font-size: 13px; font-weight: 700; color: var(--muted); min-height: 1.4em; }

.hx-signal {
    position: absolute; right: 0; bottom: 64px; width: 190px; padding: 14px; border-radius: 16px;
    background: var(--glass); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    animation: hxBob 7s ease-in-out infinite;
}
@keyframes hxBob { 50% { translate: 0 -10px; } }
.hx-signal-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); font-weight: 600; }
.hx-signal-row + .hx-signal-row { margin-top: 4px; }
.hx-signal-row b { font-size: 17px; color: var(--text); }
.hx-conf { margin-top: 10px; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.hx-conf i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-3)); transition: width .8s var(--ease-out); }
@media (max-width: 560px) { .hx-signal { width: 150px; padding: 11px; bottom: 56px; } .hx-signal-row b { font-size: 15px; } }

.hx-pop {
    position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 3;
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
    font-size: 12.5px; font-weight: 800; color: #fff; white-space: nowrap;
    background: #16a34a; box-shadow: 0 10px 30px -8px rgba(34, 197, 94, .8);
    transform: translate(-50%, -150%) scale(.4); opacity: 0; pointer-events: none;
}
.hx-pop.is-on { animation: hxPop 1.6s var(--ease-out) forwards; }
@keyframes hxPop {
    0% { opacity: 0; transform: translate(-50%, -110%) scale(.4); }
    18% { opacity: 1; transform: translate(-50%, -170%) scale(1.06); }
    30% { transform: translate(-50%, -165%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -190%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -215%) scale(.96); }
}

.hx-tape { display: flex; align-items: center; gap: 12px; }
.hx-tape-label { flex: none; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.hx-hist { display: flex; gap: 6px; overflow: hidden; mask-image: linear-gradient(90deg, #000 75%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); }
.hx-hist span { flex: none; padding: 5px 10px; border-radius: 99px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hx-hist span.is-new { animation: hxChip .6s var(--ease-spring); }
@keyframes hxChip { from { transform: translateX(-24px) scale(.5); opacity: 0; } }
.h-lo { color: var(--muted); }
.h-hi { color: #60a5fa; }
.h-top { color: #c084fc; }
html[data-theme="light"] .h-hi { color: #1d4ed8; }
html[data-theme="light"] .h-top { color: #7e22ce; }
@media (max-width: 560px) { .hx-tape-label { display: none; } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; opacity: calc(1 - var(--p) * 4); }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--brand-2); animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 760px), (max-width: 1039px) { .scroll-hint { display: none; } }
@media (max-width: 1039px) { .hero { padding: 116px 0 64px; } }

/* Animations utilisées ailleurs sur la page */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .75; } }
@keyframes phoneFloat { 50% { translate: 0 -14px; } }

/* ─── Marquee ─── */
.marquee-wrap { position: relative; padding: 36px 0 44px; border-block: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.marquee-title { text-align: center; margin: 0 0 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 0 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 15px; white-space: nowrap; }
.chip i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); }
.chip.ghost { background: transparent; color: var(--muted); font-weight: 600; }
.chip .ico { font-size: 16px; opacity: .85; }

/* ─── Stats ─── */
.stats { padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 34px 24px; text-align: center; display: flex; flex-direction: column; gap: 6px; transition: background .3s; }
.stat:hover { background: var(--bg-2); }
.stat b { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; background: linear-gradient(180deg, var(--text), var(--muted)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat > span { color: var(--muted); font-size: 14px; }

/* ─── Bento ─── */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
    .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(300px, auto); }
    .b-crash { grid-column: span 4; grid-row: span 1; }
    .b-loto { grid-column: span 2; }
    .b-sport, .b-stats, .b-multi { grid-column: span 2; }
}
@media (min-width: 760px) and (max-width: 1079px) { .b-crash { grid-column: span 2; } .b-multi { grid-column: span 2; } }
.bento .card { padding: 28px; display: flex; flex-direction: column; gap: 22px; min-height: 300px; }
.bento .card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 31, .3); }
.b-copy h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; margin: 14px 0 8px; }
.b-copy p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 420px; }
.b-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--brand-2); background: linear-gradient(135deg, rgba(255, 95, 10, .2), rgba(255, 181, 71, .08)); border: 1px solid rgba(255, 138, 31, .25); }

.b-crash { flex-direction: column; }
@media (min-width: 1080px) {
    .b-crash { display: grid !important; grid-template-columns: .8fr 1.2fr; align-items: stretch; }
    .b-crash .b-copy { align-self: end; }
    .b-crash .b-chart { height: auto; min-height: 230px; }
}
.b-chart { position: relative; height: 230px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 95, 10, .06), transparent); border: 1px solid var(--border); }
.b-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-gridlines line { stroke: var(--border); stroke-dasharray: 4 6; }
.b-line { stroke-dasharray: 800; stroke-dashoffset: 800; }
.b-area { opacity: 0; }
.is-visible .b-line { animation: draw 2.6s var(--ease-out) .3s forwards; }
.is-visible .b-area { animation: fadeIn 1.4s ease 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.b-target { stroke: #22c55e; stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .7; }
.b-target-label { position: absolute; left: 12px; top: calc(118 / 240 * 100% - 24px); font-size: 11px; font-weight: 700; color: #4ade80; background: rgba(34, 197, 94, .12); padding: 2px 8px; border-radius: 6px; }
.b-plane {
    position: absolute; left: 0; top: 0; font-size: 24px; line-height: 0; margin: -12px 0 0 -12px; color: #fff; text-shadow: 0 0 14px rgba(255, 120, 40, 1);
    offset-path: path("M0 230 C 180 228, 300 200, 380 140 S 480 40, 520 10"); offset-rotate: auto; offset-distance: 0%;
    opacity: 0;
}
.is-visible .b-plane { animation: fly 2.6s var(--ease-out) .3s forwards; }
@keyframes fly { 0% { opacity: 1; offset-distance: 0%; } 100% { opacity: 1; offset-distance: 100%; } }
.b-tags { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.b-tags span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.b-tags .hi { color: #60a5fa; } .b-tags .top { color: #c084fc; }
@media (max-width: 560px) { .b-tags span:nth-child(n+4) { display: none; } }

.loto-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-top: auto; }
.loto-grid span {
    aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--faint);
    background: var(--surface-2); border: 1px solid var(--border);
    transition: all .5s var(--ease-spring);
}
.loto-grid span.hot { color: #1a120c; border-color: transparent; background: radial-gradient(circle at 32% 28%, #fff, #fde68a 30%, #f59e0b 75%, #b45309); transform: scale(1.12); box-shadow: 0 4px 12px -4px rgba(245, 158, 11, .8); }

.match-card { margin-top: auto; border-radius: 16px; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 12px; }
.mc-teams { display: flex; align-items: center; justify-content: space-between; }
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; text-align: center; }
.mc-team small { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.flag { position: relative; display: block; width: 44px; height: 30px; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55); }
.flag svg { width: 100%; height: 100%; }
/* Liseré et reflet léger pour un rendu « drapeau » propre sur fond clair comme sombre */
.flag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); background: linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 45%, rgba(0, 0, 0, .08)); }
.mc-mid { text-align: center; line-height: 1.1; }
.mc-mid small { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; }
.mc-mid b { display: block; font-size: 24px; letter-spacing: -.02em; }
.mc-form { display: flex; align-items: center; gap: 3px; justify-content: center; }
.mc-form span { width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; }
.mc-form .w { background: #16a34a; } .mc-form .d { background: #78716c; } .mc-form .l { background: #dc2626; }
.mc-form em { font-style: normal; font-size: 10px; color: var(--faint); margin: 0 6px; }
.mc-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mc-odds span { text-align: center; padding: 7px 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.mc-odds span:first-child { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .1); }
.mc-odds b { color: var(--text); margin-left: 4px; }

.b-bars { margin-top: auto; height: 120px; display: flex; align-items: flex-end; gap: 7px; padding: 0 2px; }
.b-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-2), rgba(255, 95, 10, .15)); transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease-out); }
.b-bars i:nth-child(6) { background: linear-gradient(180deg, #4ade80, rgba(34, 197, 94, .15)); }
.is-visible .b-bars i { transform: scaleY(1); }
.b-bars i:nth-child(1) { transition-delay: .05s; } .b-bars i:nth-child(2) { transition-delay: .1s; } .b-bars i:nth-child(3) { transition-delay: .15s; } .b-bars i:nth-child(4) { transition-delay: .2s; } .b-bars i:nth-child(5) { transition-delay: .25s; }
.b-bars i:nth-child(6) { transition-delay: .3s; } .b-bars i:nth-child(7) { transition-delay: .35s; } .b-bars i:nth-child(8) { transition-delay: .4s; } .b-bars i:nth-child(9) { transition-delay: .45s; } .b-bars i:nth-child(10) { transition-delay: .5s; }
.bento .card:hover .b-bars i { animation: barWiggle 1s var(--ease-spring); }
@keyframes barWiggle { 40% { transform: scaleY(.7); } }

.os-orbit { position: relative; margin: auto auto 0; width: 190px; height: 120px; }
.os-orbit .os-core { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 15px; box-shadow: 0 0 0 6px rgba(255, 95, 10, .12), 0 0 40px rgba(255, 95, 10, .6); animation: breathe 4s ease-in-out infinite; }
.os { position: absolute; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); animation: osBob 4s ease-in-out infinite; }
.os::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.os-ios { left: 0; top: 0; background: #000; color: #fff; border: 1px solid #555; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.37 1.43c0 1.13-.46 2.26-1.23 3.07-.82.88-2.16 1.55-3.35 1.45-.14-1.12.42-2.31 1.15-3.1.82-.89 2.26-1.53 3.43-1.42ZM20.5 17.1c-.6 1.38-.9 1.99-1.66 3.21-1.07 1.7-2.58 3.82-4.44 3.84-1.66.02-2.09-1.08-4.34-1.07-2.26.01-2.73 1.09-4.39 1.08-1.86-.02-3.29-1.94-4.36-3.63-2.99-4.72-3.3-10.26-1.46-13.2 1.31-2.1 3.38-3.32 5.32-3.32 1.98 0 3.22 1.08 4.86 1.08 1.59 0 2.56-1.08 4.85-1.08 1.73 0 3.56.94 4.87 2.57-4.28 2.34-3.58 8.45.25 10.22Z'/%3E%3C/svg%3E"); }
.os-android { right: 0; top: 0; background: #073042; color: #3ddc84; animation-delay: -1s; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85a.637.637 0 0 0-.83.22l-1.88 3.24a11.43 11.43 0 0 0-8.94 0L5.65 5.67a.643.643 0 0 0-.87-.2c-.28.18-.37.54-.22.83L6.4 9.48A10.78 10.78 0 0 0 1 18h22a10.78 10.78 0 0 0-5.4-8.52M7 15.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5m10 0a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5'/%3E%3C/svg%3E"); }
.os-windows { left: 0; bottom: 0; background: #0078d4; color: #fff; animation-delay: -2s; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 2h9.6v9.6H2zM12.4 2H22v9.6h-9.6zM2 12.4h9.6V22H2zM12.4 12.4H22V22h-9.6z'/%3E%3C/svg%3E"); }
.os-mac { right: 0; bottom: 0; background: linear-gradient(180deg, #fafafa, #dcdce0); color: #1d1d1f; border: 1px solid #c7c7cc; animation-delay: -3s; }
.os-ios, .os-mac { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.37 1.43c0 1.13-.46 2.26-1.23 3.07-.82.88-2.16 1.55-3.35 1.45-.14-1.12.42-2.31 1.15-3.1.82-.89 2.26-1.53 3.43-1.42ZM20.5 17.1c-.6 1.38-.9 1.99-1.66 3.21-1.07 1.7-2.58 3.82-4.44 3.84-1.66.02-2.09-1.08-4.34-1.07-2.26.01-2.73 1.09-4.39 1.08-1.86-.02-3.29-1.94-4.36-3.63-2.99-4.72-3.3-10.26-1.46-13.2 1.31-2.1 3.38-3.32 5.32-3.32 1.98 0 3.22 1.08 4.86 1.08 1.59 0 2.56-1.08 4.85-1.08 1.73 0 3.56.94 4.87 2.57-4.28 2.34-3.58 8.45.25 10.22Z'/%3E%3C/svg%3E"); }
@keyframes osBob { 50% { transform: translateY(-6px); } }

/* ─── Galerie ─── */
.gallery {
    display: flex; gap: 22px; padding: 10px max(20px, calc((100vw - var(--container)) / 2 + 32px)) 30px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
    flex: none; margin: 0; width: clamp(220px, 24vw, 280px);
    border-radius: 30px; overflow: hidden; scroll-snap-align: center;
    background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform .7s var(--ease-out), box-shadow .5s ease;
}
.shot img { width: 100%; height: auto; }
@media (min-width: 1100px) {
    .gallery { justify-content: center; overflow: visible; perspective: 1600px; }
    .shot:nth-child(1) { transform: rotateY(18deg) rotateZ(-4deg) translateY(30px); }
    .shot:nth-child(2) { transform: rotateY(8deg) rotateZ(-1.5deg); }
    .shot:nth-child(3) { transform: rotateY(-8deg) rotateZ(1.5deg); }
    .shot:nth-child(4) { transform: rotateY(-18deg) rotateZ(4deg) translateY(30px); }
    .gallery:hover .shot { transform: none; }
    .shot:hover { transform: translateY(-14px) scale(1.04) !important; box-shadow: 0 50px 90px -30px rgba(255, 95, 10, .45); z-index: 2; }
}

/* ─── Plateformes ─── */
.os-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .os-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .os-grid { grid-template-columns: repeat(4, 1fr); } }
.os-tile {
    position: relative; display: flex; flex-direction: column; gap: 18px; padding: 16px 16px 18px;
    border-radius: 26px; background: var(--surface); border: 1px solid var(--border);
    transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s;
}
.os-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.os-info h3 { margin: 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.os-info { flex: 1; }
.os-info p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.os-info, .os-tile [data-badges] { padding: 0 4px; }
.you {
    position: absolute; top: 26px; right: 26px; z-index: 3;
    padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700;
    background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px var(--brand);
    display: none;
}
html[data-device="ios"] .t-ios .you, html[data-device="android"] .t-android .you,
html[data-device="windows"] .t-windows .you, html[data-device="mac"] .t-mac .you { display: inline-flex; }
html[data-device="ios"] .t-ios, html[data-device="android"] .t-android,
html[data-device="windows"] .t-windows, html[data-device="mac"] .t-mac { border-color: rgba(255, 138, 31, .55); box-shadow: 0 0 0 4px rgba(255, 95, 10, .1); }
.os-scene { position: relative; height: 200px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; }

/* iOS : écran d'accueil */
.ios-scene { background: #000; }
.ios-wall { position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 0%, #ff8a3d 0%, transparent 55%), radial-gradient(100% 90% at 100% 100%, #7c3aed 0%, transparent 55%), linear-gradient(160deg, #1e1b4b, #0b0705); }
.ios-home { position: relative; display: grid; grid-template-columns: repeat(4, 50px); gap: 8px 14px; justify-items: center; font-family: -apple-system, "SF Pro Text", sans-serif; }
.ios-app { width: 50px; height: 50px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); overflow: hidden; }
.ios-app.me { background: #000; animation: iosJiggle .5s ease-in-out infinite alternate; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 8px 24px rgba(255, 95, 10, .6); }
.ios-app.me img { width: 100%; height: 100%; }
.ios-lbl { width: 30px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.ios-lbl.me { width: auto; height: auto; background: none; font-size: 9.5px; color: #fff; font-weight: 500; }
@keyframes iosJiggle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

/* Android : Material You */
.android-scene { background: linear-gradient(160deg, #0b3a4f, #073042 60%, #041d28); font-family: "Google Sans", Roboto, sans-serif; padding: 14px; align-content: center; gap: 14px; }
.m3-sheet { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 22px; background: #d7f9e3; color: #002113; }
.m3-sheet img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.m3-sheet div { flex: 1; min-width: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.m3-sheet b, .m3-sheet small { overflow: hidden; text-overflow: ellipsis; }
.m3-sheet small { display: block; }
.m3-sheet b { font-size: 12.5px; font-weight: 600; display: block; }
.m3-sheet small { font-size: 11px; opacity: .7; }
.m3-btn { flex: none; padding: 7px 12px; border-radius: 99px; background: #006d3b; color: #fff; font-size: 12px; font-weight: 600; }
.m3-progress { width: 100%; height: 4px; border-radius: 4px; background: rgba(61, 220, 132, .2); overflow: hidden; }
.m3-progress i { display: block; height: 100%; width: 40%; border-radius: inherit; background: #3ddc84; animation: m3load 2.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes m3load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Windows : fenêtre Fluent */
.win-scene { background: radial-gradient(120% 120% at 30% 0%, #4cc2ff 0%, #0067c0 35%, #00205b 100%); font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
.win-window { width: 86%; border-radius: 8px; overflow: hidden; background: rgba(243, 243, 243, .92); color: #1a1a1a; box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .1); }
.win-title { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 10px; font-size: 11px; background: rgba(255, 255, 255, .6); }
.win-title img { width: 14px; height: 14px; border-radius: 3px; }
.win-title span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title i { width: 34px; height: 30px; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #333; }
.win-title i:last-child:hover { background: #c42b1c; color: #fff; }
.win-body { padding: 14px 14px 12px; display: grid; gap: 10px; }
.win-body small { font-size: 11.5px; }
.win-progress { height: 4px; border-radius: 4px; background: #d6d6d6; overflow: hidden; }
.win-progress i { display: block; height: 100%; width: 0; background: #0067c0; border-radius: inherit; animation: winload 3.2s ease-in-out infinite; }
@keyframes winload { 0% { width: 0; } 80%, 100% { width: 100%; } }
.win-btn { justify-self: end; padding: 5px 18px; border-radius: 4px; background: #0067c0; color: #fff; font-size: 11px; border-bottom: 1px solid #003e73; }

/* macOS : fenêtre DMG, glisser vers Applications */
.mac-scene { background: linear-gradient(160deg, #e0c3fc 0%, #8ec5fc 100%); font-family: -apple-system, "SF Pro Text", sans-serif; }
html:not([data-theme="light"]) .mac-scene { background: linear-gradient(160deg, #3a1c71 0%, #d76d77 55%, #ffaf7b 100%); }
.mac-window { width: 88%; border-radius: 10px; overflow: hidden; background: rgba(246, 246, 246, .95); color: #1d1d1f; box-shadow: 0 18px 44px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(0, 0, 0, .25); }
.mac-title { position: relative; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; background: linear-gradient(180deg, #ececec, #dcdcdc); border-bottom: 1px solid #c8c8c8; }
.mac-title em { position: absolute; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; font-weight: 600; color: #4d4d4d; pointer-events: none; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; border: .5px solid #e0443e; } .tl.y { background: #febc2e; border: .5px solid #dea123; } .tl.g { background: #28c840; border: .5px solid #1aab29; }
.mac-body { display: flex; align-items: center; justify-content: space-around; padding: 22px 10px; }
.mac-app { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); animation: dragToApps 3s var(--ease-out) infinite; }
.mac-app img { width: 100%; height: 100%; }
.mac-arrow { font-size: 22px; color: #8e8e93; }
.mac-folder { position: relative; width: 56px; height: 44px; border-radius: 6px; background: linear-gradient(180deg, #6cc4ff, #1e90ff); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); }
.mac-folder::before { content: ""; position: absolute; top: -6px; left: 0; width: 22px; height: 8px; border-radius: 4px 4px 0 0; background: #4fb3f7; }
.mac-folder::after { content: "A"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-weight: 800; font-size: 16px; }
@keyframes dragToApps {
    0%, 15% { transform: translateX(0) scale(1); opacity: 1; }
    60% { transform: translateX(118px) scale(.8); opacity: .9; }
    70%, 100% { transform: translateX(118px) scale(.4); opacity: 0; }
}

/* ─── Étapes ─── */
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 18px; max-width: 1080px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 30px 26px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .4s; }
.step.is-visible::after { transform: scaleX(1); }
.step-n { display: block; font-size: 72px; line-height: 1; margin-bottom: 20px; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 138, 31, .7); }
.step h3 { margin: 0 0 8px; font-size: 20px; font-family: var(--font-display); letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ─── Licences ─── */
.plans { display: grid; gap: 20px; max-width: 1120px; margin: 0 auto; align-items: stretch; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 32px 28px; display: flex; flex-direction: column; height: 100%; }
.plan-name { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-name i { width: 8px; height: 8px; border-radius: 50%; }
.plan-name i.live { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(255, 95, 10, .2); } }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.price b { font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan-desc { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 13px; flex: 1; }
.checks li { position: relative; padding-left: 30px; font-size: 14.5px; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 700; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
    border: 1px solid var(--border);
}
.checks.brand li::before { background-color: rgba(255, 95, 10, .14); border-color: rgba(255, 95, 10, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
.checks.gold li::before { background-color: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }

.plan-featured { position: relative; padding: 1.5px; border-radius: calc(var(--radius) + 1.5px); overflow: hidden; isolation: isolate; box-shadow: 0 40px 90px -40px rgba(255, 95, 10, .7); }
.plan-featured::before {
    content: ""; position: absolute; inset: -60%; z-index: -1;
    background: conic-gradient(from 0deg, transparent 0 55%, #ff5f0a 70%, #ffb547 80%, transparent 92%);
    animation: spin 5s linear infinite;
}
.plan-featured .plan { background: var(--surface-solid); border-color: transparent; backdrop-filter: none; }
@media (min-width: 980px) { .plan-featured { transform: translateY(-14px); } .plan-featured.is-visible { transform: translateY(-14px); } }
.plan-badge { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-deep), var(--brand-2)); }
.plan-dark { background: linear-gradient(160deg, #1d140e, #0d0805); border-color: rgba(251, 191, 36, .18); color: #fbf6f1; }
.plan-dark .plan-name, .plan-dark .price span, .plan-dark .plan-desc, .plan-dark .checks li { color: #b3a89f; }
.plan-dark .plan-name { color: #fbbf24; }
.plan-dark .checks li b { color: #fff; }
.plan-dark::after { content: ""; position: absolute; top: -80px; right: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(251, 191, 36, .14); filter: blur(50px); pointer-events: none; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 52px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ico { color: var(--ok); }

/* ─── FAQ ─── */
.faq-wrap { display: grid; gap: 48px; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-side { position: sticky; top: 120px; align-self: start; } }
.faq-side .h-section { margin-top: 16px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(255, 138, 31, .35); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); transition: transform .45s var(--ease-spring), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px -6px; border-radius: 2px; background: var(--brand-2); transition: transform .45s var(--ease-spring); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(180deg); background: rgba(255, 95, 10, .14); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 22px 22px; color: var(--muted); font-size: 15px; animation: faqIn .5s var(--ease-out); }
.faq-a b { color: var(--text); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ─── CTA final ─── */
.final { padding-top: 40px; }
.final-card {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(56px, 8vw, 96px) 24px; border-radius: 36px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
    background: linear-gradient(160deg, #1c110a, #0b0604);
    border: 1px solid rgba(255, 138, 31, .2); color: #fbf6f1;
}
.final-card .lead { color: #b3a89f; }
.final-glow { position: absolute; z-index: -1; left: 50%; top: 0; width: 760px; height: 420px; transform: translate(-50%, -45%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 95, 10, .65), transparent); filter: blur(30px); }
.final-rings { position: absolute; z-index: -1; left: 50%; top: 92px; transform: translateX(-50%); }
.final-rings span { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 138, 31, .3); transform: translate(-50%, -50%); animation: ripple 4.5s var(--ease-out) infinite; }
.final-rings span:nth-child(2) { animation-delay: 1.5s; } .final-rings span:nth-child(3) { animation-delay: 3s; }
@keyframes ripple { 0% { width: 80px; height: 80px; opacity: 1; } 100% { width: 640px; height: 640px; opacity: 0; } }
.final-logo { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px -10px rgba(255, 95, 10, .8); animation: phoneFloat 6s ease-in-out infinite; }
.final-card .h-section { max-width: 820px; margin: 0; }
.final-badges { justify-content: center; margin-top: 10px; }
.final-link { color: #ffb547; font-weight: 700; font-size: 14.5px; border-bottom: 1px dashed rgba(255, 181, 71, .5); padding-bottom: 2px; transition: color .2s; }
.final-link:hover { color: #fff; }


/* ─── Paiement des licences (GeniusPay) ─── */
.plan-alt { display: block; margin-top: 12px; text-align: center; font-size: 13px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.plan-alt:hover { color: var(--brand-2); }
.plan-dark .plan-alt { color: #8a7f76; }
.pay-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; }
.pay-by { width: 100%; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pay-by b { color: var(--text); }
.pm { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.pm-wave { background: #1dc3ff; color: #062a3b; }
.pm-orange { background: #ff7900; color: #000; }
.pm-mtn { background: #ffcb05; color: #1a1a1a; }
.pm-moov { background: #0066b3; color: #fff; }
.pm-card { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }

.pay-modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; }
.pay-modal[hidden] { display: none; }
.pay-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 2, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s ease forwards; opacity: 0; }
.pay-sheet {
    position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
    display: grid; gap: 14px; padding: 28px 24px 20px; border-radius: 26px;
    background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
    animation: sheetIn .5s var(--ease-spring);
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pay-x { position: absolute; top: 12px; right: 12px; }
.pay-head { padding-right: 30px; }
.pay-plan { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.pay-head h3 { margin: 6px 0 4px; font-size: 40px; }
.pay-head h3 small { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pay-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.field input {
    height: 48px; padding: 0 14px; border-radius: 12px; font: inherit; font-weight: 500; font-size: 15px;
    color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(255, 95, 10, .15); }
.field input[aria-invalid="true"] { border-color: #ef4444; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-methods .pm { height: 26px; font-size: 11px; padding: 0 9px; }
.pay-error { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid rgba(239, 68, 68, .3); }
html[data-theme="light"] .pay-error { color: #b91c1c; }
.pay-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.pay-submit { height: 56px; font-size: 16px; }
.pay-submit[disabled] { opacity: .7; cursor: progress; }
.pay-submit.is-loading svg { animation: spin .9s linear infinite; }
.pay-foot { margin: 0; text-align: center; font-size: 12px; color: var(--faint); }
.pay-foot .ico { font-size: 13px; margin-right: 2px; }
.plan-slots { display: inline-flex; align-items: center; gap: 8px; margin: -10px 0 22px; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--brand-2); background: rgba(255, 95, 10, .1); border: 1px solid rgba(255, 95, 10, .22); align-self: flex-start; }
.plan-slots svg { width: 16px; height: 16px; flex: none; }
.plan-dark .plan-slots { color: #fbbf24; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .25); }
.pay-slots { display: inline-flex; margin: 0 0 8px !important; padding: 4px 10px; border-radius: 8px; font-size: 12.5px !important; font-weight: 800; color: var(--brand-2) !important; background: rgba(255, 95, 10, .1); }
