/* Styles supplémentaires pour Great THUG */

/* Effet de néon pour le titre */
.neon-text {
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #ff4d4d,
        0 0 20px #ff4d4d,
        0 0 25px #ff4d4d,
        0 0 30px #ff4d4d,
        0 0 35px #ff4d4d;
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #ff4d4d,
            0 0 20px #ff4d4d,
            0 0 25px #ff4d4d,
            0 0 30px #ff4d4d,
            0 0 35px #ff4d4d;
    }

    to {
        text-shadow:
            0 0 2px #fff,
            0 0 5px #fff,
            0 0 8px #ff4d4d,
            0 0 12px #ff4d4d,
            0 0 15px #ff4d4d,
            0 0 18px #ff4d4d,
            0 0 22px #ff4d4d;
    }
}

/* Effet de glitch pour le titre */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

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

    60% {
        transform: translate(2px, 2px);
    }

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

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

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

    60% {
        transform: translate(2px, 2px);
    }

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

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

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

/* Effet de particules avancées */
.advanced-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ff4d4d, transparent);
    border-radius: 50%;
    animation: advancedFloat 8s infinite linear;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.8);
}

@keyframes advancedFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
        scale: 0;
    }

    10% {
        opacity: 1;
        scale: 1;
    }

    90% {
        opacity: 1;
        scale: 1;
    }

    100% {
        transform: translateY(-100px) translateX(200px) rotate(360deg);
        opacity: 0;
        scale: 0;
    }
}

/* Effet de scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Effet de vignette */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Effet de distorsion au survol */
.distort-on-hover {
    transition: all 0.3s ease;
}

.distort-on-hover:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
    filter: hue-rotate(10deg) saturate(1.2);
}

/* Effet de texte qui tape */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #ff4d4d;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #ff4d4d;
    }
}

/* Effet de glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Effet de pulsation pour les éléments importants */
.pulse-important {
    animation: pulseImportant 2s ease-in-out infinite;
}

@keyframes pulseImportant {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 77, 77, 0.8);
    }
}

/* Effet de morphing pour les boutons */
.morph-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.morph-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.morph-button:hover::before {
    left: 100%;
}

/* Effet de texte 3D */
.text-3d {
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0, 0, 0, .1),
        0 0 5px rgba(0, 0, 0, .1),
        0 1px 3px rgba(0, 0, 0, .3),
        0 3px 5px rgba(0, 0, 0, .2),
        0 5px 10px rgba(0, 0, 0, .25),
        0 10px 10px rgba(0, 0, 0, .2),
        0 20px 20px rgba(0, 0, 0, .15);
}

/* Effet de particules de feu */
.fire-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ff6b35, #ff4d4d, transparent);
    border-radius: 50%;
    animation: fireFloat 4s infinite ease-out;
}

@keyframes fireFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(80vh) translateX(10px) scale(1);
    }

    100% {
        transform: translateY(-50px) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Effet de distorsion de l'écran */
.screen-distortion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 77, 77, 0.03) 2px,
            rgba(255, 77, 77, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
    animation: distortion 0.1s linear infinite;
}

@keyframes distortion {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(1px);
    }

    50% {
        transform: translateX(0);
    }

    75% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Effet de texte holographique */
.holographic {
    background: linear-gradient(45deg,
            #ff0000,
            #ff7300,
            #fffb00,
            #48ff00,
            #00ffd5,
            #002bff,
            #7a00ff,
            #ff00c8,
            #ff0000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s ease-in-out infinite;
}

@keyframes holographicShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Effet de texte qui brille */
.shine-text {
    position: relative;
    overflow: hidden;
}

.shine-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.5s ease;
}

.shine-text:hover::before {
    left: 100%;
}

/* Effet de texte qui vibre */
.vibrate {
    animation: vibrate 0.3s linear infinite;
}

@keyframes vibrate {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

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

    60% {
        transform: translate(2px, 2px);
    }

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

    100% {
        transform: translate(0);
    }
}

/* Live Fan Chat Box Floating Widget Styles */
.fan-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Rajdhani', sans-serif;
}

