/* ==========================================================================
   FEUILLE DE STYLE GLOBALE OPTIMISÉE - Spicy Secret
   ========================================================================== */

/* --- 0. Importation des Polices --- */
/*
  Note : Les variables sont définies dans les conteneurs de formulaires
  pour qu'elles soient disponibles pour leurs éléments internes.
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,300&display=swap');




/* Premium Creator Status Display */
.creator-status {
    display: inline-flex;
    align-items: center;
	max-width: fit-content !important;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active status indicator dot */
.creator-status::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: pulse 2s infinite;
}

/* Status text with padding for the dot */
.creator-status-text {
    margin-left: 14px;
}

/* Pulse animation for active indicator */
@keyframes pulse {
    0% {
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(74, 222, 128, 0.8);
    }
    100% {
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    }
}

/* Hover effect */
.creator-status:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Alternative style when placed next to name */
.creator-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.creator-header-wrapper h1 {
    margin: 0;
}

/* Premium status badge version */
.creator-status-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 0, 67, 0.1);
    border: 1px solid rgba(229, 0, 67, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.creator-status-premium::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, #e50043, #ff0066);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.creator-status-premium:hover::before {
    opacity: 0.1;
}

/* Status with emoji enhancement */
.status-emoji {
    font-size: 16px;
    filter: grayscale(0%);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .creator-header-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .creator-status {
        margin-left: 0;
    }
}

