﻿/* ================= THEME SYSTEM: RGB DEFAULT vs ONYX LUXURY ================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* DEFAULT THEME: RGB / CYBER-LITE (Rajdhani) */
:root {
    --rough-frost-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.18'/%3E%3C/svg%3E");
    --frost-glass-bg: rgba(15, 15, 20, 0.35);
    --frost-glass-blur: blur(25px) saturate(200%) contrast(110%);
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-primary: #ff006e;
    /* Neon Pink */
    --accent-secondary: #3a86ff;
    /* Neon Blue */
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-glow: rgba(255, 0, 110, 0.2);

    --font-main: 'Rajdhani', sans-serif;
}

/* ONYX LUXURY THEME (Assigned via Toggle) */
[data-theme="onyx"] {
    /* Onyx Palette - Matte Black & Gold */
    --bg-primary: #050505;
    /* Deepest Matte Black */
    --bg-secondary: #0A0A0A;
    /* Slightly lighter for panels */
    --bg-card: rgba(20, 20, 20, 0.6);

    --accent-primary: #D4AF37;
    /* Rich Metallic Gold (Replaces Pink) */
    --accent-secondary: #8a7020;
    /* Dimmed Gold (Replaces Blue) */

    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    /* Cool Gray */
    --text-tertiary: #52525B;

    --border-color: rgba(212, 175, 55, 0.3);
    /* Gold Border */

    --glass-bg: rgba(5, 5, 5, 0.85);
    /* Heavy Glass */

    --font-main: 'Outfit', sans-serif;

    --shadow-glow: rgba(212, 175, 55, 0.1);
}

/* Global Applied Variables */
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
}

/* RESTORED ORIGINAL ANIMATIONS */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%,
            rgba(138, 43, 226, 0.1) 0%,
            rgba(0, 191, 255, 0.1) 25%,
            rgba(255, 20, 147, 0.1) 50%,
            rgba(0, 255, 127, 0.1) 75%,
            rgba(255, 69, 0, 0.1) 100%);
    animation: bgPulse 8s ease-in-out infinite;
    display: block;
}

@keyframes bgPulse {

    0%,
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }

    25% {
        filter: hue-rotate(90deg) brightness(1.2);
    }

    50% {
        filter: hue-rotate(180deg) brightness(0.8);
    }

    75% {
        filter: hue-rotate(270deg) brightness(1.1);
    }
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

[data-theme="onyx"] .floating-orbs {
    display: none !important;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    /* HEAVY BLUR FOR GLOW EFFECT */
    opacity: 0.6;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #ff006e;
    /* Neon Pink */
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: #3a86ff;
    /* Neon Blue */
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #8338ec;
    /* Purple */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

.orb-4 {
    width: 150px;
    height: 150px;
    background: #ffbe0b;
    /* Yellow */
    top: 80%;
    left: 10%;
    animation-delay: -15s;
}

.orb-5 {
    width: 180px;
    height: 180px;
    background: #00ff88;
    /* Green */
    top: 20%;
    left: 80%;
    animation-delay: -3s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -50px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 40px) scale(0.9);
    }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    display: block;
}

[data-theme="onyx"] .grid-overlay {
    display: none !important;
}

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

    100% {
        transform: translate(50px, 50px);
    }
}

/* Global Reset */
* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary) var(--bg-primary);
}

/* Inputs & Forms (Adaptive) */
input[type="text"],
input[type="file"],
textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--shadow-glow);
}

/* Buttons */
button {
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 3px;
}

/* Welcome Screen (Centering & Scroll Fix) */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    padding: 20px;
}

.welcome-screen.active {
    opacity: 1;
    visibility: visible;
}

.welcome-container {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
    position: relative;
    z-index: 20;
}

/* Logo Section */
.logo-section {
    position: relative;
    margin-bottom: 40px;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    position: relative;
}

