/* ============================================================
   auto_pilote.css — AvoloPay Multi-Step Checkout Redesign
   ============================================================ */

/* --- Variables & Reset ---
   2026-11-12 (étape C1) : --primary-light et --text-muted ne sont plus redéfinis ici ;
   ce sont des jetons du design system. L'accent cyan utilise --color-explainer. */
:root {
    --primary-color: var(--primary);
    --primary-glow: var(--shadow-glow);
    --card-bg: var(--bg-surface);
    --text-light: var(--text-main);
}

/* Override generale_public.css transitions for smoother UX */
* {
    transition-property: transform, opacity, background-color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Main Layout --- */
body.subscription-flow {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    background-color: var(--bg-base);
    color: var(--text-light);
    min-height: 100vh;
    /* Deep space starfield background (matches home.css) */
    background-image:
        /* Nebula clouds */
        radial-gradient(ellipse 80% 60% at 20% 50%, var(--bg-overlay) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 30%, var(--bg-overlay) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 60% 80%, var(--primary-light) 0%, transparent 60%),
        /* Star layers */
        radial-gradient(1px 1px at 10% 15%, var(--bg-surface) 0%, transparent 0%),
        radial-gradient(1px 1px at 25% 35%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1px 1px at 40% 8%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1px 1px at 55% 48%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1px 1px at 70% 22%, var(--bg-surface) 0%, transparent 0%),
        radial-gradient(1px 1px at 85% 65%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1px 1px at 5% 78%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1px 1px at 92% 10%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1px 1px at 33% 90%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1px 1px at 77% 55%, var(--bg-subtle) 0%, transparent 0%),
        radial-gradient(1.5px 1.5px at 48% 72%, var(--primary) 0%, transparent 0%),
        radial-gradient(1.5px 1.5px at 18% 55%, var(--primary) 0%, transparent 0%),
        radial-gradient(1.5px 1.5px at 65% 88%, var(--primary) 0%, transparent 0%),
        radial-gradient(2px 2px at 38% 28%, var(--primary) 0%, transparent 0%),
        radial-gradient(2px 2px at 82% 42%, var(--primary) 0%, transparent 0%),
        /* Base deep blue-navy gradient */
        linear-gradient(160deg, var(--bg-base) 0%, var(--bg-base) 40%, var(--bg-base) 100%);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

/* --- Main Content Container --- */
#main_content.subscription-flow-main {
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: auto !important;
    min-height: auto !important;
    display: flex;
    flex-direction: row;
    align-items: flex-start !important;
    justify-content: flex-start;
    background: transparent;
    padding: 88px 0px 60px 0px !important;
    margin: 0px !important;
    overflow-x: hidden;
    overflow-y: visible;
    box-shadow: none;
    box-sizing: border-box;
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Step Card Container --- */
.auto_pilot_bloc {
    width: 100%;
    max-width: 100vw;
    min-width: 100vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important;
    padding-top: 0 !important;
    box-sizing: border-box;
    transition: margin-left 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    /* Smoother slide effect */
}

/* Neutralize double padding for #welcom inside subscription flow */
.subscription-flow #welcom {
    padding-top: 0 !important;
}

.auto_pilot_bloc .bloc_content {
    width: 90%;
    max-width: 580px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-inner);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.auto_pilot_bloc .bloc_content:hover {
    box-shadow: var(--shadow-inner);
    border-color: var(--primary);
}

/* --- Card Header Title --- */
.auto_pilot_bloc .bloc_content>h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--color-info), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* --- Form Fields & Blocks --- */
.form_bloc {
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
    margin-bottom: 0;
}

.form_bloc fieldset {
    border: none;
    margin-bottom: 1.8rem;
    padding: 0;
}

.form_bloc fieldset:last-child {
    margin-bottom: 0.5rem;
}

.form_bloc legend {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    padding-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form_bloc legend i {
    color: var(--color-explainer);
}

.form_group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form_group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form_group input,
.form_group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-subtle);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form_group input:focus,
.form_group select:focus {
    border-color: var(--color-explainer);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-glow);
    outline: none;
}

.form_group input::placeholder {
    color: var(--text-muted);
}

.form_group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='var(--bg-surface)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form_group select option {
    background: var(--bg-base);
    color: var(--text-light);
    padding: 0.8rem;
}

/* Horizontal Sub-elements */
.form_group .form_group_H {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 0.4rem;
}

.form_group_H .fg_H_item {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 8px;
}

