:root {
    --gold: #D4AF37;
    --bg-default: #000000;
    --accent-male: #2c3e50;
    /* Steel Blue / Grey */
    --accent-female: #fdf2f2;
    --online: #16A085;
    --offline: #bdc3c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Masquer les barres de défilement partout */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    background: var(--bg-default);
    color: white;
    min-height: 100vh; min-height: 100dvh; height: 100dvh;
    width: 100%;
    overflow: auto;
    transition: background 0.4s ease;
}

/* THEME HOMME - GRIS ACIER (Neutral & Clean) */
body.theme-male {
    background: var(--accent-male);
    color: #ecf0f1;
}

body.theme-male .profile-hero-info {
    background: linear-gradient(to top, var(--accent-male) 0%, rgba(44, 62, 80, 0.5) 60%, transparent 100%);
}

body.theme-male .wink-btn {
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

body.theme-male .btn-gold {
    background: linear-gradient(135deg, #FFDF73 0%, #D4AF37 50%, #997A15 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

body.theme-male .btn-white {
    background: rgba(0, 0, 0, 0.4);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.theme-male .btn-black {
    background: rgba(0, 0, 0, 0.4);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.theme-male .btn-disabled {
    background: rgba(0, 0, 0, 0.2);
    color: #666666;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

body.theme-male .btn-huge {
    padding: 22px 24px;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-width: 2px;
    margin-bottom: 8px;
}

body.theme-male .logo {
    color: var(--gold);
}

body.theme-male h3 {
    color: var(--gold);
}

/* THEME FEMME */
body.theme-female {
    background: var(--accent-female);
    color: #444;
}

body.theme-female .profile-hero-info {
    background: linear-gradient(to top, var(--accent-female) 10%, rgba(253, 242, 242, 0.8) 50%, transparent 100%);
}

body.theme-female .wink-btn {
    background: #e91e63;
    color: white;
    border-radius: 12px;
}

body.theme-female .logo {
    color: #e91e63;
}

body.theme-female h3 {
    color: #e91e63;
}

body.theme-female #header-title {
    color: #333;
}

body.theme-female #block-btn {
    color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-female .profile-name-age-tags {
    color: #333;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior-y: none !important;
    /* EMPECHE LE SCROLL DE TOUTE LA PAGE */
}

/* ANTI PULL-TO-REFRESH GLOBAL */
.modal-content,
.modal-overlay,
.view,
.side-menu {
    overscroll-behavior-y: none !important;
}

#app-container {
    height: 100vh; height: 100dvh;
    /* Fallback */
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.view {
    width: 100%;
    position: relative;
    overflow-y: auto;
    padding-bottom: 120px !important;
    animation: fadeIn 0.4s ease-out;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Chat views should fill the flex space */
#view-lobby,
#view-private-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}



.view::-webkit-scrollbar {
    display: none;
}

#block-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

body.theme-female #block-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.4);
}

/* --- KISS EFFECT --- */
.kiss-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; height: 100dvh;
    background: rgba(242, 233, 225, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000 !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 30000 !important;
}

.kiss-overlay.active {
    opacity: 1;
}

.kiss-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 15rem;
    filter: drop-shadow(0 0 40px rgba(255, 0, 100, 0.6));
    line-height: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.kiss-overlay.active .kiss-emoji {
    animation: kissPulse 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes kissPulse {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }

    30% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3) rotate(0deg);
        opacity: 0;
    }
}

/* --- EFFET LIKE (COEURS VOLANTS) --- */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1.8);
        opacity: 0;
    }
}

.floating-heart {
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    animation: floatUp 2.5s ease-out forwards;
}

.hidden {
    display: none !important;
}

/* HEADER */
.app-header {
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    background: rgba(30, 40, 51, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid #324254 !important;
    color: #FFFFFF !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    font-weight: 900;
    letter-spacing: 2px;
}

.back-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
}

.edit-btn {
    background: var(--gold);
    color: black;
    border: none;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
}

/* DISCOVERY GRID */
.section-title {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px 120px 15px; /* Added bottom padding for nav bar */
}

.card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

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

.card-info {
    position: absolute;
    bottom: 0;
    padding: 12px 48px 12px 12px;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
}

/* HOME PORTAL UPGRADE */
.home-portal {
    height: 100vh; height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: url('assets/home-bg.png') no-repeat center center;
    background-size: cover;
    text-align: center;
    position: relative;
}

.home-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.home-logo,
.home-tagline,
.home-buttons {
    position: relative;
    z-index: 2;
}

.home-logo {
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

.home-tagline {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 320px;
}

.home-action-btn {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
    padding: 22px;
    border-radius: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.home-action-btn:hover {
    background: var(--gold);
    color: black;
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}


.edit-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
}

.form-group textarea {
    resize: none;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.checkbox-group input {
    transform: scale(1.2);
}

.checkbox-group label:has(input:checked) {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.2);
}

/* PHOTO SLOTS */
.edit-photo-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-photo-slot {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edit-photo-slot.main {
    height: 250px;
}

.edit-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-photo-sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.edit-photo-sub-grid .edit-photo-slot {
    height: 80px;
}

.slot-label {
    position: absolute;
    bottom: 5px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: white;
    pointer-events: none;
}

.slot-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.slot-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.slot-delete:hover {
    background: rgba(231, 76, 60, 0.8);
}

.hidden-input {
    opacity: 0;
    position: fixed;
    top: -100px;
    left: -100px;
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: -1;
}

/* MODERN INTERESTS LAYOUT (REPLACING PILLS) */
.tags-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 15px 20px 30px;
}

.interest-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.interest-icon {
    font-size: 1.1rem;
}

.interest-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: 0.2px;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.theme-female .pill {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    border-color: rgba(233, 30, 99, 0.2);
}

body.theme-male .pill {
    background: rgba(212, 175, 55, 0.15);
    color: #FFDF73;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* LIGHTBOX */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000 !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
}

.lightbox img {
    max-width: 95%;
    max-height: 90%;
    border-radius: 12px;
}

/* BIG KISS ANIMATION */
.big-kiss-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 8rem;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    z-index: 30000 !important;
}