.fan-chat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(226, 53, 53, 0.4);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(226, 53, 53, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Double pulse outer ring around the toggle button */
.fan-chat-toggle::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(226, 53, 53, 0.5);
    opacity: 0;
    animation: fanSonar 2s cubic-bezier(0.25, 0, 0, 1) infinite;
    pointer-events: none;
}

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

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.fan-chat-toggle:hover {
    transform: translateY(-4px) scale(1.08);
    border-color: #ff4d4d;
    box-shadow: 0 12px 30px rgba(226, 53, 53, 0.25), 0 0 25px rgba(226, 53, 53, 0.5);
}

.fan-chat-toggle:hover .fan-chat-icon {
    animation: fanWiggle 0.6s ease-in-out infinite alternate;
}

@keyframes fanWiggle {
    0% {
        transform: rotate(-10deg);
    }

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

.fan-chat-toggle:active {
    transform: translateY(-1px) scale(0.95);
}

.fan-chat-icon {
    font-size: 1.35rem;
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(226, 53, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Notification Badge — hidden by default, shown on unread messages */
.fan-chat-toggle .fan-pulse-container {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    display: none;
    /* hidden until there are unread messages */
    z-index: 2;
}

/* Show badge only when toggle has the unread class */
.fan-chat-toggle.fan-has-unread .fan-pulse-container {
    display: inline-flex;
}

/* Also clip the header pulse container */
.fan-chat-header .fan-pulse-container {
    overflow: hidden;
}

.fan-pulse-ring {
    display: none;
}

.fan-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff4d4d;
    /* no glow, no animation — clean static dot */
}

/* Glassmorphism Panel */
.fan-chat-panel {
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 480px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 53, 53, 0.25);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 53, 53, 0.1);
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fan-chat-panel.fan-hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 0;
    width: 0;
    border: none;
    overflow: hidden;
}

/* Header styling */
.fan-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(20, 20, 24, 0.5);
    border-bottom: 1px solid rgba(226, 53, 53, 0.15);
}

.fan-chat-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fan-chat-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(226, 53, 53, 0.15);
    border: 1px solid rgba(226, 53, 53, 0.4);
    border-radius: 8px;
    color: #ff4d4d;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(226, 53, 53, 0.3), inset 0 0 8px rgba(226, 53, 53, 0.1);
    animation: iconGlow 2s ease-in-out infinite alternate;
    flex-shrink: 0;
}

@keyframes iconGlow {
    0% {
        box-shadow: 0 0 8px rgba(226, 53, 53, 0.3), inset 0 0 6px rgba(226, 53, 53, 0.1);
        border-color: rgba(226, 53, 53, 0.4);
    }

    100% {
        box-shadow: 0 0 16px rgba(255, 77, 77, 0.7), inset 0 0 10px rgba(226, 53, 53, 0.25);
        border-color: rgba(255, 77, 77, 0.8);
    }
}

.fan-chat-header h3 {
    margin: 0;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.fan-chat-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.fan-chat-close:hover {
    color: #ffffff;
}

/* Messages area styling */
.fan-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fan-message-bubble {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 8px 12px;
    width: fit-content;
    max-width: 85%;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ─── Message Row (avatar + bubble) ─────────────────────────────────────── */
.fan-message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.fan-message-row-my {
    flex-direction: row-reverse;
}

.fan-message-row-other {
    flex-direction: row;
}

.fan-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 24, 0.8);
    align-self: flex-end;
}

.fan-message-other {
    align-self: flex-start;
    border-left: 3px solid #ff4d4d;
}

.fan-message-my {
    align-self: flex-end;
    border-right: 3px solid #ff4d4d;
}


.fan-message-nickname {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fan-admin-badge {
    height: 9px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(245, 200, 66, 0.7));
    transition: transform 0.2s ease-in-out;
    padding: 3px;
    box-sizing: content-box;
}

.fan-admin-badge:hover {
    transform: scale(1.25);
}