.title-line {
    display: block;
    background: linear-gradient(45deg, #ff006e, #ffbe0b, #8338ec, #3a86ff, #06ffa5);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.title-line.brand {
    font-size: 1.2em;
    margin-top: 10px;
    animation-delay: 0.5s;
}

@keyframes gradientShift {

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

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

.subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.4rem;
    margin-top: 20px;
    background: linear-gradient(45deg, #ff9a9e, #fecfef, #fecfef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subtitleFloat 2s ease-in-out infinite;
}

@keyframes subtitleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.input-section {
    margin-bottom: 50px;
}

.input-container {
    position: relative;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.input-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff006e, #ffbe0b, #8338ec, #3a86ff);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    animation: inputGlow 2s ease-in-out infinite;
}

@keyframes inputGlow {

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

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

#usernameInput {
    width: 100%;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

#usernameInput:focus {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

#usernameInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.start-btn {
    position: relative;
    padding: 18px 40px;
    background: transparent;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff006e, #ffbe0b, #8338ec, #3a86ff);
    background-size: 300% 300%;
    border-radius: 25px;
    z-index: -2;
    animation: btnBgShift 2s ease-in-out infinite;
}

@keyframes btnBgShift {

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

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

.btn-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff006e, #ffbe0b, #8338ec, #3a86ff);
    border-radius: 25px;
    z-index: -3;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.start-btn:hover:not(:disabled) .btn-glow {
    opacity: 0.8;
    animation: btnGlowPulse 1.5s ease-in-out infinite;
}

@keyframes btnGlowPulse {

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

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

.btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.start-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.features-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.feature-item i {
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff006e, #3a86ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Chat Screen */
.chat-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chat-screen.active {
    display: flex;
    /* Show when active */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* SLIM ROUGH GLASS HEADER (CONSOLIDATED) */
#mainChatHeader {
    position: relative;
    height: 52px !important;
    /* Slightly slimmer per user request */
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    z-index: 1000 !important;

    /* GLASS BASE */
    background: rgba(15, 15, 20, 0.35) !important;
    backdrop-filter: blur(25px) saturate(200%) contrast(110%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) contrast(110%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 0 15px !important;
    overflow: hidden;
    /* For noise pseudo-element */
}

/* ROUGH TEXTURE OVERLAY */
#mainChatHeader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.18'/%3E%3C/svg%3E");
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

#mainChatHeader .logo-text {
    font-size: 1.15rem !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Restored gap for icons */
}

.logo-mini {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff006e, #3a86ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    z-index: -1;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {

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

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

.online-counter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

.counter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 110, 0.2), rgba(58, 134, 255, 0.2));
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.online-indicator {
    position: relative;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes blink {

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

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.counter-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.message {
    margin-bottom: 15px;
    animation: messageSlideIn 0.5s ease-out;
    position: relative;
}

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

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

.message-bubble {
    position: relative;
    max-width: 70%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    z-index: -1;
}

.message-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.username {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Orbitron', monospace;
}

.timestamp {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Exo 2', sans-serif;
}

.message-content {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.admin-message {
    text-align: center;
    margin: 20px 0;
}

.admin-message .message-bubble {
    background: linear-gradient(45deg,
            rgba(255, 0, 110, 0.2),
            rgba(58, 134, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    animation: adminMessageGlow 2s ease-in-out infinite;
}

@keyframes adminMessageGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(58, 134, 255, 0.4);
    }
}

.reply-preview {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid;
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.ai-message {
    background: linear-gradient(45deg,
            rgba(138, 43, 226, 0.2),
            rgba(0, 191, 255, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.ai-message::before {
    content: '??';
    position: absolute;
    top: -8px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Typing Indicators */
.typing-indicators {
    padding: 0 20px;
    min-height: 30px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 5px;
    animation: typingSlideIn 0.3s ease-out;
}

@keyframes typingSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typingWave 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingWave {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Message Input Area */
.message-input-area {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(255, 0, 110, 0.05),
            rgba(58, 134, 255, 0.05));
    z-index: -1;
}

.message-reply-preview {
    margin-bottom: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ff006e;
    border-radius: 8px;
    display: none;
    animation: replySlideDown 0.3s ease-out;
}

@keyframes replySlideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    position: relative;
}

.emoji-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.message-input-container {
    flex: 1;
    position: relative;
}

#messageInput {
    width: 100%;
    min-height: 42px;
    max-height: 120px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

#messageInput:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#messageInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-btn {
    position: relative;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.send-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff006e, #3a86ff);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.send-btn:hover .send-bg {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

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

.send-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.send-btn.sending .send-ripple {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.notification {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    max-width: 300px;
    animation: notificationSlideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes notificationSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

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

.notification.join {
    border-left: 4px solid #00ff88;
}

.notification.leave {
    border-left: 4px solid #ff4757;
}

.notification.reply {
    border-left: 4px solid #3a86ff;
}

.notification.reaction {
    border-left: 4px solid #ff006e;
}

.notification-content {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.notification-burst {
    animation: notificationBurst 0.5s ease-out forwards;
}

@keyframes notificationBurst {
    0% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) translateX(20px);
        opacity: 0.7;
    }

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

/* Reaction Picker */
.reaction-picker {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    display: none;
    z-index: 1000;
    animation: pickerSlideIn 0.3s ease-out;
}

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

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

.reaction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.reaction-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.reaction-emoji:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

.reply-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #ff006e, #3a86ff);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 110, 0.3);
}

/* AI Modal */
.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.ai-modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    height: 70%;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.5s ease-out;
}

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

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

.ai-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #8a2be2, #00bfff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ai-pulse {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {

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

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

.ai-close {
    margin-left: auto;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ai-chat-message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 15px;
    animation: aiMessageSlideIn 0.5s ease-out;
}

@keyframes aiMessageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

.ai-user-message {
    background: rgba(58, 134, 255, 0.2);
    border: 1px solid rgba(58, 134, 255, 0.3);
    margin-left: 20%;
}

.ai-bot-message {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    margin-right: 20%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #ff006e;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #3a86ff;
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #00ff88;
    animation-delay: 0.6s;
}

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

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

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff006e, #3a86ff, #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingTextPulse 2s ease-in-out infinite;
}

@keyframes loadingTextPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Elite Mode Styles */
.elite-mode-section {
    margin-top: 40px;
    padding-top: 30px;
}

.elite-divider {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.elite-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

.elite-text {
    background: rgba(0, 0, 0, 0.8);
    padding: 0 20px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.elite-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.elite-input-container {
    position: relative;
}

.elite-input-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elite-input-container input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #FFD700;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.elite-input-container input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.elite-input-container input:focus+.elite-input-glow {
    opacity: 0.6;
}

.elite-input-container input::placeholder {
    color: rgba(255, 215, 0, 0.6);
}

.elite-btn {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: #FFD700;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.elite-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.elite-btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    animation: eliteBgShift 2s ease-in-out infinite;
    opacity: 0.1;
}

@keyframes eliteBgShift {

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

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

.elite-btn:hover:not(:disabled) .elite-btn-bg {
    opacity: 0.3;
    animation-duration: 1s;
}

.elite-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Developer Controls */
.developer-controls {
    position: absolute;
    left: 20px;
}

.hamburger-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.hamburger-btn:hover .hamburger-line {
    background: #FFD700;
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Developer Panel */
.developer-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    max-width: 90%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-right: 2px solid rgba(255, 215, 0, 0.3);
    z-index: 2000;
    transition: left 0.4s ease;
}

.developer-panel.open {
    left: 0;
}

.panel-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.panel-header h3 {
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-close {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.panel-close:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.1);
}

.online-users-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.user-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
}

.user-ip {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
}

.user-actions {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.user-item:hover .user-actions {
    right: -100px;
    opacity: 1;
    visibility: visible;
}

.user-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kick-btn {
    background: #ff4757;
    color: white;
}

.kick-btn:hover {
    background: #ff3742;
    transform: scale(1.05);
}

.warn-btn {
    background: #ffa502;
    color: white;
}

.warn-btn:hover {
    background: #ff9f43;
    transform: scale(1.05);
}

/* Developer Badge */
.developer-badge {
    color: #1DA1F2;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Warn Modal */
.warn-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.warn-modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    animation: warnModalSlideIn 0.3s ease-out;
}

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

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

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

.warn-header h3 {
    color: #FFA500;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warn-close {
    background: none;
    border: none;
    color: #FFA500;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.warn-close:hover {
    background: rgba(255, 165, 0, 0.1);
}

.warn-body {
    padding: 20px;
}

.warn-body p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

#warnUserName {
    color: #FFA500;
    font-weight: 600;
}

#warnReason {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    color: white;
    padding: 10px;
    font-family: 'Rajdhani', sans-serif;
    resize: none;
    outline: none;
    margin-bottom: 20px;
}

#warnReason::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.warn-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.warn-send-btn,
.warn-cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.warn-send-btn {
    background: #FFA500;
    color: white;
}

.warn-send-btn:hover {
    background: #ff9f43;
    transform: translateY(-2px);
}

.warn-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.warn-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* DM Windows */
.dm-windows-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    pointer-events: none;
}

.dm-window {
    `n position: relative;
    overflow: hidden;
    background: var(--frost-glass-bg) !important;
    backdrop-filter: var(--frost-glass-blur) !important;
    -webkit-backdrop-filter: var(--frost-glass-blur) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    pointer-events: all;
    z-index: 3000;
    animation: dmWindowSlideIn 0.4s ease-out;
}






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

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

/* Utility class to trigger slide out */
.dm-window.closing {
    animation: dmWindowSlideOut 0.4s ease-in forwards;
}


.dm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg,
            rgba(255, 0, 110, 0.1),
            rgba(58, 134, 255, 0.1));
}

.dm-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff006e, #3a86ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.dm-user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.dm-controls {
    display: flex;
    gap: 10px;
}

.dm-home-btn,
.dm-close-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dm-home-btn:hover,
.dm-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dm-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.dm-messages::-webkit-scrollbar {
    width: 6px;
}

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

.dm-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dm-message {
    margin-bottom: 15px;
    animation: messageSlideIn 0.5s ease-out;
}

.dm-message.own {
    text-align: right;
}

.dm-message-bubble {
    display: inline-block;
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dm-message:not(.own) .dm-message-bubble {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-message.own .dm-message-bubble {
    background: linear-gradient(45deg, #ff006e, #3a86ff);
    color: white;
}

.dm-message-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.dm-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.dm-message-time {
    color: rgba(255, 255, 255, 0.6);
}

.dm-message-status {
    display: flex;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.dm-message-content {
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.dm-reply-preview {
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ff006e;
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.dm-typing-indicator {
    padding: 0 15px;
    min-height: 25px;
    display: flex;
    align-items: center;
}

.dm-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.dm-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.dm-reply-preview-container {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ff006e;
    border-radius: 6px;
    display: none;
    animation: replySlideDown 0.3s ease-out;
}

.dm-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.dm-emoji-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.dm-emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dm-input {
    flex: 1;
    min-height: 35px;
    max-height: 80px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.dm-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.dm-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dm-send-btn {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #ff006e, #3a86ff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.dm-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.dm-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-message-bubble:hover .dm-delete-btn {
    opacity: 1;
}

.dm-delete-btn:hover {
    transform: scale(1.2);
}

/* Regular User Hamburger Menu */
.regular-user-controls {
    position: absolute;
    left: 20px;
}

.user-hamburger-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.user-hamburger-btn:hover {
    transform: scale(1.1);
}

.user-hamburger-btn:hover .hamburger-line {
    background: var(--accent-primary);
}



.user-hamburger-menu.open {
    left: 0;
}

.hamburger-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hamburger-header {
    padding: 25px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger-header h3 {
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger-header h3 i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.hamburger-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.hamburger-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
}



/* GIF Support Styles */
.gif-container {
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0;
}

.gif-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.gif-upload-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.gif-upload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gif-input {
    display: none;
}

/* Message Status Icons */
.message-status-single {
    color: rgba(255, 255, 255, 0.5);
}

.message-status-double {
    color: #1DA1F2;
}

/* Mobile Responsive for DM */
@media (max-width: 768px) {}

.regular-user-controls {
    margin-right: 10px;
}

.dm-message-bubble {
    max-width: 85%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .developer-panel {
        width: 100%;
        left: -100%;
    }

    .user-actions {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .features-preview {
        gap: 20px;
    }

    .header-content {
        padding: 0 20px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .chat-messages {
        padding: 15px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .message-input-area {
        padding: 15px;
    }

    .notification-container {
        right: 10px;
        top: 90px;
    }

    .notification {
        max-width: 250px;
    }

    .ai-modal-content {
        width: 95%;
        height: 80%;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        width: 95%;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .features-preview {
        gap: 15px;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .header-content {
        padding: 0 15px;
    }

    .online-counter {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .chat-messages {
        padding: 10px;
    }

    .message-input-area {
        padding: 10px;
    }

    .input-wrapper {
        gap: 10px;
    }

    .emoji-btn,
    .send-btn {
        width: 40px;
        height: 40px;
    }

    /* 1. Fix chat input bar at bottom */
    .message-input-area {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 200;
    }

    /* Make space so messages don’t hide behind input */
    .chat-messages {
        padding-bottom: 100px;
        /* height of input bar */
        overflow-y: auto;
    }

    /* 2. Enable scrollbar */
    html,
    body {
        height: 100%;
        overflow-y: auto;
    }

    .welcome-screen {
        z-index: 500;
        /* lower than hamburger */
        overflow-y: auto;
        align-items: flex-start;
        padding: 40px 0;
    }

    /* 4. If you want hamburger always on top */
    .user-hamburger-btn,
    .hamburger-btn {
        z-index: 1001;
    }






    /* Messages inside DM */
    .dm-messages {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    @keyframes dmWindowSlideIn {
        0% {
            opacity: 0;
            transform: translateY(100%);
        }

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


    /* Force DM windows to fullscreen like global chat */
    .dm-window {
        `n position: relative;
        overflow: hidden;
        background: var(--frost-glass-bg) !important;
        backdrop-filter: var(--frost-glass-blur) !important;
        -webkit-backdrop-filter: var(--frost-glass-blur) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 3000 !important;
    }

    /* Make sure typing indicator always sits just above input bar */
    .typing-indicators {
        position: relative;
        bottom: auto;
        margin: 6px 12px;
        /* slightly larger margin for mobile */
        font-size: 0.9em;
        color: gray;
        z-index: 10;
        /* ensure it's above input effects */
    }

    .dm-messages {
        overflow-y: auto;
        /* allow scrolling */
        overflow-x: hidden;
        /* prevent sideways scroll */
    }

    #reactionPicker {
        position: fixed;
        /* float above all windows */
        z-index: 9999;
        /* ensure it’s always visible */
    }



    /* Mobile-specific adjustments */
    @media (max-width: 768px) {
        .typing-indicators {
            margin-bottom: 60px;
            /* push it above the fixed input bar */
        }
    }


}

/* ================= GEN-Z CONTAINER GRID ================= */
.genz-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.genz-container {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
}

.genz-container:hover {
    background: rgba(255, 255, 255, 0.02);
}

.genz-header {
    padding: 12px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    font-family: 'Orbitron', sans-serif;
}

.genz-header i {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Users List Container */
.users-list-container {
    padding: 12px;
    max-height: 100%;
    overflow-y: auto;
}

.user-list-item {
    background: transparent;
    padding: 8px 0;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-list-item:hover .user-list-name {
    color: var(--accent-primary);
}

.user-list-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-list-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

.user-list-status {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Games Container */
.games-list {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-item {
    background: transparent;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.game-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.game-play-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.game-play-btn i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.game-item:hover .game-play-btn {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.posts-preview {
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 400;
}

/* ================= POSTS WINDOW ================= */
.posts-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
    z-index: 3000;
    display: none;
    flex-direction: column;
    animation: postsSlideIn 0.5s ease-out;
}

@keyframes postsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

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

.posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 0, 255, 0.3);
    position: relative;
}

.posts-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #00ff41, #ff00ff);
    background-size: 300% 100%;
    animation: cyberpunkBorder 3s linear infinite;
}

@keyframes cyberpunkBorder {
    0% {
        background-position: 0% 50%;
    }

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

.posts-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #00ff41);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    letter-spacing: 2px;
}

.posts-back-btn {
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid #ff00ff;
    color: #00ffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.posts-back-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.posts-controls {
    display: flex;
    gap: 10px;
}

.posts-refresh-btn,
.posts-home-btn,
.posts-create-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #ff00ff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.posts-create-btn {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    color: #ff00ff;
}

.posts-refresh-btn:hover,
.posts-home-btn:hover,
.posts-create-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px currentColor;
}

/* ================= POSTS NAVIGATION ================= */
.posts-navigation {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
}

.posts-nav-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.posts-nav-btn.active {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.posts-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
}

.posts-nav-btn:hover:not(.active) {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.05);
}

/* ================= POSTS FEED ================= */
.posts-feed {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff transparent;
}

.posts-feed::-webkit-scrollbar {
    width: 8px;
}

.posts-feed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.posts-feed::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border-radius: 4px;
}

/* ================= POST ITEM ================= */
.post-item {
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: postSlideIn 0.5s ease-out;
}

@keyframes postSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

.post-item:hover {
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.post-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0a0a0f;
    font-size: 0.9rem;
}

.post-user-name {
    color: #00ffff;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 0 8px currentColor;
}

.post-timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.post-menu-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.post-menu-btn:hover {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.post-content {
    padding: 20px;
}

.post-text {
    color: #00ff41;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
}

.post-action-group {
    display: flex;
    gap: 20px;
}

.post-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.post-action-btn:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
}

.post-action-btn.reacted {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.post-impressions {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* ================= CREATE POST WINDOW ================= */
.create-post-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
    z-index: 3100;
    display: none;
    flex-direction: column;
    animation: postsSlideIn 0.5s ease-out;
}

.create-post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 255, 65, 0.3);
}

.create-post-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    color: #00ff41;
    text-shadow: 0 0 15px currentColor;
    letter-spacing: 1px;
}

.create-back-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid #00ff41;
    color: #ff00ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-back-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.create-post-form {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#postContent {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    resize: none;
    height: 200px;
    outline: none;
    transition: all 0.3s ease;
}

#postContent:focus {
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

#postContent::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.post-image-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    font-weight: 600;
}

.image-upload-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.image-preview {
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.create-post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: auto;
}

.cancel-post-btn,
.publish-post-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cancel-post-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cancel-post-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.publish-post-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #0a0a0f;
    font-weight: 700;
}