.form_group .form_group_H .fg_H_item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    cursor: pointer;
    margin: 0;
}

.form_group .form_group_H .fg_H_item label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.form_group .form_group_H select#country_code {
    width: 170px;
}

/* Mix composition platform grid */
.platforms-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 5px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.platform-item:hover {
    background: var(--bg-subtle);
    border-color: var(--border-color);
}

.platform-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.platform-item label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Action Buttons --- */
.action_btn {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.action_btn button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.action_btn .back-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.action_btn .back-btn:hover {
    border-color: var(--border-color);
    background: var(--bg-subtle);
    transform: translateY(-2px);
}

.action_btn .next-btn,
.action_btn .final-btn {
    background: linear-gradient(90deg, var(--primary), var(--color-info));
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow);
}

.action_btn .next-btn:hover,
.action_btn .final-btn:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* --- Text Details & Values --- */
.text_place {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.text_place p {
    margin: 0;
}

.text_place span.Pl {
    font-weight: 700;
    color: var(--color-explainer);
    text-transform: capitalize;
}

.additionnal_data {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    gap: 10px;
}

.additionnal_data p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    word-break: break-all;
}

.additionnal_data p span {
    font-weight: 700;
    color: var(--color-explainer);
}

.copy_button {
    background: var(--primary-light);
    border: 1px solid var(--color-info-border);
    color: var(--color-explainer);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy_button:hover {
    background: var(--primary-color);
    color: var(--text-main);
    box-shadow: var(--shadow-glow);
}

/* --- Final Step Illustration --- */
.bloc_content .illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    width: 100%;
}

.bloc_content .illustration img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--color-info-border));
}

/* --- Progress Bar --- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--bg-subtle);
    z-index: var(--z-fixed);
}

.progress {
    height: 100%;
    width: var(--flow-progress, 0%);
    background: linear-gradient(90deg, var(--primary), var(--color-info));
    box-shadow: var(--shadow-glow);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .subscription-flow #main_content,
    #main_content.subscription-flow-main {
        padding: 76px 0px 40px 0px !important;
    }

    .auto_pilot_bloc .bloc_content {
        padding: 2.2rem 1.5rem;
        width: 92%;
        gap: 1.2rem;
    }

    .auto_pilot_bloc .bloc_content>h1 {
        font-size: 1.8rem;
    }

    .action_btn {
        flex-direction: column-reverse;
        gap: 0.8rem;
    }

    .action_btn button {
        width: 100%;
    }

    .platforms-selection {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Safari iOS height fix */
@supports (-webkit-touch-callout: none) {
    .subscription-flow .auto_pilot_bloc {
        min-height: auto;
    }
}

/* --- Floating Modals Style --- */
.avolo-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal-backdrop);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.avolo-modal-overlay.active {
    display: flex;
}

.avolo-modal {
    background: var(--bg-base);
    border: 1px solid var(--primary);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    animation: avoloModalFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes avoloModalFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avolo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avolo-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--color-info), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avolo-modal-close {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.avolo-modal-close:hover {
    opacity: 1;
}

.avolo-modal-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
}

.cred-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 8px;
}

.cred-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cred-value-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cred-value-wrapper span {
    font-weight: 700;
    color: var(--color-info);
    font-size: 0.95rem;
}

.cred-copy-btn {
    background: var(--primary-light);
    border: 1px solid var(--color-info-border);
    color: var(--color-info);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.cred-copy-btn:hover {
    background: var(--primary);
    color: var(--text-on-primary);
}

.avolo-btn-passkey {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text-on-primary);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s;
}

.avolo-btn-passkey:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
}

.payment-method-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 16px;
}