.fan-admin-username {
    background: linear-gradient(90deg, #b58920, #f5c842, #fff099, #f5c842, #b58920);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: adminGoldShift 2.5s linear infinite;
    font-weight: 900;
    filter: drop-shadow(0 0 2px rgba(245, 200, 66, 0.4));
}

@keyframes adminGoldShift {
    to {
        background-position: 200% center;
    }
}

.fan-message-admin {
    animation: adminBorderGold 4s linear infinite;
    border-style: solid;
}

.fan-message-admin.fan-message-my {
    border-right-width: 3px !important;
}

.fan-message-admin.fan-message-other {
    border-left-width: 3px !important;
}

@keyframes adminBorderGold {
    0% {
        border-color: #b58920;
    }

    25% {
        border-color: #f5c842;
    }

    50% {
        border-color: #fff099;
    }

    75% {
        border-color: #f5c842;
    }

    100% {
        border-color: #b58920;
    }
}

/* ─── Attach / Image Upload Button ─────────────────────────────────────────── */
.fan-attach-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-sizing: border-box;
    font-size: 1rem;
}

.fan-attach-btn:hover {
    color: #ff4d4d;
    border-color: rgba(226, 53, 53, 0.5);
    background: rgba(226, 53, 53, 0.08);
}

.fan-attach-btn.has-image {
    color: #ff4d4d;
    border-color: #ff4d4d;
    background: rgba(226, 53, 53, 0.15);
    box-shadow: 0 0 8px rgba(226, 53, 53, 0.3);
}

/* ─── Image Preview Strip ───────────────────────────────────────────────────── */
.fan-image-preview-strip {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(226, 53, 53, 0.08);
    border: 1px solid rgba(226, 53, 53, 0.25);
    border-radius: 8px;
    margin-bottom: 8px;
}

.fan-image-preview-strip.visible {
    display: flex;
}

.fan-image-preview-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(226, 53, 53, 0.3);
    flex-shrink: 0;
}

.fan-image-preview-label {
    flex-grow: 1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fan-image-preview-strip.is-gif .fan-image-preview-label {
    color: #facc15;
}

.fan-image-preview-remove {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.fan-image-preview-remove:hover {
    color: #ff4d4d;
}

/* ─── Message Image ─────────────────────────────────────────────────────────── */
.fan-message-image-wrap {
    position: relative;
    display: inline-block;
    margin-top: 6px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.fan-message-image {
    display: block;
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s ease;
}

.fan-message-image:hover {
    opacity: 0.9;
}

/* ─── GIF Badge ─────────────────────────────────────────────────────────────── */
.fan-gif-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(250, 204, 21, 0.7);
    color: #facc15;
    font-family: 'Orbitron', monospace;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 1px 5px;
    border-radius: 4px;
    pointer-events: none;
    text-transform: uppercase;
}

/* ─── Lightbox ──────────────────────────────────────────────────────────────── */
.fan-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.fan-lightbox.open {
    display: flex;
}

.fan-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.fan-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fan-lightbox-close:hover {
    background: rgba(226, 53, 53, 0.3);
    border-color: #ff4d4d;
    color: #ff4d4d;
}


.fan-message-text {
    font-size: 0.85rem;
    color: #e5e7eb;
    line-height: 1.4;
}

.fan-message-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
    text-align: right;
    display: block;
    font-family: 'Rajdhani', sans-serif;
    user-select: none;
}

.fan-chat-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    padding: 20px;
}

/* Scrollbar customization */
.fan-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.fan-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.fan-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(226, 53, 53, 0.25);
    border-radius: 10px;
}

.fan-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(226, 53, 53, 0.45);
}

/* Input Form styling */
.fan-chat-form {
    padding: 14px;
    background: rgba(20, 20, 24, 0.4);
    border-top: 1px solid rgba(226, 53, 53, 0.15);
}

.fan-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fan-input-row input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 10px 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    height: 38px;
}

.fan-input-row input:focus {
    outline: none;
    border-color: rgba(226, 53, 53, 0.5);
    box-shadow: 0 0 8px rgba(226, 53, 53, 0.25);
}

#fan-message {
    flex-grow: 1;
}

.fan-send-icon-btn {
    background: linear-gradient(135deg, #e23535 0%, #ff4d4d 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(226, 53, 53, 0.35);
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.fan-send-icon-btn:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 100%);
    box-shadow: 0 6px 15px rgba(226, 53, 53, 0.55);
}

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