.publish-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.4);
}

/* ================= COMMENTS WINDOW ================= */
.comments-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
    z-index: 3200;
    display: none;
    flex-direction: column;
    animation: postsSlideIn 0.5s ease-out;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
}

.comments-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    color: #ffaa00;
    text-shadow: 0 0 15px currentColor;
}

.comments-back-btn {
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid #ffaa00;
    color: #ff00ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comments-back-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

.original-post {
    background: rgba(22, 33, 62, 0.8);
    margin: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 165, 0, 0.3);
}

.comments-section {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.comment-item {
    background: rgba(22, 33, 62, 0.4);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    animation: commentSlideIn 0.3s ease-out;
}

@keyframes commentSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0a0a0f;
    font-size: 0.8rem;
}

.comment-username {
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 5px currentColor;
}

.comment-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    margin-left: auto;
}

.comment-content {
    color: #00ff41;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.comment-reply-btn:hover {
    color: #ff00ff;
}

.add-comment-section {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 165, 0, 0.3);
}

.comment-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#commentInput {
    flex: 1;
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    padding: 12px 15px;
    color: #00ffff;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

#commentInput:focus {
    border-color: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.send-comment-btn {
    background: linear-gradient(45deg, #ffaa00, #ff00ff);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0a0a0f;
}

.send-comment-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

/* ================= EDIT POST MODAL ================= */
.edit-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.edit-post-content {
    background: rgba(22, 33, 62, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease-out;
}

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

.edit-post-header h3 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    margin: 0;
}

.edit-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.edit-close-btn:hover {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.edit-post-body {
    padding: 20px;
}

#editPostContent {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #00ff41;
    font-family: 'Rajdhani', sans-serif;
    resize: none;
    height: 120px;
    outline: none;
    transition: all 0.3s ease;
}

#editPostContent:focus {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.edit-post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.edit-cancel-btn,
.edit-save-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.edit-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.edit-save-btn {
    background: linear-gradient(45deg, #00ffff, #00ff41);
    color: #0a0a0f;
    font-weight: 700;
}

.edit-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* ================= POST DROPDOWN MENU ================= */
.post-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
    display: none;
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255, 0, 255, 0.1);
    color: #ff00ff;
}

.dropdown-item.delete:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0040;
}

/* ================= CYBERPUNK THEME OVERRIDES ================= */
[data-theme="cyberpunk"] .genz-container {
    background: rgba(22, 33, 62, 0.4);
    border-color: rgba(255, 0, 255, 0.3);
}

[data-theme="cyberpunk"] .genz-container:hover {
    border-color: #00ffff;
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

[data-theme="cyberpunk"] .genz-header {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
    color: #00ffff;
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
    .genz-container-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .posts-header {
        padding: 15px 20px;
    }

    .posts-header h2 {
        font-size: 1.4rem;
    }

    .posts-controls {
        gap: 8px;
    }

    .posts-refresh-btn,
    .posts-home-btn,
    .posts-create-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .create-post-form {
        padding: 20px;
    }

    #postContent {
        height: 150px;
        padding: 15px;
    }

    .post-item {
        margin-bottom: 15px;
    }

    .post-header {
        padding: 12px 15px;
    }

    .post-content {
        padding: 15px;
    }

    .post-actions {
        padding: 12px 15px;
    }

    .post-action-group {
        gap: 15px;
    }

    .edit-post-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .genz-container-grid {
        padding: 10px;
    }

    .posts-header h2 {
        font-size: 1.2rem;
    }

    .create-post-header h2 {
        font-size: 1.3rem;
    }

    .posts-nav-btn {
        padding: 12px 15px;
        font-size: 0.8rem;
    }

    .post-user-name {
        font-size: 0.9rem;
    }

    .post-text {
        font-size: 0.95rem;
    }

    .post-action-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ================= LOADING STATES ================= */
.loading-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner-posts {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 0, 255, 0.3);
    border-top-color: #ff00ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

/* ================= EMPTY STATES ================= */
.empty-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.empty-posts i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 0, 255, 0.3);
}