/* Enhanced status form design */
.creator-status-form {
    --spicy-primary-color: #e50043;
    --spicy-dark-bg: #0f0f0f;
    --spicy-medium-bg: #1a1a1a;
    --spicy-light-bg: #2a2a2a;
    --spicy-border-color: rgba(255, 255, 255, 0.08);
    --spicy-text-color: #f1f1f1;
    
    background: var(--spicy-medium-bg);
    border: 1px solid var(--spicy-border-color);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 480px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Gradient overlay */
.creator-status-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(229, 0, 67, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.creator-status-form h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.status-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 2rem;
}

.status-form-group {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.creator-status-input {
    flex: 1;
    background: var(--spicy-dark-bg);
    border: 2px solid transparent;
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.creator-status-input:focus {
    border-color: var(--spicy-primary-color);
    background: rgba(229, 0, 67, 0.05);
}

.status-update-btn {
    background: linear-gradient(135deg, #e50043 0%, #ff0066 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-update-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.status-update-btn:hover::before {
    width: 300px;
    height: 300px;
}

.status-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 0, 67, 0.4);
}

.status-char-count {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.status-success-message {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==========================================================================
   1. STYLES GÉNÉRAUX ET UTILITAIRES
   ========================================================================== */

/* --- Classes pour les notifications (succès/erreur) --- */
.spicy-notice {
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid transparent;
    text-align: center;
    max-width: 500px;
}
.spicy-notice-success {
    color: #d4edda;
    background-color: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
}
.spicy-notice-error {
    color: #f8d7da;
    background-color: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

/* ==========================================================================
   2. STYLES DES BOUTONS
   ========================================================================== */

/* --- Style pour les boutons du menu créatrice et du chat --- */
.spicy-menu-button,
.bpbm-pm-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    height: 100%;
    padding: 10px 24px !important;
    background-color: transparent !important;
    border: 1px solid #cfaf8d !important;
    border-radius: 32px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    font-family: 'Fahkwang', sans-serif !important; /* Note: Fahkwang n'est pas importée ici */
    color: #cfaf8d !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.5;
}
.spicy-menu-button:hover,
.bpbm-pm-button:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: transparent !important;
    border-color: #e53935 !important;
    transform: translateY(-2px) !important;
}

/* --- Bouton d'abonnement pour le chat --- */
.bouton-abonnement-chat {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.bouton-abonnement-chat:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

/* --- Bouton de Soumission unifié (maintenant plus générique) --- */
.mbfs-form .rwmb-form-submit .rwmb-button,
.swpm-registration-widget-form .swpm-submit,
.swpm-login-widget-form .swpm-login-form-submit,
.change-password-form-wrapper .bouton-abonnement-principal,
#lostpasswordform .bouton-abonnement-principal { /* AJOUTÉ ICI */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--spicy-primary-color);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-align: center !important; /* Ajouté pour centrer le texte sur les input type="submit" et buttons */
}
.mbfs-form .rwmb-form-submit .rwmb-button:hover,
.swpm-registration-widget-form .swpm-submit:hover,
.swpm-login-widget-form .swpm-login-form-submit:hover,
.change-password-form-wrapper .bouton-abonnement-principal:hover,
#lostpasswordform .bouton-abonnement-principal:hover { /* AJOUTÉ ICI */
    background-color: #ff1a5f;
}
.mbfs-form .rwmb-form-submit .rwmb-button:active,
.swpm-registration-widget-form .swpm-submit:active,
.swpm-login-widget-form .swpm-login-form-submit:active,
.change-password-form-wrapper .bouton-abonnement-principal:active,
#lostpasswordform .bouton-abonnement-principal:active { /* AJOUTÉ ICI */
    transform: scale(0.98);
}

/* ==========================================================================
   3. STYLES DES FORMULAIRES (Optimisés et unifiés)
   ========================================================================== */

/* --- Conteneur unifié pour les formulaires sombres (hors formulaire d'avatar) --- */
.spicy-form-wrapper,
.mbfs-form,
.spicy-password-reset-form,
.change-password-form-wrapper,
.swpm-registration-widget-form,
.swpm-login-widget-form {
    --spicy-primary-color: #e50043;
    --spicy-dark-bg: #1a1a1a;
    --spicy-medium-bg: #1f1f1f;
    --spicy-light-bg: #3f3f3f;
    --spicy-border-color: #444;
    --spicy-text-color: #f1f1f1;
    --spicy-label-color: #ffffff;
    background-color: var(--spicy-medium-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--spicy-border-color);
    max-width: 900px; /* Largeur par défaut pour les formulaires généraux */
    margin: 40px auto;
    color: var(--spicy-text-color);
    box-sizing: border-box;
}

/* --- Surcharge pour la largeur spécifique du formulaire de connexion et d'avatar --- */
.swpm-login-widget-form,
.spicy-password-reset-form { /* AJOUTÉ ICI */
    max-width: 450px; /* Largeur plus petite pour les formulaires de connexion/réinitialisation */
}
.creator-profile-form-wrapper {
    max-width: 500px; /* Largeur plus petite pour ce formulaire spécifique */
    margin: 40px auto; /* Conserve le centrage */

    /* Les variables de couleur doivent être définies ici si elles ne sont pas héritées d'un parent plus haut */
    --spicy-primary-color: #e50043;
    --spicy-dark-bg: #1a1a1a;
    --spicy-medium-bg: #1f1f1f;
    --spicy-light-bg: #3f3f3f;
    --spicy-border-color: #444;
    --spicy-text-color: #f1f1f1;
    --spicy-label-color: #ffffff;

    background-color: var(--spicy-medium-bg); /* Conserve le fond */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--spicy-border-color);
    color: var(--spicy-text-color);
    box-sizing: border-box;
}


