/* Professional Chat Overlay Widget - Home Page Theme */
.chat-sidebar {
    position: fixed;
    top: 80px; /* Below navbar */
    bottom: 20px; /* Touch the bottom */
    right: 20px;
    width: 320px; /* Smaller width */
    height: auto; /* Auto height to touch bottom */
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Smaller border radius */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.chat-sidebar.hidden {
    transform: translateX(420px) scale(0.95);
    opacity: 0;
}

/* Remove body margin adjustments since chat is now overlay */
body:not(.chat-hidden) {
    margin-right: 0;
}

body.chat-hidden {
    margin-right: 0;
}

/* Professional Chat Header - Home Page Theme */
.chat-header {
    background: rgba(20, 20, 20, 0.95);
    padding: 12px 16px; /* Smaller padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0; /* Match sidebar radius */
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px; /* Smaller height */
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 12px; /* Smaller gap */
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px; /* Smaller gap */
    color: #ffffff;
    font-weight: 600;
    font-size: 14px; /* Smaller font */
    letter-spacing: -0.025em;
}

.chat-title i {
    color: #ffffff;
    font-size: 16px; /* Smaller icon */
    opacity: 0.9;
}

.chat-controls {
    display: flex;
    gap: 8px;
}

.chat-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.chat-toggle-btn i {
    font-size: 18px;
}

/* Online Counter */
.online-counter {
    display: flex;
    align-items: center;
    gap: 6px; /* Smaller gap */
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px; /* Smaller font */
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px; /* Smaller padding */
    border-radius: 16px; /* Smaller radius */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.online-dot {
    width: 6px; /* Smaller dot */
    height: 6px; /* Smaller dot */
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5); /* Smaller shadow */
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    }
}

/* Simple Clean Giveaway Banner - Blue Style */
.giveaway-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    margin: 10px;
    padding: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

/* Simple hover effect */
.giveaway-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.giveaway-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Header Row - Title and Controls */
.giveaway-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.giveaway-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.giveaway-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.giveaway-title-info {
    flex: 1;
    min-width: 0;
}

.giveaway-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.giveaway-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Controls positioned in top-right */
.giveaway-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Description */
.giveaway-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    margin: 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Join Button - Simple Blue Style */
.giveaway-join-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin: 4px 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Stats Row with Divider */
.giveaway-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding: 4px 0;
}

.giveaway-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.giveaway-stat i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

/* Divider between stats */
.giveaway-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Simple Control Buttons */
.giveaway-settings-btn, .giveaway-end-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    width: 28px;
    height: 28px;
}

.giveaway-settings-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.giveaway-end-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
    transform: translateY(-1px);
}

.giveaway-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.giveaway-join-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.giveaway-join-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.giveaway-join-btn.joined {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.giveaway-join-btn.joined:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Confetti Effect for Giveaway Creation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    animation: confetti-fall 3s linear forwards;
}