.pm-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pm-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.pm-details {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pm-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.pm-field strong {
    color: var(--color-info);
}

.avolo-btn-whatsapp {
    background: linear-gradient(135deg, var(--color-success), var(--color-success));
    color: var(--text-on-primary) !important;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.avolo-btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.avolo-btn-close {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.avolo-btn-close:hover {
    background: var(--bg-subtle);
}

.avolo-modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   SOLO SUBSCRIPTION WORKFLOW ENHANCEMENTS (Steps 2 - 5)
   ============================================================ */

/* Step 2: Payment Process Notice */
.payment-process-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--color-info-bg), var(--primary-light));
    border: 1px solid var(--color-info-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: var(--text-on-primary);
}
.payment-process-notice .notice-icon {
    font-size: 1.4rem;
    color: var(--color-explainer);
    flex-shrink: 0;
}
.payment-process-notice .notice-text {
    font-size: 0.88rem;
    line-height: 1.45;
}
.payment-process-notice strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

/* Waitlist Box (Cas A) */
.waitlist-card-box {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 15px;
}
.waitlist-card-box h3 {
    color: var(--color-warning);
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}
.waitlist-card-box p {
    color: var(--text-subtle);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Step 3: Luxury Structured Action Cards */
.step-header-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
.step-counter-badge {
    background: var(--color-info-bg);
    color: var(--color-explainer);
    border: 1px solid var(--color-info-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.step-platform-badge {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.step-subtitle {
    color: var(--text-subtle);
    font-size: 0.88rem;
    max-width: 500px;
    margin: 0 auto 18px auto;
    line-height: 1.45;
}
.actions-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 12px;
}
.action-step-card {
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.25s ease;
}
.action-step-card.highlight-card {
    border-color: var(--color-info-border);
    background: var(--bg-overlay);
    box-shadow: var(--shadow-lg);
}
.action-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.action-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-info), var(--primary));
    color: var(--text-on-primary);
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}
.action-header-text h4 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}
.action-header-text p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-subtle);
    line-height: 1.35;
}
.action-card-body {
    padding-left: 40px;
}
@media (max-width: 520px) {
    .action-card-body {
        padding-left: 0;
    }
}
.btn-platform-launch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-subtle);
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-platform-launch:hover {
    background: var(--bg-subtle);
    color: var(--text-main) !important;
    border-color: var(--border-color);
    transform: translateY(-1px);
}

/* Luxury Credentials Row */
.luxury-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}
.luxury-cred-row:hover {
    border-color: var(--color-info-border);
    background: var(--bg-overlay);
    box-shadow: var(--shadow-lg);
}
.luxury-cred-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    text-align: left;
}
.luxury-cred-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-subtle);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.luxury-cred-value {
    font-size: 1.02rem;
    font-family: 'Outfit', monospace, sans-serif;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-all;
    letter-spacing: 0.5px;
}
.btn-luxury-copy {
    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
    color: var(--color-explainer);
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.btn-luxury-copy:hover {
    background: var(--color-info);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}
.btn-luxury-copy.copied {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: var(--color-success);
}
.cred-security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--color-explainer);
    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 6px;
}

/* Mail Reader Trigger Card */
.btn-mail-reader-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--color-info-bg), var(--primary-light));
    border: 1px solid var(--color-info-border);
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.btn-mail-reader-trigger:hover {
    background: linear-gradient(135deg, var(--color-info-bg), var(--primary-light));
    border-color: var(--color-explainer);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.bmr-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-info), var(--primary));
    color: var(--text-on-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}
.bmr-texts {
    flex: 1;
    min-width: 0;
}
.bmr-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}
.bmr-sub {
    display: block;
    font-size: 0.76rem;
    color: var(--text-subtle);
}
.bmr-arrow {
    color: var(--color-explainer);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}
.btn-mail-reader-trigger:hover .bmr-arrow {
    transform: translateX(4px);
}