.animate-kiss {
    animation: kissPulse 0.8s ease-out;
}

@keyframes kissPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    30% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* PREFIX */
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-prefix .prefix {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    pointer-events: none;
}

.input-with-prefix input {
    padding-left: 35px !important;
}

/* LOBBY LIST */
.lobby-list {
    padding: 0 10px 120px 10px; /* Added bottom padding for nav bar */
}

.lobby-item {
    display: flex;
    align-items: center;
    padding: 20px 24px !important;
    background: #FFFFFF !important;
    border-radius: 0px !important;
    border: 1px solid #E1E8ED !important;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lobby-item:hover {
    background: #F5F8FA !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    transform: translateY(-1px);
}

.lobby-avatar {
    width: 55px;
    height: 75px;
    border-radius: 12px !important;
    object-fit: cover;
    border: 1px solid rgba(15, 20, 25, 0.4);
}

.lobby-item.online .lobby-avatar {
    border: 2px solid var(--online);
}

.lobby-info {
    flex: 1;
    margin-left: 15px;
}

.lobby-name {
    font-weight: 800;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lobby-msg {
    font-size: 0.85rem;
    color: #999;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.lobby-meta {
    text-align: right;
    font-size: 0.75rem;
    color: #666;
}

/* PUBLIC & PRIVATE CHAT - WINKSME SCATTERED SIGNATURE */

.chat-container,
.chat-messages.private {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    padding: 0;
    position: relative;
    background-color: #f2e9e1 !important;
    background-image: none !important;
}

#view-private-chat {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    position: relative;
    background-color: #f2e9e1 !important;
    background-image: none !important;
}
.chat-container::before,
#view-lobby::before,
#view-private-chat::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('chat_bg_new.png') !important;
    background-size: cover !important;
    background-repeat: repeat !important;
    background-position: top left !important;
    opacity: 0.6 !important;
    pointer-events: none;
    z-index: 0;
}

#view-private-chat {
    position: relative;
    padding-bottom: 0 !important;
}

#private-chat-messages {
    position: absolute;
    top: 85px;
    /* Header height ajusté */
    left: 0;
    width: 100%;
    height: calc(100% - 250px) !important;
    /* On laisse de la place pour tout le reste */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 10px 15px 120px 15px !important;
    background: transparent !important;
}

#private-chat-bottom-area {
    position: absolute;
    bottom: 0;
    /* Nav bar height */
    left: 0;
    width: 100%;
    background: rgba(30, 40, 51, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid #324254 !important;
    border-radius: 0px !important;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
    z-index: 3000;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 30px !important;
    background: transparent;
    /* Cache la barre de défilement */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

/* Spacer pour pousser les messages vers le bas tout en permettant le scroll vers le haut */
.chat-messages::before {
    content: "";
    flex: 1;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
    display: block !important;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 0px !important;
}

.chat-bubble.user {
    align-self: flex-end !important;
    background: #FAF0DD !important;
    color: #0F1419 !important;
    border-radius: 8px !important;
    padding: 14px 22px !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.08) !important;
}

/* --- IMAGES DANS LE CHAT --- */
.chat-image-wrap {
    margin-top: 10px;
    max-width: 250px;
    border-radius: 0px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.chat-msg-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-msg-img:hover {
    transform: scale(1.05);
}

.chat-msg-video {
    width: 100%;
    border-radius: 0px !important;
    display: block;
    background: #000;
}

.chat-bubble {
    background: #ebdcd0 !important;
    padding: 14px 22px !important;
    border-radius: 8px !important;
    max-width: 80% !important;
    align-self: flex-start;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    color: #0F1419 !important;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible !important;
}

.chat-time {
    font-size: 0.62rem !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.4;
    margin-top: 5px;
    color: inherit;
}

.user .chat-time {
    color: rgba(0, 0, 0, 0.4);
}

.chat-bubble.active-bubble {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
    border-color: var(--gold);
    z-index: 500;
}

.bubble-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    /* Par défaut aligné à gauche */
    padding: 10px 15px;
    background: #273340 !important; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4) !important;
    border-radius: 15px;
    width: max-content;
    max-width: 280px;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 20000 !important;
}

.chat-bubble.user .bubble-actions-bar {
    left: auto;
    right: 0;
    /* Aligné à droite pour les messages de l'utilisateur */
}

.actions-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.actions-row.bottom {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
}

.bubble-reactions-container {
    position: absolute;
    top: calc(100% - 5px);
    right: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    z-index: 10;
    pointer-events: none;
}

.reaction-pill {
    background: rgba(120, 120, 120, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: block;
    width: fit-content;
    max-width: 250px;
    white-space: normal;
    text-align: right;
    line-height: 1.3;
}

.bubble-reaction-badge.report-badge {
    position: absolute;
    top: -12px;
    left: 10px;
    background: #ff4757;
    border: 1px solid white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: normal !important;
    word-break: break-word;
    z-index: 100000000 !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 85vw;
    text-align: center;
    line-height: 1.4;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.chat-time {
    font-size: 0.65rem;
    color: #999;
    margin-left: 8px;
    font-weight: normal;
}

.chat-msg-text {
    margin-top: 4px;
    word-wrap: break-word;
}

@keyframes popIn {
    from {
        transform: scale(0.8) translateY(10px);
        opacity: 0;
    }

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

/* QUICK REACTIONS ON MEDIA */
.chat-media-actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease;
}

.chat-bubble:hover .chat-media-actions {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}

.quick-react-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-react-btn:hover {
    transform: scale(1.4);
}

.quick-react-btn:active {
    transform: scale(0.9);
}

.action-btn-mini {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    font-weight: 700;
    white-space: nowrap !important;
}

.action-btn-mini:hover {
    transform: scale(1.2);
}

.action-btn-mini.report {
    color: #ff4757;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.action-btn-mini.close {
    color: #999;
    font-size: 0.8rem;
}

/* QUICK UNLOCK CONTROLS */
.chat-unlock-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.unlock-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.unlock-btn:hover {
    background: var(--gold);
    color: black;
}

.chat-name {
    color: #D4AF37 !important; /* Or distille uniquement sur le pseudonyme */
    margin-right: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
}

.chat-name:hover {
    text-decoration: underline;
}

.chat-bottom-controls {
    position: relative;
    z-index: 100;
    margin-top: auto;
    /* Pousse vers le bas si flex */
    padding: 5px 10px !important;
}

@media screen and (max-width: 768px) {
    .chat-bottom-controls {
        padding: 5px 10px 15px 10px !important;
    }
}

/* NEW PREMIUM STACKED CHAT CONTROLS */
.premium-chat-form {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3px;
}

.chat-tools-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2px;
}

.flash-controls-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-pair {
    display: flex;
    gap: 15px;
}

.premium-flash-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
}