.confetti:nth-child(2n) { background: #10b981; }
.confetti:nth-child(3n) { background: #f59e0b; }
.confetti:nth-child(4n) { background: #ef4444; }
.confetti:nth-child(5n) { background: #8b5cf6; }

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Winner Announcement Styles */
.giveaway-winner-announcement {
    /* Use same styling as regular giveaway banner */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    margin: 10px;
    padding: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

/* Clean Winner Styles */
.winner-header {
    text-align: center;
    margin-bottom: 16px;
}

.winner-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.winner-icon {
    font-size: 18px;
}

.winner-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
}

.winner-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}

.winner-details {
    flex: 1;
}

.winner-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.winner-username {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
}

.winner-message {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



/* Winner responsive adjustments */
@media (max-width: 480px) {
    .winner-header {
        margin-bottom: 12px;
    }

    .winner-title {
        font-size: 15px;
    }

    .winner-profile-section {
        padding: 10px;
        gap: 10px;
    }

    .winner-avatar {
        width: 36px;
        height: 36px;
    }

    .winner-name {
        font-size: 13px;
    }

    .winner-username {
        font-size: 11px;
    }

    .winner-message {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Enhanced Mobile Design - Maintains Desktop Layout */
@media (max-width: 480px) {
    .giveaway-banner {
        margin: 6px;
        padding: 14px;
        border-radius: 10px;
        /* Ensure proper touch interaction */
        touch-action: manipulation;
    }

    /* Keep header layout but adjust spacing */
    .giveaway-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    .giveaway-title-section {
        flex: 1;
        min-width: 0;
        /* Prevent text overflow */
        overflow: hidden;
    }

    .giveaway-controls {
        flex-shrink: 0;
        gap: 6px;
        /* Ensure buttons are easily tappable */
        min-height: 44px;
        align-items: center;
    }

    /* Adjust text sizes for mobile */
    .giveaway-title {
        font-size: 15px;
        line-height: 1.2;
        /* Handle long text gracefully */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .giveaway-subtitle {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .giveaway-icon {
        font-size: 18px;
        flex-shrink: 0;
    }

    /* Description */
    .giveaway-description {
        font-size: 12px;
        line-height: 1.3;
        margin: 6px 0;
        /* Allow description to wrap but limit height */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Join button - keep full width but smaller with better touch target */
    .giveaway-join-btn {
        padding: 12px 14px;
        font-size: 13px;
        margin: 6px 0;
        /* Ensure minimum touch target size */
        min-height: 44px;
        /* Better visual feedback on mobile */
        transition: all 0.2s ease;
    }

    .giveaway-join-btn:active {
        transform: scale(0.98);
    }

    /* Stats - keep horizontal but smaller */
    .giveaway-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        margin-top: 6px;
        padding: 2px 0;
    }

    .giveaway-stat {
        font-size: 11px;
        gap: 3px;
        flex: 1;
        justify-content: center;
    }

    .giveaway-stat i {
        font-size: 11px;
    }

    .giveaway-divider {
        height: 10px;
        width: 1px;
    }

    /* Control buttons - better touch targets */
    .giveaway-settings-btn, .giveaway-end-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 6px;
        /* Ensure minimum touch target */
        min-width: 44px;
        min-height: 44px;
        /* Better visual feedback */
        transition: all 0.2s ease;
    }

    .giveaway-settings-btn:active, .giveaway-end-btn:active {
        transform: scale(0.95);
    }
}

/* Extra responsive design for very small screens */
@media (max-width: 360px) {
    .giveaway-banner {
        margin: 4px;
        padding: 12px;
    }

    .giveaway-title {
        font-size: 14px;
        /* Maintain text overflow handling */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .giveaway-subtitle {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .giveaway-icon {
        font-size: 16px;
        flex-shrink: 0;
    }

    .giveaway-description {
        font-size: 11px;
        /* Maintain line clamping */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .giveaway-join-btn {
        padding: 10px 12px;
        font-size: 12px;
        /* Maintain minimum touch target */
        min-height: 44px;
    }

    .giveaway-stat {
        font-size: 10px;
    }

    .giveaway-stat i {
        font-size: 10px;
    }

    .giveaway-settings-btn, .giveaway-end-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
        /* Maintain minimum touch target */
        min-width: 44px;
        min-height: 44px;
    }
}

/* Tablet responsive design */
@media (max-width: 768px) and (min-width: 481px) {
    .giveaway-banner {
        margin: 8px;
        padding: 15px;
    }

    .giveaway-title {
        font-size: 16px;
    }

    .giveaway-subtitle {
        font-size: 12px;
    }

    .giveaway-description {
        font-size: 13px;
    }

    .giveaway-join-btn {
        padding: 11px 15px;
        font-size: 14px;
    }

    .giveaway-stat {
        font-size: 12px;
    }
}

/* Professional Chat Body - Enhanced Design */
.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Messages Container */
.chat-messages-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* New Messages Notification - Home Page Theme */
.new-messages-notification {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ffffff;
    color: #000000;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-messages-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.new-messages-notification:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.new-messages-notification i {
    font-size: 16px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

.chat-messages {
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: transparent;
}

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

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

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

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Welcome Message - Home Page Theme */
.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.chat-welcome i {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
}

.chat-welcome p {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.chat-welcome span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Professional Message Styles - Clean Design */
.message {
    margin-bottom: 8px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent; /* Remove grey background */
    border: none; /* Remove border */
    position: relative;
    z-index: 1;
    text-align: left; /* Ensure left alignment */
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    border-radius: 18px;
    pointer-events: none;
    z-index: -1;
}

.message:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.message.new-message {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: messageGlow 2s ease-out;
}

@keyframes messageGlow {
    0% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
    100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
}

.message-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    text-align: left; /* Ensure left alignment */
}

.message-avatar {
    width: 32px; /* Much smaller avatar */
    height: 32px; /* Much smaller avatar */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Thinner border */
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Smaller shadow */
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.message-user-info {
    flex: 1;
    min-width: 0;
}

.message-username {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-align: left; /* Ensure left alignment */
}
    gap: 6px; /* Smaller gap */
    margin-bottom: 2px; /* Smaller margin */
}

.clickable-username {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-username:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.clickable-avatar {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.role-icon {
    font-size: 12px; /* Smaller icon */
    flex-shrink: 0;
    opacity: 0.9;
}

.role-icon.moderator {
    color: #ffffff;
}

.role-icon.owner {
    color: #ffffff;
}

.message-time {
    font-size: 10px; /* Smaller font */
    color: rgba(255, 255, 255, 0.5); /* More subtle */
    font-weight: 400;
    opacity: 0.8;
}

.message-content {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
    margin: 0;
    text-align: left; /* Force left alignment */
}
    padding: 0;
}

/* Chat Links */
.chat-link {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.chat-link:hover {
    color: #93c5fd;
    border-bottom-color: rgba(147, 197, 253, 0.6);
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

/* Enhanced Message Actions */
.message-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-5px);
}

.message:hover .message-actions {
    opacity: 1;
    transform: translateY(0);
}

.delete-message {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000;
    cursor: pointer;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.delete-message:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.delete-message:active {
    transform: scale(1.05) translateY(0);
}

.delete-message i {
    font-size: 14px;
}

/* Enhanced Input Section - Compact Design */
.chat-input-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(15, 15, 15, 0.99) 100%);
    padding: 12px 16px; /* Much smaller padding */
    border-radius: 0 0 12px 12px; /* Match sidebar radius */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.chat-input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.chat-input-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px; /* Smaller radius */
    padding: 10px 12px; /* Much smaller padding */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Smaller shadow */
    position: relative;
    z-index: 1;
}

.chat-input-container:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Smaller gap */
}

#chatInput {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 13px; /* Smaller font */
    outline: none;
    font-family: 'Poppins', sans-serif;
    padding: 0;
    line-height: 1.4; /* Tighter line height */
}

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

.send-button {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000;
    padding: 8px 10px; /* Smaller padding */
    border-radius: 8px; /* Smaller radius */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; /* Smaller width */
    height: 36px; /* Smaller height */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Smaller shadow */
}

.send-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.send-button:active {
    transform: translateY(0) scale(1);
}

.send-button:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-button i {
    font-size: 14px; /* Smaller icon */
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px; /* Smaller margin */
    font-size: 11px; /* Smaller font */
}

.char-counter {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

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

.char-counter.danger {
    color: #ffffff;
}

.input-hint {
    color: rgba(255, 255, 255, 0.6);
}

/* Professional Login Section - Home Page Theme */
.chat-login-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000000;
    padding: 20px;
}

.login-prompt {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.login-prompt i {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 16px;
    display: block;
    opacity: 0.8;
}

.login-prompt p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Enhanced Floating Chat Toggle Button - Home Page Theme */
.chat-toggle-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-toggle-float:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
}

.chat-toggle-float i {
    color: #000000;
    font-size: 28px;
}

/* Delete Message Modal & Timeout Modal */
.delete-modal,
.timeout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 20px 24px;
}

.modal-body p {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-size: 14px;
}

.message-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-delete {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.btn-delete {
    background: #000000;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-delete:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-timeout {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-timeout:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Timeout Modal Specific Styling */
.timeout-duration-section {
    margin-bottom: 20px;
}

.timeout-duration-section h4,
.timeout-reason-section h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

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

.duration-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.duration-option input[type="radio"] {
    margin: 0;
    accent-color: #ffffff;
}

.duration-option span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.duration-option input[type="radio"]:checked + span {
    font-weight: 600;
}

.timeout-reason-section textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.timeout-reason-section textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.timeout-reason-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.reason-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.timeout-message {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-right: 8px;
}

.timeout-message:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.timeout-message:active {
    transform: scale(1.05) translateY(0);
}

.timeout-message i {
    font-size: 14px;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .chat-sidebar {
        width: 300px; /* Smaller width */
        right: 15px;
    }
}

@media (max-width: 768px) {
    .chat-sidebar {
        width: calc(100% - 20px);
        right: 10px;
        top: 70px;
        bottom: 10px; /* Touch bottom on mobile */
        height: auto; /* Auto height */
        border-radius: 12px;
    }

    .chat-header {
        padding: 10px 14px; /* Smaller padding */
        border-radius: 12px 12px 0 0;
    }

    .chat-input-section {
        padding: 10px 12px; /* Smaller padding */
        border-radius: 0 0 12px 12px;
    }

    .chat-toggle-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .chat-toggle-float i {
        font-size: 24px;
    }

    .message {
        padding: 8px 10px; /* Smaller padding */
        margin-bottom: 6px; /* Smaller margin */
    }

    .message-avatar {
        width: 28px; /* Smaller avatar */
        height: 28px; /* Smaller avatar */
    }

    .delete-message {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .chat-sidebar {
        width: calc(100% - 10px);
        right: 5px;
        top: 65px;
        bottom: 5px; /* Touch bottom */
        height: auto; /* Auto height */
    }

    .new-messages-notification {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* Loading State - Home Page Theme */
.chat-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.chat-loading i {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
    animation: spin 1s linear infinite;
    opacity: 0.8;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Notification Badge - Home Page Theme */
.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Error Messages - Home Page Theme */
.chat-error {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-error i {
    font-size: 16px;
}

.chat-error p {
    margin: 0;
    font-size: 12px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Notification System */
.chat-notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.chat-notification-item {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    font-family: 'Poppins', sans-serif;
}

.chat-notification-item.success {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.15);
}

.chat-notification-item.error {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.15);
}

.chat-notification-item.warning {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.15);
}

.chat-notification-item.timeout {
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.15);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-content i {
    font-size: 18px;
    color: #ffffff;
    opacity: 1;
}

.chat-notification-item.success .notification-content i {
    color: #4ade80;
}

.chat-notification-item.error .notification-content i {
    color: #f87171;
}

.chat-notification-item.warning .notification-content i {
    color: #fbbf24;
}

.chat-notification-item.timeout .notification-content i {
    color: #c084fc;
}

.notification-message {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.notification-close i {
    font-size: 14px;
}

/* Enhanced Timeout and Delete Message Actions */
.message-actions {
    display: flex;
    gap: 8px;
}

.timeout-message {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    backdrop-filter: blur(10px);
}

.timeout-message:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.timeout-message i {
    font-size: 16px;
}

.delete-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    backdrop-filter: blur(10px);
}

.delete-message:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-message i {
    font-size: 16px;
}

/* Timeout Status UI */
.timeout-status-ui {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(168, 85, 247, 0.95);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    text-align: center;
    max-width: 400px;
}

.timeout-status-ui i {
    margin-right: 8px;
    font-size: 16px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .chat-sidebar {
        width: 100%;
        height: 100vh;
        top: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-sidebar.hidden {
        transform: translateX(100%);
    }

    .chat-toggle-float {
        bottom: 20px;
        right: 20px;
    }

    .message {
        padding: 14px;
    }

    .message-avatar {
        width: 36px;
        height: 36px;
    }

    .chat-input-section {
        padding: 16px;
    }

    .chat-notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .chat-notification-item {
        padding: 12px;
    }

    .timeout-status-ui {
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
    }

    /* Mobile giveaway banner adjustments handled by specific media queries above */
}

/* User Profile Modal */
.user-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.profile-modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-modal-body {
    padding: 0;
}

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    gap: 12px;
}

.profile-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-content {
    padding: 20px;
}

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

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-info h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 8px 0;
}

.profile-role {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.profile-details {
    margin-bottom: 24px;
}

.profile-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-detail:last-child {
    border-bottom: none;
}

.profile-detail i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-action-btn {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

/* Pagination Controls */
.pagination-controls {
    margin-top: 20px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-current {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 0 8px;
}

/* Giveaway Management Modal */
.giveaway-management-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.giveaway-modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.giveaway-modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.giveaway-search {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 16px 12px 40px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

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

.search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

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

.participants-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    gap: 12px;
}

.participants-loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

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

.participant-details h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.participant-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
}

.participant-remove {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.participant-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

/* Private Message Modal Styles - Enhanced Design */
.chat-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005; /* Higher than user profile modal */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.message-modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.98) 0%, rgba(15, 15, 15, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.message-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.message-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.message-loading i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.8);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.message-recipient {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    flex-shrink: 0;
}

.recipient-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.recipient-avatar:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.recipient-info h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.recipient-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.message-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    flex: 1;
}

#chatMessageInput {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#chatMessageInput:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1),
                0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

#chatMessageInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.message-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 4px;
}

.char-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.send-message-btn {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.send-message-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.send-message-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.send-message-btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.send-message-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.send-message-btn:hover i {
    transform: translateX(2px);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .message-modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 12px;
    }

    .message-modal-body {
        padding: 0;
    }

    .message-recipient {
        padding: 16px 20px;
        gap: 14px;
    }

    .recipient-avatar {
        width: 48px;
        height: 48px;
    }

    .recipient-info h4 {
        font-size: 16px;
    }

    .recipient-status {
        font-size: 13px;
    }

    .message-input-section {
        padding: 20px;
    }

    #chatMessageInput {
        padding: 16px;
        font-size: 14px;
        min-height: 100px;
        border-radius: 12px;
    }

    .send-message-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 100px;
    }

    .char-counter {
        font-size: 12px;
        padding: 4px 10px;
    }
}