.empty-posts h3 {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* Blocked message shake animation */
@keyframes shake {

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

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* ================= TIC-TAC-TOE GAME SYSTEM ================= */

/* Games List in Hamburger Menu */
.games-list {
    padding: 15px;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.game-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.game-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1.2rem;
}

.game-info {
    flex: 1;
}

.game-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.game-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.game-play-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.game-item:hover .game-play-btn {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Game Status Indicator */
.user-game-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    color: #00ff88;
    font-size: 0.9rem;
    animation: gamePulse 2s ease-in-out infinite;
}

@keyframes gamePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== OPPONENT SELECTION WINDOW ===== */
.ttt-opponent-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
    z-index: 3500;
    display: none;
    flex-direction: column;
    animation: windowSlideIn 0.5s ease-out;
}

@keyframes windowSlideIn {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

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

.ttt-opponent-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 0, 255, 0.3);
}

.ttt-opponent-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.ttt-back-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid #ff00ff;
    border-radius: 50%;
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-back-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.ttt-opponent-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ttt-opponent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ttt-opponent-item:hover {
    border-color: #00ffff;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.ttt-opponent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.ttt-opponent-info {
    flex: 1;
}

.ttt-opponent-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00ffff;
}

.ttt-opponent-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.ttt-challenge-btn {
    padding: 10px 25px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 25px;
    color: #0a0a0f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-challenge-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

.ttt-challenge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CHALLENGE POPUP ===== */
.ttt-challenge-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    display: none;
    animation: popupSlideDown 0.5s ease-out;
}

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

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

.challenge-popup-content {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    padding: 25px;
    min-width: 350px;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.challenge-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.challenge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    width: 100%;
    animation: progressShrink 6s linear forwards;
}

@keyframes progressShrink {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

.challenge-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff00ff;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {

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

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

.challenge-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #00ffff;
}

.challenge-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.challenge-accept-btn,
.challenge-decline-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.challenge-accept-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #0a0a0f;
}

.challenge-decline-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
    border: 2px solid #ff4757;
}

.challenge-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.5);
}

.challenge-decline-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ===== GAME WINDOW ===== */
.ttt-game-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
    z-index: 3500;
    display: none;
    flex-direction: column;
}

.ttt-game-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 0, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttt-player-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ttt-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttt-player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ttt-player-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00ffff;
}

.ttt-player-symbol {
    width: 35px;
    height: 35px;
    background: rgba(255, 0, 255, 0.2);
    border: 2px solid #ff00ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.ttt-vs {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-exit-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff4757;
    border-radius: 50%;
    color: #ff4757;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-exit-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

.ttt-game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.ttt-turn-indicator {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #00ff41);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {

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

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 20px;
    border: 3px solid rgba(255, 0, 255, 0.3);
}

.ttt-cell {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ttt-cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.3) 0%, transparent 70%);
    transition: transform 0.3s ease;
}

.ttt-cell:hover:not(.ttt-cell-disabled)::before {
    transform: translate(-50%, -50%) scale(1);
}

.ttt-cell:hover:not(.ttt-cell-disabled) {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.ttt-cell.ttt-cell-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.ttt-cell.ttt-cell-x {
    color: #ff00ff;
    text-shadow: 0 0 20px currentColor;
    animation: cellAppear 0.5s ease-out;
}

.ttt-cell.ttt-cell-o {
    color: #00ffff;
    text-shadow: 0 0 20px currentColor;
    animation: cellAppear 0.5s ease-out;
}

@keyframes cellAppear {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }

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

.ttt-cell.winning-cell {
    animation: winningCellPulse 1s ease-in-out infinite;
}

@keyframes winningCellPulse {

    0%,
    100% {
        border-color: #00ff41;
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    }

    50% {
        border-color: #ff00ff;
        box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
    }
}

/* ===== RESULT WINDOW ===== */
.ttt-result-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 4500;
    display: none;
    align-items: center;
    justify-content: center;
}

.ttt-result-content {
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.ttt-result-animation {
    height: 300px;
    position: relative;
    margin-bottom: 30px;
}

.ttt-result-message {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3rem;
    margin-bottom: 40px;
    animation: messageFloat 2s ease-in-out infinite;
}

@keyframes messageFloat {

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

    50% {
        transform: translateY(-10px);
    }
}

.ttt-result-message.winner {
    background: linear-gradient(45deg, #ffd700, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-result-message.loser {
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-result-message.draw {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.ttt-replay-btn,
.ttt-home-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-replay-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #0a0a0f;
}

.ttt-home-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ttt-replay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.5);
}

.ttt-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ===== CELEBRATION EFFECTS ===== */
.celebration-firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.celebration-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

.celebration-star {
    position: absolute;
    font-size: 2rem;
    animation: starBurst 2s ease-out forwards;
}

@keyframes starBurst {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(2) rotate(720deg);
        opacity: 0;
    }
}

.celebration-light {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(20px);
    animation: lightPulse 1s ease-in-out;
}

@keyframes lightPulse {

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

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

.winner-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 5rem;
    background: linear-gradient(45deg, #ffd700, #ff00ff, #00ffff, #00ff41);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bannerAppear 1s ease-out, gradientShift 2s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    z-index: 10;
}

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

    60% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    }

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

/* ===== REPLAY & LEFT POPUPS ===== */
.ttt-replay-popup,
.ttt-left-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4600;
    display: none;
    animation: popupBounce 0.5s ease-out;
}

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

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

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

.replay-popup-content,
.left-popup-content {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    padding: 30px;
    min-width: 350px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4);
}

.replay-icon,
.left-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #00ffff;
    animation: iconSpin 2s ease-in-out infinite;
}

@keyframes iconSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.replay-text,
.left-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #00ffff;
}

.replay-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.replay-accept-btn,
.replay-decline-btn,
.left-ok-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.replay-accept-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #0a0a0f;
}

.replay-decline-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
    border: 2px solid #ff4757;
}

.left-ok-btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #0a0a0f;
    padding: 12px 40px;
}

.replay-accept-btn:hover,
.left-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.5);
}

.replay-decline-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .ttt-board {
        grid-template-columns: repeat(3, 100px);
        grid-template-rows: repeat(3, 100px);
        gap: 8px;
        padding: 12px;
    }

    .ttt-cell {
        font-size: 2.5rem;
    }

    .ttt-player-info {
        gap: 15px;
        font-size: 0.9rem;
    }

    .ttt-player-avatar {
        width: 35px;
        height: 35px;
    }

    .ttt-result-message {
        font-size: 2rem;
    }

    .winner-banner {
        font-size: 3rem;
    }

    .challenge-popup-content,
    .replay-popup-content,
    .left-popup-content {
        min-width: 300px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ttt-board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
        gap: 6px;
        padding: 10px;
    }

    .ttt-cell {
        font-size: 2rem;
    }

    .ttt-turn-indicator {
        font-size: 1.4rem;
    }

    .ttt-result-message {
        font-size: 1.2rem;
    }

    .winner-banner {
        font-size: 2rem;
    }
}

/* ===== CYBERPUNK THEME OVERRIDES ===== */
[data-theme="cyberpunk"] .game-item {
    background: rgba(22, 33, 62, 0.4);
    border-color: rgba(255, 0, 255, 0.3);
}

[data-theme="cyberpunk"] .game-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

[data-theme="cyberpunk"] .ttt-opponent-window,
[data-theme="cyberpunk"] .ttt-game-window {
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
}

[data-theme="cyberpunk"] .ttt-cell {
    background: rgba(22, 33, 62, 0.6);
    border-color: var(--neon-pink);
}

[data-theme="cyberpunk"] .ttt-cell:hover:not(.ttt-cell-disabled) {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* ================= TIC-TAC-TOE GAME SYSTEM ================= */

/* Games List in Hamburger Menu */
.games-list {
    padding: 15px;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.game-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.game-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1.2rem;
}

.game-info {
    flex: 1;
}

.game-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.game-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.game-play-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.game-item:hover .game-play-btn {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Game Status Indicator */
.user-game-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    color: #00ff88;
    font-size: 0.9rem;
    animation: gamePulse 2s ease-in-out infinite;
}

@keyframes gamePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== OPPONENT SELECTION WINDOW ===== */
.ttt-opponent-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
    z-index: 3500;
    display: none;
    flex-direction: column;
    animation: windowSlideIn 0.5s ease-out;
}

