body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #050505; color: #ffffff;
    display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
}

/* Splash Screen */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #050505; display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.logo-container { text-align: center; animation: fadeInScale 1s ease-out; }
.splash-logo { width: 120px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)); }
.loader-line { width: 80px; height: 2px; background: linear-gradient(90deg, transparent, #ffcc00, transparent); margin: 20px auto 0; position: relative; overflow: hidden; }
.loader-line::after { content: ''; position: absolute; left: -100%; width: 100%; height: 100%; background: #ffffff; animation: loading 1.5s infinite; }
@keyframes loading { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes fadeInScale { 0% { opacity: 0; transform: scale(0.8); filter: blur(10px); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
#splash-screen.fade-out { opacity: 0; transition: opacity 0.8s ease; }

/* Auth Overlay */
.auth-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #050505; display: flex; justify-content: center; align-items: center;
    z-index: 900; opacity: 0; visibility: hidden; transition: all 0.8s ease;
}
.auth-overlay.visible { opacity: 1; visibility: visible; }
.auth-modal {
    width: 90%; max-width: 380px; padding: 30px; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px); transition: all 0.8s ease; position: relative;
}
.auth-overlay.visible .auth-modal { transform: translateY(0); }
.close-auth {
    position: absolute; top: 15px; right: 15px; background: transparent; border: none;
    color: #444; font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
}
.close-auth:hover { color: #ffffff; transform: rotate(90deg); }
.auth-logo { width: 60px; margin-bottom: 20px; }
.auth-title { font-size: 1rem; letter-spacing: 3px; color: #ffffff; margin-bottom: 10px; font-weight: 700; }
.auth-subtitle { font-size: 0.75rem; color: #888; margin-bottom: 25px; letter-spacing: 1px; }
#google-btn-container { display: flex; justify-content: center; margin-bottom: 20px; min-height: 40px; }

.other-auth-options { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.other-auth-btn { background: transparent; border: 1px solid #333; color: #888; padding: 10px 20px; border-radius: 30px; font-size: 0.7rem; cursor: pointer; transition: all 0.3s; width: 100%; letter-spacing: 1px; }
.other-auth-btn:hover { border-color: #ffffff; color: #ffffff; background: rgba(255,255,255,0.05); }

.auth-explanation { font-size: 0.6rem; color: #555; line-height: 1.4; letter-spacing: 1px; margin-top: 20px; text-align: justify; }

/* Main Content */
.main-content { opacity: 0; transform: translateY(20px); transition: all 1s ease; display: none; width: 100%; }
.main-content.visible { opacity: 1; transform: translateY(0); display: flex; }

/* Language Selector */
.language-wrapper { position: absolute; top: 20px; right: 20px; z-index: 100; }
.language-selector { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 30px; transition: all 0.3s ease; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); }
.language-selector i { font-size: 0.8rem; color: #888; }
.language-selector span { font-size: 0.65rem; font-weight: 600; color: #888; letter-spacing: 1px; }
.language-selector:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.language-selector:hover i, .language-selector:hover span { color: #ffffff; }

.language-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 220px; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; }
.language-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-list { max-height: 200px; overflow-y: auto; padding: 8px 0; }
.lang-list::-webkit-scrollbar { width: 4px; }
.lang-list::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.lang-item { padding: 10px 18px; font-size: 0.7rem; color: #777; cursor: pointer; transition: all 0.2s; letter-spacing: 1px; }
.lang-item:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; padding-left: 22px; }
.lang-item.active { color: #ffcc00; font-weight: 600; }
.lang-footer { padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.footer-gradient-text { font-size: 0.55rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; background: linear-gradient(90deg, #ffffff 0%, #ffcc00 50%, #00aaff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Header & Sidebar */
.container { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1200px; padding: 20px; }
.header { text-align: center; margin-bottom: 40px; }

/* Nouveau Style Titre Pro avec Dégradé Rouge/Bleu/Noir Animé */
.pro-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(
        90deg,
        #8b0000 0%,
        #0055ff 25%,
        #000000 50%,
        #0055ff 75%,
        #8b0000 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(255,255,255,0.05));
    animation: textNeon 4s linear infinite, titleGlow 3s ease-in-out infinite alternate;
}

@keyframes textNeon {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 5px 15px rgba(255,255,255,0.05)); }
    to { filter: drop-shadow(0 5px 25px rgba(0, 85, 255, 0.2)); }
}

.gradient-text { font-size: 1.2rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 8px; background: linear-gradient(90deg, #ffffff 0%, #ffcc00 50%, #ff3300 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header p { color: #555; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; font-size: 0.65rem; }

/* Navigation Launcher Style (The Box) */
.nav-launcher {
    cursor: pointer;
    perspective: 1000px;
    margin-top: 20px;
    transition: all 0.5s ease;
}

.launcher-box {
    width: 200px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.launcher-box:hover {
    transform: rotateX(10deg) rotateY(10deg) translateY(-10px);
    border-color: #ffcc00;
    box-shadow: 0 30px 70px rgba(255, 204, 0, 0.1);
}

.launcher-icon {
    font-size: 2.5rem;
    color: #ffcc00;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.3));
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.launcher-box span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #888;
    text-align: center;
}

.nav-launcher.closing {
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
    pointer-events: none;
}

/* Sidebar Animation */
.sidebar {
    display: none;
    gap: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-box {
    width: 75px;
    height: 75px;
    background-color: #050505;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
}

/* Animated Border for Sidebar Icons */
.icon-box::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(
        #8b0000, /* Dark Red */
        #0055ff, /* Blue */
        #000000, /* Black */
        #8b0000
    );
    animation: rotateNeon 4s linear infinite;
    z-index: 1;
}

.icon-box::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #050505;
    border-radius: 15px;
    z-index: 2;
}

.nav-item i {
    font-size: 2.2rem;
    color: #ffffff;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
    position: absolute;
    bottom: -20px;
    white-space: nowrap;
}

.nav-item.show-name span {
    opacity: 1;
    transform: translateY(0);
}

.nav-item:hover .icon-box {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 85, 255, 0.2);
}
.nav-item:hover i { color: #ffcc00; }

/* Overlays Base */
.overlay-base {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 2000;
}
.overlay-base.active { opacity: 1; visibility: visible; }

/* Modal Base */
.modal-base {
    background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); position: relative;
    transform: scale(0.95); transition: all 0.4s ease;
    max-height: 90vh; overflow-y: auto; width: 90%;
}
.overlay-base.active .modal-base { transform: scale(1); }
.modal-base::-webkit-scrollbar { width: 5px; }
.modal-base::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }

/* Settings */
.settings-modal { width: 90%; max-width: 360px; padding: 25px; }
.user-profile-section { text-align: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.user-bubble { width: 70px; height: 70px; background: #111; border-radius: 50%; margin: 0 auto 12px; display: flex; justify-content: center; align-items: center; border: 2px solid #ffcc00; overflow: hidden; }
.user-bubble img { width: 100%; height: 100%; object-fit: cover; }
.user-bubble i { font-size: 2rem; color: #333; }
.user-info span { font-size: 0.85rem; color: #fff; letter-spacing: 0.5px; font-weight: 500; }
.settings-options { display: flex; flex-direction: column; gap: 8px; }
.settings-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(255,255,255,0.02); border-radius: 10px; cursor: pointer; font-size: 0.7rem; letter-spacing: 1.5px; color: #777; transition: all 0.3s; }
.settings-item i { font-size: 0.9rem; color: #555; width: 18px; text-align: center; }
.settings-item:hover { background: rgba(255,255,255,0.05); color: #fff; transform: translateX(3px); }
.settings-item.logout { margin-top: 8px; color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.1); }

/* Chat */
.chat-modal { width: 90%; max-width: 420px; height: 80vh; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.chat-header { padding: 15px 20px; background: #111; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; justify-content: space-between; align-items: center; z-index: 10; }
.chat-logo-small { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ffffff; }
.chat-info h3 { margin: 0; font-size: 0.9rem; font-weight: 600; }
.chat-info span { font-size: 0.65rem; color: #00ff88; }

.chat-body {
    flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px;
    background: url('images/back.png') no-repeat center center;
    background-size: cover;
    position: relative;
}
.chat-body::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 1;
}
.chat-body > * { position: relative; z-index: 2; }

/* Epinglé / Pin Message Chat */
.pinned-msg {
    margin: -5px -5px 10px -5px; padding: 12px 15px; border-radius: 12px;
    background: linear-gradient(135deg, #0055ff 0%, #ffcc00 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); position: sticky; top: 0; z-index: 10;
}
.pinned-content { display: flex; align-items: center; gap: 12px; }
.pinned-content i { font-size: 1rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.pinned-content p {
    margin: 0; font-size: 0.7rem; font-weight: 700; color: #fff;
    line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Design Bulle Pillule Pro */
.msg-wrapper { display: flex; align-items: flex-end; gap: 10px; max-width: 85%; }
.msg-wrapper.sent { align-self: flex-end; flex-direction: row-reverse; }
.msg-wrapper.received { align-self: flex-start; }

.msg-avatar { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); object-fit: cover; background: #222; flex-shrink: 0; }
.msg-bubble { padding: 10px 18px; border-radius: 20px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.4); cursor: pointer; user-select: none; -webkit-user-select: none; }

.msg-wrapper.sent .msg-bubble {
    background: linear-gradient(135deg, #0055ff, #ff6600);
    border-bottom-right-radius: 4px;
    color: #fff;
}

.msg-wrapper.received .msg-bubble {
    background: linear-gradient(135deg, #0a0a0a, #333333);
    border-bottom-left-radius: 4px;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.msg-name { display: block; font-size: 0.6rem; font-weight: 700; margin-bottom: 4px; color: #ffcc00; }
.msg-wrapper.sent .msg-name { text-align: right; color: #ffffffaa; }
.msg-text { font-size: 0.8rem; line-height: 1.4; word-break: break-word; }
.msg-text.is-sticker { font-size: 2.5rem; text-align: center; }

/* Traduire styling */
.msg-translate {
    display: inline-block; font-size: 0.55rem; color: #00aaff; margin-top: 5px; cursor: pointer;
    text-transform: lowercase; font-style: italic; opacity: 0.8;
}
.msg-translate:hover { opacity: 1; text-decoration: underline; }
.msg-wrapper.sent .msg-translate { color: #ffcc00; float: right; }

.msg-time { display: block; font-size: 0.55rem; color: #aaa; margin-top: 5px; clear: both; }
.msg-wrapper.sent .msg-time { text-align: right; color: #ffffff88; }

/* Message Action Menu */
.msg-menu {
    position: fixed; background: #111; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 8px; display: none; z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); backdrop-filter: blur(10px);
}
.msg-menu.active { display: block; animation: scaleIn 0.2s ease; }
.msg-menu-item {
    padding: 10px 15px; font-size: 0.75rem; color: #ccc; cursor: pointer;
    display: flex; align-items: center; gap: 10px; border-radius: 8px; transition: 0.2s;
}
.msg-menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.msg-menu-item.delete { color: #ff4444; }
.msg-menu-item.delete:hover { background: rgba(255,68,68,0.1); }

@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.chat-footer { padding: 15px; background: #0a0a0a; border-top: 1px solid rgba(255, 255, 255, 0.05); z-index: 10; position: relative; }
.input-wrapper { display: flex; align-items: center; gap: 12px; background: #151515; padding: 8px 15px; border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.08); }
.input-wrapper input { flex: 1; background: transparent; border: none; color: #fff; font-size: 0.8rem; outline: none; min-width: 0; }

/* Sticker Picker Pro */
.sticker-picker {
    position: absolute; bottom: calc(100% + 10px); left: 15px;
    width: 250px; background: #111; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px; padding: 15px; display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 100;
    backdrop-filter: blur(10px);
}
.sticker-picker.active { display: block; animation: slideInUp 0.3s ease; }
.sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sticker-item { font-size: 1.5rem; cursor: pointer; text-align: center; transition: transform 0.2s; padding: 5px; border-radius: 8px; }
.sticker-item:hover { transform: scale(1.3); background: rgba(255,255,255,0.05); }

/* Services */
.services-modal { width: 95%; max-width: 900px; padding: 40px 20px; background: transparent; border: none; box-shadow: none; }
.services-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 0 20px; }
.services-header h2 { font-weight: 300; letter-spacing: 4px; font-size: 1.2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }

/*
 * NEON ANIMATION SERVICE CARDS
 */
.service-card {
    background: #0a0a0a;
    border-radius: 15px;
    padding: 30px 15px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    overflow: hidden; /* For the neon effect */
    z-index: 1;
}
.service-card.locked {
    border-color: rgba(255,0,0,0.2);
}

.service-card::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        #ffcc00,
        #000000,
        transparent
    );
    animation: rotateNeon 4s linear infinite;
    z-index: -2;
}

.service-card.locked::before {
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        #ff0000,
        #8b0000,
        transparent
    );
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 3px; /* border thickness */
    background: #0a0a0a;
    border-radius: 12px;
    z-index: -1;
}

@keyframes rotateNeon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card:hover { transform: translateY(-5px); }
/* Hover enhances the neon glow */
.service-card:hover::before {
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        #ffea00,
        #000000,
        transparent
    );
    filter: drop-shadow(0 0 10px #ffcc00);
}
.service-card.locked:hover::before {
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        #ff3333,
        #000000,
        transparent
    );
    filter: drop-shadow(0 0 10px #ff0000);
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-content i { font-size: 2rem; color: #ffcc00; margin-bottom: 15px; display: block; }
.service-card.locked .service-content i { color: #ff4444; }
.service-content h3 { font-size: 0.7rem; letter-spacing: 1.5px; color: #888; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px;}
.service-card:hover .service-content h3 { color: #fff; }

.lock-icon { font-size: 0.6rem !important; color: #ff4444 !important; margin: 0 !important;}

/* Detail Modal */
.detail-modal { width: 90%; max-width: 480px; padding: 30px; }
.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
.detail-header h3 { margin: 0; font-weight: 600; letter-spacing: 2px; font-size: 0.9rem; color: #fff; }
.close-detail, .close-services, .close-settings { background: transparent; border: none; color: #555; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.close-detail:hover { color: #fff; }

.detail-message { color: #aaa; font-size: 0.8rem; line-height: 1.5; margin-bottom: 20px; }
.detail-message ul { list-style: none; padding: 0; margin: 15px 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.detail-message li { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; }
.detail-message li i { color: #ffcc00; font-size: 0.7rem; }

/* Professional Bubbles */
.country-bubble { background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 15px; transition: 0.3s; }
.option-title { font-size: 0.65rem; color: #555; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; font-weight: 700; }

.action-input-group { display: flex; align-items: center; gap: 10px; background: #000; padding: 5px 12px; border-radius: 8px; border: 1px solid #222; }
.action-input-group input { flex: 1; background: transparent; border: none; color: #fff; font-size: 0.8rem; padding: 8px 0; outline: none; }
.action-icon-btn { background: none; border: none; color: #ffcc00; cursor: pointer; padding: 5px; font-size: 1rem; display: flex; align-items: center; transition: 0.2s; }
.action-icon-btn:hover { transform: scale(1.1); color: #fff; }

#talentExpression { width: 100%; background: #000; border: 1px solid #222; border-radius: 8px; padding: 10px; color: #fff; font-size: 0.8rem; min-height: 60px; margin-bottom: 12px; resize: none; outline: none; }
.upload-placeholder { border: 1px dashed #333; padding: 15px; border-radius: 8px; text-align: center; cursor: pointer; transition: 0.3s; }
.upload-placeholder:hover { border-color: #00aaff; background: rgba(0,170,255,0.02); }

/* Result Style */
.talent-result-card { background: #000; border: 1px solid #00ff8822; padding: 15px; border-radius: 12px; margin-top: 20px; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.talent-result-card .user-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.meta-icon { width: 30px; height: 30px; background: #00ff8811; border: 1px solid #00ff8844; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #00ff88; font-size: 0.8rem; }
.meta-text h4 { margin: 0; font-size: 0.75rem; color: #fff; }
.meta-text span { font-size: 0.65rem; color: #666; }

.result-quote { font-size: 0.75rem; color: #bbb; font-style: italic; line-height: 1.4; border-left: 2px solid #00ff88; padding-left: 10px; margin: 10px 0; }
.result-img-preview { border-radius: 8px; overflow: hidden; margin-top: 10px; border: 1px solid #222; max-height: 120px; }
.result-img-preview img { width: 100%; height: 100%; object-fit: cover; }

.btn-primary { width: 100%; padding: 10px; background: #00aaff; color: #fff; border: none; border-radius: 8px; font-size: 0.75rem; font-weight: 700; cursor: pointer; letter-spacing: 1px; transition: 0.3s; }
.btn-primary:hover { background: #0088cc; box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3); }

.btn-outline { background: transparent; border: 1px solid #ffcc00; color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-outline:hover { background: #ffcc00; color: #000; }

.btn-pay { background: linear-gradient(135deg, #ff0000, #8b0000); border: none; padding: 12px; border-radius: 8px; color: #fff; font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: 0.3s; width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; }
.btn-pay:hover { box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); transform: scale(1.02); }

/* VIP PRO OPTIONS STYLE */
.vip-pro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-top: 20px; }
.vip-pro-card {
    background: #050505; border: 1px solid rgba(0, 255, 136, 0.2); border-radius: 15px;
    padding: 20px 10px; text-align: center; cursor: pointer; transition: all 0.4s ease;
    display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; overflow: hidden;
}
.vip-pro-card:hover { transform: translateY(-5px); border-color: #00ff88; box-shadow: 0 10px 25px rgba(0, 255, 136, 0.1); }
.vip-pro-icon-container { position: relative; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 12px; }
.vip-pro-icon-bg {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, #ffcc00, transparent, #ffcc00);
    animation: rotateNeon 4s linear infinite; z-index: 1; opacity: 0.3;
}
.vip-pro-card:hover .vip-pro-icon-bg { opacity: 0.8; }
.vip-pro-icon-container::after { content: ''; position: absolute; inset: 2px; background: #050505; border-radius: 10px; z-index: 2; }
.vip-pro-icon { font-size: 1.8rem; color: #fff; z-index: 3; position: relative; transition: 0.3s; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));}
.vip-pro-card:hover .vip-pro-icon { transform: scale(1.1); color: #00ff88; filter: drop-shadow(0 0 10px #00ff88);}
.vip-pro-card h4 { margin: 0; font-size: 0.75rem; color: #fff; letter-spacing: 1px; font-weight: 800; z-index: 3;}
.vip-pro-card p { margin: 0; font-size: 0.55rem; color: #aaa; z-index: 3; line-height: 1.3;}

/* SDI TV PLAYER PRO STYLING */
#tv-player-container {
    width: 100%; border-radius: 15px; overflow: hidden;
    background: #000; aspect-ratio: 16/9; position: relative;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.3); /* Lueur initiale bleue */
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

/* Lueur Pro Animée VIP 2 */
.vip2-glow {
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.4) !important;
    border: 2px solid #ffcc00 !important;
}

.tv-channels-wrapper {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px 15px 5px;
    scrollbar-width: none;
}
.tv-channels-wrapper::-webkit-scrollbar { display: none; }

.channel-btn-pro {
    flex: 0 0 auto;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 30px;
    color: #ffcc00;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.channel-btn-pro:hover {
    background: rgba(255, 204, 0, 0.15);
    border-color: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.2);
}

.channel-btn-pro.active {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

/* VIP Options Styling */
.vip-option-link {
    display: flex; align-items: center; gap: 15px; padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; text-decoration: none; color: #fff; transition: all 0.3s ease;
}
.vip-option-link:hover {
    background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateX(5px);
}
.vip-footer-gradient {
    font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    background: linear-gradient(90deg, #ffcc00 0%, #ff3300 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block; padding: 10px;
}

/* Management More Btn */
.btn-mgmt-more {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #ff6600, #0055ff);
    color: #fff; border: none; border-radius: 30px;
    font-size: 0.8rem; font-weight: 800; cursor: pointer;
    letter-spacing: 2px; transition: 0.4s;
}
.btn-mgmt-more:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(0, 85, 255, 0.3); }

/* --- GAME STYLE --- */
.game-container { background: #000; padding: 20px; border-radius: 20px; border: 1px solid #222; }
.race-track {
    height: 180px; background: #050505; border-radius: 10px; position: relative;
    overflow: hidden; margin: 20px 0; border: 1px solid #111;
    display: flex; flex-direction: column; justify-content: space-around;
}
.track-line {
    height: 40px; width: 100%; position: relative;
    background: #0a0a0a; border-radius: 5px; border-bottom: 2px solid #111;
}
.track-line.tar {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

.racer {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 35px; height: 35px; transition: left 0.05s linear; z-index: 5;
    display: flex; align-items: center; justify-content: center;
}
.racer-img-container { position: relative; width: 100%; height: 100%; }
.racer-img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.loser-emoji {
    position: absolute; top: -5px; right: -5px; font-size: 1rem;
    opacity: 0; transition: 0.3s; pointer-events: none;
}
.loser-emoji.show { opacity: 1; transform: scale(1.2); }

.finish-line {
    position: absolute; right: 0; top: 0; height: 100%; width: 30px;
    background: repeating-linear-gradient(0deg, #fff, #fff 10px, #000 10px, #000 20px);
    border-left: 2px solid #ffcc00; z-index: 4;
}

.nitro-flare {
    position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
    width: 30px; height: 10px; background: linear-gradient(-90deg, #00aaff, transparent);
    filter: blur(2px); border-radius: 50%; opacity: 0; transition: 0.2s;
}

.game-controls { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.speedometer {
    width: 100px; height: 50px; background: #111; border-radius: 50px 50px 0 0;
    border: 2px solid #333; position: relative; display: flex; justify-content: center; align-items: flex-end;
    padding-bottom: 5px; font-weight: 800; color: #00aaff;
}
.speed-needle {
    position: absolute; bottom: 0; left: 50%; width: 2px; height: 40px;
    background: #ff0000; transform-origin: bottom; transform: rotate(-90deg); transition: 0.1s;
}
.btn-race {
    width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(#ff3300, #990000);
    color: #fff; border: 4px solid #333; font-weight: 900; font-size: 0.9rem;
    cursor: pointer; box-shadow: 0 5px 0 #444; transition: 0.1s;
}
.btn-race:active { transform: translateY(3px); box-shadow: 0 2px 0 #222; background: #990000; }
.race-countdown { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; font-weight: 900; color: #ffcc00; text-shadow: 0 0 20px #000; z-index: 100; pointer-events: none; }

/* Game Setup */
.game-setup { display: flex; flex-direction: column; gap: 20px; align-items: center; padding: 20px; }
.setup-group { width: 100%; }
.setup-label { display: block; font-size: 0.6rem; color: #555; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.duration-select {
    width: 100%; background: #0a0a0a; border: 1px solid #222; color: #fff;
    padding: 12px; border-radius: 10px; font-size: 0.8rem; outline: none;
}
.play-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.mode-btn {
    padding: 15px; background: #111; border: 1px solid #222; border-radius: 12px;
    color: #fff; font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mode-btn i { font-size: 1.2rem; color: #00aaff; }
.mode-btn:hover { border-color: #00aaff; background: #161616; }
.mode-btn.active { border-color: #ffcc00; background: rgba(255,204,0,0.05); }

/* Game Selection Menu */
.game-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px;
}
.game-option-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.game-option-card:hover {
    border-color: #00aaff;
    transform: translateY(-5px);
    background: #1a1a1a;
}
.game-option-card i {
    font-size: 1.5rem;
    color: #00aaff;
    margin-bottom: 10px;
    display: block;
}
.game-option-card span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}
.back-to-menu {
    background: transparent;
    border: none;
    color: #555;
    font-size: 0.7rem;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.back-to-menu:hover { color: #fff; }

/* Game Iframe Integration */
.game-iframe-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    margin-top: 10px;
    position: relative;
}
@media (max-width: 600px) {
    .game-iframe-wrapper {
        aspect-ratio: auto;
        height: 60vh;
    }
}
.game-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* 3D Game Selection */
.game-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.game-3d-card {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: 0.3s;
}
.game-3d-card:hover {
    border-color: #00aaff;
    transform: translateY(-3px);
    background: #111;
}
.game-3d-thumb {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00aaff;
    border: 1px solid #333;
}
.game-3d-card span {
    font-size: 0.6rem;
    font-weight: 700;
    color: #888;
}
.game-3d-card:hover span { color: #fff; }

/* Iframe Loader */
.iframe-loader {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}
.sdi-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 170, 255, 0.1);
    border-top-color: #00aaff;
    border-radius: 50%;
    animation: sdi-spin 1s linear infinite;
}
@keyframes sdi-spin {
    to { transform: rotate(360deg); }
}

.play-game-btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1rem;
    letter-spacing: 2px;
}

.agent-selection.show { display: block; border-top: 1px solid #222; margin-top: 20px; padding-top: 20px; animation: slideInUp 0.4s ease; }
.agent-card { display: flex; align-items: center; gap: 12px; background: #111; padding: 12px; border-radius: 12px; }
.agent-avatar { width: 35px; height: 35px; background: #222; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #00aaff; font-size: 0.9rem; }
.agent-info .agent-name { display: block; font-size: 0.75rem; font-weight: 600; }
.agent-info .agent-email { font-size: 0.65rem; color: #555; }
.contact-btn { background: #00aaff; color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 0.65rem; font-weight: 600; cursor: pointer; }

/* Security Footer */
.security-footer { position: fixed; bottom: 15px; right: 20px; opacity: 0; transition: 1s ease; z-index: 100;}
.security-footer.visible { opacity: 1; }
.security-content { position: relative; }
.footer-text-container { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); padding: 8px 15px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); animation: fadeInRight 0.3s ease; }
.footer-logo { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ffffff; }
.security-content p { margin: 0; font-size: 0.5rem; letter-spacing: 1px; color: #aaa; font-weight: 600; }
.footer-toggle-btn { background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); width: 30px; height: 30px; border-radius: 50%; color: #888; font-size: 0.8rem; display: flex; justify-content: center; align-items: center; cursor: pointer; margin-left: auto; transition: 0.3s; }
.footer-toggle-btn:hover { color: #fff; border-color: #00aaff; }
.footer-toggle-btn.open i { transform: rotate(180deg); }
.footer-toggle-btn i { transition: transform 0.3s; }

@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 600px) {
    .sidebar { gap: 25px; }
    .icon-box { width: 60px; height: 60px; }
    .nav-item i { font-size: 1.8rem; }
    .nav-item span { font-size: 0.55rem; }
    .detail-modal { padding: 20px; }
    .gradient-text { font-size: 1rem; }
    .pro-title { font-size: 1.5rem; letter-spacing: 6px; }
}

/* Chat privé Scrollbar suppression */
.pcw-messages::-webkit-scrollbar { display: none; }