﻿/*
 * Spin & Win â€” Frontend CSS
 * Design premium, mobile-first, charte METANOVA
 * ChargÃ© uniquement sur les pages Spin & Win
 *
 * @since SW-2.0.0
 */

/* ================================================================
   AUTH TIKTOK-STYLE (mna-login / mna-register)
   ================================================================ */
.mna-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(232,52,74,.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    padding: 1.25rem 1rem 2rem;
}

.mna-auth-shell {
    max-width: 430px;
    margin: 0 auto;
}

.mna-auth-card {
    background: #fff;
    min-height: calc(100vh - 3.25rem);
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    padding: 0 0 1.5rem;
}

.mna-auth-topbar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0 0;
}

.mna-auth-icon-btn,
.mna-auth-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #2d2d2d;
    font: inherit;
    font-size: 1.45rem;
    text-decoration: none;
}

.mna-auth-icon-btn {
    font-size: 1.1rem;
    border-radius: 999px;
}

.mna-auth-brand {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--sw-dark);
    font-weight: 700;
}

.mna-auth-brand .custom-logo {
    max-height: 28px;
    width: auto;
}

.mna-auth-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.75rem 0 0;
}

.mna-auth-title {
    margin: 1.8rem 0 1.5rem;
    text-align: center;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: clamp(2.05rem, 7vw, 2.85rem);
    line-height: 1.05;
    font-weight: 800;
    color: #111;
}

.mna-auth-alert {
    border-radius: 16px;
    padding: .9rem 1rem;
    font-size: .92rem;
}

.mna-auth-alert--success { background: #ecfdf5; color: #166534; }
.mna-auth-alert--warning { background: #fff7ed; color: #9a3412; }
.mna-auth-alert--error { background: #fef2f2; color: #b91c1c; }
.mna-auth-alert--info { background: #eff6ff; color: #1d4ed8; }

.mna-auth-form,
.mna-auth-email-panel {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.mna-auth-phone-row {
    display: grid;
    grid-template-columns: 122px 1fr;
    gap: .55rem;
}

.mna-auth-country,
.mna-auth-input,
.mna-auth-primary,
.mna-auth-secondary {
    border-radius: 16px;
    min-height: 54px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: .98rem;
}

.mna-auth-country,
.mna-auth-input {
    border: 1px solid #ececec;
    background: #f6f6f6;
    padding: 0 1rem;
    color: #111;
}

.mna-auth-country:focus,
.mna-auth-input:focus {
    outline: none;
    border-color: rgba(232,52,74,.55);
    box-shadow: 0 0 0 4px rgba(232,52,74,.12);
    background: #fff;
}

.mna-auth-input::placeholder {
    color: #9f9f9f;
}

.mna-auth-input--otp {
    text-align: center;
    letter-spacing: .22em;
    font-weight: 700;
}

.mna-auth-primary,
.mna-auth-secondary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.mna-auth-primary {
    background: #ff2d55;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(255,45,85,.22);
}

.mna-auth-primary:hover {
    transform: translateY(-1px);
    background: #f61f49;
}

.mna-auth-secondary {
    background: #fff;
    border-color: #ededed;
    color: #111;
    font-weight: 600;
}

.mna-auth-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17,17,17,.06);
}

.mna-auth-secondary--ghost {
    background: #fff7f8;
    border-color: #ffd7df;
    color: #cf1842;
}

.mna-auth-secondary.is-disabled {
    opacity: .55;
    pointer-events: auto;
}

.mna-auth-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.mna-auth-icon--google { color: #fbbc05; }
.mna-auth-icon--facebook { color: #1877f2; }

.mna-auth-step-copy {
    margin: 0;
    color: #5f5f5f;
    font-size: .92rem;
    text-align: center;
}

.mna-auth-divider {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: .15rem 0;
    color: #b1b1b1;
    font-size: .9rem;
}

.mna-auth-divider::before,
.mna-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ececec;
}

.mna-auth-status {
    display: none;
    border-radius: 14px;
    padding: .85rem 1rem;
    font-size: .92rem;
}

.mna-auth-status.sw-status-show { display: block; }
.mna-auth-status.sw-status-loading { background: #eff6ff; color: #1d4ed8; }
.mna-auth-status.sw-status-success { background: #ecfdf5; color: #166534; }
.mna-auth-status.sw-status-error { background: #fef2f2; color: #b91c1c; }

.mna-auth-legal,
.mna-auth-switch,
.mna-auth-remember {
    margin: 0;
    text-align: center;
    color: #707070;
    font-size: .92rem;
}

.mna-auth-remember {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.mna-auth-remember input {
    accent-color: #ff2d55;
}

.mna-auth-switch {
    margin-top: auto;
    font-size: 1.06rem;
    color: #1a1a1a;
    font-weight: 500;
}

.mna-auth-switch a,
.mna-auth-legal a {
    color: #ff2d55;
    text-decoration: none;
    font-weight: 700;
}

.mna-auth-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sw-spin .7s linear infinite;
}

.mna-auth-primary.sw-loading .mna-auth-btn-text,
.mna-auth-secondary.sw-loading .mna-auth-btn-text {
    display: none;
}

.mna-auth-primary.sw-loading .mna-auth-btn-loader,
.mna-auth-secondary.sw-loading .mna-auth-btn-loader {
    display: block;
}

@media (max-width: 480px) {
    .mna-auth-page { padding: .35rem 0 .75rem; }
    .mna-auth-card {
        min-height: 100vh;
        border-radius: 0;
        padding: 0 1rem 1rem;
    }
    .mna-auth-title { margin-top: 3.4rem; }
}
   VARIABLES LOCALES â€” dÃ©clarÃ©es sur :root pour couvrir TOUTES les
   pages Spin & Win (login, payment, play, jambo, access).
   ================================================================ */
:root {
    --sw-primary:      var(--color-primary, #E8344A);
    --sw-primary-dark: var(--color-primary-dark, #C4293D);
    --sw-dark:         var(--color-dark, #1F2937);
    --sw-muted:        #6B7280;
    --sw-light:        var(--color-light, #F9FAFB);
    --sw-white:        #FFFFFF;
    /* Darken the border color slightly for better visibility on input fields and containers */
    /* Slightly lighter border color for input elements to make them more visible on the payment page */
    --sw-border:       #E5E7EB;
    --sw-success:      #059669;
    --sw-error:        var(--color-primary, #E8344A);
    --sw-warning:      #D97706;
    --sw-info:         #2563EB;
    --sw-radius:       12px;
    --sw-radius-lg:    20px;
    --sw-shadow:       0 4px 24px rgba(0,0,0,.08);
    --sw-shadow-lg:    0 12px 40px rgba(0,0,0,.12);
    /* Hauteur de la topbar Spin â€” rÃ©fÃ©rencÃ©e partout pour les padding-top */
    --spin-topbar-h:   56px;
}

/* â”€â”€ Isolation du header GLOBAL (site principal) sur les pages Spin â”€â”€ */
/* header-spin.php n'inclut plus le header global du site.
   Cette rÃ¨gle masque uniquement le .site-header standard (non-jambo)
   au cas oÃ¹ un plugin ou hook l'injecterait malgrÃ© tout.
   IMPORTANT : .site-header--jambo (header-jambo.php) est EXCLU de cette rÃ¨gle
   car il utilise aussi id="masthead" et class="site-header". */
body.spin-page-body .site-header:not(.site-header--jambo),
body.spin-page-body #content > .site-header:not(.site-header--jambo) {
    display: none !important;
}

/* Reset du #content wrapper injectÃ© par certains hooks WordPress */
body.spin-page-body #content {
    padding-top: 0 !important;
    margin-top:  0 !important;
}

/* ================================================================
   HERO LOGIN
   ================================================================ */
.sw-login-hero {
    background: rgba(7, 7, 15, 1);
    padding: calc(var(--header-height, 80px) + 1.5rem) 1.5rem 1.75rem;
    color: #ffffff;
}

.sw-login-hero__inner {
    max-width: 680px;
    margin: 0 auto;
}

/* Badge supprimÃ© (v2.8.2) â€” rÃ¨gle conservÃ©e pour rÃ©trocompat */
.sw-login-hero__badge { display: none; }

.sw-dot {
    width: 8px; height: 8px;
    background: var(--sw-primary);
    border-radius: 50%;
    display: inline-block;
    animation: sw-blink 1.4s ease infinite;
}

@keyframes sw-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: .3; }
}

.sw-login-hero h1 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: var(--sw-white);
}

/* Sous-titre supprimÃ© (v2.8.2) */
.sw-login-hero p { display: none; }

/* â”€â”€ Google / Social Auth â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-social-auth {
    padding: 1.25rem 1.5rem 0;
}

.sw-google-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* Nextend Social Login overrides â€” centrage + style cohÃ©rent */
.sw-google-btn-wrap .nsl-container,
.sw-google-btn-wrap .nsl-container-buttons {
    display: flex !important;
    justify-content: center;
}

.sw-google-btn-wrap .nsl-button {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    font-family: var(--font-body, 'Poppins', sans-serif) !important;
    font-weight: 600 !important;
    font-size: .92rem !important;
    padding: .75rem 1.25rem !important;
    border: 1.5px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    transition: background .2s, border-color .2s !important;
}

.sw-google-btn-wrap .nsl-button:hover {
    background: rgba(255,255,255,.11) !important;
    border-color: rgba(255,255,255,.25) !important;
}

.sw-google-btn-wrap .nsl-button-google svg,
.sw-google-btn-wrap .nsl-button-google img {
    width: 18px !important;
    height: 18px !important;
}

/* Divider "ou avec email" */
.sw-auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.5rem 0;
    color: rgba(255,255,255,.3);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.sw-auth-divider::before,
.sw-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.1);
}

.sw-auth-divider span { white-space: nowrap; }

/* ================================================================
   SECTION LOGIN â€” LAYOUT
   ================================================================ */
.sw-login-section {
    background: var(--sw-light);
    padding: 3rem 1.5rem 5rem;
}

.sw-login-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ================================================================
   PANNEAU AUTH (carte principale)
   ================================================================ */
.sw-auth-panel {
    background: var(--sw-white);
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow-lg);
    overflow: hidden;
}

/* Tabs */
.sw-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--sw-border);
}

.sw-auth-tab {
    flex: 1;
    padding: 1.1rem;
    background: none;
    border: none;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: .95rem;
    font-weight: 600;
    color: var(--sw-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}

.sw-auth-tab:hover { color: var(--sw-dark); }

.sw-auth-tab--active {
    color: var(--sw-primary);
    border-bottom-color: var(--sw-primary);
}

/* Form wrap */
.sw-auth-form-wrap {
    padding: 1.75rem;
}

/* ================================================================
   FORMULAIRES GÃ‰NÃ‰RIQUES
   ================================================================ */
.sw-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sw-form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sw-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.sw-field label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--sw-dark);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}

.sw-field-hint {
    font-size: .82rem;
    font-weight: 400;
    color: #4b5563;
}

.sw-field-note {
    font-size: .8rem;
    color: var(--sw-muted);
    margin: 0;
}

.sw-auth-inline-actions {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.sw-auth-inline-actions--between {
    align-items: flex-start;
}

.sw-link-btn {
    padding: 0;
    border: none;
    background: none;
    color: var(--sw-primary);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sw-link-btn:hover {
    color: var(--sw-primary-dark);
}

.sw-required { color: var(--sw-primary); }

/* Inputs — bordure 2px visible sur tous les navigateurs y compris Android WebView */
.sw-field input[type="text"],
.sw-field input[type="email"],
.sw-field input[type="password"],
.sw-field input[type="tel"],
.sw-field input[type="number"] {
    width: 100%;
    padding: .85rem 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 12px;
    font-size: 1rem;
    color: #1F2937;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    outline: none;
}

.sw-field input[type="text"]:focus,
.sw-field input[type="email"]:focus,
.sw-field input[type="password"]:focus,
.sw-field input[type="tel"]:focus,
.sw-field input[type="number"]:focus,
.sw-field input:focus {
    outline: none;
    border-color: var(--sw-primary, #E8344A);
    box-shadow: 0 0 0 3px rgba(232,52,74,.12);
}

.sw-field input.sw-input-error {
    border-color: #EF4444;
}

/* Prefix (+237) — fort et visible */
.sw-input-prefix {
    display: flex;
    align-items: stretch;
    border: 2px solid #D1D5DB;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.sw-input-prefix:focus-within {
    border-color: var(--sw-primary, #E8344A);
    box-shadow: 0 0 0 3px rgba(232,52,74,.12);
}

.sw-prefix {
    padding: .85rem .9rem;
    background: #F3F4F6;
    border-right: 2px solid #D1D5DB;
    font-size: .9rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sw-input-prefix input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding: .85rem 1rem;
    background: transparent;
}

/* Toggle password */
.sw-input-toggle {
    position: relative;
}

.sw-input-toggle input { padding-right: 3rem; }

.sw-toggle-pw {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sw-muted);
    padding: .25rem;
    display: flex;
    align-items: center;
    transition: color .2s;
}

.sw-toggle-pw:hover { color: var(--sw-dark); }

/* Checkbox */
.sw-checkbox {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .875rem;
    color: var(--sw-muted);
    cursor: pointer;
}

.sw-checkbox input { margin-top: 2px; flex-shrink: 0; accent-color: var(--sw-primary); }

.sw-checkbox a { color: var(--sw-primary); text-decoration: underline; }

/* ================================================================
   STATUT FORMULAIRE
   ================================================================ */
.sw-form-status {
    display: none;
    padding: .75rem 1rem;
    border-radius: var(--sw-radius);
    font-size: .875rem;
    font-weight: 500;
}

.sw-form-status.sw-status-show { display: block; }

.sw-form-status.sw-status-loading {
    background: #EFF6FF;
    color: var(--sw-info);
}

.sw-form-status.sw-status-success {
    background: #ECFDF5;
    color: var(--sw-success);
}

.sw-form-status.sw-status-error {
    background: #FEF2F2;
    color: var(--sw-error);
}

/* ================================================================
   BOUTONS
   ================================================================ */
.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
}

.sw-btn--primary {
    background: var(--sw-primary);
    color: var(--sw-white);
    box-shadow: 0 4px 16px rgba(232,52,74,.35), 0 2px 6px rgba(232,52,74,.2);
}

.sw-btn--primary:hover {
    background: var(--sw-primary-dark);
    box-shadow: 0 6px 24px rgba(232,52,74,.45), 0 3px 8px rgba(232,52,74,.25);
    transform: translateY(-1px);
}

/* Payment page â€” override explicite pour Ã©viter cascade WP */
.sw-pay-section .sw-btn--primary,
.sw-pay-card .sw-btn--primary {
    background: #E8344A !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(232,52,74,.4), 0 2px 6px rgba(232,52,74,.22) !important;
}
.sw-pay-section .sw-btn--primary:hover,
.sw-pay-card .sw-btn--primary:hover {
    background: #c8263b !important;
    box-shadow: 0 6px 24px rgba(232,52,74,.5), 0 3px 8px rgba(232,52,74,.28) !important;
}

.sw-btn--ghost {
    background: var(--sw-light);
    color: var(--sw-dark);
}

.sw-btn--ghost:hover { background: var(--sw-border); }

.sw-btn--full { width: 100%; }

.sw-btn--lg { padding: 1.1rem 1.5rem; font-size: 1rem; }

.sw-btn--sm { padding: .5rem 1rem; font-size: .85rem; }

.sw-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none !important;
}

/* Loader bouton */
.sw-btn__loader {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: var(--sw-white);
    border-radius: 50%;
    animation: sw-spin .7s linear infinite;
}

.sw-btn.sw-loading .sw-btn__text { display: none; }
.sw-btn.sw-loading .sw-btn__loader { display: block; }

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

/* ================================================================
   ASIDE (colonne droite login)
   ================================================================ */
.sw-login-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sw-aside-card {
    background: var(--sw-white);
    border-radius: var(--sw-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--sw-shadow);
}

.sw-aside-card--secondary {
    background: linear-gradient(135deg, #FFF5F6 0%, #FFF 100%);
    border: 1px solid rgba(232,52,74,.12);
}

.sw-aside-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.sw-aside-card h3 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sw-dark);
    margin: 0 0 1rem;
}

.sw-aside-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.sw-aside-steps li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: var(--sw-muted);
}