.fan-send-icon-btn i {
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fan-chat-widget {
        bottom: 12px;
        right: 12px;
    }

    .fan-chat-toggle {
        width: 50px;
        height: 50px;
        border-width: 1.5px;
    }

    .fan-chat-icon {
        font-size: 1.15rem;
    }

    .fan-chat-panel {
        width: calc(100vw - 24px);
        height: 380px;
    }

    .fan-chat-notification {
        bottom: 64px;
        width: 220px;
        padding: 10px 12px;
    }
}

/* Moderation & Admin UI Styles */
.fan-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fan-chat-admin-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fan-chat-admin-toggle:hover {
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(226, 53, 53, 0.6);
}

.fan-chat-admin-toggle.admin-active {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(226, 53, 53, 0.8);
}

/* Delete Button on Message Bubbles */
.fan-message-bubble {
    position: relative;
    transition: padding-right 0.3s ease;
}

.fan-delete-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 6px;
    display: none;
    /* hidden by default */
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fan-delete-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    color: #f87171;
}

/* Styles applied when admin-mode is active */
.admin-mode .fan-delete-btn {
    display: block;
}

.admin-mode .fan-message-bubble {
    padding-right: 34px;
}

/* Disable Chat Toggle Button (admin only) */
.fan-chat-disable-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px;
    display: none;
    /* hidden by default — admin-mode shows it */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fan-chat-disable-toggle:hover {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.fan-chat-disable-toggle.chat-disabled-active {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

/* Reveal disable button only in admin mode */
.admin-mode .fan-chat-disable-toggle {
    display: flex;
}

/* Premium Locked chat banner */
.fan-chat-locked {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 14px;
    background: linear-gradient(90deg, rgba(20, 20, 24, 0.9) 0%, rgba(40, 10, 10, 0.95) 50%, rgba(20, 20, 24, 0.9) 100%);
    background-size: 200% auto;
    border-top: 1px solid rgba(255, 77, 77, 0.3);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    color: #ff4d4d;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: shimmerLock 3s infinite linear;
    position: relative;
    overflow: hidden;
}

/* Subtle diagonal stripes overlay */
.fan-chat-locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 77, 77, 0.03) 10px,
            rgba(255, 77, 77, 0.03) 20px);
    pointer-events: none;
}

@keyframes shimmerLock {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -200% center;
    }
}

.fan-chat-locked i {
    font-size: 1.1rem;
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
    animation: pulseLock 2s infinite alternate;
}

@keyframes pulseLock {
    0% {
        transform: scale(1);
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(255, 77, 77, 0.4);
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 77, 77, 0.8);
    }
}

/* Clear All button (admin only) */
.fan-chat-clear-all {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px;
    display: none;
    /* hidden by default — admin-mode shows it */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fan-chat-clear-all:hover {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    transform: scale(1.15);
}

/* Reveal clear-all only in admin mode */
.admin-mode .fan-chat-clear-all {
    display: flex;
}

/* Change Name button (admin only) */
.fan-chat-change-name {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px;
    display: none;
    /* hidden by default — admin-mode shows it */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fan-chat-change-name:hover {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
    transform: scale(1.15);
}

/* Reveal change-name only in admin mode */
.admin-mode .fan-chat-change-name {
    display: flex;
}

/* Real-time Message Alert Notification */
.fan-chat-notification {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 250px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 53, 53, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 53, 53, 0.15);
    font-family: 'Rajdhani', sans-serif;
    display: none;
    /* controlled by JS */
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    pointer-events: auto;
    /* allow clicking close */
    transform-origin: bottom right;
    animation: fanNotifyIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    cursor: pointer;
}

@keyframes fanNotifyIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

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

.fan-chat-notification.fade-out {
    animation: fanNotifyOut 0.3s ease forwards;
}

@keyframes fanNotifyOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
}

.fan-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.fan-notification-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff4d4d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fan-notification-title i {
    animation: fanBlink 1.5s infinite alternate;
}

@keyframes fanBlink {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.fan-notification-close {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    line-height: 0.8;
    transition: color 0.2s ease;
}

.fan-notification-close:hover {
    color: #ffffff;
}

.fan-notification-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fan-notification-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff4d4d;
}