@keyframes windowSlideIn {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

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

.ttt-opponent-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 0, 255, 0.3);
}

.ttt-opponent-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.ttt-back-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid #ff00ff;
    border-radius: 50%;
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-back-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.ttt-opponent-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ttt-opponent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ttt-opponent-item:hover {
    border-color: #00ffff;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.ttt-opponent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.ttt-opponent-info {
    flex: 1;
}

.ttt-opponent-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00ffff;
}

.ttt-opponent-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.ttt-challenge-btn {
    padding: 10px 25px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 25px;
    color: #0a0a0f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-challenge-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

.ttt-challenge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CHALLENGE POPUP ===== */
.ttt-challenge-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    display: none;
    animation: popupSlideDown 0.5s ease-out;
}

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

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

.challenge-popup-content {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    padding: 25px;
    min-width: 350px;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.challenge-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.challenge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    width: 100%;
    animation: progressShrink 6s linear forwards;
}

@keyframes progressShrink {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

.challenge-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff00ff;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {

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

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

.challenge-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #00ffff;
}

.challenge-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.challenge-accept-btn,
.challenge-decline-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.challenge-accept-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #0a0a0f;
}

.challenge-decline-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
    border: 2px solid #ff4757;
}

.challenge-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.5);
}

.challenge-decline-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ===== GAME WINDOW ===== */
.ttt-game-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
    z-index: 3500;
    display: none;
    flex-direction: column;
}

.ttt-game-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 0, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttt-player-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ttt-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttt-player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ttt-player-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00ffff;
}

.ttt-player-symbol {
    width: 35px;
    height: 35px;
    background: rgba(255, 0, 255, 0.2);
    border: 2px solid #ff00ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.ttt-vs {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-exit-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff4757;
    border-radius: 50%;
    color: #ff4757;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-exit-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

.ttt-game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.ttt-turn-indicator {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #00ff41);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {

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

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 20px;
    border: 3px solid rgba(255, 0, 255, 0.3);
}

.ttt-cell {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ttt-cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.3) 0%, transparent 70%);
    transition: transform 0.3s ease;
}

.ttt-cell:hover:not(.ttt-cell-disabled)::before {
    transform: translate(-50%, -50%) scale(1);
}

.ttt-cell:hover:not(.ttt-cell-disabled) {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.ttt-cell.ttt-cell-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.ttt-cell.ttt-cell-x {
    color: #ff00ff;
    text-shadow: 0 0 20px currentColor;
    animation: cellAppear 0.5s ease-out;
}

.ttt-cell.ttt-cell-o {
    color: #00ffff;
    text-shadow: 0 0 20px currentColor;
    animation: cellAppear 0.5s ease-out;
}

@keyframes cellAppear {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }

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

.ttt-cell.winning-cell {
    animation: winningCellPulse 1s ease-in-out infinite;
}

@keyframes winningCellPulse {

    0%,
    100% {
        border-color: #00ff41;
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    }

    50% {
        border-color: #ff00ff;
        box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
    }
}

/* ===== RESULT WINDOW ===== */
.ttt-result-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 4500;
    display: none;
    align-items: center;
    justify-content: center;
}

.ttt-result-content {
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.ttt-result-animation {
    height: 300px;
    position: relative;
    margin-bottom: 30px;
}

.ttt-result-message {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3rem;
    margin-bottom: 40px;
    animation: messageFloat 2s ease-in-out infinite;
}

@keyframes messageFloat {

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

    50% {
        transform: translateY(-10px);
    }
}

.ttt-result-message.winner {
    background: linear-gradient(45deg, #ffd700, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-result-message.loser {
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-result-message.draw {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttt-result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.ttt-replay-btn,
.ttt-home-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ttt-replay-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #0a0a0f;
}

.ttt-home-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ttt-replay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.5);
}

.ttt-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ===== CELEBRATION EFFECTS ===== */
.celebration-firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.celebration-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

.celebration-star {
    position: absolute;
    font-size: 2rem;
    animation: starBurst 2s ease-out forwards;
}

@keyframes starBurst {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(2) rotate(720deg);
        opacity: 0;
    }
}

.celebration-light {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(20px);
    animation: lightPulse 1s ease-in-out;
}

@keyframes lightPulse {

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

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

.winner-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 5rem;
    background: linear-gradient(45deg, #ffd700, #ff00ff, #00ffff, #00ff41);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bannerAppear 1s ease-out, gradientShift 2s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    z-index: 10;
}

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

    60% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    }

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

/* ===== REPLAY & LEFT POPUPS ===== */
.ttt-replay-popup,
.ttt-left-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4600;
    display: none;
    animation: popupBounce 0.5s ease-out;
}

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

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

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

.replay-popup-content,
.left-popup-content {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #ff00ff;
    border-radius: 15px;
    padding: 30px;
    min-width: 350px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4);
}

.replay-icon,
.left-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #00ffff;
    animation: iconSpin 2s ease-in-out infinite;
}

@keyframes iconSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.replay-text,
.left-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #00ffff;
}

.replay-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.replay-accept-btn,
.replay-decline-btn,
.left-ok-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.replay-accept-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #0a0a0f;
}

.replay-decline-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
    border: 2px solid #ff4757;
}

.left-ok-btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #0a0a0f;
    padding: 12px 40px;
}

.replay-accept-btn:hover,
.left-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.5);
}

.replay-decline-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .ttt-board {
        grid-template-columns: repeat(3, 100px);
        grid-template-rows: repeat(3, 100px);
        gap: 8px;
        padding: 12px;
    }

    .ttt-cell {
        font-size: 2.5rem;
    }

    .ttt-player-info {
        gap: 15px;
        font-size: 0.9rem;
    }

    .ttt-player-avatar {
        width: 35px;
        height: 35px;
    }

    .ttt-result-message {
        font-size: 2rem;
    }

    .winner-banner {
        font-size: 3rem;
    }

    .challenge-popup-content,
    .replay-popup-content,
    .left-popup-content {
        min-width: 300px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ttt-board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
        gap: 6px;
        padding: 10px;
    }

    .ttt-cell {
        font-size: 2rem;
    }

    .ttt-turn-indicator {
        font-size: 1.4rem;
    }

    .ttt-result-message {
        font-size: 1.2rem;
    }

    .winner-banner {
        font-size: 2rem;
    }
}

/* ===== CYBERPUNK THEME OVERRIDES ===== */
[data-theme="cyberpunk"] .game-item {
    background: rgba(22, 33, 62, 0.4);
    border-color: rgba(255, 0, 255, 0.3);
}

[data-theme="cyberpunk"] .game-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

[data-theme="cyberpunk"] .ttt-opponent-window,
[data-theme="cyberpunk"] .ttt-game-window {
    background: linear-gradient(135deg, #0a0a0f 0%, #101420 50%, #16213e 100%);
}

[data-theme="cyberpunk"] .ttt-cell {
    background: rgba(22, 33, 62, 0.6);
    border-color: var(--neon-pink);
}

/* ================= MODERATOR STYLES ================= */

/* Golden tick for Developer */
.developer-badge {
    color: #FFD700 !important;
}

/* Blue tick for Moderator */
.moderator-badge {
    color: #1DA1F2 !important;
}

/* Moderator name styling */
.moderator-name {
    background: linear-gradient(45deg, #1DA1F2, #00D9FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="cyberpunk"] .ttt-cell:hover:not(.ttt-cell-disabled) {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* ================= ?? STONE AWARD SYSTEM STYLES ================= */

.stone-award-message {
    margin: 30px auto;
    max-width: 600px;
    position: relative;
    animation: stoneMessageAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stoneMessageAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

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

.stone-award-content {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.2) 0%,
            rgba(255, 105, 180, 0.2) 25%,
            rgba(0, 206, 209, 0.2) 50%,
            rgba(138, 43, 226, 0.2) 75%,
            rgba(255, 215, 0, 0.2) 100%);
    background-size: 400% 400%;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 80px rgba(255, 105, 180, 0.4),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    animation:
        rainbowGlow 3s ease-in-out infinite,
        borderGlow 2s linear infinite;
    border: 3px solid transparent;
    position: relative;
}

/* Glowing animated border */
.stone-award-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg,
            #FFD700, #FF69B4, #00CED1, #FF1493,
            #7B68EE, #00FF7F, #FFD700);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    filter: blur(8px);
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

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

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

@keyframes rainbowGlow {

    0%,
    100% {
        box-shadow:
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 215, 0, 0.5);
    }

    25% {
        box-shadow:
            0 0 40px rgba(255, 105, 180, 0.8),
            0 0 80px rgba(255, 105, 180, 0.5);
    }

    50% {
        box-shadow:
            0 0 40px rgba(0, 206, 209, 0.8),
            0 0 80px rgba(0, 206, 209, 0.5);
    }

    75% {
        box-shadow:
            0 0 40px rgba(138, 43, 226, 0.8),
            0 0 80px rgba(138, 43, 226, 0.5);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(255, 215, 0, 0.8);
    }

    25% {
        border-color: rgba(255, 105, 180, 0.8);
    }

    50% {
        border-color: rgba(0, 206, 209, 0.8);
    }

    75% {
        border-color: rgba(138, 43, 226, 0.8);
    }
}

/* Fireworks effect */
.stone-award-fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.stone-award-fireworks::before,
.stone-award-fireworks::after {
    content: '?';
    position: absolute;
    font-size: 30px;
    animation: fireworkBurst 2s ease-out infinite;
}

.stone-award-fireworks::before {
    top: 20%;
    left: 20%;
    animation-delay: 0.5s;
}

.stone-award-fireworks::after {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes fireworkBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.5;
    }

    100% {
        transform: scale(2) rotate(360deg);
        opacity: 0;
    }
}