.premium-flash-btn:active {
    transform: scale(1.2);
}

.premium-flash-btn.secondary {
    font-size: 1.3rem;
}

.mini-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    font-size: 0.5rem;
    padding: 1px 4px;
    border-radius: 5px;
    font-weight: bold;
}

#public-chat-input {
    background: transparent;
    border: none;
    color: #0F1419 !important;
    font-size: 0.95rem !important;
    outline: none;
}

.send-pop-btn {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 6px 15px;
    border-radius: 12px;
}

#public-chat-input::placeholder,
#private-chat-input::placeholder {
    color: #8899A6 !important;
    opacity: 0.8 !important;
}

#public-chat-input::-webkit-input-placeholder,
#private-chat-input::-webkit-input-placeholder {
    color: #888 !important;
    opacity: 0.8 !important;
}

#public-chat-input::-moz-placeholder,
#private-chat-input::-moz-placeholder {
    color: #888 !important;
    opacity: 0.8 !important;
}

#public-chat-input:-ms-input-placeholder,
#private-chat-input:-ms-input-placeholder {
    color: #888 !important;
    opacity: 0.8 !important;
}

.typing-indicator {
    display: flex; /* Flex layout to align and center the elements perfectly */
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--gold) !important; /* Unified brand gold for both text and dots */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 24px !important;
    margin: 4px auto !important;
    opacity: 1 !important;
}

.typing-indicator.hidden {
    display: none !important;
}

.typing-indicator::before {
    content: "" !important;
    display: inline-block !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background-color: var(--gold) !important;
    margin-right: 20px !important; /* Pushes text to the right to leave space for all 3 dots */
    position: relative !important;
    top: 0px !important;
    animation: typing-bounce 1.4s infinite ease-in-out both !important;
    flex-shrink: 0 !important;
}

@keyframes typing-bounce {
    0%, 80%, 100% { 
        box-shadow: 8px 0 0 var(--gold), 16px 0 0 var(--gold);
        transform: translateY(0);
    }
    20% { 
        box-shadow: 8px 0 0 var(--gold), 16px 0 0 var(--gold);
        transform: translateY(-4px);
    }
    40% { 
        box-shadow: 8px -4px 0 var(--gold), 16px 0 0 var(--gold);
        transform: translateY(0);
    }
    60% { 
        box-shadow: 8px 0 0 var(--gold), 16px -4px 0 var(--gold);
        transform: translateY(0);
    }
}

.chat-notification {
    align-self: center;
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 15px;
    border-radius: 10px;
    margin: 5px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.send-pop-btn {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.send-pop-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.chat-flash-media {
    display: block;
    max-width: 150px;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gold) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 2px var(--gold);
    transition: 0.3s;
    font-size: 1.2rem;
    animation: flashPulse 2s infinite;
}

@keyframes flashPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.flash-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--gold);
}


.admin-dashboard h2 {
    color: #D4AF37 !important;
    text-align: center;
    margin: 20px 0;
    font-size: 1.8rem;
    display: block !important;
}



/* BIG INTERACTION EFFECTS */
.big-effect-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 8rem;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.animate-effect {
    animation: effectPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes effectPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    40% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* VIDEO MUTE BTN */
.video-mute-btn {
    position: absolute;
    top: 20px;
    right: 14.5px; /* Aligned with .feed-actions-sidebar */
    z-index: 101;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: 0.3s;
    color: white;
}

.video-mute-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
}

/* COMMENT MODAL (BOTTOM SHEET) */
.comment-sheet {
    z-index: 20001 !important;
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px 25px 0 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.comment-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 800;
}

.close-sheet {
    background: #f0f2f5;
    border: none;
    color: #536471;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.comment-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    padding: 20px;
}

.comment-item {
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    color: #1a1a1a;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 80%;
}