.sw-aside-steps li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: var(--sw-primary);
    color: var(--sw-white);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sw-aside-rewards__label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--sw-muted);
    margin: 0 0 .75rem;
}

.sw-reward-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.sw-chip {
    display: inline-block;
    padding: .35rem .75rem;
    background: var(--sw-white);
    border: 1px solid var(--sw-border);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--sw-dark);
    white-space: nowrap;
}

.sw-aside-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding: 1rem 1.25rem;
    background: var(--sw-white);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
}

.sw-aside-trust span {
    font-size: .82rem;
    color: var(--sw-muted);
}

/* ================================================================
   PAGE PAIEMENT — NOUVELLE ARCHITECTURE COMPACTE v2.12.10
   Un seul scroll-container, barre user intégrée dans la carte
   ================================================================ */

/* ── Fond de page ── */
.sw-pay-page {
    min-height: 100vh;
    background: #F4F5F7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--header-height, 80px) + .4rem) .75rem .75rem;
    box-sizing: border-box;
}

.sw-pay-page__inner {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

/* ── Barre utilisateur compacte ── */
.sw-pay-user-bar {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #1a1a2e;
    border-radius: 14px;
    padding: .55rem .85rem;
    color: #fff;
}

.sw-pay-user-bar__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    overflow: hidden;
}