/* WhatsApp Assistant Button when mail reader unavailable */
.btn-whatsapp-assistant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success) !important;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.86rem;
    font-weight: 700;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.btn-whatsapp-assistant:hover {
    background: var(--color-success);
    color: var(--text-on-primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
.whatsapp-assistant-hint {
    margin: 8px 0 0 0;
    font-size: 0.75rem;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* Dedicated Mail Reader Modal Styles */
.mail-reader-modal-box {
    max-width: 440px !important;
    text-align: center;
    border-color: var(--color-info-border) !important;
}
.mrm-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.mrm-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-info-bg);
    color: var(--color-explainer);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mrm-subtitle {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: var(--text-subtle);
}
.mrm-target-box {
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.82rem;
}
.mrm-target-label {
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mrm-target-email {
    color: var(--text-main);
    font-family: monospace;
    font-weight: 700;
}
.modal-radar-wrapper {
    background: var(--bg-overlay);
    border: 1px dashed var(--color-info-border);
    border-radius: 16px;
    padding: 24px 16px;
    margin: 12px 0 16px 0;
}
.radar-pulse-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-info-bg);
    color: var(--color-explainer);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    box-shadow: var(--shadow-glow);
}
.radar-status-text {
    font-size: 0.86rem;
    color: var(--text-subtle);
    font-weight: 600;
    margin-bottom: 8px;
}
.radar-timer-pill {
    display: inline-block;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-subtle);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-family: monospace;
}
.modal-mail-result-box {
    background: linear-gradient(135deg, var(--color-success-bg), var(--color-info-bg));
    border: 1px solid var(--color-success-border);
    border-radius: 16px;
    padding: 20px;
    margin: 14px 0;
    animation: avoloModalFade 0.35s ease;
}
.result-badge-success {
    font-size: 0.82rem;
    color: var(--color-success);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.result-code-display {
    font-size: 2.2rem;
    font-family: monospace;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 6px;
    margin: 6px 0 14px 0;
    text-shadow: 0 0 20px var(--color-success-border);
}
.btn-copy-code-action {
    background: linear-gradient(135deg, var(--color-success), var(--color-success));
    border: none;
    color: var(--text-on-primary);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-glow);
}
.btn-copy-code-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
.modal-whatsapp-help-row {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.modal-whatsapp-help-row p {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-muted);
}
.btn-whatsapp-subtle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-success) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--color-success-bg);
    transition: background 0.2s;
}
.btn-whatsapp-subtle:hover {
    background: var(--color-success-bg);
}
/* Bloc sans sélecteur jusqu'au 2026-11-13 : il rendait invalide la règle suivante */
.mail-interceptor {
    background: linear-gradient(135deg, var(--primary-light), var(--color-info-bg));
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 18px;
    margin: 20px 0;
}
.mail-interceptor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.mail-interceptor-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}
.mail-interceptor-desc {
    font-size: 0.84rem;
    color: var(--text-subtle);
    margin: 0 0 14px 0;
    line-height: 1.45;
}
.btn-mail-intercept {
    background: linear-gradient(135deg, var(--primary), var(--color-info));
    color: var(--text-on-primary);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
}
.btn-mail-intercept:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Radar Pulse Listening */
.mail-radar-box {
    display: none;
    background: var(--bg-overlay);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    text-align: center;
}
.radar-pulse-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    animation: pulseRadar 1.8s infinite ease-out;
}
@keyframes pulseRadar {
    0% { transform: scale(0.9); box-shadow: var(--shadow-glow); }
    70% { transform: scale(1.05); box-shadow: var(--shadow-glow); }
    100% { transform: scale(0.9); box-shadow: var(--shadow-glow); }
}
.mail-radar-status {
    font-size: 0.86rem;
    color: var(--text-subtle);
    font-weight: 500;
}
.mail-radar-timer {
    font-size: 0.78rem;
    color: var(--primary);
    margin-top: 4px;
    display: block;
}

/* Mail Code Result Box */
.mail-result-box {
    display: none;
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    text-align: center;
}
.mail-code-number {
    font-size: 1.8rem;
    font-family: monospace;
    font-weight: 800;
    color: var(--color-success);
    letter-spacing: 0.2em;
    margin: 8px 0;
}
.mail-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-success);
    color: var(--text-on-primary);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* WhatsApp Manager Button */
.btn-whatsapp-manager {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-whatsapp);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.25s ease;
}
.btn-whatsapp-manager:hover {
    background: var(--color-whatsapp);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow);
}

/* Step 4: Payment Timing Alert */
.timing-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    color: var(--color-warning);
    font-size: 0.88rem;
    line-height: 1.45;
}
.timing-alert i {
    font-size: 1.3rem;
    color: var(--color-warning);
    flex-shrink: 0;
}

/* Price Highlight Card */
.price-highlight-box {
    text-align: center;
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}
.price-highlight-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.price-highlight-val {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-explainer), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 4px 0 0 0;
}

/* PlupluPay CTA Button */
.btn-pluplu-pay {
    background: linear-gradient(135deg, var(--color-info), var(--primary));
    color: var(--text-on-primary) !important;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}
.btn-pluplu-pay:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.pluplu-hint {
    font-size: 0.78rem;
    color: var(--text-subtle);
    text-align: center;
    margin: 0 0 20px 0;
}

/* Direct Momo Accounts Grid */
.momo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
@media (max-width: 500px) {
    .momo-grid { grid-template-columns: 1fr; }
}
.momo-card {
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
}
.momo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}
.momo-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}