.fan-notification-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User Settings & Modal Close */
.fan-chat-settings-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fan-chat-settings-btn:hover {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.fan-name-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: none;
    z-index: 10;
}

.fan-name-modal-close:hover {
    color: #ff4d4d;
}

/* ─── Name Entry Modal ────────────────────────────────────────────────────── */
.fan-name-modal {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 300px;
    background: rgba(10, 10, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 53, 53, 0.35);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(226, 53, 53, 0.12);
    overflow: hidden;
    transform-origin: bottom right;
    animation: fanNotifyIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    z-index: 1002;
}

.fan-name-modal.fan-hidden {
    display: none;
}

.fan-name-modal-inner {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* ─── Avatar Upload Widget (name modal) ─────────────────────────────────── */
.fan-avatar-upload-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.fan-avatar-preview-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(226, 53, 53, 0.45);
    box-shadow: 0 0 18px rgba(226, 53, 53, 0.3);
    display: block;
    animation: iconGlow 2s ease-in-out infinite alternate;
    background: rgba(13, 13, 15, 0.9);
}

.fan-avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.fan-avatar-upload-wrap:hover .fan-avatar-upload-overlay {
    opacity: 1;
}

.fan-avatar-upload-overlay i {
    font-size: 1rem;
    color: #ffffff;
}

.fan-avatar-upload-overlay span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.fan-name-modal-title {
    margin: 0;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fan-name-modal-sub {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.2px;
}

#fan-name-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.fan-name-field {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    padding: 11px 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.fan-name-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.fan-name-field:focus {
    border-color: rgba(226, 53, 53, 0.6);
    box-shadow: 0 0 10px rgba(226, 53, 53, 0.25);
}

.fan-name-join-btn {
    width: 100%;
    background: linear-gradient(135deg, #c0392b 0%, #ff4d4d 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 11px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(226, 53, 53, 0.4);
    transition: all 0.3s ease;
}

.fan-name-join-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
    box-shadow: 0 6px 20px rgba(226, 53, 53, 0.6);
    transform: translateY(-1px);
}

.fan-name-join-btn:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .fan-name-modal {
        width: calc(100vw - 24px);
        right: 0;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* ─── Premium Stats Grid UI ────────────────────────────────────────────────── */
.stats-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 48px auto 24px;
    max-width: 600px;
    flex-wrap: wrap;
    animation: statsFadeIn 0.8s ease 0.8s forwards;
    opacity: 0;
}

@keyframes statsFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-prefix {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
    margin-right: 2px;
}

.stat-value {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.live-dot-prefix {
    position: relative;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 8px #ff4d4d, 0 0 16px rgba(255, 77, 77, 0.6);
    z-index: 1;
    animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {

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

    50% {
        opacity: 0.55;
        transform: scale(0.9);
    }
}

.stat-dot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 77, 77, 0.7);
    animation: sonarRing 2s ease-out infinite;
}

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

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

.stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 600px) {
    .stats-grid-container {
        gap: 24px;
        margin: 16px auto 8px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
        margin-top: 4px;
    }
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 90px;
    /* positioned on the left side of the live chat icon (20px + 58px + 12px gap) */
    z-index: 1000;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(226, 53, 53, 0.4);
    color: #ff4d4d;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(226, 53, 53, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.music-toggle.visible {
    opacity: 1;
    pointer-events: auto;
}

.music-toggle:hover {
    transform: translateY(-4px) scale(1.08);
    border-color: #ff4d4d;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(226, 53, 53, 0.25), 0 0 25px rgba(226, 53, 53, 0.5);
}

.music-toggle:active {
    transform: translateY(-1px) scale(0.95);
}

.music-toggle.muted {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Adjust position when chat panel is open */
.chat-open .music-toggle {
    right: 390px;
    /* 360px chat panel width + 20px margin + 10px gap */
}

@media (max-width: 768px) {
    .music-toggle {
        bottom: 12px;
        right: 72px;
        /* 12px right + 50px width + 10px gap */
        width: 50px;
        height: 50px;
        border-width: 1.5px;
        font-size: 1.15rem;
    }

    /* Hide the button on mobile when the chat/name modal is open to avoid overlay clutter */
    .chat-open .music-toggle {
        opacity: 0;
        pointer-events: none;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */