/* PROFILE HERO */
.profile-hero {
    width: 100%;
    height: 70vh; /* REDUIT POUR VOIR LA BIO DES LE DEBUT */
    max-height: 550px;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* CAROUSEL */
.profile-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    user-select: none;
}

.profile-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    cursor: pointer;
}

/* NAVIGATION ARROWS */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999 !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    /* Visible sur Desktop pour aider la navigation */
    backdrop-filter: blur(5px);
}

.carousel-nav:hover {
    background: var(--gold);
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

@media (max-width: 768px) {
    .carousel-nav {
        display: none !important;
    }
}

/* INDICATORS (Instagram style) */
.carousel-indicators {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 4px;
    padding: 0 10px;
    z-index: 500;
    pointer-events: none;
}

.indicator-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.indicator-progress {
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.1s linear;
}

.indicator-bar.current .indicator-progress {
    background: var(--gold);
}

.profile-hero-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 60px 20px 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    pointer-events: none;
}

.profile-hero-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.profile-grid-title {
    display: none !important;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-online {
    color: var(--online);
}

.status-online .status-dot {
    background: var(--online);
    box-shadow: 0 0 10px var(--online);
}

.status-offline {
    color: var(--offline);
}

.status-offline .status-dot {
    background: var(--offline);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 20px 30px;
    margin-top: 10px;
}

.grid-item {
    position: relative;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cam-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    z-index: 100;
}

/* DETAILS */
.profile-details {
    padding: 25px 20px 20px;
}

.detail-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.detail-line .icon {
    flex-shrink: 0;
    width: 30px;
    margin-right: 12px;
    margin-top: 2px;
}

.info-block {
    padding: 0 20px 25px;
}

.info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.bio-text {
    line-height: 1.6;
    font-size: 1rem;
}

.action-container {
    padding: 0 20px 40px;
}

.wink-btn {
    width: 100%;
    height: 60px;
    border-radius: 30px;
    border: none;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
}


/* EDIT FORM */
.action-btn-gold {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    flex: 1;
    transition: 0.3s;
    font-size: 0.9rem;
    margin-top: 10px;
}

.action-btn-gold:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.profile-actions {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    width: 100%;
}

.profile-grid-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold);
    padding: 15px;
    letter-spacing: 2px;
}


#view-profile {
    padding-bottom: 110px !important;
    /* ESPACE POUR LE BOUTON DISCUTER ET LA NAV */
}

/* CREATOR STATS SECTION */
.creator-stats-section {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(212,175,55,0.2);
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.stats-table-v523 {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

body.theme-male .stats-table-v523 {
    background: rgba(212, 175, 55, 0.06) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #ffffff !important;
}

body.theme-female .stats-table-v523 {
    background: rgba(233, 30, 99, 0.04) !important;
    border: 1px solid rgba(233, 30, 99, 0.15) !important;
    color: #333333 !important;
}

.stat-grid-cell {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 4px;
    color: inherit;
    font-size: 0.65rem;
    font-weight: bold;
    text-align: center;
}

body.theme-male .stat-grid-cell {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
}

body.theme-female .stat-grid-cell {
    background: #ffffff !important;
    border: 1px solid rgba(233, 30, 99, 0.08) !important;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.stat-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,0.3);
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.stat-game-name {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
}

.stat-counters {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
    color: #aaa;
    font-weight: bold;
}

.stat-counters span {
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.stat-delete-btn {
    background: rgba(255,71,87,0.1);
    border: 1px solid rgba(255,71,87,0.3);
    color: #ff4757;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.stat-delete-btn:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1);
}

/* --- PROFILE THEMING REPAIRS --- */
/* Default / Fallback (Dark) */
#view-profile {
    background-color: var(--bg-default) !important;
    color: white !important;
}
#view-profile .detail-line,
#view-profile .bio-text {
    color: rgba(255, 255, 255, 0.9) !important;
}
#view-profile h3,
#view-profile #profile-bio-title {
    color: var(--gold) !important;
}

/* Theme Homme (Dark Slate Blue / Steel Blue) */
body.theme-male #view-profile {
    background-color: var(--accent-male) !important;
    color: #ecf0f1 !important;
}
body.theme-male #view-profile .detail-line,
body.theme-male #view-profile .bio-text {
    color: #ecf0f1 !important;
}
body.theme-male #view-profile h3,
body.theme-male #view-profile #profile-bio-title {
    color: var(--gold) !important;
}

/* Theme Femme (Light Peach) */
body.theme-female #view-profile {
    background-color: var(--accent-female) !important;
    color: #444444 !important;
}
body.theme-female #view-profile .detail-line,
body.theme-female #view-profile .bio-text {
    color: #444444 !important;
}
body.theme-female #view-profile h3,
body.theme-female #view-profile #profile-bio-title {
    color: #e91e63 !important;
}
body.theme-female #view-profile .profile-name-age-tags {
    color: #333333 !important;
}

/* --- EDIT PROFILE THEMING REPAIRS --- */
/* Default / Fallback (Dark) */
#view-edit-profile {
    background-color: var(--bg-default) !important;
    color: white !important;
    padding-bottom: 120px !important;
}
#view-edit-profile .section-title {
    color: var(--gold) !important;
}
#view-edit-profile .form-group label {
    color: var(--gold) !important;
}

/* Theme Homme (Dark Slate Blue / Steel Blue) */
body.theme-male #view-edit-profile {
    background-color: var(--accent-male) !important;
    color: #ecf0f1 !important;
}
body.theme-male #view-edit-profile .section-title {
    color: var(--gold) !important;
}
body.theme-male #view-edit-profile .form-group label {
    color: var(--gold) !important;
}

/* Theme Femme (Light Peach) */
body.theme-female #view-edit-profile {
    background-color: var(--accent-female) !important;
    color: #444444 !important;
}
body.theme-female #view-edit-profile .section-title {
    color: #e91e63 !important;
}
body.theme-female #view-edit-profile .form-group label {
    color: #e91e63 !important;
}
body.theme-female #view-edit-profile .form-group input[type="text"],
body.theme-female #view-edit-profile .form-group input[type="number"],
body.theme-female #view-edit-profile .form-group input[type="date"],
body.theme-female #view-edit-profile .form-group textarea {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #333333 !important;
}
body.theme-female #view-edit-profile .form-group input::placeholder,
body.theme-female #view-edit-profile .form-group textarea::placeholder {
    color: #888888 !important;
}
body.theme-female #view-edit-profile .input-with-prefix .prefix {
    color: rgba(0, 0, 0, 0.5) !important;
}
body.theme-female #view-edit-profile .checkbox-group label {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #444444 !important;
    border: 1px solid transparent !important;
}
body.theme-female #view-edit-profile .checkbox-group label:has(input:checked) {
    background-color: rgba(233, 30, 99, 0.15) !important;
    border-color: #e91e63 !important;
    color: #e91e63 !important;
}
body.theme-female #view-edit-profile .checkbox-group input {
    accent-color: #e91e63 !important;
}
body.theme-female #view-edit-profile .form-group div[style*="background:rgba(255,255,255,0.05)"],
body.theme-female #view-edit-profile .form-group div[style*="background: rgba(255, 255, 255, 0.05)"] {
    background-color: rgba(0, 0, 0, 0.03) !important;
}
body.theme-female #view-edit-profile .form-group div[style*="background:rgba(212,175,55,0.1)"],
body.theme-female #view-edit-profile #hide-public-container,
body.theme-female #view-edit-profile #hide-intimate-container {
    background-color: rgba(233, 30, 99, 0.06) !important;
    border: 1px solid rgba(233, 30, 99, 0.15) !important;
}
body.theme-female #view-edit-profile .form-group div[style*="background:rgba(212,175,55,0.1)"] label,
body.theme-female #view-edit-profile #hide-public-container label,
body.theme-female #view-edit-profile #hide-intimate-container label {
    color: #e91e63 !important;
}
body.theme-female #view-edit-profile .form-group label[style*="color:#eee"],
body.theme-female #view-edit-profile .form-group label[style*="color: #eee"] {
    color: #444444 !important;
}
body.theme-female #view-edit-profile .form-group input[type="checkbox"] {
    accent-color: #e91e63 !important;
}
body.theme-female #view-edit-profile .edit-photo-slot {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border: 2px dashed rgba(0, 0, 0, 0.15) !important;
}
body.theme-female #view-edit-profile .edit-photo-slot .slot-label {
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
}
body.theme-female #view-edit-profile .edit-photo-slot .slot-delete {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: white !important;
}
body.theme-female #view-edit-profile .edit-photo-slot .slot-delete:hover {
    background-color: rgba(231, 76, 60, 0.8) !important;
}
body.theme-female #view-edit-profile div[style*="background: rgba(212,175,55,0.05)"],
body.theme-female #view-edit-profile div[style*="background:rgba(212,175,55,0.05)"] {
    background-color: rgba(233, 30, 99, 0.06) !important;
    border: 1px solid rgba(233, 30, 99, 0.15) !important;
}
body.theme-female #view-edit-profile div[style*="background: rgba(212,175,55,0.05)"] label,
body.theme-female #view-edit-profile div[style*="background:rgba(212,175,55,0.05)"] label {
    color: #444444 !important;
}
body.theme-female #view-edit-profile div[style*="background: rgba(212,175,55,0.05)"] a,
body.theme-female #view-edit-profile div[style*="background:rgba(212,175,55,0.05)"] a {
    color: #e91e63 !important;
}
body.theme-female #view-edit-profile .wink-btn {
    background-color: #e91e63 !important;
    color: white !important;
}
body.theme-female #view-edit-profile .wink-btn[style*="background: #444"],
body.theme-female #view-edit-profile .wink-btn[style*="background:#444"] {
    background-color: #555555 !important;
    color: white !important;
}