.comment-user {
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.comment-input-area {
    padding: 20px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-input-area input {
    flex: 1;
    background: white;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 25px;
    color: #1a1a1a;
    outline: none;
}

.comment-input-area input::placeholder {
    color: #94a3b8;
}

.comment-input-area button {
    background: #1d9bf0;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 25px;
    font-weight: 800;
    cursor: pointer;
}

.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* WATERMARK */
.watermark {
    position: absolute;
    bottom: 12px;
    left: 25px;
    font-size: 0.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

/* 10s MAX LABEL */
.limit-label {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: black;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 110;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* CAMERA MODAL */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-modal-content {
    width: 90%;
    max-width: 500px;
    background: #111;
    border-radius: 25px;
    padding: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.camera-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: black;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.camera-preview-container {
    width: 100%;
    aspect-ratio: 9/16;
    /* Format vertical type "Story" / Téléphone */
    max-height: 70vh;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

#camera-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Évite l'effet de zoom excessif */
    transform: scaleX(-1);
}

.camera-timer {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(231, 76, 60, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.camera-shutter-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

.camera-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.camera-action-btn {
    flex: 1;
    height: 60px;
    border-radius: 30px;
    border: none;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.camera-action-btn.photo {
    background: #fff;
    color: #333;
}

.camera-action-btn.video {
    background: var(--gold);
    color: black;
}

.camera-action-btn:active {
    transform: scale(0.95);
}

.recording {
    animation: pulseRecording 1.5s infinite;
    background: #e74c3c !important;
    color: white !important;
}

@keyframes pulseRecording {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* MODAL CHOICE (SUGGESTION 3) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    transition: opacity 0.3s;
}

.chat-choice-content {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid var(--gold);
    border-radius: 25px;
    padding: 30px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.choice-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-bottom: 15px;
    object-fit: cover;
}

#choice-modal-name {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.choice-tagline {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.choice-btn {
    padding: 15px;
    border-radius: 30px;
    border: none;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.choice-btn.gold {
    background: var(--gold);
    color: black;
}

.choice-btn.pulse {
    background: white;
    color: black;
    animation: pulseBtn 2s infinite;
}

.choice-close {
    background: none;
    border: none;
    color: #777;
    margin-top: 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

@keyframes pulseBtn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* PRIVATE CHAT SPECIFIC */
.private-chat-header {
    height: 70px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.private-chat-user {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.mini-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.private-chat-info {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}

.private-chat-info .name {
    color: white;
    font-weight: 800;
    font-size: 1rem;
}

.private-chat-info .status {
    color: var(--online);
    font-size: 0.75rem;
}


/* PRIVACY TOGGLES (PREMIUM) */
.privacy-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin: 5px 0;
}

.privacy-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gold);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: 0.2s;
}

.privacy-label input[type="checkbox"]:checked {
    background: var(--gold);
}

.privacy-label input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 16px;
    font-weight: 900;
}

/* =========================================
   ADMIN DASHBOARD TABS
   ========================================= */
.admin-tab-btn {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #888;
    text-align: left;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-tab-btn.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-section.hidden {
    display: none;
}

.lang-btn.active,
.freq-btn.active,
.admin-tab-btn.active {
    background: var(--gold) !important;
    color: black !important;
    border-color: var(--gold) !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.spice-btn {
    flex: 1;
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.spice-btn.active.soft {
    background: #27ae60 !important;
    color: white !important;
    border-color: #2ecc71 !important;
}

.spice-btn.active.flirty {
    background: #e67e22 !important;
    color: white !important;
    border-color: #f39c12 !important;
}

.spice-btn.active.spicy {
    background: #c0392b !important;
    color: white !important;
    border-color: #e74c3c !important;
}

#view-private-chat.hidden {
    display: none !important;
}

.send-btn-luxury:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.send-btn-luxury:active {
    transform: scale(0.95);
}

/* =========================================
   WIZZ MSN ANIMATION
   ========================================= */
.SHAKE-shaking {
    animation: wizz-shake 0.15s ease-in-out infinite;
}

@keyframes wizz-shake {
    0% {
        transform: translate(3px, 3px) rotate(0deg);
    }

    10% {
        transform: translate(-2px, -3px) rotate(-1deg);
    }

    20% {
        transform: translate(-4px, 1px) rotate(1deg);
    }

    30% {
        transform: translate(4px, 3px) rotate(0deg);
    }

    40% {
        transform: translate(2px, -2px) rotate(1deg);
    }

    50% {
        transform: translate(-2px, 3px) rotate(-1deg);
    }

    60% {
        transform: translate(-4px, 2px) rotate(0deg);
    }

    70% {
        transform: translate(4px, 2px) rotate(-1deg);
    }

    80% {
        transform: translate(-2px, -2px) rotate(1deg);
    }

    90% {
        transform: translate(2px, 3px) rotate(0deg);
    }

    100% {
        transform: translate(2px, -3px) rotate(-1deg);
    }
}

/* --- ANIMATIONS SHAKE VIBRANT --- */
.wizz-icon-vibrant {
    display: inline-block;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
    font-size: 1.6rem;
    color: #ffd700;
    /* Or vif */
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
}

@keyframes shakeIconMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-1px, 0.5px) rotate(-2deg);
    }

    50% {
        transform: translate(1px, -0.5px) rotate(2deg);
    }

    75% {
        transform: translate(-1px, -0.5px) rotate(-2deg);
    }

    100% {
        transform: translate(1px, 0.5px) rotate(2deg);
    }
}

#private-shake-btn:hover .wizz-icon-vibrant {
    animation: shakeIconMove 0.1s infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

#private-shake-btn:active .wizz-icon-vibrant {
    transform: scale(0.8);
}

#private-shake-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 75, 43, 0.6) !important;
    transition: 0.2s ease;
}

/* PREMIUM DARK THEME FOR MESSAGES & NOTIFICATIONS */
#view-messages,
#view-alerts,
#view-discovery {
    background-color: #0d0d0d !important;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #0d0d0d 100%) !important;
    color: white !important;
}

#view-messages .discovery-header,
#view-alerts .discovery-header,
#view-discovery .discovery-header {
    color: var(--gold) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    font-weight: 900;
    letter-spacing: 2px;
    padding: 25px 0 15px 0;
}

.lobby-name {
    color: white !important;
    font-weight: 700;
    white-space: nowrap !important;
}

.lobby-msg {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
}

.lobby-meta {
    color: rgba(255, 255, 255, 0.5) !important;
}

.lobby-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important;
}

.lobby-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* ONBOARDING STYLES */
#view-onboarding {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    /* Ne pas centrer sinon le slider complet se centre ! */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; height: 100dvh;
    background: #0d0d0d;
    overflow: hidden;
}