/* Glow pulse effect */
.stone-award-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
            rgba(255, 215, 0, 0.4) 0%,
            transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {

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

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

/* Header section */
.stone-award-header {
    margin-bottom: 20px;
    position: relative;
}

.stone-emoji-large {
    font-size: 80px;
    animation: emojiFloat 3s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

@keyframes emojiFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.stone-sparkles {
    font-size: 25px;
    margin-top: 10px;
    animation: sparkleRotate 2s linear infinite;
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg);
    }

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

/* Text content */
.stone-award-text h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #FFD700, #FF69B4, #00CED1, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s ease-in-out infinite;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

@keyframes textGradient {

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

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

.stone-name {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 15px 0;
    animation: stoneNamePulse 2s ease-in-out infinite;
}

@keyframes stoneNamePulse {

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

    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.stone-description {
    font-size: 1.1rem;
    color: #E0E0E0;
    margin: 10px 0 20px;
    font-style: italic;
}

.stone-screenshot-prompt {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FF1493, #00CED1, #FF1493);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        screenshotBlink 1s ease-in-out infinite,
        textGradient 2s ease-in-out infinite;
    margin-top: 20px;
}

@keyframes screenshotBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Confetti container */
.stone-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.stone-confetti {
    position: absolute;
    top: -20px;
    animation: confettiFall 3s linear forwards;
    z-index: 100;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* Fade out animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

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

/* Responsive design */
@media (max-width: 768px) {
    .stone-award-message {
        max-width: 90%;
        margin: 20px auto;
    }

    .stone-award-content {
        padding: 30px 20px;
    }

    .stone-emoji-large {
        font-size: 60px;
    }

    .stone-award-text h2 {
        font-size: 1.4rem;
    }

    .stone-name {
        font-size: 1.6rem;
    }

    .stone-screenshot-prompt {
        font-size: 1rem;
    }
}

/* Hide floating orbs when upside down is active */
.upside-down-overlay.active~.bg-effects .floating-orbs {
    display: none;
}

/* Cyberpunk theme overrides */
[data-theme="cyberpunk"] .stone-award-content {
    background: linear-gradient(135deg,
            rgba(255, 0, 255, 0.2) 0%,
            rgba(0, 255, 255, 0.2) 50%,
            rgba(255, 0, 255, 0.2) 100%);
}

[data-theme="cyberpunk"] .stone-award-content::before {
    background: linear-gradient(45deg,
            #ff00ff, #00ffff, #00ff41, #ff00ff);
}

/* ================= ANIMATIONS ================= */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

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

/* ================= UI REFACTOR OVERRIDES ================= */

/* Desktop Refinements (Overrides) */
.message-input-area {
    padding: 15px 25px !important;
}

#messageInput {
    padding: 10px 20px !important;
}

/* Responsive UI Refactoring */
@media (max-width: 768px) {

    /* Compact Header */
    .chat-header {
        height: 54px !important;
        padding: 0 10px !important;
    }

    .header-content {
        padding: 0 10px !important;
    }

    .logo-text {
        font-size: 1.2rem !important;
    }

    .online-counter {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }

    .counter-text {
        display: none !important;
        /* Hide Online text */
    }

    /* Compact Footer */
    .message-input-area {
        padding: 10px !important;
    }

    .input-wrapper {
        gap: 8px !important;
    }

    .emoji-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }

    .send-btn {
        width: 40px !important;
        height: 40px !important;
    }

    #messageInput {
        min-height: 38px !important;
        padding: 8px 15px !important;
        font-size: 0.95rem !important;
    }

    /* Adjust message bubble max-width for mobile */
    .message-bubble {
        max-width: 85% !important;
        padding: 10px 15px !important;
    }
}

/* Login and Account Creation Input Styles */
#newUsernameInput,
#newPasswordInput,
#loginUsernameInput,
#loginPasswordInput {
    width: 100%;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

#newUsernameInput:focus,
#newPasswordInput:focus,
#loginUsernameInput:focus,
#loginPasswordInput:focus {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

#newUsernameInput::placeholder,
#newPasswordInput::placeholder,
#loginUsernameInput::placeholder,
#loginPasswordInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to Bottom Button */
.scroll-to-bottom-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-bottom-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.scroll-to-bottom-btn.new-message {
    animation: pulseGlow 1.5s ease-in-out infinite;
    border-color: #ff006e;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes pulseGlow {

    0%,
    100% {
        border-color: #ff006e;
        box-shadow: 0 0 20px rgba(255, 0, 110, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    50% {
        border-color: #3a86ff;
        box-shadow: 0 0 30px rgba(58, 134, 255, 0.8), 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Hamburger Menu Scrollable */


.genz-container-grid {
    padding-bottom: 20px;
}

/* ================= WIZARD UI STYLES ================= */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.step-dot {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-secondary);
    color: white;
    box-shadow: 0 0 15px var(--accent-primary);
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
    z-index: 1;
}

.step-line.active {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.wizard-step {
    text-align: center;
    animation: fadeInStep 0.5s ease;
    display: none;
    /* Hidden by default */
}

.wizard-step.active {
    display: block;
}

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

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

.wizard-step h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wizard-step p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.wizard-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.next-btn,
.back-btn {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.next-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Specific adjustments for inputs in wizard */
.wizard-step .input-container {
    max-width: 100%;
    width: 320px;
    margin: 0 auto 20px;
}

#profileSetupContainer {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 50px;
}

/* ================= AVATAR WIZARD STYLES ================= */
.profile-pic-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.profile-pic-label {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-pic-label:hover {
    transform: scale(1.05);
}

.profile-pic-preview-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* Circle */
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent-primary);
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.5),
        0 0 20px var(--accent-primary),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    /* Neon Glow */
    background: #000;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.profile-pic-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-pic-label:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay i {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px var(--accent-secondary);
}

.profile-pic-label span {
    display: block;
    margin-top: 10px;
    color: var(--accent-secondary);
    font-family: 'Orbitron', sans-serif;
    /* Creative Font */
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.skip-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.skip-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

/* Custom Error Popup */
.custom-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s;
}

.custom-error-overlay.active {
    display: flex;
}

.custom-error-popup {
    background: linear-gradient(135deg, rgba(255, 50, 80, 0.1), rgba(255, 100, 100, 0.05));
    border: 2px solid rgba(255, 100, 100, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    animation: slideIn 0.3s;
    box-shadow: 0 20px 60px rgba(255, 50, 80, 0.3);
}

.error-icon {
    font-size: 60px;
    color: #ff5252;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.error-title {
    font-size: 24px;
    font-weight: bold;
    color: #ff5252;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.error-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.5;
}

.error-ok-btn {
    position: relative;
    padding: 12px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    background: transparent;
    color: white;
}

.error-ok-btn .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff5252, #ff1744);
    z-index: -1;
    transition: transform 0.3s;
}

.error-ok-btn:hover .btn-bg {
    transform: scale(1.05);
}

@keyframes pulse {

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

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

/* ================= FLAGSHIP: LUXURY PROFILE TRAY (USER LIST) ================= */

/* Modal Backdrop */
.online-users-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Deep Dark Backdrop */
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.online-users-modal.active {
    opacity: 1;
    visibility: visible;
}

/* The Tray (Card) */
.online-list-container {
    background: var(--bg-onyx);
    width: 480px;
    max-width: 95%;
    height: 650px;
    border: 1px solid var(--border-gold);
    /* Gold Border Flagship */
    border-radius: 6px;
    /* High-end sharp corners */
    box-shadow: var(--shadow-flat), var(--shadow-gold), 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    /* Static luxury feel */
}

/* Header */
.online-list-header {
    padding: 25px 30px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-list-header h2 {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
}

.online-list-header h2 i {
    color: var(--accent-gold);
    margin-right: 15px;
    font-size: 1.2rem;
}

.close-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: rotate(90deg);
}

/* TABS (Minimalist) */
.user-list-tabs {
    display: flex;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-panel);
    gap: 40px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 18px 0;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-gold);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Search Bar */
.user-search-container {
    padding: 25px 30px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-onyx);
}

.user-search-container i {
    position: absolute;
    left: 45px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    z-index: 2;
}

#userListSearch {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-main);
    border-radius: 4px;
    transition: all 0.3s;
}

#userListSearch:focus {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.05);
}

#userListSearch::placeholder {
    color: var(--text-tertiary);
    letter-spacing: 1px;
}

