:root {
    --gold: #D4AF37;
    --bg-default: #1a1a1a;
    --accent-male: #2c3e50;
    /* Steel Blue / Grey */
    --accent-female: #fdf2f2;
    --online: #2ecc71;
    --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;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    transition: all 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.6) 30%, transparent 100%);
}

body.theme-male .wink-btn {
    background: #34495e;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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;
}

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

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

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

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

#app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
    animation: fadeIn 0.4s ease-out;
    /* Cache la barre de défilement */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.view::-webkit-scrollbar {
    display: none;
}

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

.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(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.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 30px 15px;
}

.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;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
}

/* PROFILE HERO */
.profile-hero {
    width: 100%;
    height: 650px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.profile-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.profile-hero-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 120px 25px 20px 25px;
    pointer-events: none;
}

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

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

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
}

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

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

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

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

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

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

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

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

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

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

.detail-line .icon {
    width: 30px;
    margin-right: 12px;
}

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

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

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

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

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

/* FOOTER */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2000;
}

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

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

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

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

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

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

/* HOME PORTAL UPGRADE */
.home-portal {
    height: 100vh;
    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: 0;
    left: 0;
    width: 1px;
    height: 1px;
    z-index: -1;
    pointer-events: none;
}

/* PILLS */
.tags-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px 30px;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    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: var(--gold);
    border-color: rgba(212, 175, 55, 0.3);
}

/* 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: 10000;
    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;
}

.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;
}

.lobby-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.lobby-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lobby-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lobby-item.online .lobby-avatar {
    border-color: 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, #view-private-chat, .chat-messages.private {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    padding: 0;
    position: relative;
    background-color: #f2e9e1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250' viewBox='0 0 250 250'%3E%3Cdefs%3E%3Cg id='W'%3E%3Crect x='-10' y='-10' width='20' height='20' rx='5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-6 -4l4 8 2-4 2 4 4-8' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.8' stroke-opacity='0.35'%3E%3C!-- SAFE SPACED SEAMLESS PATTERN --%3E%3C!-- ROW 1 --%3E%3Cuse href='%23W' transform='translate(45,35) rotate(15) scale(0.7)'/%3E%3Cuse href='%23W' transform='translate(105,30) rotate(-10) scale(1.1)'/%3E%3Cuse href='%23W' transform='translate(165,40) rotate(45) scale(0.6)'/%3E%3Cuse href='%23W' transform='translate(225,35) rotate(-5) scale(0.9)'/%3E%3C!-- ROW 2 --%3E%3Cuse href='%23W' transform='translate(15,85) rotate(80) scale(0.8)'/%3E%3Cuse href='%23W' transform='translate(265,85) rotate(80) scale(0.8)'/%3E%3C!-- WRAP --%3E%3Cuse href='%23W' transform='translate(75,90) rotate(-15) scale(1.2)'/%3E%3Cuse href='%23W' transform='translate(135,80) rotate(25) scale(0.7)'/%3E%3Cuse href='%23W' transform='translate(195,95) rotate(-5) scale(1)'/%3E%3C!-- ROW 3 --%3E%3Cuse href='%23W' transform='translate(45,145) rotate(-45) scale(0.6)'/%3E%3Cuse href='%23W' transform='translate(105,155) rotate(110) scale(1.3)'/%3E%3Cuse href='%23W' transform='translate(165,140) rotate(-20) scale(0.8)'/%3E%3Cuse href='%23W' transform='translate(225,160) rotate(15) scale(0.7)'/%3E%3C!-- ROW 4 --%3E%3Cuse href='%23W' transform='translate(15,200) rotate(30) scale(0.5)'/%3E%3Cuse href='%23W' transform='translate(265,200) rotate(30) scale(0.5)'/%3E%3C!-- WRAP --%3E%3Cuse href='%23W' transform='translate(75,195) rotate(-60) scale(1)'/%3E%3Cuse href='%23W' transform='translate(135,210) rotate(10) scale(0.6)'/%3E%3Cuse href='%23W' transform='translate(195,200) rotate(-15) scale(1.2)'/%3E%3C!-- ROW 5 --%3E%3Cuse href='%23W' transform='translate(45,245) rotate(-10) scale(0.8)'/%3E%3Cuse href='%23W' transform='translate(45,-5) rotate(-10) scale(0.8)'/%3E%3C!-- VERT WRAP --%3E%3Cuse href='%23W' transform='translate(105,250) rotate(45) scale(0.6)'/%3E%3Cuse href='%23W' transform='translate(105,0) rotate(45) scale(0.6)'/%3E%3C!-- VERT WRAP --%3E%3Cuse href='%23W' transform='translate(165,240) rotate(-30) scale(1.1)'/%3E%3Cuse href='%23W' transform='translate(165,-10) rotate(-30) scale(1.1)'/%3E%3C!-- VERT WRAP --%3E%3Cuse href='%23W' transform='translate(225,245) rotate(100) scale(0.5)'/%3E%3Cuse href='%23W' transform='translate(225,-5) rotate(100) scale(0.5)'/%3E%3C!-- VERT WRAP --%3E%3C/g%3E%3C/svg%3E");
}

#view-private-chat {
    height: 100vh !important; /* Full screen for private chat */
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    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: 10px;
}