/* --- Centrage générique pour les éléments Flexbox dans les formulaires qui en ont besoin --- */
.spicy-form-wrapper,
.creator-profile-form-wrapper,
.swpm-login-widget-form,
.spicy-password-reset-form { /* AJOUTÉ ICI */
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Assurer que le formulaire SWPM et son contenu interne prennent 100% de la largeur de leur conteneur */
.swpm-login-widget-form #swpm-login-form,
.swpm-login-widget-form .swpm-login-form-inner,
.spicy-password-reset-form form { /* AJOUTÉ ICI */
    width: 100%;
}


/* --- Titres des formulaires --- */
.spicy-form-wrapper h2, .spicy-form-wrapper h3,
.mbfs-form h2, .mbfs-form h3,
.spicy-password-reset-form h2, .spicy-password-reset-form h3,
.change-password-form-wrapper h2, .change-password-form-wrapper h3,
.swpm-registration-widget-form h2, .swpm-registration-widget-form h3,
.swpm-login-widget-form h2, .swpm-login-widget-form h3,
.creator-profile-form-wrapper h3 {
    color: var(--spicy-label-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%; /* S'assure que le titre prend toute la largeur pour centrage */
}

/* --- Labels et paragraphes --- */
.spicy-form-wrapper p, .spicy-form-wrapper label,
.mbfs-form .rwmb-label label,
.spicy-password-reset-form p, .spicy-password-reset-form label,
.change-password-form-wrapper p, .change-password-form-wrapper label,
.swpm-registration-widget-form label, .swpm-registration-widget-form p.swpm-form-desc,
.swpm-login-widget-form label,
.swpm-login-widget-form .swpm-remember-me label,
.creator-profile-form-wrapper label {
    display: block;
    margin-bottom: 0.75rem; /* Espace entre label et input */
    line-height: 1.6;
    font-weight: bold;
    color: #ccc;
    text-align: left; /* Par défaut, les labels s'alignent à gauche */
    width: 100%; /* Pour une meilleure cohérence */
    box-sizing: border-box;
}

/* Alignement spécifique pour les paragraphes/lignes */
.spicy-password-reset-form p, /* Affecte aussi le paragraphe descriptif */
.change-password-form-wrapper p {
    text-align: center;
}

/* Espacement pour les lignes de formulaire */
.spicy-form-wrapper p.form-row, /* Pour le formulaire de changement de mot de passe */
.spicy-password-reset-form p, /* AJOUTÉ ICI pour les paragraphes du formulaire de reset */
.swpm-login-widget-form .swpm-username-label,
.swpm-login-widget-form .swpm-username-input,
.swpm-login-widget-form .swpm-password-label,
.swpm-login-widget-form .swpm-password-input,
.swpm-login-widget-form .swpm-remember-me, /* Ajusté en dessous pour flex */
.swpm-login-widget-form .swpm-forgot-pass-link,
.swpm-login-widget-form .swpm-join-us-link {
    margin-bottom: 1.5rem; /* Espacement standard entre les sections/lignes */
    width: 100%; /* S'assure que ces éléments prennent toute la largeur */
}

/* Réinitialiser la marge du label si le conteneur a déjà la marge */
.swpm-login-widget-form .swpm-username-label label,
.swpm-login-widget-form .swpm-password-label label,
.spicy-password-reset-form p label { /* AJOUTÉ ICI */
    margin-bottom: 0;
}

/* Espacement avant le bouton de soumission */
.spicy-form-wrapper p.form-submit,
.spicy-password-reset-form p.submit, /* AJOUTÉ ICI */
.swpm-login-widget-form .swpm-login-submit {
    margin-top: 1.5rem;
    margin-bottom: 0; /* Pas de marge en dessous du bouton */
    width: 100%;
}

/* Style spécifique pour la section "Se souvenir de moi" du formulaire de connexion */
.swpm-login-widget-form .swpm-remember-me {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}
.swpm-login-widget-form .swpm-remember-me label {
    display: inline; /* Pour que le label soit sur la même ligne que la checkbox */
    margin-bottom: 0;
    font-weight: normal; /* Plus léger pour un "remember me" */
    color: #ccc;
    flex-grow: 1; /* Permet au texte de prendre l'espace restant */
}


/* --- Masquage des champs Prénom et Nom dans le formulaire d'inscription SWPM --- */
.swpm-registration-widget-form .swpm-firstname-row,
.swpm-registration-widget-form .swpm-lastname-row {
    display: none !important; /* Force le masquage de la ligne entière */
}

/* --- Champs de saisie unifiés (avec !important pour surclasser les plugins) --- */
.spicy-form-wrapper input[type="text"],
.spicy-form-wrapper input[type="password"],
.mbfs-form .rwmb-input input[type="text"],
.mbfs-form .rwmb-input input[type="number"],
.mbfs-form .rwmb-input textarea,
.swpm-registration-widget-form input[type="text"],
.swpm-registration-widget-form input[type="password"],
#spicy-change-password-form input[type="password"],
#swpm-login-form input[type="text"],
#swpm-login-form input[type="password"],
#lostpasswordform input[type="text"] { /* AJOUTÉ ICI */
    width: 100%;
    padding: 12px 15px;
    background-color: var(--spicy-light-bg) !important; /* Force le fond sombre */
    border: 1px solid var(--spicy-border-color) !important; /* Force la bordure sombre */
    border-radius: 8px;
    color: var(--spicy-text-color) !important; /* Force le texte clair */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.spicy-form-wrapper input:focus,
.mbfs-form .rwmb-input input:focus,
.mbfs-form .rwmb-input textarea:focus,
.swpm-registration-widget-form input:focus,
#spicy-change-password-form input:focus,
#swpm-login-form input:focus,
#lostpasswordform input:focus { /* AJOUTÉ ICI */
    outline: none;
    border-color: var(--spicy-primary-color);
}

/* --- Style pour les cases à cocher (Termes et conditions / Se souvenir de moi) --- */
.swpm-registration-widget-form .swpm-form-row input[type="checkbox"],
.swpm-login-widget-form .swpm-remember-me input[type="checkbox"] {
    width: auto; /* La case à cocher doit rester petite */
    margin-right: 8px; /* Espace à droite de la case */
}
.swpm-registration-widget-form .swpm-form-row label span {
    display: inline; /* Le texte de la case reste sur la même ligne */
    width: auto;
    font-weight: normal; /* Texte moins gras */
}
.swpm-registration-widget-form .swpm-form-row label a,
.swpm-login-widget-form .swpm-forgot-pass-link a,
.swpm-login-widget-form .swpm-join-us-link a,
.swpm-login-widget-form .swpm-login-action-msg a,
.spicy-password-reset-form a { /* AJOUTÉ ICI pour les liens du formulaire de reset */
    color: var(--spicy-primary-color);
    text-decoration: none;
    font-weight: bold; /* Pour donner de l'importance aux liens */
}
.swpm-registration-widget-form .swpm-form-row label a:hover,
.swpm-login-widget-form .swpm-forgot-pass-link a:hover,
.swpm-login-widget-form .swpm-join-us-link a:hover,
.swpm-login-widget-form .swpm-login-action-msg a:hover,
.spicy-password-reset-form a:hover { /* AJOUTÉ ICI */
    text-decoration: underline;
    color: #ff1a5f; /* Couleur au survol */
}

/* Style pour le message d'action/erreur du formulaire de connexion */
.swpm-login-widget-form .swpm-login-action-msg {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    background-color: transparent;
    border: none;
}

/* Masquer le conteneur du message si son contenu est vide (le div lui-même) */
.swpm-login-widget-form .swpm-login-action-msg:empty {
    display: none;
}

/* Appliquer le style de la "boîte rouge" au span uniquement lorsqu'il n'est pas vide */
.swpm-login-widget-form .swpm-login-action-msg span.swpm-login-widget-action-msg:not(:empty) {
    display: block; /* Le rendre bloc pour que le padding et le fond fonctionnent correctement */
    padding: 10px 15px;
    border-radius: 8px;
    color: #f8d7da; /* Couleur du texte d'erreur */
    background-color: rgba(220, 53, 69, 0.2); /* Fond d'erreur */
    border: 1px solid #dc3545; /* Bordure d'erreur */
}
/* Ajustements des liens dans le message d'action */
.swpm-login-widget-form .swpm-login-action-msg span.swpm-login-widget-action-msg:not(:empty) a {
    text-decoration: underline; /* Les liens dans le message restent soulignés par défaut */
    font-weight: normal; /* Moins gras pour les liens dans les messages */
}
.swpm-login-widget-form .swpm-login-action-msg span.swpm-login-widget-action-msg:not(:empty) a:hover {
    color: var(--spicy-primary-color); /* Au survol, reste sur la couleur primaire */
}


/* --- Style spécifique pour l'upload de fichiers (Meta Box) --- */
/* Le conteneur lui-même n'est pas centré, mais son contenu l'est par text-align: center; */
.mbfs-form .rwmb-upload-area {
    background-color: var(--spicy-light-bg); border: 2px dashed var(--spicy-border-color); border-radius: 8px; padding: 2rem; text-align: center; color: var(--spicy-label-color); transition: border-color 0.3s ease, background-color 0.3s ease;
}
.mbfs-form .rwmb-upload-area.drag-over { border-color: var(--spicy-primary-color); background-color: var(--spicy-dark-bg); }
.mbfs-form .rwmb-upload-inside h3 { margin: 0 0 0.5rem 0; font-size: 1.2rem; }
.mbfs-form .rwmb-upload-inside p { margin: 0 0 1rem 0; opacity: 0.7; }
.mbfs-form .rwmb-browse-button.button.button-hero { background-color: var(--spicy-primary-color); color: #fff; border: none; padding: 10px 20px; font-weight: bold; border-radius: 8px; transition: background-color 0.3s ease; }
.mbfs-form .rwmb-browse-button.button.button-hero:hover { background-color: #ff1a5f; }
.mbfs-form .rwmb-media-view { background-color: transparent; border: none; padding: 0; }
.mbfs-form .rwmb-media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.mbfs-form .rwmb-image-item, .mbfs-form .rwmb-file { position: relative; aspect-ratio: 1 / 1; background-color: var(--spicy-dark-bg); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.mbfs-form .rwmb-image-item .rwmb-file-icon img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mbfs-form .rwmb-image-item:hover .rwmb-file-icon img { transform: scale(1.05); }
.mbfs-form .rwmb-file .rwmb-file-icon { flex-grow: 1; display: flex; justify-content: center; align-items: center; padding: 15%; box-sizing: border-box; }
.mbfs-form .rwmb-file .rwmb-file-icon img { max-width: 100%; max-height: 100%; }
.mbfs-form .rwmb-file-info { padding: 8px; background-color: rgba(0, 0, 0, 0.4); font-size: 11px; text-align: center; line-height: 1.3; }
.mbfs-form .rwmb-file-info a.rwmb-file-title { color: var(--spicy-text-color) !important; text-decoration: none; word-break: break-all; }
.mbfs-form .rwmb-file-info a.rwmb-file-title:hover { text-decoration: underline; }
.mbfs-form .rwmb-file-name { display: none; }
.mbfs-form .rwmb-image-actions, .mbfs-form .rwmb-file-actions { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; gap: 15px; background-color: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.3s ease; z-index: 2; }
.mbfs-form .rwmb-file .rwmb-file-actions { height: 75%; }
.mbfs-form .rwmb-image-item:hover .rwmb-image-actions, .mbfs-form .rwmb-file:hover .rwmb-file-actions { opacity: 1; }
.mbfs-form .rwmb-image-actions a, .mbfs-form .rwmb-file-actions a { color: #fff !important; text-decoration: none; }
.mbfs-form .rwmb-file-actions a { font-size: 0; }
.mbfs-form .rwmb-file-actions a::before { font-family: 'dashicons'; font-size: 24px; display: inline-block; }
.mbfs-form .rwmb-file-actions .rwmb-edit-media::before { content: '\f464'; }
.mbfs-form .rwmb-file-actions .rwmb-remove-media::before { content: '\f158'; }
.mbfs-form .rwmb-image-actions .dashicons { font-size: 24px; width: 24px; height: 24px; }
.mbfs-form .rwmb-media-add a.button { display: none !important; }

/* --- Style spécifique pour le formulaire d'avatar (ajusté pour le centrage) --- */
/* Ces règles seront spécifiques au formulaire d'avatar */
.creator-profile-form-wrapper img {
    border: 3px solid #e91e63;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
    margin-bottom: 25px;
    display: block; /* Nécessaire pour le auto margin */
    margin-left: auto;
    margin-right: auto;
    max-width: 150px; /* Limite la taille de l'avatar */
    height: auto; /* Maintient le ratio */
    border-radius: 50%; /* Pour une forme d'avatar ronde */
    object-fit: cover; /* Assure que l'image remplit le cercle */
    aspect-ratio: 1 / 1; /* Force un ratio 1:1 */
}
.creator-profile-form-wrapper input[type="file"] { display: none; }
.creator-profile-form-wrapper label[for="user_avatar_file"] {
    display: inline-block;
    background-color: #333;
    color: #f0f0f0;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px dashed #555;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-weight: bold;
    width: auto; /* Permet au label de se centrer */
    min-width: 200px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.creator-profile-form-wrapper label[for="user_avatar_file"]:hover { background-color: #444; border-color: #e91e63; }
.creator-profile-form-wrapper label[for="user_avatar_file"]::after { content: 'Choisir un fichier...'; }
.creator-profile-form-wrapper button[type="submit"] {
    background-color: #e91e63;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: auto; /* Permet au bouton de se centrer */
    min-width: 250px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}
.creator-profile-form-wrapper button[type="submit"]:hover { background-color: #c2185b; transform: translateY(-2px); }
.creator-profile-form-wrapper form p { margin: 0; }

/* ==========================================================================
   4. STYLES DES MODALES (Pop-ups)
   ========================================================================== */

/* --- Conteneur overlay unifié --- */
.modal, #login-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-visible, #login-popup-overlay.is-visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* --- Contenu de la modale --- */
.modal-content, .login-popup-content {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal.is-visible .modal-content, #login-popup-overlay.is-visible .login-popup-content {
    transform: translateY(0);
}

/* --- Bouton de fermeture --- */
.close, .login-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.close:hover, .login-popup-close:hover {
    opacity: 1;
}

/* ==========================================================================
   5. STYLES SPÉCIFIQUES ET RESPONSIVE
   ========================================================================== */

/* --- Catalogue d'abonnements --- */
.catalogue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; max-width: 900px; margin: 20px auto; }
.catalogue-item { display: block; position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 25px rgba(0,0,0,0.3); aspect-ratio: 1 / 1.2; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.catalogue-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 35px rgba(0,0,0,0.4); }
.catalogue-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.catalogue-item:hover img { transform: scale(1.05); }
.catalogue-item-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 15px 15px 15px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%); text-align: center; }
.catalogue-item-name { color: #ffffff; font-size: 22px; font-weight: 600; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

/* --- SÉCURITÉ ET FIXES --- */
.chat-header .new-message { display: none !important; }

/* --- RESPONSIVE --- */
@media (max-width: 782px) {
    /* FIX pour la modale d'édition média */
    .media-modal .media-frame.edit-attachment-frame { width: 100vw !important; height: 100vh !important; display: flex !important; justify-content: center; align-items: flex-start; overflow-y: scroll; -webkit-overflow-scrolling: touch; padding: 2rem 0; box-sizing: border-box; }
    .media-modal .media-frame.edit-attachment-frame .media-frame-content { width: 90% !important; max-width: 500px; position: relative !important; top: auto !important; left: auto !important; }
    .media-modal .edit-attachment-frame .attachment-media-view, .media-modal .edit-attachment-frame .attachment-info { width: 100% !important; float: none !important; margin: 0 0 2rem 0 !important; }
    .attachment-info .settings { display: flex; flex-direction: column; }
    .attachment-info .setting { display: none; }
    .attachment-info .setting[data-setting="prix_item"], .attachment-info .setting[data-setting="description"] { display: block !important; width: 100% !important; order: -1; margin-bottom: 1.5rem; }
    .attachment-info .compat-item { display: none !important; }
}

@media (max-width: 767px) {
    .spicy-menu-button, .bpbm-pm-button { font-size: 14px !important; padding: 8px 18px !important; }
    .bouton-abonnement-chat { font-size: 14px; padding: 10px 22px; }
    .mobileClose { display: none !important; }
    .catalogue-grid { grid-template-columns: 1fr; gap: 25px; }
    .catalogue-item-name { font-size: 20px; }
}

@media (max-width: 600px) {
    .spicy-form-wrapper, .mbfs-form, .spicy-password-reset-form, .change-password-form-wrapper, .swpm-login-widget-form {
        padding: 1.5rem; margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .spicy-menu-button, .bpbm-pm-button { font-size: 13px !important; padding: 6px 14px !important; }
    .bouton-abonnement-chat { font-size: 13px; padding: 8px 18px !important; }
    .mbfs-form { padding: 1rem; border: none; }
    .mbfs-form .rwmb-label label { font-size: 1rem; }
    .mbfs-form .rwmb-form-submit .rwmb-button { font-size: 1.1rem; padding: 12px 20px; }
    .swpm-login-widget-form,
    .spicy-password-reset-form { /* AJOUTÉ ICI */
        padding: 1rem; border: none;
    }
    .swpm-login-widget-form .swpm-login-form-submit,
    .spicy-password-reset-form .bouton-abonnement-principal { /* AJOUTÉ ICI */
        font-size: 1.1rem; padding: 12px 20px;
    }
}


/* ==========================================================================
   6. STYLES POUR LA PAGE "MON COMPTE" ([mon_compte_details])
   ========================================================================== */

/* --- Conteneur principal --- */
.mon-compte-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 2rem;
    background-color: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    color: #e0e0e0;
}

/* --- Titres de section (H2) --- */
.mon-compte-wrapper h2 {
    color: #ffffff;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
}
/* Le premier H2 n'a pas besoin de marge en haut */
.mon-compte-wrapper h2:first-of-type {
    margin-top: 0;
}
/* On ajoute de l'espace avant les H2 suivants */
.mon-compte-wrapper h2:not(:first-of-type) {
    margin-top: 2.5rem;
}

/* --- Bloc d'informations utilisateur --- */
.info-utilisateur-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

/* --- Liste des abonnements --- */
.liste-abonnements {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espace entre chaque abonnement */
}

.abonnement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #2c2c2c;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.abonnement-info h3 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 1.5rem;
}

.abonnement-info .sub-status {
    margin: 0;
    color: #b0b0b0;
    font-style: italic;
}

/* --- Style pour le bouton d'annulation --- */
.abonnement-action .custom-cancel-button {
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.abonnement-action .custom-cancel-button:hover {
    background-color: #c9302c;
}

/* --- Responsive pour mobile --- */
@media (max-width: 767px) {
    .abonnement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .abonnement-info h3 {
        font-size: 1.3rem;
    }
}


/* ==========================================================================
   FORMULAIRES DE CONNEXION ET D'INSCRIPTION (v2)
   ========================================================================== */

/* Conteneur principal du formulaire (centré, avec une largeur max AJUSTÉE) */
.spicy-form-container {
    max-width: 480px; /* <--- AUGMENTÉ pour plus de largeur sur PC */
    margin: 40px auto;
    padding: 40px; /* Un peu plus d'air à l'intérieur */
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
}

/* Style des champs de saisie (input) */
.spicy-form-container input[type="text"],
.spicy-form-container input[type="email"],
.spicy-form-container input[type="password"] {
    width: 100%;
    padding: 14px 18px; /* <--- Un peu plus grand */
    margin-bottom: 20px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    color: #f1f1f1;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Style des champs au focus */
.spicy-form-container input[type="text"]:focus,
.spicy-form-container input[type="email"]:focus,
.spicy-form-container input[type="password"]:focus {
    border-color: #e50043;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 0, 67, 0.2);
}

/* Style des labels */
.spicy-form-container label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-weight: bold;
    font-size: 0.9em;
}

/* NOUVEAU STYLE DÉDIÉ POUR LE BOUTON DE SOUMISSION */
.spicy-form-container .spicy-submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #e50043; /* Couleur principale */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.spicy-form-container .spicy-submit-button:hover {
    background-color: #ff1a5f; /* Couleur au survol */
    transform: translateY(-2px);
}

/* Style pour les liens */
.spicy-form-container p a {
    color: #e50043;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.spicy-form-container p a:hover { color: #ff1a5f; }

/* NOUVEAU : Style pour les cases à cocher de consentement */
.spicy-consent-group {
    margin: 25px 0;
}
.spicy-consent-item {
    display: flex;
    align-items: flex-start; /* Aligne en haut si le texte passe sur plusieurs lignes */
    margin-bottom: 15px;
}
.spicy-consent-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0; /* Empêche la case de rétrécir */
}
.spicy-consent-item label {
    margin-left: 12px;
    font-size: 0.9em;
    font-weight: normal;
    color: #ccc;
    line-height: 1.5;
}
.spicy-consent-item label a {
    text-decoration: underline;
    font-weight: normal;
}

/* Style pour les messages d'erreur et de succès */
/* (Inchangé) */
.spicy-notice { padding: 15px; margin-bottom: 20px; border-radius: 8px; border: 1px solid transparent; }
.spicy-notice p { margin: 0; padding: 0; font-weight: bold; }
.spicy-notice.spicy-notice-error { background-color: rgba(255, 26, 95, 0.1); border-color: #e50043; color: #ff8fab; }
.spicy-notice.spicy-notice-success { background-color: rgba(40, 167, 69, 0.1); border-color: #28a745; color: #7ee29a; }

/*
==========================================================================
 STYLES POUR LES BOUTONS DES FORMULAIRES DE CONNEXION ET MOT DE PASSE OUBLIÉ
==========================================================================
*/

/* Style de base pour les boutons "Se connecter" et "Obtenir un nouveau mot de passe" */
#spicyloginform #wp-submit {
    background-color: #e50043 !important; /* Couleur rose/magenta principale */
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-transform: none !important; /* Au cas où Bricks mettrait le texte en majuscules */
}

#spicyloginform #wp-submit:hover {
    background-color: #ff1a5f !important; /* Une teinte de rose plus claire */
}

/* Style pour le bouton "Obtenir un nouveau mot de passe" (inchangé, car il fonctionnait déjà) */
.spicy-password-reset-form .spicy-submit-button {
    background-color: #e50043;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.spicy-password-reset-form .spicy-submit-button:hover {
    background-color: #ff1a5f;
}











/* Delete Account Section */
.delete-account-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    margin: 40px auto;
    max-width: 600px;
}

.delete-account-title {
    color: #ef4444;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.delete-account-warning {
    color: #999;
    margin-bottom: 20px;
    font-size: 14px;
}

.delete-account-btn {
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.delete-account-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Modal Styles */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.delete-modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.delete-modal-content h3 {
    color: #ef4444;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
}

.delete-modal-content p {
    color: #ccc;
    margin-bottom: 15px;
}

.delete-modal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.delete-modal-content ul li {
    color: #999;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.delete-modal-content ul li::before {
    content: "•";
    color: #ef4444;
    position: absolute;
    left: 8px;
}

.final-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 15px;
    border-radius: 8px;
    color: #fca5a5;
    font-weight: 500;
    text-align: center;
}

.confirm-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
}

.confirm-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.cancel-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #333;
    border-color: #555;
}

.confirm-delete-btn {
    background: #ef4444;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-delete-btn:disabled {
    background: #444;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.confirm-delete-btn:not(:disabled):hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .delete-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .confirm-delete-btn {
        width: 100%;
    }
}