/* USER LIST (Refined) */
#usersListContainer {
    flex: 1;
    overflow-y: auto;
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detailed-users-list {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100%;
    /* Fill container */
}

/* User Card (Fixed for RGB Default) */
.user-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 15px;
    margin-bottom: 10px;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(3px);
}

/* Avatar Area */
.user-item .user-avatar-container {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.user-item .user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-secondary);
    transition: border-color 0.3s;
}

.user-item:hover .user-avatar {
    border-color: var(--accent-primary);
}

.user-item .status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #000;
    z-index: 2;
}

.user-item .status-dot.online {
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

.user-item .status-dot.offline {
    background: #555;
}

/* Info Area */
.user-item .user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.user-item .user-name {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item .user-status-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Action Button */
.user-item .user-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.user-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

.user-action-btn:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
}

.message-btn {
    color: var(--text-primary);
}

.message-btn:hover {
    color: #fff !important;
}

/* ================= THEME TOGGLE BUTTON ================= */
.theme-toggle-container {
    position: relative;
}

.theme-toggle-btn {
    position: relative;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.theme-btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    opacity: 0;
    filter: blur(8px);
    transition: all 0.3s ease;
    z-index: -1;
}

.theme-toggle-btn:hover .theme-btn-glow {
    opacity: 0.5;
}

.theme-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(20deg);
}

/* ================= ONYX THEME USER LIST OVERRIDES ================= */
[data-theme="onyx"] .user-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="onyx"] .user-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #D4AF37;
}

[data-theme="onyx"] .user-item .user-avatar {
    border-color: #D4AF37;
}

[data-theme="onyx"] .user-item .status-dot.online {
    background: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

[data-theme="onyx"] .user-action-btn {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
}

[data-theme="onyx"] .user-action-btn:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #050505;
}

/* ================= CHAT MEDIA & LINK SUPPORT ================= */

/* Gallery Button */
.gallery-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-btn i {
    font-size: 1.2rem;
}

/* Chat Image Preview */
.chat-image-preview {
    display: flex;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
    gap: 15px;
    align-items: center;
    animation: previewSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes previewSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.preview-thumb-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.preview-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.preview-info {
    flex: 1;
}

/* Rendered Chat Images */
.image-thumbnail-wrapper {
    position: relative;
    max-width: 100%;
    width: fit-content;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-thumbnail-wrapper:hover {
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.chat-rendered-image {
    max-width: 100%;
    max-height: 280px;
    display: block;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
}

.media-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: var(--accent-primary);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid var(--accent-primary);
    opacity: 0.8;
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.3);
}

.media-aesthetic-frame {
    padding: 4px;
    background: rgba(255, 255, 255, 0.03) !important;
}

.image-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: opacity 0.5s ease;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.image-loading-overlay i {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Link Styling */
.message-content a {
    color: #3a86ff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(58, 134, 255, 0.3);
    transition: all 0.2s ease;
}

.message-content a:hover {
    color: #00ecff;
    border-bottom-color: #00ecff;
    text-shadow: 0 0 10px rgba(0, 236, 255, 0.5);
}

/* Image Viewer Modal */
.image-viewer-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 100000 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    opacity: 0 !important;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(15px);
}

.image-viewer-modal.active {
    display: flex !important;
    opacity: 1 !important;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.viewer-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.viewer-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.viewer-zoom-level {
    position: absolute;
    top: -45px;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-controls {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.viewer-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-controls button:hover {
    opacity: 1;
    transform: scale(1.2);
    color: #D4AF37;
}

/* DM Specific Media Styles */
.dm-gallery-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    color: white;
}

.dm-gallery-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dm-image-preview {
    display: flex;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
    align-items: center;
}

.dm-image-thumb {
    max-width: 100%;
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-image-thumb img {
    max-width: 250px;
    max-height: 250px;
    display: block;
    object-fit: cover;
}

/* ================= PREMIUM AUTH LOADER ================= */

.auth-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 15, 0.85);
    /* Deep dark blue-black */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-loader-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Orbital Spinner */
.auth-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Core - Pulsing */
.auth-spinner::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-primary, #00C9FF);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-primary, #00C9FF);
    animation: corePulse 2s ease-in-out infinite;
}

/* Rotating Ring */
.auth-spinner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.8);
    border-right-color: rgba(0, 201, 255, 0.5);
    /* Cyan tint */
    border-bottom-color: transparent;
    border-left-color: transparent;
    animation: ringSpin 1.5s linear infinite;
}

/* Second subtle outer ring for depth */
.auth-loader-content::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: reverseSpin 10s linear infinite;
    pointer-events: none;
}

@keyframes ringSpin {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes reverseSpin {
    0% {
        transform: rotate(360deg);
    }

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

@keyframes corePulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.8);
        box-shadow: 0 0 10px var(--accent-primary, #00C9FF);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 30px var(--accent-primary, #00C9FF);
    }
}

.auth-loader-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    text-align: center;
}




#mainChatHeader::before,
.user-hamburger-menu::before,
.hamburger-menu::before,
.dm-window::before,
.profile-tray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rough-frost-noise);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}



/* NUCLEAR PREMIUM PROFILE TRAY OVERHAUL */
body #userHamburgerMenu {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 340px !important;
    background: rgba(15, 15, 20, 0.1) !important;
    backdrop-filter: blur(30px) saturate(250%) contrast(125%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(250%) contrast(125%) !important;

    /* Desktop override for Liquid Glass */
    @media (min-width: 769px) {
        backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
        -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    }

    border-left: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    overflow: hidden;
}

body #userHamburgerMenu.open {
    transform: translateX(0) !important;
}

body #userHamburgerMenu::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 201, 255, 0.08) 0%, transparent 60%);
    animation: luxuryGlow 15s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

body #userHamburgerMenu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.18'/%3E%3C/svg%3E"),
        var(--rough-frost-noise);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

@keyframes luxuryGlow {

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

    50% {
        transform: translate(-10%, 10%);
        opacity: 0.7;
    }
}


/* ================= REMOVED ALL MILKY RULES - CLEAN SLATE ================= */
/* All previous conflicting rules removed */



/* ================= FORCE LIQUID TRANSPARENT GLASS (APPLE STYLE) ================= */

/* SHARED GLASS CLASS */
/* SHARED GLASS CLASS */
.glass-panel-shared,
#userHamburgerMenu,
.online-modal-content,
#tttGameWindow,
.dm-window,
.settings-window,
.profile-view-modal {
    /* Base Glass - Ultra Low Opacity for "Liquid" feel */
    background: rgba(20, 20, 20, 0.45) !important;

    /* Heavy Blur */
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;

    /* Refined Apple-style Borders */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;

    /* Deep Smooth Shadows */
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.1) !important;

    /* Corner Radius */
    border-radius: 24px !important;

    /* Ensure no white haze from other rules */
    background-image: none !important;
}

/* DESKTOP ONLY: Apply Liquid Glass SVG Filter */
@media (min-width: 769px) {

    .glass-panel-shared,
    #userHamburgerMenu,
    .online-modal-content,
    #tttGameWindow,
    .dm-window,
    .settings-window,
    .profile-view-modal {
        backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
        -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    }
}

/* Specific: Hamburger Menu */
#userHamburgerMenu {
    position: fixed !important;
    top: 70px !important;
    right: 20px !important;
    width: 280px !important;
    height: auto !important;
    min-height: 200px !important;
    transform: translateX(120%) !important;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease !important;
    opacity: 0;
    z-index: 9999 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

#userHamburgerMenu.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

/* Inner Header shared */
#userHamburgerMenu .hamburger-header,
.settings-header,
.warn-header,
.confirm-header,
.ttt-opponent-header,
.ttt-game-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 25px !important;
}

/* Titles */
#userHamburgerMenu .hamburger-header h3,
.settings-header h2,
.warn-header h3,
.confirm-header h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Close Buttons */
.hamburger-close,
.panel-close,
.settings-back-btn,
.warn-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
}