.chat-bubble.user {
    align-self: flex-end !important;
    background: white !important;
    color: black !important;
    border-radius: 20px 20px 4px 20px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}

/* --- IMAGES DANS LE CHAT --- */
.chat-image-wrap {
    margin-top: 10px;
    max-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.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: 8px;
    display: block;
    background: #000;
}

.chat-bubble {
    background: white;
    padding: 12px 18px;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    align-self: flex-start;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    color: #333;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.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;
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.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: 12px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1000000;
    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);
    white-space: nowrap;
}

.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: 0.8;
    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;
}

.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: #b8860b;
    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 */
}

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

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

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

.flash-controls-group {
    display: flex;
    gap: 15px;
    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: #eee;
    font-size: 1rem;
    flex: 1;
    padding: 8px 0;
    outline: none;
}

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

#public-chat-input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

#public-chat-input::-webkit-input-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

#public-chat-input::-moz-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

#public-chat-input:-ms-input-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

.typing-indicator {
    font-size: 0.9rem !important;
    color: #8B4513 !important;
    /* BRONZE FONCÉ POUR VISIBILITÉ */
    font-weight: 700 !important;
    font-style: italic !important;
    margin-bottom: 12px !important;
    padding-left: 10px !important;
    text-shadow: none !important;
    display: block;
}

.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);
}

.typing-indicator {
    padding: 5px 15px;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--gold);
    opacity: 0.8;
    min-height: 25px;
}

/* FEED TIKTOK STYLE */
.feed-container {
    height: calc(100vh - 140px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background: #000;
}

.feed-item {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 500px;
    /* Centered on desktop */
    margin: 0 auto;
    scroll-snap-align: start;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feed-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-media-container img,
.feed-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Voir tout sans zoom excessif */
}

.feed-overlay-bottom {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 1);
    pointer-events: none;
}

.feed-username {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
    pointer-events: auto;
    cursor: pointer;
}

.feed-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.feed-comments-preview {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 85%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-comment {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.mini-comment strong {
    color: var(--gold);
    margin-right: 4px;
}

.view-all-comments {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
    font-style: italic;
}

.feed-actions-sidebar {
    position: absolute;
    top: 50%;
    transform: translateY(-60%); /* Remonté pour éviter le bouton 📸 */
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
    align-items: center;
}

.feed-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.feed-action-count {
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
    transition: 0.3s;
}

.feed-action-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: 0.2s;
    color: white;
}

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

.feed-action-count {
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.feed-action-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.5);
}

/* 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: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* VIDEO MUTE BTN */
.video-mute-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 30;
    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 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: rgba(15, 15, 15, 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(212, 175, 55, 0.3);
}

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

.comment-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gold);
}

.close-sheet {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
}

.comment-list {
    flex: 1;
    overflow-y: auto;
    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: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 80%;
}

.comment-user {
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 4px;
    font-size: 0.8rem;
}

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

.comment-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    outline: none;
}

.comment-input-area button {
    background: var(--gold);
    color: black;
    border: none;
    padding: 0 20px;
    border-radius: 25px;
    font-weight: bold;
    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: 15px;
    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: 6000;
    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: '✓';
    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
   ========================================= */
.wizz-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;
}

.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;
    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;
}

/* --- BOUTON FLOTTANT (MUR) --- */
.feed-fab {
    position: fixed;
    bottom: 120px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    border: none;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    cursor: pointer;
    z-index: 500;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feed-fab:active {
    transform: scale(0.9);
}

@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;
}
@ k e y f r a m e s   s c a n L i n e   {   0 %   {   t o p :   - 1 0 % ;   }   1 0 0 %   {   t o p :   1 1 0 % ;   }   }   . a v a t a r - s c a n - l i n e   {   p o s i t i o n :   a b s o l u t e ;   w i d t h :   1 0 0 % ;   h e i g h t :   2 p x ;   b a c k g r o u n d :   v a r ( - - g o l d ) ;   o p a c i t y :   0 . 5 ;   b o x - s h a d o w :   0   0   1 0 p x   v a r ( - - g o l d ) ;   a n i m a t i o n :   s c a n L i n e   3 s   l i n e a r   i n f i n i t e ;   p o i n t e r - e v e n t s :   n o n e ;   }  
 