.onboarding-slider {
    display: flex;
    width: 600vw;
    /* 6 slides */
    height: 85vh;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.onboarding-slide {
    width: 100vw;
    flex: 0 0 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0.3;
    transition: opacity 0.4s;
}

.onboarding-slide.active {
    opacity: 1;
}

.onboarding-mockup {
    width: 70%;
    max-width: 300px;
    height: 60%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onboarding-slide h2 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.onboarding-slide p {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 85%;
}

.onboarding-controls {
    height: 15vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.onboarding-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-dots {
    display: flex;
    gap: 10px;
}

.onboarding-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.onboarding-dots .dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.onboarding-start-btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: black;
    border: none;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    animation: pulseGold 2s infinite;
}

/* --- ONBOARDING INSTALL AREA --- */
.install-area {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90%;
    max-width: 400px;
    display: none;
    /* Piloté par JS */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.install-btn-premium {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: black;
    border: none;
    border-radius: 15px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s;
}

.install-btn-premium:active {
    transform: scale(0.96);
}

.ios-instructions {
    width: 100%;
    text-align: center;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #eee;
    text-align: left;
}

/* --- BOUTON FLOTTANT (MUR) --- */
/* Ancien bouton supprimé v112 */

@keyframes animatePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pop {
    animation: animatePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* --- CUSTOM CONFIRM MODAL --- */
.animate-pop {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#custom-confirm-modal .confirm-card {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    backdrop-filter: blur(20px);
}

#custom-confirm-modal button:active {
    transform: scale(0.95);
}




/* CUSTOM APP ALERT */
#custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
    transition: opacity 0.3s ease;
}

#custom-alert-content {
    background: linear-gradient(135deg, #222, #111);
    border: 1px solid var(--gold);
    width: 85%;
    max-width: 400px;
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#custom-alert-overlay:not(.hidden) #custom-alert-content {
    transform: scale(1);
}

.custom-alert-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.custom-alert-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #eee;
    margin-bottom: 25px;
    font-weight: 500;
}

.custom-alert-btn {
    width: 100%;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.2s ease;
}

.custom-alert-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
}

/* --- ANIMATION EMOJIS FLOTTANTS --- */
@keyframes emojiFloatUp {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(-10vh) scale(1.2);
    }

    100% {
        transform: translateY(-90vh) scale(1);
        opacity: 0;
    }
}

.floating-emoji {
    position: fixed;
    bottom: 100px;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 2000000;
    animation: emojiFloatUp 2.5s ease-out forwards;
}



/* NEW BOTTOM SHEET MEDIA MODAL */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999999 !important;
    display: flex;
    align-items: flex-end;
    transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.hidden {
    display: none;
    opacity: 0;
}

.bottom-sheet-content {
    width: 100%;
    background: #273340 !important; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4) !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    animation: slideUp 0.3s forwards ease-out;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.bottom-sheet-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.bottom-sheet-drag-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px;
    margin-bottom: 15px;
}

.bottom-sheet-header h3 {
    margin: 0;
    color: #FFFFFF !important;
    font-size: 1.2rem;
    font-weight: 500;
}

.bottom-sheet-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.media-option-btn {
    position: relative;
    width: 100%;
    background: #253341 !important;
    border: 1px solid #38444D !important;
    border-radius: 0px !important;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFFFFF !important;
    font-size: 1.1rem;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s;
}

.media-option-btn:hover {
    background: #35475a !important;
}

.media-option-btn input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.media-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.media-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.media-cancel-btn {
    margin-top: 10px;
    width: 100%;
    background: transparent;
    border: none;
    color: #ff4b2b;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
}

/* BADGES DE NAVIGATION */
.nav-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 18px;
    height: 18px;
    background: #ff4757;
    color: white !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    border-radius: 50%;
    pointer-events: none;
    border: 2.5px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    z-index: 10;
    line-height: 1;
}

.nav-badge.hidden {
    display: none;
}

/* POINT VERT EN LIGNE (STABLE) */
.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--online);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(22, 160, 133, 0.5);
}

.offline-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--offline);
    border-radius: 50%;
}

/* --- WAVE EFFECT --- */
.wave-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; height: 100dvh;
    background: rgba(225, 242, 233, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000 !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wave-overlay.active {
    opacity: 1;
}

.wave-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 15rem;
    filter: drop-shadow(0 0 40px rgba(46, 204, 113, 0.6));
    line-height: 1;
}

.wave-overlay.active .wave-emoji {
    animation: waveAction 1.5s ease-in-out forwards;
}

@keyframes waveAction {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
        opacity: 1;
    }

    35% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-15deg);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(15deg);
        opacity: 1;
    }

    65% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-15deg);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -50%) scale(1.1) rotate(15deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3) rotate(0deg);
        opacity: 0;
    }
}



#view-private-chat {
    position: relative;
    padding-bottom: 0 !important;
}

#private-chat-messages {
    position: absolute;
    top: 60px;
    /* Header height */
    left: 0;
    width: 100%;
    height: calc(100% - 250px) !important;
    /* On laisse de la place pour tout le reste */
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    padding-bottom: 20px;
}

/* On groupe les boutons et la zone de texte tout en bas au-dessus de la nav bar */
#private-chat-bottom-area {
    position: absolute;
    bottom: 0;
    /* Nav bar height */
    left: 0;
    width: 100%;
    background: #f2e9e1;
    /* Fond crï¿½me */
    padding: 10px 5px;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

/* Bouton Caméra Central dans la Nav */
.nav-camera-btn {
    position: relative;
    top: 0;
    /* Centrage */
    background: transparent !important;
}

.nav-camera-circle {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, var(--gold) 0%, #B8860B 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    border: 2px solid #1a1a1a;
    transition: transform 0.2s;
}

.nav-camera-btn:active .nav-camera-circle {
    transform: scale(0.9);
}

.nav-camera-circle.gray-mode {
    background: #657786 !important;
    box-shadow: none !important;
    border: 2px solid #536471 !important;
    pointer-events: none !important;
}

.bottom-nav .nav-item {
    flex: 1;
    min-width: 0;
}