.hamburger-close:hover,
.panel-close:hover,
.settings-back-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* NO NOISE OVERLAYS - CLEAN LIQUID LOOK */
#userHamburgerMenu::before,
.online-modal-content::before,
#tttGameWindow::before,
.dm-window::before,
.settings-window::before {
    display: none !important;
    content: none !important;
}

/* Item styling adjustment to remove blocks */
.menu-bars-container {
    padding: 10px !important;
}

/* ================= DRIXY AI CHAT WINDOW STYLES (PREMIUM FROST) ================= */

/* Modal Container */
#drixyAIModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: transparent;
    animation: fadeInModal 0.3s ease-out;
}

#drixyAIModal.show {
    display: flex;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Chat Window - Full Screen Frosted Glass */
.drixy-chat-window {
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 30, 0.4);
    /* Sophisticated dark tint */
    backdrop-filter: blur(40px) saturate(180%);
    /* PREMIUM APPLE BLUR */
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    /* Inner Vignette */
}

/* Header */
.drixy-chat-header {
    flex-shrink: 0;
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.drixy-header-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.drixy-icon-spin {
    display: none;
}

/* REQ: Remove spinning icon */

.drixy-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.drixy-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Messages Area */
.drixy-chat-messages {
    flex: 1;
    padding: 20px;
    /* Standard padding for all devices */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    .drixy-chat-messages {
        padding: 20px 50px;
        /* Slight increase for desktop but NOT centered channel */
    }
}

/* Typography */
.drixy-message {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 85%;
    /* Basic max width */
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
    white-space: pre-wrap;
    /* Preserve whitespace */
}

/* User Message - iOS Blue Gradient Style */
.drixy-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0A84FF, #007AFF);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Assistant Message - Glassmorphism */
.drixy-message.assistant {
    align-self: flex-start;
    max-width: 95%;
    /* Allow full width as requested */
    background: rgba(255, 255, 255, 0.08);
    /* Darker glass for better text contrast if needed */
    color: #F0F0F0;
    border-bottom-left-radius: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding-right: 36px;
    /* Space for copy button */
}

/* Copy Button */
.drixy-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    /* Always visible */
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.drixy-message.assistant:hover .drixy-copy-btn {
    opacity: 1;
    /* Full opacity on hover */
}

.drixy-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.drixy-copy-btn.copied {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

/* Markdown Content Styles */
.drixy-message.assistant p {
    margin: 0 0 10px 0;
}

.drixy-message.assistant p:last-child {
    margin-bottom: 0;
}

.drixy-message.assistant ul,
.drixy-message.assistant ol {
    margin: 10px 0 10px 20px;
    padding-left: 0;
}

.drixy-message.assistant li {
    margin-bottom: 5px;
}

.drixy-message.assistant strong {
    font-weight: 700;
    color: #fff;
}

.drixy-message.assistant pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.drixy-message.assistant code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* Input Area - Sleek Floating Bar (THINNER) */
.drixy-input-area {
    flex-shrink: 0;
    padding: 10px 20px 20px;
    /* Reduced vertical padding */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.drixy-input-wrapper {
    flex: 1;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    /* Pill shape */
    padding: 0 16px;
    /* Reduced internal padding */
    min-height: 40px;
    /* Thinner height target */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.drixy-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

#drixyInput {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    max-height: 120px;
    outline: none;
    padding: 0;
}

#drixyInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#drixySendBtn {
    margin-left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0A84FF;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
    font-size: 1.1rem;
}

#drixySendBtn:hover:not(:disabled) {
    transform: scale(1.05);
}

#drixySendBtn:active:not(:disabled) {
    transform: scale(0.95);
}

#drixySendBtn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    cursor: default;
}

/* Thinking Indicator */
.drixy-thinking {
    align-self: flex-start;
    display: none;
    /* JS Toggles this */
    gap: 5px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    margin-bottom: 20px;
}

.drixy-thinking.active {
    display: flex;
}

.thinking-bubble {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.thinking-bubble:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-bubble:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

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

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

.drixy-date-separator {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 15px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ================= THEME SELECTOR MODAL ================= */
/* ================= THEME SELECTOR MODAL (CONTAINERS + TOGGLES) ================= */
.theme-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.theme-selector-modal.active {
    display: flex;
    opacity: 1;
}

.theme-selector-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    width: 380px;
    /* Slightly wider */
    max-width: 90%;
    transform: scale(0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
    to {
        transform: scale(1);
    }
}

.theme-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.theme-selector-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.theme-selector-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-selector-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.theme-selector-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Separation between containers */
}

/* Theme Option Container Card */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* Removed overflow: hidden to prevent clipping */
}

/* Highlight border on hover */
.theme-toggle-btn:hover {
    background: rgba(40, 40, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Selected State */
.theme-toggle-btn.selected {
    background: rgba(var(--accent-primary-rgb, 96, 165, 250), 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb, 96, 165, 250), 0.1);
}

/* Left side content */
.theme-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    /* Take up remaining space */
    min-width: 0;
    /* Allow shrinking */
}

.toggle-icon {
    font-size: 1.2rem;
    width: 40px;
    /* Slightly larger */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Prevent icon shrinking */
}

.theme-toggle-btn.selected .toggle-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    box-shadow: 0 0 10px var(--accent-primary);
}

.toggle-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff !important;
    /* Force white */
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Right side Toggle Switch Visual */
.visual-toggle {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.visual-toggle::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn.selected .visual-toggle {
    background: var(--accent-primary);
}

.theme-toggle-btn.selected .visual-toggle::after {
    transform: translateX(20px);
}

/* Specific Icons */
.rgb-icon i {
    color: #FF9F43;
}

.onyx-icon i {
    color: #9B59B6;
}

.darkish-icon i {
    color: #60a5fa;
}

/* Battery/Moon */

.theme-toggle-btn.selected .rgb-icon i,
.theme-toggle-btn.selected .onyx-icon i,
.theme-toggle-btn.selected .darkish-icon i {
    color: #fff !important;
    /* White icon when active background */
}

/* Mobile adjustment */
@media (max-width: 400px) {
    .theme-selector-content {
        width: 85%;
    }
}

/* End of Theme Selector Modal Styles */



.theme-selector-header h3 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-selector-header h3 i {
    color: var(--accent-primary);
}

.theme-selector-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-selector-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.theme-selector-options {
    padding: 25px;
    display: grid;
    gap: 15px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(30, 30, 45, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.theme-option:hover {
    background: rgba(40, 40, 60, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.theme-option.selected {
    background: rgba(var(--accent-primary-rgb, 0, 201, 255), 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb, 0, 201, 255), 0.2);
}

.theme-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}

.rgb-preview {
    background: linear-gradient(135deg, #050a15, #0a1520);
    position: relative;
}

.preview-orbs {
    position: relative;
    width: 100%;
    height: 100%;
}

.preview-orb {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(8px);
}

.preview-orb:nth-child(1) {
    top: 10px;
    left: 10px;
}

.preview-orb:nth-child(2) {
    bottom: 10px;
    right: 10px;
}

.onyx-preview .preview-content,
.darkish-preview .preview-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tyndall-preview {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.theme-info {
    flex: 1;
}

.theme-info h4 {
    margin: 0 0 5px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.theme-checkmark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-option.selected .theme-checkmark {
    color: var(--accent-primary);
    animation: checkPop 0.3s ease-out;
}

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

    50% {
        transform: scale(1.2);
    }

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

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-selector-content {
        width: 95%;
        max-height: 85vh;
    }

    .theme-option {
        flex-direction: column;
        text-align: center;
    }

    .theme-preview {
        width: 100%;
        height: 100px;
    }
}

/* ================= DARKISH SVGGESTION POPUP (LIQUID GLASS) ================= */
.suggestion-modal {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 200000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.suggestion-modal.active {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
}

.suggestion-content {
    background: rgba(20, 20, 30, 0.85);
    /* Fallback */
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    /* Liquid Glass Effects managed by .glass-panel-shared class */
}

.suggestion-modal.active .suggestion-content {
    transform: translateY(0);
}

.suggestion-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: #4cd137;
    /* Battery Green */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(76, 209, 55, 0.3);
}

.suggestion-icon.glass-pulse {
    animation: glassPulse 2s infinite;
}

@keyframes glassPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 209, 55, 0.4);
    }

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

    100% {
        box-shadow: 0 0 0 0 rgba(76, 209, 55, 0);
    }
}

.suggestion-content h3 {
    margin: 0 0 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: #fff;
}

.suggestion-content p {
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.suggestion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.frost-button.primary {
    background: linear-gradient(135deg, #4cd137, #0097e6);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 14px;
    border-radius: 14px;
    font-size: 1.1rem;
}

.frost-button.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
}