/* Proof Upload Dropzone */
.proof-upload-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
}
.proof-upload-box h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    color: var(--color-explainer);
    display: flex;
    align-items: center;
    gap: 8px;
}
.proof-dropzone {
    border: 2px dashed var(--color-info-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: var(--color-info-bg);
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 12px 0;
}
.proof-dropzone:hover {
    border-color: var(--color-explainer);
    background: var(--color-info-bg);
}
.proof-dropzone i {
    font-size: 2rem;
    color: var(--color-explainer);
    margin-bottom: 8px;
    display: block;
}
.proof-dropzone span {
    font-size: 0.85rem;
    color: var(--text-subtle);
    display: block;
}
.btn-proof-submit {
    background: linear-gradient(135deg, var(--color-success), var(--color-success));
    color: var(--text-on-primary);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
}
.btn-proof-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Step 5: Profile Ready */
.profile-ready-box {
    background: linear-gradient(135deg, var(--color-success-bg), var(--color-info-bg));
    border: 1px solid var(--color-success-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.profile-ready-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}
.spotify-address-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin: 15px 0;
    text-align: left;
}
.spotify-address-card h4 {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.spotify-address-text {
    font-size: 0.92rem;
    color: var(--text-main);
    font-family: monospace;
    line-height: 1.5;
    white-space: pre-wrap;
}
.btn-goto-space {
    background: linear-gradient(135deg, var(--color-info), var(--color-info));
    color: var(--text-on-primary) !important;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-goto-space:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Payment Method Selection & Operator Flow Styles */
.payment-method-selector-section {
    margin: 18px 0;
    text-align: left;
}
.payment-methods-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.pm-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-methods-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 600px) {
    .payment-methods-choice-grid {
        grid-template-columns: 1fr;
    }
}
.pm-choice-card {
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}
.pm-choice-card.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: var(--bg-subtle);
    border-color: var(--color-danger-border);
}
.pm-choice-card.is-selected {
    border-color: var(--color-info);
    background: var(--color-info-bg);
    box-shadow: var(--shadow-glow);
}
.pm-choice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 6px;
    flex-wrap: wrap;
}
.pm-choice-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pm-badge-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
    border-radius: 20px;
    font-size: 0.68rem;
    padding: 3px 8px;
    font-weight: 600;
    text-transform: uppercase;
}
.pm-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
    border-radius: 20px;
    font-size: 0.68rem;
    padding: 3px 8px;
    font-weight: 600;
    text-transform: uppercase;
}
.pm-choice-desc {
    font-size: 0.78rem;
    color: var(--text-subtle);
    line-height: 1.4;
    margin: 0;
}

/* Operator Cards Grid */
.ppm_flow_section {
    margin-bottom: 14px;
    text-align: left;
}
.ppm_flow_label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-subtle);
    font-weight: 600;
    margin-bottom: 6px;
}
.ppm_flow_input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--bg-overlay);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.ppm_flow_input:focus {
    border-color: var(--color-explainer);
    box-shadow: var(--shadow-glow);
}
.ppm_operator_cards_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ppm_op_flow_card {
    display: block;
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ppm_op_flow_card:hover {
    border-color: var(--border-color);
}
.ppm_op_flow_card.is-selected {
    border-color: var(--color-explainer);
    background: var(--color-info-bg);
    box-shadow: var(--shadow-glow);
}
.ppm_op_flow_inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}
.ppm_flow_badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    flex-shrink: 0;
}
/* Opérateurs : style neutre commun (étape A5 du plan de conformité, 2026-11-12 : aucune couleur propre aux plateformes ni aux opérateurs) */
.ppm_flow_badge.airtel,
.ppm_flow_badge.moov {
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* Strict Fraud Warning Card */
.fraud-strict-warning-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
    border-radius: 12px;
    padding: 14px;
    margin: 16px 0;
    text-align: left;
}
.fraud-strict-warning-card .fsw-icon {
    font-size: 1.25rem;
    color: var(--color-danger);
    flex-shrink: 0;
    margin-top: 2px;
}
.fraud-strict-warning-card .fsw-content {
    font-size: 0.82rem;
    color: var(--color-danger);
    line-height: 1.45;
}
.fraud-strict-warning-card .fsw-content strong {
    color: var(--text-on-primary);
}
/* ── Tunnel par étapes : géométrie calculée par solosub_flow_view.js et auto_pilote_admin.js ──
   Ajouté le 2026-11-13, phase E : les scripts posent des variables CSS au lieu d'écrire style="". */
.auto_pilot_bloc[data-flow-slide] { margin-left: var(--flow-offset, 0); }
#main_content[data-flow-fit] { min-height: var(--flow-min-height); }
#main_content[data-flow-height="fixed"] {
    height: var(--flow-height);
    max-height: var(--flow-height);
    min-height: var(--flow-height);
}