.nav-group {
    display: flex;
    flex: 2;
    justify-content: space-evenly;
    align-items: center;
}

.nav-camera-btn {
    flex: 0 0 70px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1001;
}

.nav-item label {
    font-size: 0.72rem !important;
    /* Plus petit pour tenir à 3 */
}







/* Masquage de la flche de retour sur mobile (demand v241) */
@media (max-width: 768px) {
    #header-back-btn {
        display: none !important;
    }
}

/* --- DÉCOMPTE VIDÉO --- */
.video-countdown {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    pointer-events: none;
    animation: countPulseSoft 1.2s infinite;
}

.video-countdown.hidden {
    display: none !important;
}

@keyframes countPulseSoft {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* DESACTIVATION DU PULL-TO-REFRESH (DEMANDE v242) */
html,
body {
    overscroll-behavior-y: none !important;
}

.view {
    overscroll-behavior-y: none !important;
}



/* --- RESPONSIVE ADMIN DASHBOARD (V2 - Two Rows Mobile) --- */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column !important;
        width: 100% !important;
        height: 100vh !important; height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .admin-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border-right: none !important;
        border-bottom: 2px solid #D4AF37 !important;
        flex-direction: column !important;
        /* Stack rows */
        padding: 0 !important;
        display: flex !important;
        background: #0a0a0a !important;
    }

    .admin-sidebar h3 {
        display: none !important;
    }

    /* Row 1: The tabs (scrollable) */
    .admin-sidebar .admin-tab-btn {
        display: none !important;
        /* Hide direct children */
    }

    /* We need to allow the tabs to be visible. My previous CSS hid them or they were squeezed.
       Actually, in the HTML, they are direct children. Let's make them visible and scrollable. */

    .admin-sidebar {
        overflow: visible !important;
    }

    /* Wrap tabs in a scrollable row */
    /* Wait, I can't wrap them without changing HTML. 
       Let's use a better flex strategy for direct children. */

    /* All buttons and the exit-div are direct children of .admin-sidebar */

    .admin-sidebar {
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    /* Tabs Row */
    .admin-sidebar>.admin-tab-btn {
        display: flex !important;
        grid-row: 1;
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 12px 15px !important;
        margin: 0 !important;
        border-bottom: 1px solid #222 !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* Wait, grid-row: 1 on all of them will stack them? No.
       Let's use a simpler flex-wrap or two containers if possible.
       Since I can't easily change HTML structure without risk, 
       I will make the sidebar a flex-wrap container. */

    .admin-sidebar {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        max-height: 250px !important;
    }

    .admin-sidebar .admin-tab-btn {
        display: flex !important;
        width: 33.33% !important;
        /* 3 tabs per row */
        height: 60px !important;
        padding: 5px !important;
        font-size: 0.7rem !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border: 1px solid #222 !important;
        box-sizing: border-box !important;
    }

    .admin-sidebar .admin-tab-icon {
        font-size: 1.2rem !important;
        margin-bottom: 2px !important;
    }

    /* Exit Buttons Row (The div) */
    .admin-sidebar div[style*="margin-top: auto"] {
        width: 100% !important;
        margin-top: 0 !important;
        flex-direction: row !important;
        padding: 10px !important;
        background: #111 !important;
        border-top: 1px solid #D4AF37 !important;
        display: flex !important;
        gap: 5px !important;
        order: 10 !important;
        /* Always last */
    }

    .admin-sidebar div[style*="margin-top: auto"] button {
        flex: 1 !important;
        margin-bottom: 0 !important;
        font-size: 0.65rem !important;
        padding: 8px 5px !important;
        height: 45px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .admin-main {
        flex: 1 !important;
        padding: 10px 10px 100px 10px !important;
    }
}

/* MODERN REFRESH ICON */
.modern-refresh-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.spinning {
    animation: spin-modern 1s linear infinite !important;
}

@keyframes spin-modern {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ONBOARDING & INSTALL GUIDE */
#onboarding-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.onboarding-slider {
    flex: 1;
    display: flex;
    transition: transform 0.5s ease-out;
    width: 100%;
}

.onboarding-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.onboarding-content {
    position: absolute;
    bottom: 250px;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: center;
    color: white;
}

.onboarding-content h2 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.onboarding-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.onboarding-dots {
    position: absolute;
    bottom: 230px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: 0.3s;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.install-area {
    background: #0a0a0a;
    padding: 20px;
    border-top: 1px solid #222;
    text-align: center;
}

.install-btn-premium {
    background: linear-gradient(135deg, var(--gold), #B8860B);
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.ios-instructions {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 15px;
    font-size: 0.8rem;
    color: #ccc;
    display: none;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    text-align: left;
}

.ios-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.skip-onboarding {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
    text-decoration: underline;
    cursor: pointer;
}

. i n s t a l l - a r e a    {
       p a d d i n g :    3 0 p x ;
       w i d t h :    1 0 0 % ;
       d i s p l a y :    f l e x ;
       f l e x - d i r e c t i o n :    c o l u m n ;
       a l i g n - i t e m s :    c e n t e r ;
       t r a n s i t i o n :    a l l   0 . 5 s   c u b i c - b e z i e r ( 0 . 4 ,    0 ,    0 . 2 ,    1 ) ;
       
}

     

/* --- MODERATION --- */
.moderation-pending {
    position: relative;
    filter: blur(15px) grayscale(1);
    pointer-events: none;
}

.moderation-pending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    padding: 10px;
}

.moderation-rejected {
    background: #c0392b !important;
    filter: grayscale(1) opacity(0.3) !important;
}

.moderation-pending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    padding: 10px;
}

.moderation-rejected {
    background: #c0392b !important;
    filter: grayscale(1) opacity(0.3) !important;
}/* FOOTER */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    height: calc(70px + env(safe-area-inset-bottom, 0px));
    background: rgba(30, 40, 51, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #324254 !important;
    z-index: 99999999 !important;

    padding: 0 5px env(safe-area-inset-bottom, 0px) 5px !important;
    justify-content: center !important;
}

.nav-item {
    background: none;
    border: none;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.nav-item.active {
    color: var(--gold);
}

/* PREMIUM CHAT UI UPGRADES */
.winks-chat-bottom {
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: 60px !important;
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff !important;
    border-top: 2px solid rgba(0,0,0,0.05) !important;
    z-index: 5000 !important;
    position: relative !important;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column !important;
}

.typing-indicator {
    position: absolute !important;
    top: -50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-weight: 800;
    color: var(--gold);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    white-space: nowrap !important;
    z-index: 4000 !important;
    border: 1px solid rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideUpFade 0.3s ease-out;
}

.typing-indicator:not(.hidden) {
    display: flex !important;
}

.typing-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1s infinite;
}

@keyframes typingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes slideUpFade {
    from { transform: translate(-50%, 10px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.winks-chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-row {
    flex: 1;
    display: flex;
    align-items: center;
    background: #FFFFFF !important;
    border: 1px solid #D8DEE2 !important;
    border-radius: 8px !important;
    padding: 4px 4px 4px 15px;
    box-shadow: none !important;
    transition: all 0.3s;
}

.chat-input-row:focus-within {
    border-color: #D4AF37 !important;
    box-shadow: none !important;
}

.chat-input-row input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #0F1419 !important;
    padding: 8px 0 !important;
    font-size: 0.95rem !important;
    outline: none !important;
    box-shadow: none !important;
}

.send-pop-btn {
    width: 38px;
    height: 38px;
    background: var(--gold);
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(212,175,55,0.3);
}

.send-pop-btn:active {
    transform: scale(0.9);
}

/* ANIMATION SHAKE POUR MODERATION */
.shake-element {
    animation: winks-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    border-color: #e74c3c !important;
}

@keyframes winks-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ANIMATION EMOJI GEANT (Clin d'oeil, Rose, etc.) */
.giant-emoji-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000 !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.giant-emoji-overlay.active {
    opacity: 1;
}
.giant-emoji-content {
    font-size: 0px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.giant-emoji-overlay.active .giant-emoji-content {
    font-size: 200px;
    transform: rotate(10deg);
}


/* WINKSME LUXURY NOIR & OR OVERLAY RULES */
.premium-chat-form, .winks-chat-form, .typing-indicator, .chat-notification, .action-btn-mini {
    border-radius: 0px !important;
}
.chat-input-row, .send-pop-btn {
    border-radius: 8px !important;
}
.mini-avatar {
    border-radius: 8px !important;
}
.chat-notification {
    background: rgba(212, 175, 55, 0.05) !important;
    border-left: 3px solid #D4AF37 !important;
    color: #D4AF37 !important;
    text-shadow: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}
.chat-flash-media, .chat-image-wrap, .chat-msg-img, .chat-msg-video, .chat-media-wrapper img, .chat-media-wrapper video {
    border-radius: 8px !important;
}


/* WINKSME LUMINOUS LIGHT LUXURY APP RULES */
body {
    background-color: #f2e9e1 !important;
    color: #F5F8FA !important;
}
.section-title {
    color: #1E2833 !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.2px !important;
}
.logo {
    color: #FFFFFF !important;
}
.logo-highlight {
    color: #D4AF37 !important;
}
.nav-item label {
    color: #8899A6 !important;
}
.nav-item.active label {
    color: #D4AF37 !important;
}
.lobby-name {
    color: #0F1419 !important;
}
.lobby-msg {
    color: #536471 !important;
}
.lobby-meta {
    color: #536471 !important;
}
.app-header .header-center h1 {
    color: #FFFFFF !important;
}
.app-header .logo {
    color: #FFFFFF !important;
}
.chat-time {
    color: #8899A6 !important;
}


/* --- DISCOVERY VIEW PREMIUM MARBLED BACKGROUND --- */
#view-discovery {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.70)), /* Assombrit l'image */
        linear-gradient(#000, #000), /* Désature complètement pour avoir des veines blanches/grises */
        url('assets/premium_bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-blend-mode: normal, saturation, normal !important;
}
#view-discovery .section-title {
    color: #FFFFFF !important;
}


/* --- NOTIFICATIONS & MESSAGES PREMIUM HYPER-THIN BORDERS & WHITE TITLES --- */
#view-alerts .section-title,
#view-messages .section-title {
    color: #FFFFFF !important;
}

#view-alerts .lobby-item,
#view-messages .lobby-item {
    border: 0.5px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    margin-bottom: 8px !important;
}

#view-alerts .lobby-item:hover,
#view-messages .lobby-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}


/* --- NOTIFICATIONS & MESSAGES PREMIUM LOBBY TEXT VISIBILITY --- */
#view-alerts .lobby-name,
#view-messages .lobby-name {
    color: #FFFFFF !important;
}

#view-alerts .lobby-msg,
#view-messages .lobby-msg {
    color: rgba(255, 255, 255, 0.7) !important;
}

#view-alerts .lobby-meta,
#view-messages .lobby-meta {
    color: rgba(255, 255, 255, 0.5) !important;
}


/* --- NOTIFICATIONS & MESSAGES LIGHT LUXURY THEME --- */
#view-alerts,
#view-messages {
    background: #fdfbf7 !important; /* Blanc cassé */
}

#view-alerts .section-title,
#view-messages .section-title {
    color: #1E2833 !important;
}