.sw-pay-user-bar__name {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sw-pay-user-bar__email {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sw-pay-user-bar__lock {
    color: rgba(255,255,255,.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ── Avatar ── */
.sw-user-avatar {
    width: 42px; height: 42px;
    background: var(--sw-primary, #E8344A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
}

.sw-user-avatar--sm {
    width: 36px; height: 36px;
    font-size: .9rem;
}

/* ── Carte principale ── */
.sw-pay-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    overflow: hidden;
}

.sw-pay-card__header {
    display: none; /* Titre "Recharger & Jouer" supprimé — gagner de l'espace */
}

/* ── Step interne ── */
.sw-pay-step { padding: .85rem 1.1rem 1rem; }

/* ── Options de montant ── */
.sw-amount-options {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.sw-amount-chip {
    padding: .45rem .85rem;
    border: 2px solid #D1D5DB;
    border-radius: 999px;
    background: #fff;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .18s;
    line-height: 1.3;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.sw-amount-chip:hover {
    border-color: var(--sw-primary, #E8344A);
    color: var(--sw-primary, #E8344A);
    background: rgba(232,52,74,.06);
}

.sw-amount-chip--active {
    border-color: #E8344A;
    background: #E8344A;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(232,52,74,.4);
    font-weight: 700;
}

/* ── Champs inputs — bordure forte et visible ── */
.sw-field {
    margin-bottom: .65rem;
}

.sw-field label {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
    font-size: .78rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.sw-field-hint {
    font-size: .78rem;
    font-weight: 400;
    color: #9CA3AF;
    text-transform: none;
    letter-spacing: 0;
}

.sw-field input[type="text"],
.sw-field input[type="email"],
.sw-field input[type="password"],
.sw-field input[type="tel"],
.sw-field input[type="number"] {
    width: 100%;
    padding: .7rem .9rem;
    border: 2px solid #D1D5DB;
    border-radius: 10px;
    font-size: .95rem;
    color: #1F2937;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    outline: none;
}

.sw-field input[type="text"]:focus,
.sw-field input[type="email"]:focus,
.sw-field input[type="password"]:focus,
.sw-field input[type="tel"]:focus,
.sw-field input[type="number"]:focus {
    border-color: var(--sw-primary, #E8344A);
    box-shadow: 0 0 0 3px rgba(232,52,74,.12);
}

.sw-field input.sw-input-error {
    border-color: #EF4444;
}

/* ── Prefix téléphone — fort et visible ── */
.sw-input-prefix {
    display: flex;
    align-items: stretch;
    border: 2px solid #D1D5DB;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

.sw-input-prefix--strong {
    border-color: #D1D5DB;
}

.sw-input-prefix:focus-within {
    border-color: var(--sw-primary, #E8344A);
    box-shadow: 0 0 0 3px rgba(232,52,74,.12);
}

.sw-prefix {
    padding: .7rem .85rem;
    background: #F3F4F6;
    border-right: 2px solid #D1D5DB;
    font-size: .9rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sw-input-prefix input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding: .7rem .9rem;
    font-size: .95rem;
    color: #1F2937;
    background: transparent;
    outline: none;
    min-width: 0;
}

/* ── Récapitulatif ── */
.sw-pay-summary {
    background: #F8F9FA;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: .65rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .7rem;
}

.sw-pay-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: #6B7280;
}

.sw-pay-summary__row strong { color: #1F2937; font-weight: 700; }

.sw-pay-summary__row--total {
    padding-top: .35rem;
    border-top: 1.5px solid #E5E7EB;
    font-size: .9rem;
}

.sw-pay-summary__row--total strong {
    font-size: 1.05rem;
    color: var(--sw-primary, #E8344A);
    font-weight: 800;
}

/* ── Bouton payer ── */
.sw-btn--full { width: 100%; }

.sw-btn--lg {
    padding: .85rem 1.25rem;
    font-size: .95rem;
    border-radius: 12px;
}

.sw-btn--primary {
    background: #E8344A;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s, transform .1s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232,52,74,.4);
}

.sw-btn--primary:hover, .sw-btn--primary:focus {
    background: #C4293D;
    box-shadow: 0 6px 20px rgba(232,52,74,.45);
    transform: translateY(-1px);
}

.sw-btn--primary:active { transform: translateY(0); }

.sw-btn__text { display: flex; align-items: center; gap: .45rem; }
.sw-btn__loader { display: none; }
.sw-btn--loading .sw-btn__text { display: none; }
.sw-btn--loading .sw-btn__loader {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sw-spin .7s linear infinite;
}

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

/* ── Sécurité ── */
.sw-pay-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-size: .7rem;
    color: #9CA3AF;
    margin: .4rem 0 0;
    text-align: center;
}

/* ── Status form ── */
.sw-form-status {
    display: none;
    padding: .55rem .85rem;
    border-radius: 8px;
    font-size: .82rem;
    margin-bottom: .55rem;
}

.sw-form-status.sw-status-show { display: block; }

.sw-form-status.sw-status-loading {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.sw-form-status.sw-status-success {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.sw-form-status.sw-status-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* ── Étape attente ── */
.sw-waiting {
    text-align: center;
    padding: 1.5rem 1rem;
}

.sw-waiting h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #1F2937;
}

.sw-waiting p {
    font-size: .88rem;
    color: #6B7280;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.sw-waiting__animation {
    position: relative;
    width: 70px; height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-waiting__phone {
    font-size: 2rem;
    position: relative;
    z-index: 2;
    animation: sw-phone-pulse 1.2s ease-in-out infinite;
}

@keyframes sw-phone-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.sw-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(232,52,74,.4);
    animation: sw-pulse-expand 1.5s ease-out infinite;
}

@keyframes sw-pulse-expand {
    0% { transform: scale(.85); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.sw-waiting__ref {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: .4rem .75rem;
    font-size: .78rem;
    color: #6B7280;
    margin-bottom: 1rem;
    font-family: monospace;
}

.sw-copy-ref-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color .2s;
}

.sw-copy-ref-btn:hover { color: var(--sw-primary, #E8344A); }

.sw-waiting__progress {
    height: 4px;
    background: #E5E7EB;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: .5rem;
}

.sw-progress-bar {
    height: 100%;
    background: var(--sw-primary, #E8344A);
    border-radius: 99px;
    width: 100%;
    transform-origin: left;
    animation: sw-progress-drain 90s linear forwards;
}

@keyframes sw-progress-drain {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.sw-waiting__hint {
    font-size: .78rem;
    color: #9CA3AF;
    margin: 0 0 1rem;
}

.sw-btn--ghost {
    background: transparent;
    border: 1.5px solid #D1D5DB;
    color: #6B7280;
    border-radius: 10px;
    padding: .55rem 1.25rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
}

.sw-btn--ghost:hover { border-color: #9CA3AF; color: #374151; }

.sw-btn--sm { padding: .45rem 1rem; font-size: .82rem; }

/* ── Étape confirmation ── */
.sw-confirmed {
    text-align: center;
    padding: 1.5rem 1rem;
}

.sw-confirmed__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.sw-confirmed h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.25rem;
}

/* ── Étape échec ── */
.sw-failed {
    text-align: center;
    padding: 1.5rem 1rem;
}

.sw-failed__icon { font-size: 2.5rem; margin-bottom: .75rem; }

.sw-failed h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 .5rem;
}

.sw-failed p {
    font-size: .85rem;
    color: #6B7280;
    margin: 0 0 1.25rem;
}

/* ── Responsive mobile ── */
@media (max-width: 480px) {
    .sw-pay-page {
        padding: calc(var(--header-height, 80px) + .25rem) .6rem .5rem;
    }
    .sw-pay-card__header { display: none; }
    .sw-pay-step { padding: .7rem .9rem .85rem; }
    .sw-amount-chip { font-size: .76rem; padding: .38rem .65rem; }
    .sw-pay-summary { padding: .55rem .8rem; }
    .sw-pay-user-bar { padding: .45rem .75rem; }
}

/* ── Compatibilité : anciens styles hero/section (conservés pour éviter régression) ── */
.sw-pay-hero { display: none !important; }
.sw-pay-section { display: none !important; }
.sw-pay-container { display: none !important; }

/* Carte paiement */
.sw-pay-card {
    background: var(--sw-white);
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow-lg);
    overflow: hidden;
}

/* Ancien bloc payment CSS supprimé — remplacé par les règles v2.12.10 ci-dessus */

/* ================================================================
   HISTORIQUE
   ================================================================ */
.sw-history-panel {
    background: var(--sw-white);
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow);
    padding: 1.5rem;
}

.sw-history-panel__title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--sw-dark);
    margin: 0 0 1rem;
}

.sw-history-list { display: flex; flex-direction: column; gap: .75rem; }

.sw-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    background: var(--sw-light);
    border-radius: var(--sw-radius);
    font-size: .875rem;
}

.sw-history-item__left {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 60px;
}

.sw-history-item__id {
    font-weight: 700;
    color: var(--sw-dark);
}

.sw-history-item__date { color: var(--sw-muted); font-size: .78rem; }

.sw-history-item__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.sw-history-item__center strong { color: var(--sw-dark); }
.sw-history-item__center small { color: var(--sw-muted); font-size: .75rem; font-family: monospace; }

.sw-history-item__right { margin-left: auto; }

/* Badges statut */
.sw-status-badge {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.sw-status--success  { background: #ECFDF5; color: var(--sw-success); }
.sw-status--error    { background: #FEF2F2; color: var(--sw-error); }
.sw-status--warning  { background: #FFFBEB; color: var(--sw-warning); }
.sw-status--info     { background: #EFF6FF; color: var(--sw-info); }
.sw-status--pending  { background: var(--sw-light); color: var(--sw-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .sw-login-container {
        grid-template-columns: 1fr;
    }

    .sw-login-aside {
        order: -1; /* Trust signals en premier sur mobile */
        display: none; /* On cache l'aside sur mobile pour ne pas alourdir */
    }
}

@media (max-width: 600px) {
    .sw-login-hero { padding: calc(var(--spin-topbar-h, 56px) + 1.25rem) 1rem 1.5rem; }
    .sw-login-section { padding: 1.5rem 1rem 4rem; }
    .sw-form-row--2 { grid-template-columns: 1fr; }
    .sw-auth-form-wrap { padding: 1.25rem; }
    .sw-pay-step { padding: .7rem .9rem .85rem; }
    .sw-amount-options { gap: .35rem; }
    .sw-amount-chip { font-size: .76rem; padding: .38rem .65rem; }
    .sw-history-item { gap: .6rem; }
}

/* ================================================================
   GAME PAGE
   ================================================================ */

/* ================================================================
   PAGE DE JEU â€” SPIN PLAY
   Design gaming sombre, roulette SVG animÃ©e
   ================================================================ */

/* â”€â”€ Shell global â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-play-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #1a0a2e 0%, #0a0a14 60%);
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* â”€â”€ Topbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-play-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.5rem;
    background: rgba(0,0,0,.4);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.sw-play-topbar__brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .04em;
    color: #fff;
}

.sw-play-topbar__dot {
    width: 8px; height: 8px;
    background: #E8344A;
    border-radius: 50%;
    animation: sw-blink 1.4s ease infinite;
    flex-shrink: 0;
}

.sw-play-topbar__user {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    margin-left: auto;
}

.sw-play-topbar__avatar {
    width: 30px; height: 30px;
    background: #E8344A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
}

.sw-play-topbar__nav {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.sw-play-nav-btn {
    padding: .45rem 1rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: none;
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.sw-play-nav-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.sw-play-nav-btn--ghost { border-color: rgba(255,255,255,.1); }

/* â”€â”€ Layout principal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-play-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.8rem 1.5rem 4rem;
    align-items: start;
}

/* Colonne roulette â€” flex-column centrÃ© en toutes tailles */
.sw-wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: .35rem;
}

/* â”€â”€ Statut session â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-session-status { margin-bottom: 1.5rem; }

.sw-session-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

.sw-session-badge a { color: inherit; text-decoration: underline; }
.sw-session-badge--wait   { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.sw-session-badge--ready  { background: rgba(5,150,105,.2);    color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.sw-session-badge--credit { background: rgba(232,52,74,.15);   color: #ff9caa; border: 1px solid rgba(232,52,74,.3); }

/* â”€â”€ Roulette â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-ticket-counter {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .9rem 0 1.1rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.88);
    font-size: .9rem;
    font-weight: 600;
}

.sw-ticket-counter__label {
    color: rgba(255,255,255,.65);
}

.sw-ticket-counter__value {
    color: #fff;
    letter-spacing: .02em;
}

.sw-wheel-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.sw-wheel-outer {
    position: relative;
    width: min(440px, 100%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anneau dÃ©coratif extÃ©rieur */
.sw-wheel-ring-outer {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        #E8344A 0deg, #C4293D 30deg,
        #E8344A 60deg, #C4293D 90deg,
        #E8344A 120deg, #C4293D 150deg,
        #E8344A 180deg, #C4293D 210deg,
        #E8344A 240deg, #C4293D 270deg,
        #E8344A 300deg, #C4293D 330deg,
        #E8344A 360deg
    );
    opacity: .18;
    z-index: 0;
}

@supports not (background: conic-gradient(red, blue)) {
    .sw-wheel-ring-outer {
        background: linear-gradient(135deg, rgba(232,52,74,.28), rgba(196,41,61,.08));
    }
}

@supports not (aspect-ratio: 1) {
    .sw-wheel-outer {
        height: min(440px, 80vw);
    }
}

@keyframes sw-ring-rotate {
    to { transform: rotate(360deg); }
}

/* Lueur derriÃ¨re la roue */
.sw-wheel-outer::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,52,74,.3) 0%, transparent 70%);
    z-index: 0;
    animation: sw-glow-pulse 2s ease-in-out infinite;
}

@keyframes sw-glow-pulse {
    0%,100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.05); }
}

/* Pointeur triangle dorÃ© */
.sw-wheel-pointer-wrap {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(255,193,7,.6));
}

/* SVG de la roue */
#sw-wheel-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 3.25s cubic-bezier(.17,.67,.12,.99);
    will-change: transform;
    transform-origin: 50% 50%;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#sw-wheel-svg.sw-spinning {
    /* La rotation est appliquÃ©e dynamiquement par le JS */
}

/* Segments highlight */
.sw-segment-active {
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(255,255,255,.4));
}

/* â”€â”€ Bouton Lancer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-spin-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.sw-spin-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .98rem 2.4rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #E8344A 0%, #FF6C54 100%);
    color: #fff;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(232,52,74,.5), 0 0 0 0 rgba(232,52,74,.4);
    transition: all .2s;
    min-width: 228px;
    animation: sw-btn-pulse 2.5s ease infinite;
    touch-action: manipulation;
}

.sw-spin-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232,52,74,.6), 0 0 0 0 rgba(232,52,74,.3);
    animation: none;
}

.sw-spin-btn:disabled {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.4);
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
}

@keyframes sw-btn-pulse {
    0%,100% { box-shadow: 0 8px 30px rgba(232,52,74,.5), 0 0 0 0 rgba(232,52,74,.4); }
    50%      { box-shadow: 0 8px 30px rgba(232,52,74,.5), 0 0 0 16px rgba(232,52,74,.0); }
}

.sw-spin-btn__loader {
    display: none;
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sw-spin .7s linear infinite;
}

.sw-spin-btn.sw-loading .sw-spin-btn__text { display: none; }
.sw-spin-btn.sw-loading .sw-spin-btn__loader { display: block; }

.sw-spin-hint {
    margin: .75rem 0 0;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}

.sw-spin-hint a { color: rgba(232,52,74,.8); text-decoration: underline; }

/* Label "Paiement confirmÃ©" au-dessus du bouton Lancer */
.sw-payment-confirmed-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .85rem;
    padding: .45rem 1rem;
    background: rgba(5,150,105,.18);
    color: #34d399;
    border: 1px solid rgba(52,211,153,.35);
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
}

/* â”€â”€ Colonne droite â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-play-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Carte rÃ©sultat */
.sw-result-card {
    background: linear-gradient(135deg, rgba(232,52,74,.12) 0%, rgba(255,255,255,.04) 100%);
    border: 1px solid rgba(232,52,74,.25);
    border-radius: 20px;
    padding: 1.5rem;
    animation: sw-result-in .4s ease;
}

@keyframes sw-result-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sw-result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sw-result-trophy {
    font-size: 2.2rem;
    flex-shrink: 0;
    animation: sw-trophy-bounce .5s ease .1s both;
}

@keyframes sw-trophy-bounce {
    0%   { transform: scale(0) rotate(-20deg); }
    60%  { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
}

.sw-result-label {
    margin: 0 0 .2rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.5);
}

.sw-result-name {
    margin: 0;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFD166;
}

/* Panels latÃ©raux */
.sw-panel-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 1.25rem;
}

.sw-panel-title {
    margin: 0 0 .9rem;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: .9rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sw-mini-order {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

button.sw-mini-order {
    width: 100%;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.sw-mini-order:last-child { border-bottom: none; }

.sw-mini-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sw-mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .22rem;
}

.sw-mini-info strong {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-mini-info span {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
}

.sw-mini-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sw-mini-badge--done       { background: rgba(5,150,105,.2);  color: #34d399; }
.sw-mini-badge--processing { background: rgba(37,99,235,.2);  color: #93c5fd; }
.sw-mini-badge--error      { background: rgba(220,38,38,.2);  color: #fca5a5; }
.sw-mini-badge--pending    { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.sw-mini-badge--credit     { background: rgba(255,209,102,.15); color: #FFD166; }
.sw-mini-status-badge      { width: fit-content; }

.sw-empty-state {
    font-size: .85rem;
    color: rgba(255,255,255,.3);
    text-align: center;
    padding: .5rem 0;
    margin: 0;
}

/* Surcharger les boutons et form sur fond sombre */
.sw-play-page .sw-field label { color: rgba(255,255,255,.7); }

.sw-play-page .sw-field input[type="url"] {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.15);
    color: #fff;
}

.sw-play-page .sw-field input[type="url"]::placeholder { color: rgba(255,255,255,.3); }

.sw-play-page .sw-field input[type="url"]:focus {
    border-color: rgba(232,52,74,.5);
    background: rgba(255,255,255,.1);
}

.sw-play-page .sw-btn--ghost {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.12);
}

.sw-play-page .sw-btn--ghost:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sw-play-page .sw-form-status.sw-status-show {
    border-radius: 10px;
}

/* â”€â”€ RESPONSIVE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
    .sw-play-main {
        grid-template-columns: 1fr;
        padding: 2.2rem 1rem 3rem;
    }

    .sw-play-topbar__user span { display: none; }

    .sw-wheel-outer { width: min(340px, 100%); }

    /* Roulette EN PREMIER sur mobile â€” sidebar (crÃ©dits/commandes) en dessous */
    .sw-wheel-section { order: 1; }
    .sw-play-aside    { order: 2; }

    /* Hauteur minimale pour que la section roulette soit visible mÃªme sans roue active */
    .sw-wheel-section {
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sw-result-card:not([hidden]) ~ .sw-panel-card:first-of-type { display: none; }
}

@media (max-width: 480px) {
    .sw-play-topbar { padding: .7rem 1rem; gap: .5rem; }
    .sw-play-nav-btn { font-size: .75rem; padding: .4rem .75rem; }
    .sw-spin-btn { min-width: 200px; font-size: 1rem; padding: 1rem 2rem; }
    .sw-wheel-outer { width: min(300px, 100%); }
}

@media (max-width: 390px) {
    .sw-play-main {
        padding: 1.8rem .7rem 2.25rem;
    }

    .sw-session-badge {
        font-size: .78rem;
        padding: .48rem .8rem;
        text-align: center;
    }

    .sw-ticket-counter {
        font-size: .82rem;
        padding: .48rem .78rem;
        margin: .55rem 0 .9rem;
    }

    .sw-wheel-wrap {
        margin-bottom: 1.15rem;
    }

    .sw-wheel-outer {
        width: min(300px, calc(100vw - 1.4rem));
    }

    .sw-wheel-pointer-wrap {
        top: -2px;
    }

    .sw-spin-btn {
        width: auto;
        max-width: 100%;
        min-width: 200px;
        padding: 1rem 1.4rem;
        white-space: normal;
    }

    .sw-result-card,
    .sw-panel-card {
        padding: 1.1rem .95rem;
    }

    .sw-order-modal__box {
        max-height: 88vh;
        padding: 1.2rem 1rem 1.3rem;
    }

    /* In small viewports, keep each modal row on a single line.  Align label and value vertically centered
       instead of stacking them, and reset the flex direction to row.  This prevents values from dropping
       below their labels on narrow screens. */
    .sw-modal-row {
        flex-direction: row;
        align-items: center;
        gap: .5rem;
    }

    .sw-modal-val,
    .sw-modal-link {
        max-width: 100%;
        text-align: left;
    }
}

/* ================================================================
   v2.7.1 â€” CONFIRMATION COMMANDE + CHAMP LIEN AMÃ‰LIORÃ‰
   ================================================================ */

/* Bloc de confirmation aprÃ¨s envoi de commande */
.sw-confirm-success {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(5,150,105,.12);
    border: 1px solid rgba(52,211,153,.25);
    border-radius: 12px;
    padding: .9rem 1.1rem;
    margin-bottom: .75rem;
    animation: sw-result-in .35s ease;
}

.sw-confirm-success__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sw-confirm-success__text {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: #34d399;
    line-height: 1.4;
}

/* Champ lien â€” mise en valeur claire */
#sw-link-field label {
    font-size: .95rem;
    font-weight: 700;
    color: rgba(255,255,255,.9) !important;
    margin-bottom: .25rem;
}

#sw-link-field input[type="url"] {
    font-size: 1rem;
    padding: .75rem 1rem;
    background: rgba(255,255,255,.1) !important;
    border: 2px solid rgba(232,52,74,.4) !important;
    color: #fff !important;
    border-radius: 10px;
}

#sw-link-field input[type="url"]:focus {
    border-color: #E8344A !important;
    background: rgba(255,255,255,.13) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(232,52,74,.15);
}

#sw-link-field input[type="url"]::placeholder {
    color: rgba(255,255,255,.4) !important;
}

/* IcÃ´ne rÃ©sultat SVG (remplacement du trophÃ©e emoji) */
.sw-result-trophy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    animation: sw-trophy-bounce .5s ease .1s both;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   v2.7.2 â€” Nouveaux styles
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Page paiement : Ã©tape confirmÃ©e redessinÃ©e â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-confirmed {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 1rem;
}
.sw-confirmed__icon {
    animation: sw-confirm-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes sw-confirm-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.sw-confirmed h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000 !important;
    margin: 0 0 1.25rem;
}
.sw-confirmed__notice {
    margin: 0;
    max-width: 28rem;
    color: rgba(255,255,255,.78);
    line-height: 1.6;
    font-size: .95rem;
}
.sw-confirmed__sub {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    margin: 0;
    font-family: monospace;
    letter-spacing: .03em;
}

/* â”€â”€ Bouton copier rÃ©fÃ©rence â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-waiting__ref {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .45rem .85rem;
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    font-family: monospace;
}
#sw-ref-text { flex: 1; }
.sw-copy-ref-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: .2rem;
    border-radius: 4px;
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    transition: color .2s, background .2s;
}
.sw-copy-ref-btn:hover {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
}

/* â”€â”€ Zone rÃ©sultat (remplace la roue aprÃ¨s tirage) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-result-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    scroll-margin-top: calc(var(--header-height, 80px) + 1rem);
    animation: sw-result-fade .45s ease both;
}

.sw-play-page[data-play-stage="result"] #sw-wheel-wrap,
.sw-play-page[data-play-stage="sent"] #sw-wheel-wrap,
.sw-play-page[data-play-stage="result"] #sw-spin-cta,
.sw-play-page[data-play-stage="sent"] #sw-spin-cta {
    display: none !important;
}

.sw-play-page[data-play-stage="result"] #sw-result-zone,
.sw-play-page[data-play-stage="sent"] #sw-result-zone {
    display: flex !important;
}

.sw-play-page[data-play-stage="result"] #sw-result-form-wrap {
    display: block !important;
}

.sw-play-page[data-play-stage="sent"] #sw-confirm-success {
    display: flex !important;
}
@keyframes sw-result-fade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sw-result-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}
.sw-result-trophy {
    font-size: 3rem;
    display: block;
    margin: 0 auto 1.65rem;
    animation: sw-trophy-bounce .6s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes sw-trophy-bounce {
    from { transform: scale(0) rotate(-15deg); }
    to   { transform: scale(1) rotate(0deg); }
}
.sw-result-user {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .6rem;
}
.sw-result-label {
    font-size: 1rem;
    color: rgba(255,255,255,.6);
    margin: 0 0 .25rem;
    font-weight: 600;
}
.sw-result-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFD166;
    margin: 0 0 1rem;
}
.sw-result-instruction {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

/* Champ lien â€” texte libre (type text au lieu de url) */
#sw-link-field input[type="text"] {
    font-size: 1rem;
    padding: .75rem 1rem;
    background: rgba(255,255,255,.1) !important;
    border: 2px solid rgba(232,52,74,.4) !important;
    color: #fff !important;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}
#sw-link-field input[type="text"]:focus {
    border-color: #E8344A !important;
    background: rgba(255,255,255,.13) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(232,52,74,.15);
}
#sw-link-field input[type="text"]::placeholder {
    color: rgba(255,255,255,.4) !important;
}
#sw-link-field label {
    font-size: .95rem;
    font-weight: 700;
    color: rgba(255,255,255,.9) !important;
    margin-bottom: .25rem;
}

/* â”€â”€ Bouton "Garder en crÃ©dit" discret â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-credit-link {
    background: none;
    border: none;
    color: rgba(255,255,255,.35);
    font-size: .8rem;
    cursor: pointer;
    padding: .5rem;
    margin-top: .25rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
    display: block;
    width: 100%;
    text-align: center;
}
.sw-credit-link:hover { color: rgba(255,255,255,.65); }

.sw-confirm-success {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.sw-confirm-success__icon {
    justify-content: center;
}

.sw-confirm-rejoin-btn {
    width: 100%;
}

/* â”€â”€ Commandes groupÃ©es â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-orders-group {
    margin-bottom: 1rem;
}
.sw-orders-group__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    padding: .4rem 0 .35rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: .5rem;
}

/* â”€â”€ Barre de progression mini dans liste commandes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-mini-progress {
    height: 3px;
    background: rgba(255,255,255,.08);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
    width: 100%;
}
.sw-mini-progress__bar {
    height: 100%;
    background: #E8344A;
    border-radius: 2px;
    transition: width .6s ease;
}
.sw-mini-progress__bar--done  { background: #34d399; }
.sw-mini-progress__bar--error { background: #ef4444; }

/* Article expandable (curseur pointer) */
.sw-mini-order--expandable {
    cursor: pointer;
    touch-action: manipulation;
    transition: background .15s;
}
.sw-mini-order--expandable:hover {
    background: rgba(255,255,255,.06);
    border-radius: 10px;
}
.sw-mini-order--expandable:focus-visible {
    outline: 2px solid rgba(255,255,255,.22);
    outline-offset: 3px;
    border-radius: 10px;
}
.sw-chevron {
    flex-shrink: 0;
    color: rgba(255,255,255,.25);
    transition: transform .2s;
}
.sw-mini-order--expandable:hover .sw-chevron { color: rgba(255,255,255,.5); }

/* â”€â”€ Modal dÃ©tail commande â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-order-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overscroll-behavior: contain;
}
@media (min-width: 600px) {
    .sw-order-modal { align-items: center; }
}
.sw-order-modal[hidden] { display: none; }
.sw-order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.sw-order-modal__box {
    position: relative;
    z-index: 1;
    background: #1A1F2E;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px 20px 0 0;
    padding: 1.35rem 1.15rem 1.5rem;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: sw-modal-slide .3s cubic-bezier(.34,1.56,.64,1) both;
    text-align: left;
}
@media (min-width: 600px) {
    .sw-order-modal__box {
        border-radius: 20px;
        animation: sw-modal-pop .3s cubic-bezier(.34,1.56,.64,1) both;
    }
}
@keyframes sw-modal-slide {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes sw-modal-pop {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
.sw-order-modal__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: rgba(255,255,255,.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    color: rgba(255,255,255,.7);
    transition: background .2s;
}
.sw-order-modal__close:hover { background: rgba(255,255,255,.15); }
.sw-order-modal__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    padding-right: 2.5rem;
}
.sw-modal-row {
    display: flex;
    justify-content: space-between;
    /* Align items vertically centered so badges, labels and values sit on the same baseline */
    align-items: center;
    flex-wrap: nowrap;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    gap: .75rem;
    text-align: left;
}
.sw-modal-row:last-of-type { border-bottom: none; }
.sw-modal-inline {
    display: flex;
    flex-wrap: nowrap;
    /* Align items center so the label and value stay on the same line regardless of height differences */
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
}
.sw-modal-label {
    font-size: .8rem;
    color: rgba(255,255,255,.4);
    font-weight: 500;
    flex-shrink: 0;
}
.sw-modal-label::after {
    content: ":";
}
.sw-modal-val {
    font-size: .9rem;
    color: rgba(255,255,255,.85);
    font-weight: 600;
    margin-left: auto;
    text-align: right;
    word-break: break-word;
    max-width: 62%;
    flex: 0 1 auto;
}
.sw-modal-mono { font-family: monospace; font-size: .85rem; }
.sw-modal-link {
    max-width: 62%;
    display: flex;
    justify-content: flex-end;
    text-align: right;
}
.sw-modal-link-text {
    font-size: .8rem;
    color: rgba(232,52,74,.8);
    word-break: break-all;
    /* SÃ‰CURITÃ‰ : texte seul, jamais cliquable */
    user-select: text;
}
.sw-modal-empty { color: rgba(255,255,255,.25); font-style: italic; }
.sw-modal-progress-wrap {
    margin-top: 1.25rem;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    padding: .9rem 1rem;
}
.sw-modal-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    margin-bottom: .5rem;
}
.sw-modal-progress {
    height: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    overflow: hidden;
}
.sw-modal-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #E8344A, #FF6B7A);
    border-radius: 4px;
    transition: width .6s ease;
}
.sw-modal-credit-form {
    margin-top: 1.1rem;
    display: grid;
    gap: .75rem;
    text-align: left;
}
.sw-modal-credit-form__label {
    font-size: .82rem;
    color: rgba(255,255,255,.72);
    font-weight: 600;
}
.sw-modal-credit-form__input {
    width: 100%;
    font-size: .95rem;
    padding: .8rem .95rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    color: #fff;
}
.sw-modal-credit-form .sw-btn,
.sw-credit-link,
.sw-amount-chip {
    touch-action: manipulation;
}
.sw-modal-credit-form__input:focus {
    outline: none;
    border-color: rgba(232,52,74,.72);
    box-shadow: 0 0 0 3px rgba(232,52,74,.15);
}
.sw-modal-credit-form__input::placeholder {
    color: rgba(255,255,255,.35);
}
.sw-modal-credit-form__status {
    min-height: 1.2rem;
    text-align: left;
}
.sw-modal-row .sw-mini-badge {
    margin-left: auto;
}

.sw-compat-notice {
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 209, 102, .28);
    background: rgba(255, 209, 102, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
}

.sw-compat-notice__text {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: .86rem;
    line-height: 1.45;
}

.sw-compat-notice__btn {
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 999px;
    padding: .55rem .95rem;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.sw-compat-notice__btn:hover {
    background: rgba(255,255,255,.14);
}

/* â”€â”€ Hint erreur sur page jeu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-spin-hint--error { color: #ff6b7a; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ORDERS TABS â€” En cours / TerminÃ©es
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sw-orders-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1rem;
}
.sw-orders-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem .5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,.4);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    letter-spacing: .02em;
}
.sw-orders-tab:hover { color: rgba(255,255,255,.7); }
.sw-orders-tab--active {
    color: #E8344A;
    border-bottom-color: #E8344A;
}
.sw-orders-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #E8344A;
    color: #fff;
    border-radius: 9px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
}
.sw-orders-tab__badge--muted {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.5);
}
.sw-orders-panel { /* panels toggle via hidden attr */ }
.sw-mini-date {
    font-size: .75rem;
    color: rgba(255,255,255,.35);
    margin-top: .15rem;
    display: block;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOOTER SPIN & WIN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sw-site-footer {
    background: #0a0a0f;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.5rem 1rem;
    margin-top: auto;
}
.sw-site-footer__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sw-site-footer__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
}
.sw-site-footer__label {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .08em;
    width: 100%;
}
.sw-site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .2s;
}
.sw-site-footer__link:hover { color: #E8344A; }
.sw-site-footer__copy {
    font-size: .75rem;
    color: rgba(255,255,255,.25);
}
@media (max-width: 600px) {
    .sw-site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   HEADER SPIN â€” site-header--spin
   MÃªme structure que le header global, thÃ¨me sombre adaptÃ© au
   contexte Jambo. Toutes les classes .site-header existantes
   s'appliquent automatiquement.
   ================================================================ */

/* Sur les pages Spin le header commence dÃ©jÃ  avec un fond sombre */
body.spin-page-body .site-header {
    background-color: rgba(7, 7, 15, 0.92) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Links blancs par dÃ©faut (fond sombre permanent) */
body.spin-page-body .site-header .main-navigation a,
body.spin-page-body .site-header:not(.scrolled) .main-navigation a,
body.spin-page-body .site-header.scrolled .main-navigation a {
    color: rgba(255, 255, 255, 0.78) !important;
}

body.spin-page-body .site-header .main-navigation a:hover,
body.spin-page-body .site-header .main-navigation li.current-menu-item > a {
    color: #E8344A !important;
}

/* Logo â€” forcer l'affichage de la version hero (blanche) */
body.spin-page-body .site-header .logo-hero    { display: block !important; }
body.spin-page-body .site-header .logo-scrolled { display: none  !important; }

/* Hamburger blanc sur fond sombre */
body.spin-page-body .site-header .menu-toggle span {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

/* â”€â”€ Lien "MNA SARL" (retour site) â€” style badge discret â”€â”€â”€â”€â”€â”€â”€ */
body.spin-page-body .menu-item--mna > a,
.site-header .menu-item--mna > a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: .3rem .75rem !important;
    border-radius: 999px;
    transition: color .2s, border-color .2s, background .2s;
    margin-left: .25rem;
}

body.spin-page-body .menu-item--mna > a::before {
    content: 'â†';
    font-size: .85em;
}

body.spin-page-body .menu-item--mna > a:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.07);
}

/* â”€â”€ Lien "Jambo" dans le menu du site principal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header:not(body.spin-page-body .site-header) .menu-item--jambo > a,
body:not(.spin-page-body) .menu-item--jambo > a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 700 !important;
    color: #E8344A !important;
    position: relative;
}

body:not(.spin-page-body) .menu-item--jambo > a:hover {
    color: #C4293D !important;
}

/* â”€â”€ Page Play â€” header-jambo.php actif (identique aux autres pages Spin) â”€â”€â”€ */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   JAMBO NAVBAR â€” header-jambo.php
   Barre de navigation commune Ã  toutes les pages Spin & Win.
   InsÃ©rÃ©e juste aprÃ¨s <body> via get_template_part('header','jambo').
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Surcharge : masquer l'ancien site-header sur pages spin â”€â”€â”€ */
/* header-jambo.php remplace la navbar sur toutes les pages Spin & Win.  */
body.spin-page-body .site-header {
    /* Le header global WordPress est dÃ©jÃ  gÃ©rÃ© page par page.
       La jambo-navbar est notre composant visible. */
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHANTIER 1 â€” Ã‰tats A/B de la zone rÃ©sultat sur /spin-play/
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Ã‰tat A : formulaire (dÃ©faut aprÃ¨s tirage) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#sw-result-form-wrap {
    width: 100%;
}

/* â”€â”€ Ã‰tat B : confirmation envoyÃ©e â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-confirm-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.18);
    border-radius: 14px;
    width: 100%;
    text-align: center;
    animation: sw-fade-in .3s ease;
}

@keyframes sw-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sw-confirm-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-confirm-success__text {
    color: #a7f3d0;
    font-size: .9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* â”€â”€ Bouton Rejouer dans l'Ã©tat B â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-confirm-rejoin-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.25rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
    margin-top: .25rem;
}

.sw-confirm-rejoin-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

/* â”€â”€ Taille rÃ©duite du bouton ghost â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-btn--sm {
    font-size: .78rem;
    padding: .4rem 1rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HEADER JAMBO â€” site-header--jambo
   MÃªme structure HTML que le site principal.
   Surcharges pour le fond sombre + liens blancs fixes.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Fond sombre fixe (pas de transparence â†’ blanc comme le site) â”€ */
.site-header--jambo {
    background-color: rgba(7, 7, 15, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    /* Toujours visible â€” pas de transition transparent */
    transition: box-shadow .25s;
}

.site-header--jambo.scrolled {
    background-color: rgba(7, 7, 15, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

/* â”€â”€ Logo : toujours version hero (blanche) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header--jambo .logo-hero    { display: block !important; }
.site-header--jambo .logo-scrolled { display: none  !important; }

/* â”€â”€ Liens nav : blancs fixes (pas de switch transparentâ†’foncÃ©) â”€ */
.site-header--jambo .main-navigation a,
.site-header--jambo.scrolled .main-navigation a,
.site-header--jambo:not(.scrolled) .main-navigation a {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: .88rem;
}

.site-header--jambo .main-navigation a:hover,
.site-header--jambo .main-navigation li.current-menu-item > a,
.site-header--jambo .main-navigation li.current_page_item > a {
    color: #ffffff !important;
}

/* â”€â”€ Lien actif â€” soulignement rouge Jambo â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header--jambo .main-navigation li.current-menu-item > a::after,
.site-header--jambo .main-navigation li.current_page_item > a::after {
    background-color: #E8344A;
}

/* â”€â”€ Lien "â† Retour" â€” style discret â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header--jambo .menu-item--back > a {
    font-size: .75rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: .28rem .65rem;
    border-radius: 999px;
    transition: color .2s, border-color .2s, background .2s;
}

.site-header--jambo .menu-item--back > a:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.06);
}

.site-header--jambo .menu-item--back > a::after {
    display: none !important; /* Pas de soulignement sur le lien Retour */
}

/* â”€â”€ Lien Jambo â€” accent rouge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header--jambo .menu-item--jambo > a {
    color: #E8344A !important;
    font-weight: 700 !important;
}

.site-header--jambo .menu-item--jambo > a:hover {
    color: #ff5570 !important;
}

/* â”€â”€ Avatar + DÃ©connexion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header--jambo .menu-item--logout > a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .22rem .6rem .22rem .22rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color .2s, background .2s;
}

.site-header--jambo .menu-item--logout > a:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.07);
}

.site-header--jambo .menu-item--logout > a::after {
    display: none !important;
}

.jambo-nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E8344A;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.jambo-nav-username {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jambo-nav-logout-label {
    font-size: .72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.40);
}

/* â”€â”€ Mobile : menu-toggle blanc â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header--jambo .menu-toggle span {
    background-color: rgba(255, 255, 255, 0.80);
}

.site-header--jambo.scrolled .menu-toggle span {
    background-color: rgba(255, 255, 255, 0.80);
}

/* â”€â”€ Mobile : drawer fond sombre â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .site-header--jambo .main-navigation {
        background-color: rgba(7, 7, 15, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .site-header--jambo .main-navigation.active {
        box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
    }

    /* Liens pleine largeur sur mobile */
    .site-header--jambo .main-navigation a,
    .site-header--jambo.scrolled .main-navigation a,
    .site-header--jambo:not(.scrolled) .main-navigation a {
        color: rgba(255, 255, 255, 0.78) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Lien Retour sur mobile â€” conserve son style pill mais s'adapte */
    .site-header--jambo .menu-item--back > a {
        border-bottom: none;
    }
}

/* â”€â”€ Padding pages Jambo (compenser header fixe â€” hauteur rÃ©elle 80px) â”€ */
/* Le header .site-header--jambo est position:fixed.
   On utilise --header-height:80px (valeur dÃ©finie dans custom.css) */
body.spin-page-body .jambo-hero {
    padding-top: calc(var(--header-height, 80px) + 2rem);
}

body.spin-page-body .sw-login-hero {
    padding-top: calc(var(--header-height, 80px) + 1.5rem);
}

/* sw-pay-hero est désormais display:none — remplacé par .sw-pay-page */

/* sw-play-page a sa propre topbar (pas de header-jambo)
   mais le header fixe du site est quand mÃªme prÃ©sent */
body.spin-page-body .sw-play-page {
    padding-top: var(--header-height, 80px);
}

/* â”€â”€ Pied de sidebar â€” nom utilisateur (style ChatGPT / Claude) â”€ */
/* AffichÃ© uniquement dans la nav mobile ouverte */
.jambo-nav-user-footer {
    display: none; /* cachÃ© par dÃ©faut (desktop) */
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.25rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.jambo-nav-username-footer {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

/* Sur mobile, quand la nav est ouverte (.active), afficher le footer user */
@media (max-width: 768px) {
    /* La nav mobile est une colonne flex â€” le footer user apparaÃ®t en bas */
    .site-header--jambo .main-navigation.active {
        display: flex;
        flex-direction: column;
    }

    .site-header--jambo .main-navigation.active .jambo-nav-user-footer {
        display: flex;
    }

    /* Sur desktop, toujours cachÃ© */
    .site-header--jambo .main-navigation:not(.active) .jambo-nav-user-footer {
        display: none;
    }
}

/* Sur desktop : jamais visible dans la nav horizontale */
@media (min-width: 769px) {
    .jambo-nav-user-footer {
        display: none !important;
    }
}

/* â”€â”€ CTA Rejouer (Ã©tat processing/completed) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-spin-btn--rejouer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
    border-radius: 999px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    transition: background .2s, border-color .2s;
    cursor: pointer;
}
.sw-spin-btn--rejouer:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.35);
    color: #fff;
}

/* â”€â”€ Espace entre roulette et zone rÃ©sultat â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-result-zone {
    margin-top: 3rem;
}

/* â”€â”€ Badge session centrÃ© AU-DESSUS de la roulette â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#sw-session-status {
    margin-bottom: 1rem;
    align-self: center;
    display: block;
    text-align: center;
}

/* â”€â”€ Roulette preview (dÃ©sactivÃ©e) â€” lÃ©gÃ¨rement attÃ©nuÃ©e â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-spin-btn:disabled,
.sw-spin-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* â”€â”€ Ã‰TAT 1 â€” Roulette dÃ©mo (idle) : ring pulsant â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sw-wheel-outer--idle .sw-wheel-ring-outer {
    animation: sw-ring-pulse 2.4s ease-in-out infinite;
}
@keyframes sw-ring-pulse {
    0%, 100% { opacity: .55; }
    50%       { opacity: 1; }
}

/* Hint "dÃ©mo" sous la roue idle */
.sw-idle-hint {
    font-size: .78rem;
    color: rgba(255,255,255,.35);
    text-align: center;
    margin-top: -.5rem;
    margin-bottom: 1rem;
    letter-spacing: .04em;
}

@media (max-width: 768px) {
    .sw-field input,
    .sw-field textarea,
    #sw-link-field input[type="text"],
    .sw-modal-credit-form__input {
        font-size: 16px;
    }

    .sw-compat-notice {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-wheel-outer::before,
    .sw-wheel-outer--idle .sw-wheel-ring-outer,
    .sw-spin-btn,
    .sw-order-modal__box,
    .sw-result-card,
    .sw-result-trophy {
        animation: none !important;
    }

    #sw-wheel-svg {
        transition-duration: .01ms !important;
    }
}

/* ================================================================
   GUARDS CRITIQUES â€” empÃªcher display:flex/block d'Ã©craser [hidden]
   Ces rÃ¨gles sont en fin de fichier pour avoir la prioritÃ© maximale.
   ================================================================ */
/* ================================================================
   AUTH OVERRIDES - v2.11.14
   Resserre les pages MNA pour tenir sans scroll sur mobile.
   ================================================================ */
.mna-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 43, 84, .08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: .35rem 0 .85rem;
}

.mna-auth-shell {
    max-width: 390px;
    margin: 0 auto;
    padding-top: max(16px, env(safe-area-inset-top));
}

.mna-auth-card {
    min-height: 100vh;
    border-radius: 0;
    padding: 0 16px 20px;
}

.mna-auth-topbar {
    grid-template-columns: 36px 1fr 36px;
    gap: .5rem;
    min-height: 42px;
    padding-top: 2px;
}

.mna-auth-topbar-spacer,
.mna-auth-topbar-help,
.mna-auth-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #2b2b2b;
    text-decoration: none;
}

.mna-auth-topbar-help {
    font-size: 1.2rem;
    color: #6f6f6f;
}

.mna-auth-close {
    font-size: 1.85rem;
    line-height: 1;
}

.mna-auth-topbar-brand {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    color: #7b7b7b;
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.mna-auth-body {
    gap: .82rem;
    padding-top: clamp(58px, 9.5vh, 78px);
}

.mna-auth-title {
    margin: .9rem 0 .42rem;
    font-size: clamp(1.72rem, 5.8vw, 2.16rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.mna-auth-alert {
    border-radius: 14px;
    padding: .72rem .9rem;
    font-size: .88rem;
}

.mna-auth-form,
.mna-auth-email-panel,
.mna-auth-verification {
    gap: .72rem;
}

.mna-auth-phone-row {
    grid-template-columns: 128px 1fr;
    gap: .45rem;
}

.mna-auth-input-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 48px;
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 14px;
    padding: 0 14px;
    overflow: hidden;
}

.mna-auth-input-icon {
    width: 18px;
    height: 18px;
    color: #1c1c1c;
    flex: 0 0 18px;
}

.mna-auth-country,
.mna-auth-input,
.mna-auth-primary,
.mna-auth-secondary {
    border-radius: 14px;
    min-height: 48px;
    font-size: .92rem;
}

.mna-auth-country,
.mna-auth-input {
    background: #f7f7f7;
    padding: 0 .92rem;
}

.mna-auth-input--inline {
    border: none;
    background: transparent;
    min-height: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.mna-auth-input-row .mna-auth-input--inline {
    flex: 1 1 auto;
    min-height: 46px;
    height: 46px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2;
}

.mna-auth-input-row .mna-auth-input--inline::placeholder {
    color: #9f9f9f;
}

.mna-auth-country:focus,
.mna-auth-input:focus {
    border-color: rgba(255, 43, 84, .5);
    box-shadow: 0 0 0 3px rgba(255, 43, 84, .12);
    background: #fff;
}

.mna-auth-input-row:focus-within {
    border-color: rgba(255, 43, 84, .5);
    box-shadow: 0 0 0 3px rgba(255, 43, 84, .12);
    background: #fff;
}

.mna-auth-input--otp {
    letter-spacing: .18em;
}

.mna-auth-primary,
.mna-auth-secondary {
    gap: .72rem;
}

.mna-auth-primary {
    box-shadow: 0 10px 24px rgba(255, 45, 85, .18);
}

.mna-auth-secondary:hover {
    box-shadow: 0 10px 20px rgba(17, 17, 17, .05);
}

.mna-auth-secondary.is-disabled {
    opacity: .5;
}

.mna-auth-provider-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.mna-auth-provider-logo,
.mna-auth-provider-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.mna-auth-provider-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: .84rem;
    font-weight: 700;
    color: #111;
}

.mna-auth-step-copy {
    font-size: .82rem;
}

.mna-auth-divider {
    gap: .6rem;
    margin: .05rem 0;
    font-size: .82rem;
}

.mna-auth-status {
    border-radius: 12px;
    padding: .72rem .9rem;
    font-size: .85rem;
    line-height: 1.55;
}

.mna-auth-legal,
.mna-auth-switch,
.mna-auth-remember {
    font-size: .84rem;
}

.mna-auth-remember {
    gap: .5rem;
}

.mna-auth-switch {
    padding-top: .25rem;
    font-size: .98rem;
}

.mna-auth-btn-loader {
    width: 16px;
    height: 16px;
}

.mna-auth-copy {
    max-width: 326px;
    margin: 0 auto .35rem;
    text-align: center;
    color: #6a6a6a;
    font-size: .88rem;
    line-height: 1.58;
}

.mna-auth-input-row--locked {
    justify-content: flex-start;
    background: #f7f7f7;
}

.mna-auth-password-toggle {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex: 0 0 20px;
    position: relative;
}

.mna-auth-input:-webkit-autofill,
.mna-auth-input:-webkit-autofill:hover,
.mna-auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111;
    box-shadow: 0 0 0 1000px #f7f7f7 inset;
    transition: background-color 9999s ease-out 0s;
}

.mna-auth-input-row .mna-auth-input--inline:-webkit-autofill,
.mna-auth-input-row .mna-auth-input--inline:-webkit-autofill:hover,
.mna-auth-input-row .mna-auth-input--inline:-webkit-autofill:focus {
    -webkit-text-fill-color: #111 !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    border: 0 !important;
    caret-color: #111;
}

.mna-auth-password-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 19px 19px;
    opacity: .72;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6c6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 12s3.9-6.5 10.5-6.5S22.5 12 22.5 12 18.6 18.5 12 18.5 1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3.25'/%3E%3C/svg%3E");
}

.mna-auth-password-toggle.is-visible::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6c6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.58 10.58A2 2 0 0 0 12 14a2 2 0 0 0 1.42-.58'/%3E%3Cpath d='M9.88 5.09A10.94 10.94 0 0 1 12 4.88c6.6 0 10.5 7.12 10.5 7.12a18.06 18.06 0 0 1-4.28 4.9'/%3E%3Cpath d='M6.53 6.53A18.4 18.4 0 0 0 1.5 12s3.9 7.12 10.5 7.12a10.9 10.9 0 0 0 4.02-.74'/%3E%3C/svg%3E");
}

.mna-auth-link {
    border: none;
    background: transparent;
    padding: 0;
    color: #ff2d55;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 0;
}

.mna-auth-reset-panel {
    padding-top: .2rem;
}

.mna-auth-secondary--compact {
    min-height: 46px;
    font-size: .88rem;
}

.mna-auth-primary--compact {
    min-height: 46px;
    font-size: .88rem;
}

.mna-auth-locked-value {
    font-size: .92rem;
    font-weight: 600;
    color: #111;
    word-break: break-word;
}

.mna-auth-switch--inline {
    margin-top: 1.55rem;
}

.mna-auth-link-wrap {
    margin: .9rem 0 0;
    text-align: center;
}

.mna-auth-page--login .mna-auth-body {
    padding-top: 60px;
}

.mna-auth-page--login .mna-auth-title {
    margin-top: 1.45rem;
}

.mna-auth-page--forgot-password .mna-auth-body,
.mna-auth-page--social-verify .mna-auth-body {
    padding-top: clamp(50px, 8.2vh, 68px);
}

.mna-auth-page--forgot-password .mna-auth-form,
.mna-auth-page--social-verify .mna-auth-form {
    gap: .76rem;
}

.mna-auth-page--forgot-password .mna-auth-forgot-fields {
    display: grid;
    gap: .82rem;
    margin-top: .5rem;
}

.mna-auth-page--forgot-password .mna-auth-status,
.mna-auth-page--social-verify .mna-auth-status {
    margin-top: .5rem;
}

.mna-auth-page--forgot-password .mna-auth-switch--inline,
.mna-auth-page--social-verify .mna-auth-switch--inline {
    margin-top: 2.05rem;
}

.mna-auth-page--forgot-password .mna-auth-copy,
.mna-auth-page--social-verify .mna-auth-copy {
    max-width: 334px;
}

@media (max-width: 480px) {
    .mna-auth-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mna-auth-title {
        font-size: 1.88rem;
    }
}

@media (max-height: 720px) {
    .mna-auth-body {
        gap: .62rem;
        padding-top: 48px;
    }

    .mna-auth-title {
        margin-top: .9rem;
        font-size: clamp(1.66rem, 5.4vw, 1.98rem);
    }

    .mna-auth-country,
    .mna-auth-input,
    .mna-auth-primary,
    .mna-auth-secondary,
    .mna-auth-input-row {
        min-height: 44px;
    }

    .mna-auth-legal,
    .mna-auth-switch,
    .mna-auth-remember {
        font-size: .79rem;
    }

    .mna-auth-copy {
        margin-bottom: .22rem;
        font-size: .84rem;
    }

    .mna-auth-page--forgot-password .mna-auth-body,
    .mna-auth-page--social-verify .mna-auth-body {
        padding-top: 42px;
    }

    .mna-auth-page--forgot-password .mna-auth-forgot-fields {
        gap: .74rem;
        margin-top: .44rem;
    }
}

.sw-result-zone[hidden],
.sw-confirm-success[hidden],
#sw-result-zone[hidden],
#sw-confirm-success[hidden],
[hidden] {
    display: none !important;
}

/* Overrides for credit modal and payment fields for better visibility */
#sw-credit-submit-now {
    background: #E8344A !important;
    color: #fff !important;
}
#sw-credit-submit-now:hover {
    background: #c8263b !important;
}
.sw-modal-credit-form__input {
    background: #f8f8f8 !important;
    border: 1px solid #ddd !important;
    color: #111 !important;
}
.sw-modal-credit-form__input::placeholder {
    color: #888 !important;
}

/* Formulaire résultat (soumission du lien) — ameliorer visibilite */
.sw-play-page #sw-result-form .sw-btn--primary {
    background: #E8344A !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(232,52,74,.4), 0 2px 6px rgba(232,52,74,.22) !important;
}
.sw-play-page #sw-result-form .sw-btn--primary:hover {
    background: #C4293D !important;
    box-shadow: 0 6px 24px rgba(232,52,74,.5), 0 3px 8px rgba(232,52,74,.28) !important;
}
.sw-play-page #sw-reward-link {
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: var(--sw-radius);
    padding: .85rem 1rem;
    color: #ffffff;
    width: 100%;
}
.sw-play-page #sw-reward-link::placeholder {
    color: rgba(255,255,255,.4);
}

/* ================================================================