#view-alerts .lobby-item,
#view-messages .lobby-item {
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: transparent !important;
    margin-bottom: 0px !important;
    border-radius: 0px !important;
    padding: 16px 20px !important;
    position: relative !important;
    transition: background 0.2s ease !important;
}

#view-alerts .lobby-item:hover,
#view-messages .lobby-item:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

#view-alerts .lobby-name,
#view-messages .lobby-name {
    color: #0F1419 !important; /* Texte foncé pour fond beige */
    font-weight: normal;
}

#view-alerts .lobby-msg,
#view-messages .lobby-msg {
    color: #536471 !important;
    font-weight: 400;
}

#view-alerts .lobby-meta,
#view-messages .lobby-meta {
    color: #8899A6 !important;
    margin-right: 18px !important;
}


.share-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-sheet-content {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999999999 !important;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.share-sheet-content.active {
    transform: translate(-50%, 0);
}

.share-sheet-handle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    cursor: grab;
}

.share-sheet-handle-container:active {
    cursor: grabbing;
}

.share-sheet-handle {
    width: 40px;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
}

.share-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.share-sheet-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f1419;
}

.share-sheet-close-btn {
    background: #f5f8fa;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #536471;
    transition: background 0.2s;
}

.share-sheet-close-btn:hover {
    background: #e1e8ed;
}

.share-sheet-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(85vh - 80px);
}

.share-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #536471;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.share-favorites-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 12px 4px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
}

.share-favorites-row::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.share-fav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    width: 68px;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.1s;
}

.share-fav-item:active {
    transform: scale(0.92);
    opacity: 0.8;
}

.share-fav-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: #f5f8fa;
}

.share-fav-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f1419;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.share-divider {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}

.share-search-box {
    position: relative;
    width: 100%;
}

.share-search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    background: #f5f8fa;
    color: #0f1419;
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.share-search-box input:focus {
    border-color: #1d9bf0;
    background: #ffffff;
}

.share-friends-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.share-friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.share-friend-item:hover {
    background-color: rgba(29, 155, 240, 0.05);
}

.share-friend-item:active {
    background-color: rgba(29, 155, 240, 0.1);
}

.share-friend-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.share-friend-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f8fa;
}

.share-friend-name {
    font-weight: 700;
    color: #0f1419;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-friend-btn {
    background: #1d9bf0;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
}

.share-friend-btn:hover {
    background: #1a8cd8;
}

/* Bouton Partage Externe */
.share-external-container {
    padding-top: 5px;
}

.share-external-btn {
    width: 100%;
    background: #f5f8fa;
    border: 1px solid rgba(0,0,0,0.05);
    color: #0f1419;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    box-sizing: border-box;
}

.share-external-btn:hover {
    background: #e1e8ed;
}

.share-external-btn:active {
    transform: scale(0.98);
}

.share-external-icon {
    font-size: 1.1rem;
}

/* Toast de confirmation */
.share-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1d9bf0;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(29, 155, 240, 0.3);
    z-index: 1000000000 !important;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* LIGHT THEME FOR EDIT PROFILE */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
}
.ios-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .ios-slider {
  background-color: #0f766e !important; /* Violet */
}
input:checked + .ios-slider:before {
  transform: translateX(20px);
}
.ios-slider.round {
  border-radius: 26px;
}
.ios-slider.round:before {
  border-radius: 50%;
}

.edit-form-light {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 150px;
}

.form-card-light {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-card-light label.section-label {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    margin-bottom: 12px !important;
    display: block !important;
    text-transform: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background: transparent !important;
}

.input-light {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 15px;
    border-radius: 12px;
    color: #1a1a1a !important;
    font-size: 1rem;
    outline: none;
    font-weight: 500;
    transition: border-color 0.2s;
}
.input-light:focus {
    border-color: #0f766e;
}

.tag-pill-light {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
    font-weight: 700;
}
.tag-pill-light:has(input:checked) {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
}
.tag-pill-light input {
    display: none;
    transform: scale(1.2);
}

.light-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e8ed;
    outline: none;
}
.light-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0f766e !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-primary-light {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: #0f766e !important;
    color: white !important;
    border: none;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.25);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary-light:active {
    transform: scale(0.98);
}

.btn-secondary-light {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: #f8f9fa !important;
    color: #536471 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger-light {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: transparent !important;
    color: #e74c3c !important;
    border: 1px solid #e74c3c !important;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

#age-display-badge, #height-display-badge, #weight-display-badge {
    background: #ffffff !important;
    color: #0f766e !important;
    border: 1px solid #0f766e !important;
}

#edit-profile-title {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* FINAL FIX FOR VISIBILITY AND BACKGROUND */
#view-edit-profile {
    background: #f0f2f5 !important;
}

.edit-form-light .tag-pill-light,
.edit-form-light .tag-pill-light * {
    color: #1a1a1a !important;
}

.edit-form-light .tag-pill-light:has(input:checked),
.edit-form-light .tag-pill-light:has(input:checked) * {
    color: #ffffff !important;
}

.edit-form-light label, 
.edit-form-light .section-label,
.edit-form-light h1, 
.edit-form-light h2, 
.edit-form-light h3, 
.edit-form-light p {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.edit-form-light input[type="text"],
.edit-form-light input[type="date"],
.edit-form-light textarea {
    color: #1a1a1a !important;
}

.edit-form-light .description {
    color: #536471 !important;
}






/* ONBOARDING TOOLTIPS */
.onboarding-tooltip {
    position: absolute;
    background: #1E2833;
    color: white;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.4);
    max-width: 250px;
    text-align: center;
    pointer-events: none;
    animation: tooltipFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.onboarding-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.onboarding-tooltip.pos-bottom::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--gold);
}

.onboarding-tooltip.pos-top::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--gold);
}

.onboarding-tooltip.pos-right::after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--gold);
}

.onboarding-tooltip.pos-left::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--gold);
}

.onboarding-tooltip.fade-out {
    animation: tooltipFadeOut 0.5s forwards;
}

@keyframes tooltipFadeIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tooltipFadeOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

/* --- CARROUSEL VEDETTE --- */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.featured-card {
    border: 2px solid var(--gold) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
    transform: scale(1);
    transition: transform 0.2s;
}
.featured-card:hover {
    transform: scale(1.02);
}

