/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Dancing+Script:wght@400;700&family=Space+Mono:wght@400;700&display=swap');

/* Space-themed CSS variables */
:root {
    --space-navy: #0a0e27;
    --space-blue: #1a237e;
    --space-purple: #4a148c;
    --cosmic-pink: #e91e63;
    --neon-green: #00e676;
    --star-yellow: #ffeb3b;
    --alien-green: #76ff03;
    --meteor-orange: #ff5722;
    --nebula-purple: #9c27b0;
    --robot-silver: #b0bec5;
    --space-white: #f8f9fa;
}

/* Keyframe animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes gentle-drift {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(2px) translateY(-1px); }
    50% { transform: translateX(-1px) translateY(1px); }
    75% { transform: translateX(1px) translateY(2px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px var(--neon-green); }
    50% { box-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--cosmic-pink); }
}

@keyframes rocket-fly {
    0% { transform: translateX(-100px) rotate(-10deg); }
    100% { transform: translateX(calc(100vw + 100px)) rotate(10deg); }
}

/* Hide Chrome translate feedback UI globally */
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
[class*="goog-te"],
[id*="goog-te"],
font[id^="translate-"],
font[color="#1a73e8"][style*="vertical-align"],
a[href*="translate.google.com/contribute"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Space Mono', monospace;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--space-navy) 0%, var(--space-blue) 50%, var(--space-purple) 100%);
    background-attachment: scroll; /* fixed removed */
    height: 100svh;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Emoji rendering support for all platforms (Android, iOS, Windows, etc.) */
body, input, textarea, button, .message-text, .chat-input {
    /* Ensure emoji fonts are loaded first for cross-platform support */
    font-family: 'Orbitron', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Android Emoji', 'EmojiOne Color', 'Twemoji', 'Space Mono', monospace;
    /* Prevent emoji from being replaced with fallback symbols */
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "liga" 1, "calt" 1;
    -moz-font-feature-settings: "liga" 1, "calt" 1;
    font-feature-settings: "liga" 1, "calt" 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--star-yellow), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--space-white), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--cosmic-pink), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--neon-green), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--star-yellow), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    /* animation: gentle-drift 8s ease-in-out infinite; */ /* Disabled to prevent motion sickness */
    pointer-events: none;
    z-index: -1;
}

/* Remove floating planets */
body::after {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    @media screen and (max-device-width: 1024px) {
        html,
        body {
            height: 100%;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: "Orbitron", "Space Mono", monospace;

            -webkit-font-smoothing: antialiased;
            padding: 20px;

            position: relative;
            z-index: 0;

            background: linear-gradient(
                135deg,
                var(--space-navy) 0%,
                var(--space-blue) 50%,
                var(--space-purple) 100%
            ) !important;
            background-attachment: scroll;
            background-repeat: no-repeat;
            background-size: cover;
        }

        body::before {


            background-image: radial-gradient(
                    2px 2px at 20px 30px,
                    var(--star-yellow),
                    transparent
                ),
                radial-gradient(
                    2px 2px at 40px 70px,
                    var(--space-white),
                    transparent
                ),
                radial-gradient(
                    1px 1px at 90px 40px,
                    var(--cosmic-pink),
                    transparent
                ),
                radial-gradient(
                    1px 1px at 130px 80px,
                    var(--neon-green),
                    transparent
                ),
                radial-gradient(
                    2px 2px at 160px 30px,
                    var(--star-yellow),
                    transparent
                );
            background-repeat: repeat;
            background-size: 200px 100px;
            /* animation: gentle-drift 8s ease-in-out infinite; */ /* Disabled to prevent motion sickness */
            pointer-events: none;
            z-index: -1;
        }
    }
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.8) 0%, rgba(10, 14, 39, 0.9) 100%);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: linear-gradient(180deg, var(--space-navy) 0%, var(--space-blue) 50%, var(--space-purple) 100%);
    color: var(--space-white);
    padding: 15px;
    padding-top: 70px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 999;
    border-right: none;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    transform: translateX(0);
}

/* Sidebar close button */
.sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-close-btn span {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.sidebar-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

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

/* Hide close button on desktop */
@media (min-width: 768px) {
    .sidebar-close-btn {
        display: none;
    }
}

/* Main content container */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background: transparent;
}

/* Tab navigation */
.header {
    background: transparent;
    color: var(--space-white);
    padding: 8px 15px 4px 15px;
    display: flex;
    align-items: stretch;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.menu-toggle-main {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.8), rgba(26, 35, 126, 0.8));
    border: none;
    color: var(--space-white);
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    min-width: 80px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    touch-action: manipulation;
}



.menu-toggle-main .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 4px;
}

.menu-toggle-main .menu-icon span {
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--cosmic-pink));
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle-main .menu-text {
    font-size: 9px;
    letter-spacing: 0.3px;
}

.menu-toggle-main:hover {
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
    border-bottom-color: var(--neon-green);
}



.menu-toggle-main:hover .menu-icon span {
    background: linear-gradient(90deg, var(--star-yellow), var(--neon-green));
}

.menu-toggle-main:active {
    transform: translateY(0);
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
}

.tab-buttons {
    display: flex;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Tab buttons maintain hidden scrollbar for horizontal scrolling */
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 16px;
    /* Allow notification badge glow to extend beyond button boundaries */
    overflow: visible;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 1;
    min-width: 60px;
    padding: 18px 12px;
    background: transparent; /* Background moved to ::after pseudo-element */
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    color: var(--space-white);
    white-space: nowrap;
    touch-action: manipulation;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 0 !important;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Allow notification badge glow to extend beyond button boundaries */
    overflow: visible;
    z-index: 1; /* Ensure button content is above backdrop */
}

/* Backdrop layer with blur - doesn't clip child elements */
.tab-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.6), rgba(26, 35, 126, 0.6));
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Only apply backdrop filter on desktop to avoid mobile Safari clipping issues */
@media (min-width: 1024px) {
    .tab-button::after {
        backdrop-filter: blur(10px);
    }
}

.tab-button::before {
    content: '🛸';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2; /* Above backdrop */
}

.tab-button.active {
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
    transform: translateY(-1px);
}

/* Active button background on ::after */
.tab-button.active::after {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
}

.tab-button.active::before {
    opacity: 1;
    top: -10px;
    animation: float 2s ease-in-out infinite;
}

.tab-button:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

/* Hover button background on ::after */
.tab-button:hover:not(.active)::after {
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink));
}

.tab-button:active {
    transform: translateY(0);
}

.tab-button:first-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.tab-button:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    text-align: center;
}

.tab-unread-count {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    color: white;
    border-radius: 16px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 5px;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Pink badge for Party tab specifically */
#party-event-count {
    background: linear-gradient(135deg, #ff4081, #e91e63);
    box-shadow: 0 2px 8px rgba(255, 64, 129, 0.5);
}

/* Chat container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: transparent;
    margin: 0;
    padding: 0 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.tab-content h3 {
    margin: 0;
    padding: 20px;
    background: transparent;
    font-size: 18px;
    font-weight: 9ారు;
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
}

.tab-content h3::before {
    content: '👽';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.tab-content h3::after {
    content: '🛸';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Conversations view container */
#conversations-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#conversations-view h3 {
    flex-shrink: 0;
}

/* Conversations list */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 400px;
    height: calc(100vh - 140px);
}

@media (max-width: 767px) {
    .conversations-list {
        height: calc(100vh - 160px);
        min-height: 300px;
        padding: 15px;
    }
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 25px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(15px);
    min-height: 90px;
    border-radius: 18px;
    margin: 4px 0;
    border-radius: 20px;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.delete-conversation-text {
    color: var(--meteor-orange);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    transition: all 0.3s ease;
    text-align: right;
    margin-top: 2px;
}

.delete-conversation-text:hover {
    color: var(--cosmic-pink);
    text-shadow: 0 0 5px rgba(255, 87, 34, 0.6);
    transform: scale(1.05);
}

.conversation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    position: relative;
    width: 100%;
}

.conversation-name {
    font-weight: 700;
    color: var(--star-yellow);
    font-size: 16px;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 60px);
}

.conversation-name span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.conversation-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Mono', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.unread-badge {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    color: white;
    border-radius: 50%;
    padding: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
    flex-shrink: 0;
    margin-left: 4px;
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
}

.conversation-preview {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Space Mono', monospace;
    text-align: left;
    width: 100%;
    margin: 0;
}



.auto-erased-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px 20px;
}

.auto-erased-content {
    text-align: center;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(233, 30, 99, 0.1));
    border: none;
    box-shadow: 0 2px 15px rgba(255, 87, 34, 0.2);
    border-radius: 20px;
    padding: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

.auto-erased-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.auto-erased-title {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: bold;
    color: var(--meteor-orange);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.auto-erased-text {
    font-family: 'Space Mono', monospace;
    color: var(--space-white);
    line-height: 1.6;
    opacity: 0.9;
}

.empty-conversation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

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

.conversation-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 24px;
    margin-top: 4px;
}

.unread-count {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: pulse-glow 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Chat view */
#chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Global tab container - ensure proper flexbox structure */
#global-tab {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

#global-tab h3 {
    flex-shrink: 0;
}

#global-tab .chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

#global-tab .chat-input {
    flex-shrink: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    gap: 15px;
    flex-shrink: 0;
    border-radius: 16px;
    margin: 8px 0;
    backdrop-filter: blur(10px);
}

.back-button {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    color: white;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

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

.chat-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.chat-user-info span {
    font-weight: 700;
    color: var(--star-yellow);
    font-size: 16px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chat messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    background: transparent;
    min-height: 400px;
    height: calc(100vh - 140px);
}

@media (max-width: 767px) {
    .chat-messages {
        height: calc(100vh - 160px);
        min-height: 300px;
        padding: 15px;
    }
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 22px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 230, 118, 0.04));
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.message.party-request {
    margin: 12px 0;
}

/* Override message styling for timeline events/requests in chat */
.message.timeline-event,
.message.timeline-request {
    padding: 0;
    gap: 0;
    display: block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--cosmic-pink);
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Ensure timeline-selfie gets proper styling in global chat */
.message.timeline-event .timeline-selfie,
.message.timeline-request .timeline-selfie {
    padding: 30px 20px;
    min-height: 160px;
    width: 100%;
}

.message.timeline-event .host-selfie-img,
.message.timeline-request .host-selfie-img {
    width: 120px;
    height: 120px;
}

.message.timeline-event:hover,
.message.timeline-request:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

/* Ensure timeline-time inside message has proper styling */
.message.timeline-event .timeline-time,
.message.timeline-request .timeline-time {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 2px solid var(--cosmic-pink);
    padding: 15px 20px;
    font-size: 16px;
    text-align: center;
}

.timeline-event,
.timeline-request {
    margin: 12px 0;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--cosmic-pink), var(--star-yellow));
    border-radius: 1px;
    opacity: 0.6;
}

.message:hover {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(233, 30, 99, 0.04));
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.2);
}

.message:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
}

.message-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

.message-content {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-bottom: 8px; /* Default padding for regular messages */
    overflow: visible;
}

/* No extra padding needed - action buttons now flow naturally with proper margin */

/* Reduce padding for DM messages since they don't need space for report/delete buttons */
#direct-messages .message .message-content {
    padding-bottom: 8px;
}

/* Remove extra padding for hidden messages since they don't have buttons */
.message-hidden .message-content {
    padding-bottom: 8px;
}

@media (max-width: 767px) {
    .message-content {
        min-width: 0;
        max-width: 100%;
    }
}

/* Message action buttons container - consistent spacing with other elements */
.message-actions-container {
    margin-top: 10px; /* Same spacing as buttons have to text, text has to images */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-delete-text {
    color: var(--meteor-orange);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    transition: all 0.3s ease;
    text-align: right;
    z-index: 10;
}

.admin-delete-text:hover {
    color: var(--cosmic-pink);
    text-shadow: 0 0 5px rgba(255, 87, 34, 0.6);
    transform: scale(1.05);
}

.report-message-text {
    color: var(--star-yellow);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    transition: all 0.3s ease;
    text-align: right;
    z-index: 10;
}

.report-message-text:hover {
    color: var(--cosmic-pink);
    text-shadow: 0 0 5px rgba(233, 30, 99, 0.6);
    transform: scale(1.05);
}

.reply-message-text {
    color: var(--cosmic-pink);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    transition: all 0.3s ease;
    text-align: left;
    z-index: 10;
}

.reply-message-text:hover {
    color: var(--nebula-purple);
    text-shadow: 0 0 5px rgba(233, 30, 99, 0.6);
    transform: scale(1.05);
}

/* Reply context styles */
.reply-context {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
    border-left: 3px solid var(--cosmic-pink);
    padding: 8px 12px 8px 8px;
    margin-bottom: 10px;
    margin-left: 0;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    color: var(--space-white);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.reply-context:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.25), rgba(156, 39, 176, 0.25));
    border-left-color: var(--neon-green);
    transform: translateX(2px);
}

.reply-context.non-clickable {
    cursor: default;
    opacity: 0.6;
}

.reply-context.non-clickable:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
    border-left-color: var(--cosmic-pink);
    transform: none;
}

.reply-context-username {
    color: var(--cosmic-pink);
    font-weight: 700;
}

.reply-context-text {
    color: var(--space-white);
    opacity: 0.8;
}

/* Message highlight flash animation */
@keyframes message-highlight-flash {
    0%, 100% {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 230, 118, 0.04));
    }
    50% {
        background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(156, 39, 176, 0.3));
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
    }
}

.message-highlight-flash {
    animation: message-highlight-flash 2s ease-in-out;
}

.message-hidden {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.08), rgba(233, 30, 99, 0.06));
    border: none;
    backdrop-filter: blur(15px);
    backdrop-filter: blur(5px);
}

.message-hidden .message-text {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}



.message-hidden .message-username {
    color: var(--meteor-orange);
}

.message-hidden .message-time {
    opacity: 0.6;
}

/* Admin Toast Notifications */
.admin-toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.95), rgba(233, 30, 99, 0.95));
    color: white;
    padding: 20px;
    border-radius: 15px;
    max-width: 400px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
}

/* Pending Reports Notification */
.pending-reports-notification {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 87, 34, 0.9));
    border: none;
    box-shadow: 0 2px 15px rgba(255, 193, 7, 0.2);
    border-radius: 15px;
    margin: 10px 0;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pending-reports-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--space-navy);
    font-family: 'Orbitron', monospace;
}

.notification-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    font-size: 16px;
    font-weight: bold;
}

.notification-text span {
    font-size: 12px;
    opacity: 0.8;
    font-family: 'Space Mono', monospace;
}

.notification-arrow {
    font-size: 20px;
    font-weight: bold;
    animation: bounce-right 1s infinite;
}

@keyframes bounce-right {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(3px);
    }
}
    gap: 15px;
}

.admin-toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--neon-green);
}

.toast-message {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
    opacity: 0.9;
}

.toast-actions {
    display: flex;
    gap: 10px;
}

.toast-action-btn {
    background: transparent;
    border: none;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.toast-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
}

/* Report Modal - Time Machine Perfect Centering */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.4) 0%, rgba(10, 14, 39, 0.5) 100%);
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease;
    font-family: 'Space Mono', monospace;
}

.report-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(30, 30, 30, 0.95));
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.report-modal h3 {
    color: var(--neon-green);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.report-modal-close {
    color: var(--meteor-orange);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-modal-close:hover {
    color: var(--cosmic-pink);
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.8);
}

.report-form-group {
    margin-bottom: 20px;
}

.report-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-green);
    font-weight: 600;
}

.report-form-group select,
.report-form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.8);
    color: white;
    font-family: inherit;
    transition: box-shadow 0.3s ease;
}

.report-form-group select:focus,
.report-form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.report-form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.report-form-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.report-form-buttons button[type="submit"] {
    background: var(--star-yellow);
    color: black;
}

.report-form-buttons button[type="submit"]:hover {
    background: var(--cosmic-pink);
    color: white;
    transform: translateY(-2px);
}

.report-form-buttons button[type="button"] {
    background: transparent;
    color: var(--meteor-orange);
    border: none;
    box-shadow: 0 2px 15px rgba(255, 87, 34, 0.2);
}

.report-form-buttons button[type="button"]:hover {
    background: var(--meteor-orange);
    color: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.message-username {
    font-weight: 900;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
    letter-spacing: 0.5px;
    flex: 1;
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Mono', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.message-text {
    color: var(--space-white);
    line-height: 1.5;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    word-wrap: break-word;
    overflow: visible;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Username mentions styling (@username) */
.message-text .username-mention {
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

/* Epselipso link styling */
.message-text .epselipso-link {
    color: var(--cosmic-pink);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.message-text .epselipso-link:hover {
    color: var(--star-yellow);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.6);
}

/* EPselipso link buttons styling (!ButtonText!URL!) */
.epselipso-link-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 6px;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--neon-green);
    box-shadow: 
        0 4px 12px rgba(233, 30, 99, 0.4),
        0 0 15px rgba(0, 230, 118, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    vertical-align: middle;
}

.epselipso-link-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(233, 30, 99, 0.6),
        0 0 25px rgba(0, 230, 118, 0.4);
    border-color: var(--star-yellow);
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
}

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

@media (max-width: 767px) {
    .message {
        padding: 12px;
        margin-bottom: 12px;
    }

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

    .message-username {
        font-size: 13px;
    }

    .message-text {
        font-size: 15px;
    }
}

/* Chat input */
.chat-input {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    border-top: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    margin: 8px 0 16px 0;
    max-width: 100%;
    flex-shrink: 0;
    gap: 10px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
    .chat-input {
        padding: 12px 15px;
        margin: 0 0 20px 0;
        gap: 8px;
    }

    .chat-input input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

.chat-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.chat-input input {
    width: 100%;
    padding: 15px 20px; /* Remove right padding since buttons are outside */
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--space-white);
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.chat-input input::placeholder {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.chat-input input:focus {
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.chat-input-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    margin-left: 8px;
}

/* Reply preview styles */
.reply-preview {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0 5px;
}

.reply-preview-content {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid var(--cosmic-pink);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
    max-width: 100%;
}

#reply-preview-text {
    flex: 1;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.reply-preview-close {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.reply-preview-close:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.6);
}

/* Mobile responsive for reply preview */
@media (max-width: 768px) {
    .reply-preview {
        bottom: calc(100% + 3px);
        padding: 0 3px;
    }

    .reply-preview-content {
        padding: 6px 10px;
        border-radius: 10px;
    }

    #reply-preview-text {
        font-size: 11px;
    }

    .reply-preview-close {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        font-size: 16px;
    }
}

.chat-icon-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
}

.chat-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink));
    border-color: var(--star-yellow);
}

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

.chat-send-btn {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    border-color: var(--alien-green);
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green));
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
    border-color: var(--star-yellow);
}

.chat-camera-btn {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.chat-camera-btn:hover {
    background: linear-gradient(135deg, var(--nebula-purple), var(--meteor-orange));
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    border-color: var(--star-yellow);
}

/* Media message styles */
.media-message .media-content {
    margin: 10px 0;
    border-radius: 16px;
    overflow: visible; /* Must be visible to prevent clipping border on hover scale */
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shared-media-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.shared-media-image:hover {
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    border: 2px solid var(--cosmic-pink);
    filter: brightness(1.1);
}

.shared-media-video {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 16px;
    cursor: pointer;
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.shared-media-video:hover {
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    border: 2px solid var(--cosmic-pink);
    filter: brightness(1.1);
}

.video-container {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chat-input input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .chat-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    .chat-input-buttons {
        gap: 6px;
        margin-left: 8px;
    }

    .media-content {
        max-width: 250px !important;
    }

    .shared-media-image,
    .shared-media-video {
        max-height: 200px !important;
    }
}

@media (max-width: 360px) {
    .chat-input input {
        padding: 10px 14px;
    }

    .chat-icon-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 15px;
    }

    .chat-input-buttons {
        gap: 5px;
        margin-left: 6px;
    }

    .media-content {
        max-width: 200px !important;
    }

    .shared-media-image,
    .shared-media-video {
        max-height: 150px !important;
    }t: 8px;
    }
}

/* Sidebar content */
.user-profile {
    background: linear-gradient(135deg, var(--space-blue), var(--space-purple));
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    text-align: center;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.avatar-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.avatar-dropdown {
    position: relative;
    display: inline-block;
}

.avatar-selector-btn {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    padding: 8px 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.avatar-selector-btn:hover {
    box-shadow: 0 0 15px var(--alien-green);
    transform: translateY(-2px);
}

.avatar-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--space-navy);
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 250px;
    margin-top: 5px;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.avatar-option:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: scale(1.05);
}

.avatar-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 5px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
}

.avatar-style-name {
    font-size: 8px;
    color: var(--space-white);
    text-align: center;
    font-family: 'Orbitron', monospace;
    text-transform: capitalize;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-user-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
}

.photo-carousel-section {
    border-top: none;
    box-shadow: 0 -2px 10px rgba(233, 30, 99, 0.15);
    padding-top: 20px;
}

.photo-carousel-section h4 {
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    margin-bottom: 15px;
    text-align: center;
}

.no-photos {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 20px;
}

.bio-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.bio-container:hover {
    background: rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.pencil-icon-small {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px var(--neon-green));
}

.bio-container:hover .pencil-icon-small {
    opacity: 1, transform: scale(1.2);
}

.bio-edit-form {
    margin: 12px 0;
}

.bio-edit-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--space-white);
    font-size: 14px;
    font-family: 'Orbitron', monospace;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.bio-edit-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.bio-edit-form textarea:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.bio-edit-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.bio-edit-buttons button {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    line-height: 1 !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

.bio-edit-buttons button:first-child {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    border-color: var(--alien-green);
}

.bio-edit-buttons button:last-child {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.bio-edit-buttons button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px currentColor, 0 6px 20px rgba(0, 0, 0, 0.4);
}

#current-username {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--star-yellow);
    text-align: center;
}

/* City Switcher Container for proper positioning */
.city-switcher-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.user-city-display {
    font-weight: 600;
    font-size: 12px;
    margin: 0;
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(255, 235, 59, 0.4);
    text-align: center;
    opacity: 0.85;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.user-city-display:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
    transform: scale(1.05);
}

/* THREE badges on city display showing separate notification types */
.user-city-display .city-total-badge {
    position: absolute;
    top: -8px;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Position badges side by side on the right */
.user-city-display .city-total-badge:nth-of-type(1) {
    right: -25px;
}

.user-city-display .city-total-badge:nth-of-type(2) {
    right: -50px;
}

.user-city-display .city-total-badge:nth-of-type(3) {
    right: -75px;
}

/* Red badge for global messages */
.user-city-display .city-total-badge.city-badge-red {
    background: linear-gradient(135deg, #ff1744, #d32f2f);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

/* Pink badge for party events/requests */
.user-city-display .city-total-badge.city-badge-pink {
    background: linear-gradient(135deg, #ff4081, #e91e63);
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.8);
}

/* Black badge for @mentions and replies */
.user-city-display .city-total-badge.city-badge-black {
    background: linear-gradient(135deg, #424242, #212121);
    box-shadow: 0 0 10px rgba(66, 66, 66, 0.8);
}

/* City Switcher Dropdown - Click to expand */
.city-switcher-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95), rgba(74, 20, 140, 0.95));
    border: 2px solid var(--star-yellow);
    border-radius: 16px;
    padding: 16px;
    margin-top: 8px;
    min-width: 220px;
    max-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 235, 59, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 1000;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.city-switcher-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--meteor-orange);
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 235, 59, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.city-switcher-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--space-white);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Orbitron', monospace;
}

.city-switcher-item:hover {
    background: rgba(255, 235, 59, 0.15);
    transform: translateX(3px);
}

.city-switcher-item.active {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
    font-weight: 700;
}

.city-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-badge {
    background: linear-gradient(135deg, #ff1744, #d32f2f);
    color: white;
    padding: 0;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    min-width: 22px;
    min-height: 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(255, 23, 68, 0.9);
    }
}

/* ========== City Switcher Modal Styles ========== */

/* Modal Overlay */
.city-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.city-modal-container {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.98), rgba(74, 20, 140, 0.98));
    border: 2px solid var(--star-yellow);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 85vh;
    width: 800px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 235, 59, 0.4),
        inset 0 0 30px rgba(255, 235, 59, 0.1);
    overflow: hidden;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.city-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border-bottom: 2px solid var(--neon-green);
}

.city-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--space-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
}

.city-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--space-white);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.city-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
.city-modal-body {
    padding: 25px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

/* City Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

/* City Button */
.city-button {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 2px solid rgba(255, 235, 59, 0.3);
    border-radius: 12px;
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--space-white);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', monospace;
}

.city-button:hover {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.25), rgba(0, 230, 118, 0.15));
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.4);
}

.city-button.active {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border-color: var(--neon-green);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
}

.city-button-name {
    display: block;
    word-break: break-word;
}

/* Three-badge system for city buttons */
.city-badges-container {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 4px;
    flex-direction: row;
}

.city-badge {
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    min-width: 20px;
    text-align: center;
    animation: pulse-button-badge 2s infinite;
}

/* Red badge for global messages */
.city-badge.red {
    background: linear-gradient(135deg, #ff1744, #d32f2f);
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.5);
}

/* Pink badge for party events/requests */
.city-badge.pink {
    background: linear-gradient(135deg, #ff4081, #e91e63);
    box-shadow: 0 3px 10px rgba(255, 64, 129, 0.5);
}

/* Black badge for @mentions and replies */
.city-badge.black {
    background: linear-gradient(135deg, #424242, #212121);
    box-shadow: 0 3px 10px rgba(66, 66, 66, 0.5);
}

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

/* Legacy single badge (deprecated - keeping for backwards compatibility) */
.city-button-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff1744, #d32f2f);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(255, 23, 68, 0.5);
    animation: pulse-button-badge 2s infinite;
}

/* Scrollbar styling for modal */
.city-modal-body::-webkit-scrollbar {
    width: 8px;
}

.city-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.city-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border-radius: 10px;
}

.city-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green));
}

/* Clear Chat Modal - Custom Styling */
.clear-warning-box {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 87, 34, 0.15);
    border-left: 4px solid var(--meteor-orange);
    border-radius: 8px;
}

.clear-warning-box p {
    margin: 0;
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    font-size: 13px;
}

/* Clear Actions Top */
.clear-actions-top {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.select-all-btn,
.deselect-all-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.select-all-btn {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green));
    color: white;
    border-color: var(--neon-green);
}

.select-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.5);
}

.deselect-all-btn {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
    border-color: var(--cosmic-pink);
}

.deselect-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.5);
}

/* Clear Actions Bottom */
.clear-actions-bottom {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.confirm-clear-btn,
.cancel-clear-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.confirm-clear-btn {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border-color: #d32f2f;
}

.confirm-clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.6);
}

.confirm-clear-btn:disabled {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.5), rgba(244, 67, 54, 0.5));
    cursor: not-allowed;
    transform: none;
}

.cancel-clear-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cancel-clear-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Selected city button styling for clear modal */
.clear-city-button.selected {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green)) !important;
    border-color: var(--star-yellow) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.6) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .city-modal-container {
        max-width: 95vw;
        max-height: 90vh;
        width: auto;
    }

    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .city-button {
        padding: 14px 10px;
        min-height: 60px;
        font-size: 12px;
    }

    .city-modal-header h2 {
        font-size: 1.2em;
    }

    .clear-actions-top,
    .clear-actions-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .select-all-btn,
    .deselect-all-btn,
    .confirm-clear-btn,
    .cancel-clear-btn {
        padding: 12px 16px;
        font-size: 12px;
    }

    .clear-city-name {
        color: var(--space-white);
        font-size: 13px;
        font-weight: 600;
        flex: 1;
        text-align: left;
    }

    @media (max-width: 768px) {
        .clear-city-grid {
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 10px;
        }

        .clear-city-item {
            padding: 14px 10px;
            min-height: 55px;
        }

        .clear-city-name {
            font-size: 12px;
        }

        .clear-city-checkbox {
            width: 18px;
            height: 18px;
        }
    }

    .city-modal-body {
        padding: 15px;
    }
}

/* ========== End City Switcher Modal Styles ========== */

#current-bio {
    font-size: 14px;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    text-align: center;
}

.profile-form {
    margin-bottom: 30px;
}

.profile-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--star-yellow);
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    box-sizing: border-box;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.profile-form label {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.profile-form label:hover {
    background: rgba(0, 230, 118, 0.1);
}

.profile-form input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.profile-form button {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    padding: 15px 20px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    touch-action: manipulation;
    transition: all 0.3s ease;
}

.profile-form button:hover {
    box-shadow: 0 0 20px var(--alien-green);
    transform: translateY(-2px);
}

.profile-form button:active {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green));
    transform: scale(0.98);
}

.users-list {
    margin-top: 25px;
}

.users-list h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--star-yellow);
    text-align: center;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.user-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--cosmic-pink));
    transition: width 0.3s ease;
    z-index: 0;
}

.user-item:hover::before {
    width: 100%;
    opacity: 0.1;
}

.user-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.user-item:active {
    transform: translateY(0);
}

.user-avatar-container {
    position: relative;
    margin-right: 15px;
    z-index: 1;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
}

.activity-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    backdrop-filter: blur(10px);
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.online-status {
    background-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
}

.offline-status {
    background-color: var(--meteor-orange);
    color: var(--meteor-orange);
    opacity: 1;
    box-shadow: 0 0 6px var(--meteor-orange);
}

.user-info {
    flex: 1;
    min-width: 0;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.user-activity {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin-top: 0;
    line-height: 1.1;
}



/* Report Modal Styles */
#report-modal .modal-content {
    background: linear-gradient(135deg, var(--space-navy), var(--nebula-purple));
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 20px;
    padding: 30px;
    color: var(--space-white);
}

#report-modal h3 {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-top: 75px;
    text-align: center;
}

.form-group {
    margin: 15px 0;
}

.form-group label {
    display: block;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.form-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.form-buttons button[type="submit"] {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
}

.form-buttons button[type="button"] {
    background: transparent;
    color: var(--neon-green);
}

.form-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.4) 0%, rgba(10, 14, 39, 0.5) 100%);
    backdrop-filter: blur(15px);
}

/* Location modal starry background */
#location-permission-modal {
    background: radial-gradient(circle, rgba(26, 35, 126, 0.9) 0%, rgba(10, 14, 39, 0.98) 100%) !important;
}
#location-permission-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--star-yellow), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--space-white), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--cosmic-pink), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--neon-green), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--star-yellow), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: gentle-drift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.modal-content {
    background: linear-gradient(135deg, var(--space-blue), var(--space-purple));
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 420px;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content::before {
    display: none;
}

.close {
    color: var(--cosmic-pink);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close:hover,
.close:active {
    color: var(--meteor-orange);
    text-shadow: 0 0 10px var(--meteor-orange);
    transform: scale(1.2);
}

/* Agenda header with unified background */
.agenda-header {
    background: linear-gradient(135deg, var(--space-blue), var(--nebula-purple), var(--cosmic-pink));
    color: var(--space-white);
    border-radius: 20px;
    margin: 0 20px 15px 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.agenda-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 30%, rgba(255, 235, 59, 0.1) 31%, rgba(255, 235, 59, 0.1) 32%, transparent 33%);
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
}

.agenda-date {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    font-family: 'Space Mono', monospace;
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--space-white);
}

.agenda-actions {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.party-action-btn {
    padding: 16px 24px;
    border-radius: 25px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.party-action-btn.primary {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
}

.party-action-btn.secondary {
    background: linear-gradient(135deg, var(--nebula-purple), var(--space-purple));
}

.party-action-btn::before {
    display: none;
}

.party-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.party-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Always stack party action buttons for mobile-first design */
.agenda-actions {
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 480px) {
    .agenda-actions {
        gap: 12px;
    }

    .party-action-btn {
        font-size: 14px;
        padding: 18px 24px;
    }
}

/* Party forms - Enhanced styling to match other modals */
.party-form {
    display: none !important; /* Hidden by default - force override */
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    backdrop-filter: blur(15px);
    margin: 20px 15px 20px 15px; /* Equal top and bottom margins */
    padding: 25px;
    border-radius: 25px;
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-direction: column;
    max-height: calc(100vh - 60px); /* Limit height to viewport minus margins */
}

/* Show party forms when active - triggered by JavaScript */
.party-form[style*="display: block"],
.party-form[style*="display: flex"] {
    display: flex !important;
}

/* Scrollable content wrapper - ONLY for specific party forms */
#create-event-form .party-form-content,
#create-request-form .party-form-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 15px;
    margin-top: 10px;
    max-height: calc(100vh - 180px); /* Account for header, margins, and buttons */
    overscroll-behavior: contain;
    position: relative;
    z-index: 1;
}

/* Party form content uses unified scrollbar system - styles defined in unified-modal-base.css */

/* Party form hover state */
.party-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(233, 30, 99, 0.4);
    border-color: var(--neon-green);
}

/* Background effects like other modals */
.party-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--star-yellow), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--space-white), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--cosmic-pink), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--neon-green), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Party form close button - use unified styling */
.party-form-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    outline: none;
    padding: 0;
    min-width: 30px;
    min-height: 30px;
}

.party-form-close-btn span {
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.party-form-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    border-color: var(--star-yellow);
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
}

.party-form-close-btn:active {
    transform: scale(0.95);
}

.time-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid rgba(233, 30, 99, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.time-section label {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.date-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.date-option {
    flex: 1;
    max-width: 150px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.date-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.date-option span {
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Vandaag (Today) - Green themed */
.date-option[data-choice="today"]:has(input[type="radio"]:checked) {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

.date-option[data-choice="today"]:has(input[type="radio"]:checked) span {
    color: var(--neon-green);
}

/* Vannacht (Tonight) - Neon pink themed */
.date-option[data-choice="tonight"]:has(input[type="radio"]:checked) {
    background: rgba(233, 30, 99, 0.15);
    border-color: var(--cosmic-pink);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}

.date-option[data-choice="tonight"]:has(input[type="radio"]:checked) span {
    color: var(--cosmic-pink);
}

/* Morgen (Tomorrow) - Yellow themed */
.date-option[data-choice="tomorrow"]:has(input[type="radio"]:checked) {
    background: rgba(255, 235, 59, 0.15);
    border-color: var(--star-yellow);
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.4);
}

.date-option[data-choice="tomorrow"]:has(input[type="radio"]:checked) span {
    color: var(--star-yellow);
}

.date-option:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Auto-detected date display */
.auto-date-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(233, 30, 99, 0.2);
}

/* Mobile: Stack badges vertically */
@media (max-width: 768px) {
    .auto-date-display {
        flex-direction: column;
        gap: 12px;
    }

    .auto-date-badge {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

.auto-date-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.3;
    transform: scale(0.95);
}

.auto-date-badge:hover {
    opacity: 0.6;
    transform: scale(1);
}

.auto-date-badge.selected {
    opacity: 1;
    transform: scale(1);
    animation: badgePulse 2s ease-in-out infinite;
}

.auto-date-badge.vandaag {
    background: rgba(0, 230, 118, 0.3);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.auto-date-badge.vandaag.selected {
    background: rgba(0, 230, 118, 0.5);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.8), 0 0 50px rgba(0, 230, 118, 0.5);
}

.auto-date-badge.vannacht {
    background: rgba(0, 230, 118, 0.3);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.auto-date-badge.vannacht.selected {
    background: rgba(0, 230, 118, 0.5);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.8), 0 0 50px rgba(0, 230, 118, 0.5);
}

.auto-date-badge.morgen {
    background: rgba(255, 235, 59, 0.3);
    border: 2px solid var(--star-yellow);
    color: var(--star-yellow);
}

.auto-date-badge.morgen.selected {
    background: rgba(255, 235, 59, 0.5);
    box-shadow: 0 0 30px rgba(255, 235, 59, 0.8), 0 0 50px rgba(255, 235, 59, 0.5);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.time-inputs {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 15px;
}

.time-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-group label {
    color: var(--space-white);
    font-size: 14px;
    margin-bottom: 8px;
    font-family: 'Space Mono', monospace;
}

.time-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.time-selector select {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 15px;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    z-index: 1;
    backdrop-filter: blur(5px);
}



.time-selector select:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
}

.time-selector select:hover {
    border-color: var(--star-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.time-selector select option {
    background: var(--space-navy);
    color: var(--space-white);
    padding: 8px;
}

.time-selector span {
    color: var(--cosmic-pink);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 10px var(--cosmic-pink);
}

.time-group {
    position: relative;
}

.people-counter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.15);
}

.people-counter-section > label {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.gender-counters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.counter-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
}

.counter-label {
    color: var(--star-yellow);
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: bold;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.counter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(232, 65, 150, 0.5);
}

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

.counter-value {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    text-shadow: 0 0 10px var(--star-yellow);
}

@media (max-width: 480px) {
    .time-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .counter-group {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .counter-controls {
        gap: 20px;
    }
}

.party-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 50px; /* Reduced to match close button positioning */
    color: var(--star-yellow);
    font-size: 20px;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.4);
    text-align: center;
    position: relative;
    z-index: 2;
}

.party-form input,
.party-form textarea {
    position: relative;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid var(--cosmic-pink);
    border-radius: 20px;
    box-sizing: border-box;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.party-form textarea::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

/*{
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 20px;
    box-sizing: border-box;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}*/

.party-form input::placeholder,
.party-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.party-form input:focus,
.party-form textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-buttons button {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--cosmic-pink);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    touch-action: manipulation;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.form-buttons button[type="submit"] {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green));
    color: var(--space-navy);
    border-color: var(--neon-green);
}

.form-buttons button[type="button"] {
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    color: var(--space-white);
    border-color: var(--cosmic-pink);
}

.form-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.form-buttons button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--alien-green), var(--star-yellow));
    border-color: var(--star-yellow);
}

.form-buttons button[type="button"]:hover {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    border-color: var(--neon-green);
}

.form-buttons button:active {
    transform: scale(0.98);
}

/* Timeline styles */
.timeline-container {
    margin: 0 15px 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.timeline-header {
    display: none;
}

#current-timeline-date {
    font-weight: 700;
    font-size: 14px;
    font-family: 'Space Mono', monospace;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-event,
.timeline-request {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--alien-green);
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Add gradient line on top of timeline cards */
.timeline-event::before,
.timeline-request::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--cosmic-pink), var(--star-yellow));
    border-radius: 1px;
    opacity: 0.6;
}

.timeline-event:hover,
.timeline-request:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.timeline-event:hover::before,
.timeline-request:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

.timeline-request {
    border-left-color: var(--nebula-purple);
    margin: 12px 0;
}

.timeline-time {
    background: linear-gradient(135deg, var(--space-blue), var(--space-purple));
    padding: 15px 20px;
    width: 100%;
    min-width: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-weight: 700;
    color: var(--star-yellow);
    border-bottom: 2px solid var(--cosmic-pink);
    font-family: 'Orbitron', monospace;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
}

@media (max-width: 480px) {
    .timeline-time {
        font-size: 14px;
        letter-spacing: 0.5px;
        padding: 20px 15px;
    }
}

.time-and-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 60px;
    padding: 10px;
}

.time-display {
    color: var(--star-yellow);
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
    line-height: 1.2;
}

/* Day badge container */
.day-badge-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 20px;
    width: 100%;
}

/* Day badge for event/request cards */
.day-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(233, 30, 99, 0.2);
    border: 1px solid var(--cosmic-pink);
    color: var(--cosmic-pink);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
    text-shadow: none;
}

.day-badge.nu {
    background: rgba(0, 230, 118, 0.2);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.day-badge.vandaag {
    background: rgba(255, 152, 0, 0.2);
    border-color: #FF9800;
    color: #FF9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.day-badge.vannacht {
    background: rgba(255, 152, 0, 0.2);
    border-color: #FF9800;
    color: #FF9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.day-badge.morgen {
    background: rgba(255, 235, 59, 0.2);
    border-color: var(--star-yellow);
    color: var(--star-yellow);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.3);
}

@media (max-width: 480px) {
    .time-display {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

.timeline-content-item {
    flex: 1;
    padding: 0 25px 25px 25px;
    color: var(--space-white);
    margin: 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.timeline-header h4 {
    margin: 0;
    color: var(--star-yellow);
    font-size: 18px;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 0;
}

.timeline-type {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.timeline-request-type {
    font-size: 11px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink));
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
    border: none;
    backdrop-filter: blur(10px);
}

.timeline-details {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timeline-details div {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Space Mono', monospace;
}

.timeline-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.timeline-btn {
    padding: 10px 20px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform:uppercase;
    touch-action: manipulation;
    transition: all 0.3s ease;
}

.timeline-btn.join {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
}

.timeline-btn.leave {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
}

.timeline-btn.delete {
    background: linear-gradient(135deg, var(--robot-silver), var(--space-blue));
    color: white;
}

.timeline-btn.respond {
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink));
    color: white;
}

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

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

.timeline-empty {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    color: var(--space-white);
    border: none;
    position: relative;
}

.timeline-empty::before {
    content: '🛸 👽 🌟';
    display: block;
    font-size: 32px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.timeline-empty p {
    margin: 10px 0;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* Camera Interface Styles */
.camera-interface {
    background: linear-gradient(135deg, var(--space-blue), var(--space-purple));
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.camera-header h4 {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    margin: 35px 0 5px 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.camera-header {
    margin: 0;
    padding: 0;
}

.camera-header h4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.camera-header p {
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    margin: 0 0 15px 0;
    font-size: 12px;
    opacity: 0.8;
}

.camera-preview-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 240px;
    margin: 0 auto 20px auto;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    border-radius: 15px;
    overflow: hidden;
    background: var(--space-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
}

.camera-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.camera-placeholder p {
    font-size: 12px;
    opacity: 0.7;
    text-align: center;
    padding: 0 20px;
    line-height: 1.4;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.captured-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.captured-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 10px;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: bold;
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-control-btn {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    padding: 12px 18px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.camera-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4);
}

.camera-control-btn:active {
    transform: scale(0.98);
}

.camera-control-btn.start-btn {
    background: linear-gradient(135deg, var(--star-yellow), var(--alien-green));
}

.camera-control-btn.capture-btn {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
}

.camera-control-btn.retry-btn {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
}

.camera-action-btn {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    padding: 15px 25px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
}

.camera-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4);
}

.camera-action-btn.accept-btn {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green));
}

.camera-action-btn.retry-btn {
    background: linear-gradient(135deg, var(--star-yellow), var(--alien-green));
}

.camera-action-btn.cancel-btn {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
}

/* Timeline Selfie Styles */
.timeline-selfie {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    min-height: 160px;
    width: 100%;
}

.host-selfie-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    display: block;
    margin: 0 auto;
}

.host-selfie-img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

/* Ensure all selfie images (host, zoeker, requester) have the same pink border */
.timeline-selfie img,
.selfie-image-wrapper img,
.modal-user-avatar {
    border: 3px solid var(--cosmic-pink) !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4) !important;
}

.timeline-selfie img:hover,
.selfie-image-wrapper img:hover,
.modal-user-avatar:hover {
    border-color: var(--cosmic-pink) !important;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6) !important;
}

.selfie-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 10px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Photo Management Section */
.photo-management {
    margin-top: 25px;
    background: linear-gradient(135deg, var(--space-blue), var(--space-purple));
    padding: 20px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
}

.photo-management h3 {
    margin: 0 0 15px 0;
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--star-yellow);
    text-align: center;
    font-size: 14px;
}

.user-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    background: var(--space-navy);
}

.user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(233, 30, 99, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 5px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.delete-photo-btn {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border: none;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.15);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.delete-photo-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--meteor-orange);
}

.main-photo-label {
    font-size: 8px;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 5px;
}

.photo-actions {
    text-align: center;
}

.add-photo-btn {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    padding: 12px 20px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.add-photo-btn:hover {
    box-shadow: 0 0 15px var(--alien-green);
    transform: translateY(-2px);
}

.add-photo-btn:active {
    transform: scale(0.98);
}

/* Change Location Section */
.change-location-section {
    margin: 20px 0;
    text-align: center;
}

.change-location-btn {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    color: white;
    padding: 12px 20px;
    border: 2px solid var(--neon-green);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 1px;
}

.change-location-btn:hover {
    box-shadow: 0 0 20px var(--cosmic-pink), 0 0 30px var(--neon-green);
    transform: translateY(-2px);
}

.change-location-btn:active {
    transform: scale(0.98);
}

/* Delivery Orders Section */
.delivery-orders-section {
    margin: 15px 0;
    text-align: center;
}

.delivery-orders-btn {
    background: linear-gradient(135deg, var(--space-purple), var(--cosmic-pink));
    color: white;
    padding: 12px 20px;
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 1px;
}

.delivery-orders-btn:hover {
    box-shadow: 0 0 20px var(--cosmic-pink), 0 0 30px var(--space-purple);
    transform: translateY(-2px);
}

.delivery-orders-btn:active {
    transform: scale(0.98);
}

.delivery-orders-btn {
    position: relative;
}

.order-messages-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e91e63, #f44336);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

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

/* Custom Modal for City Change Confirmation */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.custom-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--space-blue), var(--space-purple));
    border: 2px solid var(--neon-green);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.4);
    max-width: 90%;
}

/* Logout button styling */
.sidebar button[onclick="logout()"] {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink)) !important;
    color: white !important;
    border: 2px solid var(--neon-green) !important;
    font-family: 'Orbitron', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.sidebar button[onclick="logout()"]:hover {
    box-shadow: 0 0 20px var(--meteor-orange) !important;
    transform: translateY(-2px) !important;
}

/* Desktop styles */
@media (min-width: 768px) {
    body {
        display: flex;
        flex-direction: row;
    }

    .main-content {
        flex: 1;
        padding-top: 0;
        flex-direction: column;
    }

    .sidebar-overlay {
        display: none;
    }

    .sidebar {
        position: relative;
        transform: translateX(0);
        transition: none;
        width: 320px;
        padding-top: 15px;
        flex-shrink: 0;
    }

    .menu-toggle-main {
        display: none;
    }

    .header {
        position: static;
        padding: 15px 20px 5px 20px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .tab-buttons {
        flex: none;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .tab-buttons {
        gap: 0;
        padding: 0;
        background: transparent;
        border-radius: 18px;
        /* Allow notification badge glow to extend beyond button boundaries */
        overflow: visible;
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .tab-button {
        flex: 1;
        padding: 20px 30px;
        margin: 0;
        /* Don't set border-radius here - let first-child and last-child handle it */
        min-height: 60px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        /* Allow notification badge glow to extend beyond button boundaries */
        overflow: visible;
    }

    .tab-button:first-child {
        border-top-left-radius: 18px !important;
        border-bottom-left-radius: 18px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .tab-button:last-child {
        border-top-right-radius: 18px !important;
        border-bottom-right-radius: 18px !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .chat-container {
        padding: 0 12px;
        margin: 0;
        border-radius: 0;
        background: transparent;
    }

    .chat-messages {
        border: none;
        border-radius: 16px;
        margin-bottom: 0;
        padding: 30px;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(20px);
        min-height: 500px;
    }

    .chat-input {
        margin: 8px 0 16px 0;
    }

    .timeline-event,
    .timeline-request {
        flex-direction: column;
    }

    .timeline-time {
        min-width: 150px;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 2px solid var(--cosmic-pink);
        text-align: center;
    }

    .timeline-actions {
        flex-direction: row;
    }

    .form-buttons {
        flex-direction: row;
    }
}

/* Enhanced styles for larger screens (1200px+) */
@media (min-width: 1200px) {
    .sidebar {
        width: 380px;
        padding: 20px;
    }

    .chat-container {
        padding: 8px;
        margin: 8px;
        max-width: 1400px;
    }

    .tab-button {
        padding: 22px 35px;
        font-size: 13px;
        margin: 0;
        min-height: 64px;
    }

    .header {
        padding: 20px 30px 8px 30px;
        gap: 25px;
    }

    .chat-messages {
        padding: 30px;
        margin-bottom: 25px;
    }

    .chat-input {
        margin: 8px 0 16px 0;
    }

    .timeline-time {
        min-width: 150px;
        padding: 20px 25px;
    }
}

/* Ultra-wide and high resolution screens (1440px+) */
@media (min-width: 1440px) {
    .sidebar {
        width: 420px;
        padding: 25px;
    }

    .main-content {
        max-width: 2000px;
        margin: 0 auto;
    }

    .chat-container {
        padding: 12px;
        margin: 12px;
        max-width: 1600px;
    }

    .header {
        padding: 25px 40px 10px 40px;
        gap: 30px;
    }

    .tab-button {
        padding: 24px 40px;
        font-size: 14px;
        margin: 0;
        min-height: 68px;
    }

    .chat-messages {
        padding: 40px;
        margin-bottom: 30px;
    }

    .chat-input {
        margin: 8px 0 16px 0;
    }

    .timeline-time {
        min-width: 180px;
        padding: 25px 30px;
    }
}

/* Very large monitors (1920px+) */
@media (min-width: 1920px) {
    .sidebar {
        width: 480px;
        padding: 30px;
    }

    .main-content {
        max-width: 2400px;
    }

    .chat-container {
        padding: 16px;
        margin: 16px;
        max-width: 1800px;
    }

    .header {
        padding: 30px 50px 12px 50px;
        gap: 35px;
    }

    .tab-button {
        padding: 20px 40px;
        font-size: 14px;
        margin: 0;
    }

    .chat-messages {
        padding: 50px;
        margin-bottom: 35px;
    }

    .chat-input {
        margin: 8px 0 16px 0;
    }

    .timeline-time {
        min-width: 200px;
        padding: 30px 35px;
    }
}

/* Mobile responsive timeline */
@media (max-width: 767px) {
    .header {
        margin-top: 10px;
    }

    .menu-toggle-main:hover {
        transform: none !important;
    }

    .menu-toggle-main {
        min-height: 64px;
    }

    .tab-buttons {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .tab-button {
        min-width: 50px;
        padding: 18px 6px;
        font-size: 10px;
        letter-spacing: 0.2px;
        border-radius: 0 !important;
        min-height: 64px;
    }

    .tab-button:first-child {
        border-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .tab-button:last-child {
        /* Keep rounded corners on the right edge for mobile */
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    .timeline-event,
    .timeline-request {
        flex-direction: column;
    }

    .timeline-time {
        min-width: unset;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 2px solid var(--cosmic-pink);
        text-align: center;
    }

    .timeline-actions {
        flex-direction: column;
    }

    .form-buttons {
        flex-direction: column;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .timeline-header h4 {
        font-size: 16px;
        line-height: 1.2;
    }

    .timeline-type {
        align-self: flex-end;
        margin-top: -5px;
    }

    .timeline-selfie {
        padding: 25px 15px;
        min-height: 140px;
    }

    .host-selfie-img {
        width: 100px;
        height: 100px;
    }
}

/* Prevent text selection on buttons */
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Improved touch targets */
@media (max-width: 767px) {
    button {
        min-height: 48px;
    }

    .user-item {
        min-height: 60px;
    }

    .tab-button {
        min-height: 52px;
        padding: 16px 10px;
    }
}

/* Extra compact tabs for very small screens */
@media (max-width: 480px) {
    .tab-button {
        min-width: 45px;
        padding: 8px 4px;
        font-size: 9px;
        letter-spacing: 0.1px;
        min-height: 44px;
    }
}

@media (max-width: 360px) {
    .tab-button {
        min-width: 40px;
        padding: 8px 3px;
        font-size: 8px;
        letter-spacing: 0px;
        min-height: 42px;
    }
}

/* Global scrollbars use unified modal system - styles defined in unified-modal-base.css */

/* Remove emoji decorations */
.sidebar::after,
.chat-container::after {
    display: none;
}




/* Media Modal Styles */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.4) 0%, rgba(10, 14, 39, 0.5) 100%);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.4s ease-out;
    cursor: pointer;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.media-modal-content {
    background: transparent;
    border: none;
    border-radius: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    box-shadow: none;
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.media-modal-content::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
}

/* Media modal scrollbar styling removed - now uses unified system */

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

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

@keyframes scaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes borderPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 230, 118, 0.4), inset 0 0 20px rgba(0, 230, 118, 0.1);
    }
    50% {
        box-shadow: 0 8px 40px rgba(0, 230, 118, 0.6), inset 0 0 30px rgba(0, 230, 118, 0.2);
    }
}

@keyframes imageWrapperFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.media-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 230, 118, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 235, 59, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 25px;
}

.media-modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 30%, rgba(255, 235, 59, 0.05) 31%, rgba(255, 235, 59, 0.05) 32%, transparent 33%);
    animation: twinkle 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 25px;
}

/* Media modal header styles moved to inline styles for precise border alignment */

.close-media-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    outline: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    padding: 0;
    min-width: 40px;
    min-height: 40px;
}

.close-media-modal span {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.close-media-modal:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.6);
    border-color: var(--star-yellow);
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
}

.close-media-modal:active {
    transform: scale(1.0);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

/* Media capture container styles moved to inline styles for precise border alignment */

.media-preview-area {
    position: relative;
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    border-radius: 20px;
    overflow: visible;
    margin-bottom: 10px;
    height: clamp(220px, 40vh, 350px);
    max-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    border: 3px solid var(--cosmic-pink);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4),
                inset 0 0 30px rgba(0, 230, 118, 0.1);
    transition: all 0.3s ease;
}

#media-camera-video {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    object-fit: cover;
    transform: scaleX(-1);
    transition: all 0.3s ease;
}

#media-camera-video:hover {
    filter: drop-shadow(0 12px 35px rgba(0, 230, 118, 0.3));
    transform: scale(1.02);
}

.media-captured-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-captured-preview img,
.media-captured-preview video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .media-captured-preview img,
    .media-captured-preview video {

        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .media-captured-preview img,
    .media-captured-preview video {

        border-width: 2px;
    }
}

/* Hide all default video controls and create custom ones */
.media-captured-preview video,
.media-message .shared-media-video {
    position: relative;
}

.media-captured-preview video::-webkit-media-controls,
.media-message .shared-media-video::-webkit-media-controls {
    display: none !important;
}

.media-captured-preview video::-webkit-media-controls-enclosure,
.media-message .shared-media-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Custom video controls overlay */
.video-controls-overlay {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    border-radius: 16px;
    overflow: hidden;
}

.video-container:hover .video-controls-overlay {
    opacity: 1;
}

.video-controls-overlay.active {
    opacity: 1;
}

/* Center play/pause button */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 35, 126, 0.8));
    backdrop-filter: blur(15px);
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    opacity: 1;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 12px 35px rgba(0, 230, 118, 0.6);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(156, 39, 176, 0.9));
}

.video-play-button.playing {
    opacity: 0;
    pointer-events: none;
}

.video-play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid var(--neon-green);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 6px;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
}

.video-pause-icon {
    display: flex;
    gap: 8px;
}

.video-pause-icon::before,
.video-pause-icon::after {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--neon-green);
    border-radius: 2px;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
}

/* Bottom progress bar */
.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 15px;
    pointer-events: auto;
    opacity: 1;
    border-radius: 0 0 12px 12px;
}

.video-progress-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-progress-bar:hover {
    height: 12px;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cosmic-pink), var(--neon-green));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.6);
}

.video-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--star-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 235, 59, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-progress-bar:hover .video-progress-fill::after {
    opacity: 1;
}

.video-time-display {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.4);
    margin-left: 15px;
    min-width: 80px;
    text-align: right;
}

/* Make video containers support custom controls */
.media-captured-preview,
.message-text .shared-media-video {
    display: block;
    position: relative;
}

.video-container {
    position: relative;
    display: inline-block;
}

.media-captured-preview img:hover,
.media-captured-preview video:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 230, 118, 0.4);
}

.media-recording-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(255, 87, 34, 0.9));
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 14px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: var(--star-yellow);
    border-radius: 50%;
    animation: recordingPulse 1s infinite;
    box-shadow: 0 0 10px var(--star-yellow);
}

@keyframes recordingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--star-yellow);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 20px var(--star-yellow);
    }
}

/* WhatsApp-style Voice Recording Interface */
.whatsapp-voice-recording {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 25px;
    padding: 12px 20px;
    width: 100%;
    min-height: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
    gap: 15px;
}

.whatsapp-voice-recording::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 87, 34, 0.1) 25%,
        rgba(233, 30, 99, 0.1) 50%,
        rgba(0, 230, 118, 0.1) 75%,
        transparent 100%);
    animation: recordingShimmer 3s ease-in-out infinite;
    pointer-events: none;
}    @keyframes recordingShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.recording-indicator-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 16px;
    line-height: 1;
    min-width: 110px;
    position: relative;
    z-index: 2;
}

.recording-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--meteor-orange), var(--star-yellow));
    border-radius: 50%;
    animation: recordingDotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
    flex-shrink: 0;
}

@keyframes recordingDotPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.4);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
    }
}

.recording-text {
    color: var(--meteor-orange);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;
    vertical-align: top;
    line-height: 1;
    height: 16px;
    align-self: center;
}

.recording-dots {
    color: var(--meteor-orange);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 87, 34, 0.6);
    min-width: 25px;
    display: inline-block;
    vertical-align: top;
    line-height: 1;
    height: 16px;
    text-align: left;
    align-self: center;
}

/* Recording timer display - replaces waveform */
.recording-timer-display {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
    flex: 1;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.voice-stop-btn {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* WhatsApp-style Voice Preview Interface */
.whatsapp-voice-preview {
    background: linear-gradient(135deg, var(--space-blue), var(--nebula-purple));
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-duration {
    color: var(--neon-green);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 13px;
}

.voice-player-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
}

.voice-play-btn-preview {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.voice-play-btn-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.5);
}

.voice-waveform-interactive {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
    height: 25px;
    min-width: 0;
    padding: 0;
    width: 100%;
    justify-content: space-between;
}

.voice-bar-preview {
    background: linear-gradient(to top, var(--neon-green), var(--cosmic-pink));
    border-radius: 1px;
    opacity: 0.7;
    flex-shrink: 0;
    flex-grow: 1;
    max-width: 3px;
    min-width: 1px;
    width: 2px;
    transition: all 0.2s ease;
}

.playback-time {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 12px;
    min-width: 35px;
    text-align: right;
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.preview-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.voice-cancel-btn-preview,
.voice-send-btn-preview,
.voice-filter-btn-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    min-height: 50px;
    box-sizing: border-box;
}

.voice-filter-btn-preview {
    background: linear-gradient(135deg, var(--space-blue), var(--nebula-purple));
    border-color: var(--star-yellow);
    color: var(--star-yellow);
    order: 1;
}

.voice-filter-btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 235, 59, 0.4);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

.voice-send-btn-preview {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green));
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    color: var(--space-navy);
    order: 2;
}

.voice-send-btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.4);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

.voice-cancel-btn-preview {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    border-color: var(--meteor-orange);
    color: white;
    order: 3;
}

.voice-cancel-btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

/* Voice Filter Interface Styles */
.voice-filters-modal {
    animation: modalFadeIn 0.3s ease-out;
}

.voice-filter-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: none;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.15);
    border-radius: 16px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
}

.voice-filter-option:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(233, 30, 99, 0.1));
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
    transform: translateY(-2px);
}

.voice-filter-option.selected {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.filter-icon-large {
    font-size: 24px;
    margin-bottom: 5px;
}

.filter-name {
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 3px;
    color: var(--neon-green);
}

.filter-description {
    font-size: 9px;
    opacity: 0.8;
    line-height: 1.2;
}



@media (max-width: 480px) {
    .voice-filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: 8px !important;
    }

    .voice-filter-option {
        padding: 10px 6px !important;
    }

    .filter-icon-large {
        font-size: 20px !important;
    }

    .filter-name {
        font-size: 10px !important;
    }

    .filter-description {
        font-size: 8px !important;
    }

    .preview-actions {
        flex-wrap: wrap !important;
    }

    .voice-filter-btn-preview {
        flex: 1 0 auto;
        min-width: 80px;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
}

/* Voice Message Components Display in Single Row */
.message-text .voice-message-container {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    min-width: 200px;
    padding: 0;
    background: transparent;
    border: none;
    margin: 5px 0;
    overflow: visible;
}

/* Desktop-specific adjustments to reduce spacing */
@media (min-width: 1024px) {
    .message-text .voice-message-container {
        gap: 1px;
    }

    .message-text .voice-waveform-display {
        flex: 2 1 auto;
    }

    .message-text .voice-duration {
        flex: 0 0 auto;
        max-width: 40px;
    }
}

.message-text .voice-play-button {
    flex-shrink: 0;
    margin: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 14px;
}

.message-text .voice-waveform-display {
    flex: 1 1 auto;
    min-width: 80px;
    margin: 0 5px;
    height: 20px;
    justify-content: flex-start;
    overflow: hidden;
}

.message-text .voice-duration {
    flex: 0 0 auto;
    margin: 0;
    min-width: fit-content;
    text-align: right;
    font-size: 11px;
    white-space: nowrap;
}

.voice-play-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    outline: none;
}

.voice-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.5);
    border-color: var(--star-yellow);
    z-index: 10;
    position: relative;
}

.voice-waveform-display {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
    height: 22px;
    min-width: 0;
    padding: 0;
    width: 100%;
    justify-content: flex-start;
    overflow: hidden;
}

.voice-bar {
    background: linear-gradient(to top, var(--neon-green), var(--cosmic-pink));
    border-radius: 1px;
    opacity: 0.7;
    transition: opacity 0.3s ease, height 0.2s ease;
    flex-shrink: 0;
    max-width: 3px;
    min-width: 1px;
    width: 2px;
}

.voice-duration {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(255, 235, 59, 0.5);
    flex-shrink: 0;
    min-width: 30px;
    text-align: right;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .whatsapp-voice-recording {
        padding: 10px 15px;
        min-height: 45px;
    }

    .recording-text {
        font-size: 12px;
        margin-right: 6px;
    }

    .voice-waveform-bars {
        margin-right: 6px;
        gap: 1.5px;
    }

    .waveform-bar {
        width: 2.5px;
    }

    .voice-stop-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    /* Voice duration display adjustments for tablets */
    .voice-duration {
        font-size: 11px;
        min-width: 25px;
    }

    .playback-time {
        font-size: 11px;
        min-width: 30px;
    }

    .message-text .voice-duration {
        font-size: 10px;
        min-width: 25px;
    }

    /* Voice message container responsive adjustments */
    .message-text .voice-message-container {
        gap: 2px;
    }

    .message-text .voice-play-button {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    /* Responsive waveform display adjustments */
    .message-text .voice-waveform-display {
        flex: 1 1 auto;
        margin: 0 4px;
        min-width: 60px;
    }

    .voice-bar {
        max-width: 2px;
        min-width: 1px;
    }
}

@media (max-width: 480px) {
    .whatsapp-voice-recording {
        padding: 8px 12px;
        min-height: 42px;
    }

    .recording-text {
        font-size: 11px;
        margin-right: 5px;
    }

    .voice-waveform-bars {
        margin-right: 5px;
        gap: 1px;
    }

    .waveform-bar {
        width: 2px;
    }

    .voice-stop-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Voice duration display for small phones like iPhone SE */
    .voice-duration {
        font-size: 10px;
        min-width: 22px;
    }

    .playback-time {
        font-size: 10px;
        min-width: 28px;
    }

    .message-text .voice-duration {
        font-size: 9px;
        min-width: 22px;
    }

    /* Voice message container responsive adjustments */
    .message-text .voice-message-container {
        gap: 2px;
    }

    .message-text .voice-play-button {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    /* Responsive waveform display adjustments for small phones */
    .message-text .voice-waveform-display {
        flex: 1 1 auto;
        margin: 0 3px;
        min-width: 50px;
    }

    .voice-bar {
        max-width: 1.8px;
        min-width: 0.8px;
    }
}

@media (max-width: 360px) {
    .whatsapp-voice-recording {
        padding: 6px 10px;
        min-height: 40px;
    }

    .recording-text {
        font-size: 10px;
        margin-right: 4px;
    }

    .voice-waveform-bars {
        margin-right: 4px;
        gap: 0.8px;
    }

    .waveform-bar {
        width: 1.8px;
    }

    .voice-stop-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    /* Voice duration display for very small screens */
    .voice-duration {
        font-size: 9px;
        min-width: 20px;
    }

    .playback-time {
        font-size: 9px;
        min-width: 25px;
    }

    .message-text .voice-duration {
        font-size: 8px;
        min-width: 20px;
    }

    /* Voice message container responsive adjustments */
    .message-text .voice-message-container {
        gap: 2px;
    }

    .message-text .voice-play-button {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }

    /* Responsive waveform display adjustments for very small screens */
    .message-text .voice-waveform-display {
        flex: 1 1 auto;
        margin: 0 2px;
        min-width: 40px;
    }

    .voice-bar {
        max-width: 1.5px;
        min-width: 0.8px;
    }
}

@media (max-width: 320px) {
    .whatsapp-voice-recording {
        padding: 6px 8px;
        min-height: 38px;
    }

    .recording-text {
        font-size: 9px;
        margin-right: 3px;
    }

    .voice-waveform-bars {
        margin-right: 3px;
        gap: 0.6px;
    }

    .waveform-bar {
        width: 1.5px;
    }

    .voice-stop-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    /* Voice duration display for iPhone SE and smallest screens */
    .voice-duration {
        font-size: 8px;
        min-width: 18px;
    }

    .playback-time {
        font-size: 8px;
        min-width: 22px;
    }

    .message-text .voice-duration {
        font-size: 7px;
        min-width: 18px;
    }

    /* Voice message container responsive adjustments */
    .message-text .voice-message-container {
        gap: 1px;
    }

    .message-text .voice-play-button {
        width: 24px;
        height: 24px;
        font-size: 8px;
    }

    /* Responsive waveform display adjustments for iPhone SE and smallest screens */
    .message-text .voice-waveform-display {
        flex: 1 1 auto;
        margin: 0 2px;
        min-width: 30px;
    }

    .voice-bar {
        max-width: 1.2px;
        min-width: 0.6px;
    }
}

.media-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
    padding: 0;
    flex-shrink: 0;
}

.media-type-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    padding: 8px;
    border: none;
    backdrop-filter: blur(10px);
    backdrop-filter: blur(15px);
}

.media-mode-btn,
#photo-mode-btn,
#video-mode-btn {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.8), rgba(26, 35, 126, 0.8)) !important;
    color: var(--space-white) !important;
    border: 2px solid var(--neon-green) !important;
    border-radius: 15px !important;
    padding: 14px 24px !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
    flex: 1 !important;
}

.media-mode-btn:hover {
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3) !important;
    border-color: var(--neon-green) !important;
}

.media-mode-btn.active {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange)) !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5) !important;
    transform: translateY(-2px) !important;
}

.media-mode-btn:active {
    transform: translateY(0) !important;
}

.media-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.media-btn {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 15px 20px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    outline: none;
}

.media-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
}

/* Primary Start Camera Button */
.media-btn.primary,
#start-media-camera {
    background: linear-gradient(135deg, var(--star-yellow), var(--alien-green)) !important;
    border: 2px solid var(--neon-green) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    color: var(--space-navy) !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 20px !important;
    border-radius: 20px !important;
    min-width: 120px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
}

.media-btn.primary:hover,
#start-media-camera:hover {
    box-shadow: 0 5px 15px rgba(255, 235, 59, 0.3) !important;
    background: linear-gradient(135deg, var(--alien-green), var(--star-yellow)) !important;
    transform: translateY(-2px) !important;
    border-color: var(--cosmic-pink) !important;
}

/* Capture Photo Button */
.media-btn.capture,
#capture-photo {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple)) !important;
    color: white !important;
    border: 2px solid var(--cosmic-pink) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 20px !important;
    border-radius: 20px !important;
    min-width: 120px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
}

.media-btn.capture:hover,
#capture-photo:hover {
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3) !important;
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink)) !important;
    transform: translateY(-2px) !important;
    border-color: var(--neon-green) !important;
}

/* Record Video Button */
.media-btn.record,
#start-recording {
    background: linear-gradient(135deg, #ff4444, var(--meteor-orange)) !important;
    color: white !important;
    border: 2px solid var(--meteor-orange) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 20px !important;
    border-radius: 20px !important;
    min-width: 120px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
}

.media-btn.record:hover,
#start-recording:hover {
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3) !important;
    background: linear-gradient(135deg, var(--meteor-orange), #ff4444) !important;
    transform: translateY(-2px) !important;
    border-color: var(--neon-green) !important;
}

/* Stop Recording Button */
.media-btn.stop,
#stop-recording {
    background: linear-gradient(135deg, var(--space-purple), var(--space-navy)) !important;
    color: var(--meteor-orange) !important;
    border: 2px solid var(--meteor-orange) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 20px !important;
    border-radius: 20px !important;
    min-width: 120px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
}

.media-btn.stop:hover,
#stop-recording:hover {
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3) !important;
    background: linear-gradient(135deg, var(--space-navy), var(--space-purple)) !important;
    transform: translateY(-2px) !important;
    border-color: var(--neon-green) !important;
}

/* RetakeButton */
.media-btn.retry,
#retake-media {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink)) !important;
    color: white !important;
    border: 3px solid var(--cosmic-pink) !important;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4) !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 18px 28px !important;
    border-radius: 25px !important;
    min-width: 140px !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.media-btn.retry:hover,
#retake-media:hover {
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6) !important;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange)) !important;
    transform: translateY(-4px) scale(1.02) !important;
    border-color: var(--neon-green) !important;
}

.media-btn.retry:active,
#retake-media:active {
    transform: translateY(-2px) scale(0.98) !important;
}

/* Send Button */
.media-btn.send,
#send-media {
    background: linear-gradient(135deg, var(--neon-green), var(--alien-green)) !important;
    color: var(--space-navy) !important;
    border: 3px solid var(--neon-green) !important;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4) !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 18px 28px !important;
    border-radius: 25px !important;
    min-width: 140px !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    outline: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.media-btn.send:hover,
#send-media:hover {
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.6) !important;
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green)) !important;
    transform: translateY(-4px) scale(1.02) !important;
    border-color: var(--cosmic-pink) !important;
}

.media-btn.send:active,
#send-media:active {
    transform: translateY(-2px) scale(0.98) !important;
}

/* Media recipient info styles moved to inline styles for precise border alignment */

/* Caption Input Styling */
.media-caption-container {
    margin-bottom: 8px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.media-caption-input {
    width: 100%;
    min-height: 60px;
    max-height: 80px;
    padding: 16px 20px;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(25px);
    color: var(--space-white);
    font-size: 15px;
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.4s ease;
    outline: none;
    line-height: 1.5;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2),
                0 3px 15px rgba(233, 30, 99, 0.1);
 z-index: 1;
    backdrop-filter: none;
}

.media-caption-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
}

.media-caption-input:focus {
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(0, 230, 118, 0.4),
                0 3px 15px rgba(0, 230, 118, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
    transform: translateY(-1px);
}

.media-action-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: 0;
    width: 100%;
}

.media-action-buttons-after {
    display: none;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    width: 100%;
    box-sizing: border-box;
}

/* WhatsApp-style camera capture button */
.camera-capture-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.camera-button-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.camera-progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.progress-ring {
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.1s linear;
}

.progress-ring-progress {
    transition: stroke-dashoffset 0.1s linear;
    stroke: #ff4444;
}

.camera-capture-btn {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.camera-btn-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.camera-capture-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

.camera-capture-btn:hover .camera-btn-inner {
    background: var(--neon-green);
}

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

.camera-capture-btn.recording {
    border-color: #ff4444;
    animation: recordingPulse 1s infinite;
}

.camera-capture-btn.recording .camera-btn-inner {
    background: #ff4444;
    border-radius: 20%;
    width: 40px;
    height: 40px;
}

@keyframes recordingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 68, 68, 0);
    }
}

.recording-timer {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 35, 126, 0.8));
    color: #ff4444;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #ff4444;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    z-index: 3;
}

/* Media content styling within regular messages */

/* Media content within message-text container */
.message-text .media-content {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 320px;
    margin: 8px 0;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    background: transparent;
    line-height: 0;
}

.message-text .shared-media-image,
.message-text .shared-media-video {
    width: auto;
    height: auto;
    max-width: 320px;
    min-height: 180px;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--space-navy);
}

.message-text .shared-media-image:hover,
.message-text .shared-media-video:hover {
    filter: brightness(1.1);
    border: 2px solid var(--cosmic-pink);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Responsive sizing for media content within messages */
@media (max-width: 1024px) {
    .message-text .media-content {
        max-width: 280px;
    }

    .message-text .shared-media-image,
    .message-text .shared-media-video {
        min-height: 160px;
        max-height: 200px;
    }
}

/* Mobile responsive sizing */
@media (max-width: 767px) {
    .message-text .media-content {
        max-width: 280px;
        border-width: 2px;
    }

    .message-text .shared-media-image,
    .message-text .shared-media-video {
        min-height: 140px;
        max-height: 180px;
        max-width: 280px;
        border-width: 2px;
    }

    .message-text .shared-media-image:hover,
    .message-text .shared-media-video:hover {
        border: 2px solid var(--cosmic-pink);
        filter: brightness(1.1);
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    }
}

/* Small mobile responsive sizing */
@media (max-width: 480px) {
    .message-text .media-content {
        max-width: 240px;
    }

    .message-text .shared-media-image,
    .message-text .shared-media-video {
        min-height: 120px;
        max-height: 160px;
        max-width: 240px;
        border-width: 2px;
    }

    .message-text .shared-media-image:hover,
    .message-text .shared-media-video:hover {
        filter: brightness(1.1);
        border: 2px solid var(--cosmic-pink);
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .message-text .shared-media-image,
    .message-text .shared-media-video {
        min-height: 100px;
        max-height: 140px;
    }

    /* Extra small screen location modal title */
    #location-permission-modal h3 {
        font-size: 14px !important;
        padding-top: 65px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-bottom: 6px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Video container within message text */
.message-text .video-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: visible;
    max-width: 100%;
}

@media (max-width: 767px) {
    .message-text .video-container {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .message-text .video-container {
        width: 100%;
        max-width: 200px;
    }
}

/* Make sure videos are properly contained */
.media-captured-preview,
.message-text .shared-media-video {
    display: block;
    position: relative;
}

.media-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    animation: modalFadeIn 0.3s ease-out;
}

/* Mobile responsive styles for media modal */
@media (max-width: 767px) {
    .media-modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        border-radius: 15px;
    }

    .media-modal-header {
        padding: 15px 20px;
    }

    .media-modal-header h3 {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .media-capture-container {
        padding: 15px;
    }

    .media-preview-area {
        height: clamp(160px, 28vh, 220px);
        max-height: 220px;
        margin-bottom: 10px;
        border-radius: 15px;
        border-width: 2px;
    }

    .media-controls {
        gap: 10px;
    }

    .media-type-selector {
        gap: 6px;
        padding: 6px;
    }

    .media-mode-btn {
        padding: 10px 16px;
        font-size: 12px;
        letter-spacing: 0.5px;
        border-width: 2px;
    }

    .media-action-buttons {
        gap: 8px;
        flex-direction: column;
    }

    .media-btn {
        padding: 12px 16px;
        font-size: 11px;
        min-width: 100px;
        border-radius: 15px;
    }

    .media-recipient-info {
        padding: 12px 15px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .close-media-modal {
        width: 30px;
        height: 30px;
        border-width: 2px;
        top: 10px;
        right: 10px;
    }

    .close-media-modal span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .media-modal-content {
        max-width: 98vw;
        max-height: 92vh;
        margin: 4vh auto;
        border-radius: 16px;
    }

    .media-modal-header {
        padding: 12px 15px;
    }

    .media-modal-header h3 {
        font-size: 14px;
    }

    .media-capture-container {
        padding: 12px;
    }

    .media-preview-area {
        height: clamp(140px, 25vh, 200px);
        max-height: 200px;
        margin-bottom: 8px;
        border-radius: 16px;
    }

    .media-btn {
        padding: 10px 14px;
        font-size: 10px;
        min-width: 90px;
        border-radius: 16px;
    }

    .media-recipient-info {
        padding: 10px 12px;
        font-size: 10px;
    }
}

@media (max-height: 650px) {
    .media-preview-area {
        height: clamp(120px, 22vh, 180px) !important;
        max-height: 180px !important;
    }

    .media-modal-header {
        padding: 10px 15px !important;
    }

    .media-modal-header h3 {
        font-size: 13px !important;
    }

    .media-capture-container {
        padding: 10px !important;
    }

    .media-recipient-info {
        padding: 8px 15px !important;
        font-size: 11px !important;
    }

    .media-caption-input {
        min-height: 50px !important;
        max-height: 60px !important;
    }
}

@media (max-height: 500px) {
    .media-modal-content {
        max-height: 98vh !important;
    }

    .media-preview-area {
        height: clamp(100px, 20vh, 150px) !important;
        max-height: 150px !important;
    }

    .media-modal-header {
        padding: 8px 12px !important;
    }

    .media-modal-header h3 {
        font-size: 12px !important;
        padding-top: 5px !important;
    }

    .media-modal-header h3::before {
        display: none !important;
    }

    .media-capture-container {
        padding: 8px !important;
    }

    .media-controls {
        gap: 5px !important;
    }

    .media-action-buttons-after {
        gap: 5px !important;
    }

    .media-recipient-info {
        padding: 6px 12px !important;
        font-size: 9px !important;
    }

    .media-recipient-info::before {
        display: none !important;
    }

    .media-caption-input {
        min-height: 40px !important;
        max-height: 50px !important;
        padding: 4px 6px !important;
        font-size: 8px !important;
    }

    .media-caption-container {
        margin-bottom: 5px !important;
    }

    .camera-capture-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .camera-button-wrapper {
        width: 55px !important;
        height: 55px !important;
    }

    .progress-ring {
        width: 55px !important;
        height: 55px !important;
    }

    #send-media, #retake-media {
        padding: 5px 10px !important;
        font-size: 8px !important;
        min-height: 22px !important;
    }
}

/* Admin lookup phone info */
.lookup-phone-info {
    font-size: 0.85em;
    color: var(--neon-green);
    margin-top: 4px;
    font-family: 'Space Mono', monospace;
}

/* Admin Action Messages */
.admin-action-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
}

.targeted-message {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 87, 34, 0.2));
    border: none;
    box-shadow: 0 2px 15px rgba(255, 193, 7, 0.2);
    animation: targetedMessageGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

@keyframes adminMessageGlow {
    0% { box-shadow: 0 0 5px rgba(233, 30, 99, 0.5); }
    50% { box-shadow: 0 0 20px rgba(233, 30, 99, 0.8); }
    100% { box-shadow: 0 0 5px rgba(233, 30, 99, 0.5); }
}

@keyframes targetedMessageGlow {
    0% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 193, 7, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.5); }
}

/* Admin Notification Badge */
.admin-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--cosmic-pink);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: notificationPulse 1s ease-in-out infinite;
}

@keyframes notificationPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Toast Notification */
.admin-toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--space-navy), var(--cosmic-pink));
    color: white;
    padding: 15px 20px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 15px rgba(255, 193, 7, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.admin-toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 14px;
    font-weight: 600;
}



/* Enhanced User Lookup Modal */
.lookup-modal {
    max-width: 500px;
    background: linear-gradient(145deg, var(--space-navy) 0%, var(--space-blue) 40%, var(--nebula-purple) 100%);
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    animation: modalAppearFlashy 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lookup-header {
    text-align: center;
    padding: 30px 25px 20px;
    border-bottom: 2px solid rgba(233, 30, 99, 0.3);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    border-radius: 25px 25px 0 0;
}

.lookup-header h3 {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    padding-top: 75px;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.4);
}

.lookup-header p {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.lookup-search-section {
    padding: 25px;
    background: transparent;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 25px;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.search-input-container:focus-within {
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.search-input-container input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    background: transparent;
    color: var(--space-white);
    font-size: 16px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    outline: none;
    border-radius: 25px;
}

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

.search-loading {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.15);
    border-radius: 50%;
    border-top-color: var(--cosmic-pink);
    animation: spin 1s ease-in-out infinite;
}

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

.lookup-results-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--cosmic-pink) transparent;
    padding: 0 25px 25px;
}

/* Lookup results use unified scrollbar system - styles defined in unified-modal-base.css */

.lookup-user-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: none;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.lookup-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--cosmic-pink), var(--star-yellow));
    opacity: 0.7;
}

.lookup-user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.3);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(233, 30, 99, 0.08));
}

.lookup-user-card:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

.lookup-user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.lookup-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.lookup-user-info h4 {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
}

.lookup-user-info p {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.lookup-user-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.lookup-user-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.badge-admin {
    background: linear-gradient(135deg, var(--meteor-orange), var(--cosmic-pink));
    color: white;
    border: 1px solid var(--meteor-orange);
}

.badge-user {
    background: linear-gradient(135deg, var(--space-blue), var(--nebula-purple));
    color: var(--space-white);
    border: 1px solid var(--nebula-purple);
}

.badge-muted {
    background: linear-gradient(135deg, var(--space-purple), var(--space-navy));
    color: var(--meteor-orange);
    border: 1px solid var(--meteor-orange);
}

.badge-active {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.15);
}

.badge-banned {
    background: linear-gradient(135deg, var(--space-navy), var(--space-purple));
    color: var(--cosmic-pink);
    border: none;
    box-shadow: 0 1px 8px rgba(233, 30, 99, 0.15);
}

/* Mention/Reply Badge Button on LEFT side of chat input */
.mention-badge-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid var(--cosmic-pink) !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
    padding: 0;
}

.mention-badge-btn:hover {
    background: rgba(233, 30, 99, 0.2) !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.mention-badge-btn .mention-badge-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 2px 8px rgba(233, 30, 99, 0.6);
}

.mention-badge-btn .mention-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    color: var(--space-white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: counterPulse 1s ease-in-out infinite;
}

@keyframes mentionBadgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.6),
                    0 0 40px rgba(156, 39, 176, 0.4),
                    0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(233, 30, 99, 0.8),
                    0 0 60px rgba(156, 39, 176, 0.6),
                    0 6px 20px rgba(0, 0, 0, 0.4);
    }
}

@keyframes counterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Adjust input padding when mention badge is visible */
.chat-input-container:has(.mention-badge-btn[style*="display: none"]) #global-message-input {
    padding-left: 20px;
}

.chat-input-container:has(.mention-badge-btn:not([style*="display: none"])) #global-message-input {
    padding-left: 70px;
}

/* Mobile responsive adjustments for mention badge button */
@media (max-width: 768px) {
    .mention-badge-btn {
        width: 44px;
        height: 44px;
        left: 8px;
    }

    .mention-badge-btn .mention-badge-icon {
        font-size: 22px;
    }

    .mention-badge-btn .mention-badge-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }

    .chat-input-container:has(.mention-badge-btn:not([style*="display: none"])) #global-message-input {
        padding-left: 60px;
    }
}

.lookup-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Orbitron', monospace;
    font-style: italic;
}

.lookup-empty-state::before {
    content: '🔍 👽';
    display: block;
    font-size: 32px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.lookup-no-results {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(233, 30, 99, 0.1));
    border: 2px solid rgba(255, 87, 34, 0.3);
    border-radius: 15px;
    margin-top: 10px;
}

.lookup-no-results::before {
    content: '🤖 💭';
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

/* Selfie Modal Integration with Unified Modal System */

.selfie-modal-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.selfie-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.4);
}

.role-emoji {
    font-size: 14px;
}

.selfie-modal-title {
    color: var(--star-yellow);
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.4);
    letter-spacing: 1px;
    margin: 0 0 5px 0;
    padding-top: 75px;
    text-transform: uppercase;
}

.selfie-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

.selfie-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 200px;
    margin: 15px 0;
}

.selfie-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    background: var(--space-navy);
    transition: all 0.3s ease;
}

.selfie-image-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.6);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

.selfie-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.selfie-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.selfie-image-wrapper:hover .selfie-image-overlay {
    opacity: 1;
}

.selfie-timestamp {
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.selfie-modal-actions {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.selfie-user-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.selfie-close-btn {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 12px 20px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
    flex: 1;
    max-width: 150px;
    justify-content: center;
}

.selfie-close-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.6);
    border-color: var(--star-yellow);
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink));
}

.selfie-close-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-icon {
    font-size: 16px;
    animation: twinkle 2s ease-in-out infinite;
}

.btn-text {
    font-weight: 700;
}

/* Mobile viewport fixes for location modal */
#location-permission-modal {
    /* Use dynamic viewport units for better mobile browser support */
    height: 100vh !important;
    min-height: 100vh !important;
    /* Use safe area insets to avoid browser UI */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important;
    /* Remove scroll bars */
    overflow: hidden !important;
}

/* Use dynamic viewport height if supported */
@supports (height: 100dvh) {
    #location-permission-modal {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }
}

/* Use small viewport height for mobile browsers with UI bars */
@supports (height: 100svh) {
    #location-permission-modal {
        height: 100svh !important;
        min-height: 100svh !important;
    }
}

/* Ensure modal content is properly sized on mobile */
#location-permission-modal .modal-content {
    max-height: calc(100vh - 60px) !important;
    margin: 30px auto !important;
    align-self: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

@supports (height: 100dvh) {
    #location-permission-modal .modal-content {
        max-height: calc(100dvh - 60px) !important;
    }
}

@supports (height: 100svh) {
    #location-permission-modal .modal-content {
        max-height: calc(100svh - 60px) !important;
    }
}

/* Mobile responsive adjustments */
/* Tablet responsive */
@media (max-width: 768px) and (min-width: 481px) {
    #location-permission-modal .modal-content {
        max-width: calc(100% - 60px) !important;
        width: calc(100% - 60px) !important;
        margin: 30px auto !important;
        max-height: calc(100vh - 100px) !important;
    }
}

@media (max-width: 480px) {
    #location-permission-modal {
        padding: env(safe-area-inset-top, 10px) env(safe-area-inset-right, 10px) env(safe-area-inset-bottom, 10px) env(safe-area-inset-left, 10px) !important;
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
        /* Ensure proper viewport height on mobile */
        height: 100vh !important;
        min-height: 100vh !important;
    }

    /* Use small viewport height for mobile browsers */
    @supports (height: 100svh) {
        #location-permission-modal {
            height: 100svh !important;
            min-height: 100svh !important;
        }
    }

    #location-permission-modal .modal-content {
        max-width: calc(100% - 20px) !important;
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        border-radius: 20px !important;
        max-height: calc(100vh - 40px) !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
    }

    @supports (height: 100svh) {
        #location-permission-modal .modal-content {
            max-height: calc(100svh - 40px) !important;
        }
    }

    /* Mobile responsive location modal title */
    #location-permission-modal h3 {
        font-size: 16px !important;
        padding-top: 70px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
    }

    .admin-toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .admin-toast-notification.show {
        transform: translateY(0);
    }

    .lookup-modal {
        width: 95%;
        max-width: none;
        margin: 5% auto;
    }

    .lookup-user-details {
        grid-template-columns: 1fr;
    }

    .lookup-user-header {
        flex-direction: column;
        text-align: center;
    }

    .search-input-container input {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .selfie-modal-content {
        width: 95%;
        max-width: none;
        margin: 2% auto;
        border-radius: 15px;
        max-height: 95vh;
    }

    .selfie-modal-header {
        padding: 15px 15px 10px;
    }

    .selfie-modal-title {
        font-size: 16px;
    }

    .selfie-role-badge {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 8px;
    }

    .selfie-modal-subtitle {
        font-size: 11px;
    }

    .selfie-image-container {
        margin: 10px 0;
        min-height: 150px;
        padding: 0 15px;
    }

    .selfie-image-wrapper {
        max-height: 200px;
        border-radius: 16px;
        border-width: 2px;
    }

    .selfie-main-image {
        max-height: 200px;
    }

    .selfie-modal-actions {
        padding: 10px 15px 15px;
        margin-top: 10px;
    }

    .selfie-user-actions {
        gap: 6px;
        margin-bottom: 8px;
    }

    .selfie-close-btn {
        padding: 10px 16px;
        font-size: 11px;
        gap: 4px;
        max-width: 140px;
        border-radius: 15px;
    }

    .btn-icon {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .selfie-modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
    }

    .selfie-image-wrapper {
        max-height: 180px;
    }

    .selfie-main-image {
        max-height: 180px;
    }

    .selfie-close-btn {
        padding: 8px 12px;
        font-size: 10px;
        max-width: 120px;
    }

    .selfie-modal-title {
        font-size: 14px;
    }
}


/* Modified to adjust avatar size and add message/videocall buttons */
.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: none;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.2);
    z-index: 1;
    position: relative;
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    padding: 4px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Increase the circle size to accommodate larger avatars without cutoff */
.avatar-display .profile-pic {
    width: 110px;
    height: 110px;
    border-width: 4px;
    background: linear-gradient(135deg, var(--space-navy), var(--space-blue));
    padding: 4px;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Style for buttons in the user info section */
.user-info-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px; /* Adjust spacing as needed */
}

.user-info-buttons button {
    background: linear-gradient(135deg, var(--alien-green), var(--neon-green));
    color: var(--space-navy);
    padding: 8px 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.15);
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.user-info-buttons button:hover {
    box-shadow: 0 0 15px var(--alien-green);
    transform: translateY(-2px);
}

.chat-user-info {
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: 5px;
    cursor: pointer;
}

.chat-user-info:hover {
    background: rgba(0, 230, 118, 0.1);
    transform: translateY(-1px);
}

#parties-tab {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#parties-tab .tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

#parties-tab .tab-content.active {
    display: flex;
}

/* Empty chat placeholder styles */
.empty-chat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    padding: 50px 20px;
}

.empty-chat-content {
    text-align: center;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    opacity: 0.7;
    background: transparent;
    border: none;
    padding: 0;
    max-width: none;
    box-shadow: none;
    backdrop-filter: none;
}

.empty-chat-icon {
    font-size: 1.5em;
    margin-bottom: 5px;
    opacity: 0.7;
}

.empty-chat-title {
    font-family: 'Space Mono', monospace;
    font-size: 1em;
    font-weight: 600;
    color: var(--space-white);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 5px;
    text-shadow: none;
    opacity: 0.7;
}

.empty-chat-text {
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    line-height: 1.4;
    font-size: 0.9em;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
/* ============================================
   SKELETON LOADING STYLES
   ============================================ */

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Skeleton Message Bubble */
.skeleton-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-username {
    width: 120px;
    height: 14px;
    border-radius: 4px;
}

.skeleton-text {
    width: 100%;
    height: 12px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

/* Skeleton Conversation Preview */
.skeleton-conversation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-conversation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-conversation-name {
    width: 100px;
    height: 14px;
    border-radius: 4px;
}

.skeleton-conversation-preview {
    width: 80%;
    height: 12px;
    border-radius: 4px;
}

/* Skeleton Profile (Avatar + Bio) */
.skeleton-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.skeleton-profile-username {
    width: 120px;
    height: 16px;
    border-radius: 4px;
}

.skeleton-profile-bio {
    width: 180px;
    height: 14px;
    border-radius: 4px;
}

/* Skeleton Timeline Party Card */
.skeleton-timeline-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-timeline-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-timeline-title {
    width: 150px;
    height: 18px;
    border-radius: 4px;
}

.skeleton-timeline-description {
    width: 100%;
    height: 14px;
    border-radius: 4px;
}

.skeleton-timeline-description.short {
    width: 70%;
}

.skeleton-timeline-info {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.skeleton-timeline-badge {
    width: 80px;
    height: 24px;
    border-radius: 12px;
}

/* Skeleton container visibility */
.skeleton-container {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.skeleton-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Message Limit Indicator */
.message-limit-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 10px auto 15px auto;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.5s ease-out;
}

.limit-indicator-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.6));
}

.limit-indicator-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

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

/* Avatar Loading Spinner */
.avatar-loading-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    border: 2px solid rgba(233, 30, 99, 0.3);
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--cosmic-pink);
    border-right-color: var(--nebula-purple);
    border-radius: 50%;
    animation: avatar-spin 1s linear infinite;
}

@keyframes avatar-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mention Autocomplete Dropdown */
.mention-autocomplete {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95), rgba(74, 20, 140, 0.95));
    border: 2px solid var(--cosmic-pink);
    border-radius: 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 25px rgba(233, 30, 99, 0.3), 0 0 20px rgba(156, 39, 176, 0.2);
    z-index: 1000;
    animation: mentionFadeIn 0.2s ease-out;
}

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

.mention-autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(233, 30, 99, 0.2);
}

.mention-autocomplete-item:last-child {
    border-bottom: none;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.selected {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(156, 39, 176, 0.3));
    transform: translateX(5px);
}

.mention-autocomplete-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--cosmic-pink);
    object-fit: cover;
}

.mention-autocomplete-username {
    color: var(--space-white);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.mention-autocomplete-item.selected .mention-autocomplete-username {
    color: var(--cosmic-pink);
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

/* Mention Highlight in Messages */
.mention-highlight {
    color: var(--cosmic-pink);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(156, 39, 176, 0.2));
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mention-highlight:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.4), rgba(156, 39, 176, 0.4));
    text-shadow: 0 0 8px rgba(233, 30, 99, 0.6);
}

/* ===== LOGIN LOADING SPINNER ===== */
.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--meteor-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* ===================================
   MERCHANT SERVICES STYLING (MEER TAB)
   =================================== */

.merchant-services-container {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-y: auto;
}

.loading-merchant-services {
    text-align: center;
    padding: 40px 20px;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
}

.merchant-service-card {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.4), rgba(26, 35, 126, 0.4));
    border-radius: 20px;
    padding: 25px 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.merchant-service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.merchant-service-card:hover::before {
    opacity: 1;
}

.merchant-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--cosmic-pink);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.5), rgba(233, 30, 99, 0.3));
}

.merchant-service-card:active {
    transform: translateY(-2px);
}

.merchant-icon-container {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nebula-purple), var(--cosmic-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.merchant-service-card:hover .merchant-icon-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.6);
}

.merchant-icon-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--star-yellow);
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

.merchant-service-card:hover .merchant-icon-container::after {
    opacity: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Skeleton Merchant Cards */
.skeleton-merchant-card {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.3), rgba(26, 35, 126, 0.3));
    border-radius: 20px;
    padding: 25px 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-merchant-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        rgba(156, 39, 176, 0.3) 25%,
        rgba(233, 30, 99, 0.4) 50%,
        rgba(156, 39, 176, 0.3) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.2);
}

.skeleton-merchant-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-merchant-title {
    width: 150px;
    height: 2px;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-merchant-subtitle {
    width: 200px;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.merchant-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.merchant-title {
    font-family: 'Orbitron', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--space-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.merchant-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--robot-silver);
    line-height: 1.5;
    margin: 0;
}

.merchant-link-btn {
    display: none;
}

.no-merchants-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--robot-silver);
    font-family: 'Space Mono', monospace;
    font-size: 16px;
}

.no-merchants-message::before {
    content: '🌟';
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    animation: twinkle 2s ease-in-out infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .merchant-services-container {
        padding: 15px 10px;
        gap: 12px;
    }

    .merchant-service-card {
        padding: 20px 15px;
        min-height: 90px;
        width: 100%;
        gap: 15px;
    }

    .merchant-icon-container {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .merchant-title {
        font-size: 15px;
        letter-spacing: 0.4px;
    }

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

/* Cosmic Alternative Payment Form Styles */
.alternative-subtype-details {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.2), rgba(26, 35, 126, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.alternative-subtype-details .form-group {
    margin-bottom: 18px;
}

.alternative-subtype-details .form-group:last-child {
    margin-bottom: 0;
}

.alternative-subtype-details label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-green);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.cosmic-select {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8), rgba(26, 35, 126, 0.6));
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.cosmic-select:hover {
    border-color: var(--cosmic-pink);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
}

.cosmic-select:focus {
    outline: none;
    border-color: var(--star-yellow);
    box-shadow: 0 0 25px rgba(255, 235, 59, 0.6);
}

.cosmic-select option {
    background: var(--space-navy);
    color: var(--space-white);
    padding: 10px;
}

.cosmic-input {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8), rgba(26, 35, 126, 0.6));
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    color: var(--space-white);
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.cosmic-input::placeholder {
    color: rgba(176, 190, 197, 0.6);
    font-style: italic;
}

.cosmic-input:hover {
    border-color: var(--cosmic-pink);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
}

.cosmic-input:focus {
    outline: none;
    border-color: var(--star-yellow);
    box-shadow: 0 0 25px rgba(255, 235, 59, 0.6);
}

.cosmic-input[type="number"]::-webkit-inner-spin-button,
.cosmic-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cosmic-input[type="number"] {
    -moz-appearance: textfield;
}

/* Enhanced alternative options styling */
.alternative-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.alternative-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.4), rgba(74, 20, 140, 0.3));
    border: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.alternative-option:hover {
    border-color: var(--cosmic-pink);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(74, 20, 140, 0.4));
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
}

.alternative-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.alternative-option input[type="radio"]:checked + .alternative-icon {
    animation: pulse-glow 2s ease-in-out infinite;
}

.alternative-option input[type="radio"]:checked ~ .alternative-label {
    color: var(--star-yellow);
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
}

.alternative-option:has(input[type="radio"]:checked) {
    border-color: var(--star-yellow);
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), rgba(233, 30, 99, 0.2));
    box-shadow: 0 0 30px rgba(255, 235, 59, 0.5);
}

.alternative-icon {
    font-size: 32px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.alternative-option:hover .alternative-icon {
    transform: scale(1.2) rotate(5deg);
}

.alternative-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neon-green);
    transition: all 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .alternative-subtype-details {
        padding: 15px;
    }

    .cosmic-select,
    .cosmic-input {
        font-size: 14px;
        padding: 10px 14px;
    }

    .alternative-options {
        gap: 10px;
    }

    .alternative-option {
        padding: 12px;
    }

    .alternative-icon {
        font-size: 28px;
    }

    .alternative-label {
        font-size: 12px;
    }
}

/* Payment Offering Section - Extra spacing for party requests */
.payment-offering-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 230, 118, 0.2);
}

/* Payment Type Selection - 2x2 Grid Layout with Emoji-Only Buttons */
.payment-section-title {
    display: block;
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

/* Payment Section Headers (inside each payment section) */
.payment-section-header {
    display: block;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 2px solid rgba(0, 230, 118, 0.3);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.05));
    border-radius: 8px 8px 0 0;
}

/* Toggle container styling */
.toggle-container {
    margin: 20px 0;
    padding: 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    margin-right: 12px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 230, 118, 0.3);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 4px;
    top: 2px;
    background: var(--space-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked + .toggle-slider {
    background: var(--neon-green);
    border-color: var(--neon-green);
}

input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    color: var(--space-white);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Payment details container spacing */
.payment-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 230, 118, 0.2);
}

/* Payment section spacing */
.money-payment-section,
.drink-payment-section,
.cigarette-payment-section,
.other-payment-section,
.request-money-section,
.request-drink-section,
.request-cigarette-section,
.request-other-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border: 2px solid rgba(0, 230, 118, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure consistent form-group label margins in payment sections */
.money-payment-section .form-group label,
.drink-payment-section .form-group label,
.cigarette-payment-section .form-group label,
.other-payment-section .form-group label,
.request-money-section .form-group label,
.request-drink-section .form-group label,
.request-cigarette-section .form-group label,
.request-other-section .form-group label {
    margin-bottom: 8px;
    margin-top: 0;
}

/* Entrance fee group specific styling */
.entrance-fee-group label,
.payment-method-group label {
    display: block;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.payment-type-selection {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
}

.payment-type-selection .payment-type-option {
    aspect-ratio: 1 !important;
    padding: 16px 12px !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)) !important;
    border: 2px solid rgba(0, 230, 118, 0.3) !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important;
    position: relative !important;
    overflow: hidden !important;
}

.payment-type-selection .payment-type-option::before {
    content: '👆 Klik om te selecteren';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--star-yellow);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-family: 'Space Mono', monospace;
}

.payment-type-selection .payment-type-option:hover::before {
    opacity: 1;
}

.payment-type-selection .payment-type-option:hover {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--neon-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.payment-type-selection .payment-type-option input[type="radio"],
.payment-type-selection .payment-type-option input[type="checkbox"] {
    display: none !important;
}

.payment-type-selection .payment-type-option:has(input[type="radio"]:checked),
.payment-type-selection .payment-type-option:has(input[type="checkbox"]:checked) {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--neon-green);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

.payment-type-selection .payment-type-option input[type="checkbox"]:checked + .alternative-icon {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--meteor-orange));
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.6);
}

.payment-type-selection .payment-type-option:has(input[type="checkbox"]:checked) {
    background: rgba(233, 30, 99, 0.15);
    border-color: var(--cosmic-pink);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.payment-type-selection .payment-type-option:has(input[type="checkbox"]:checked)::before {
    content: '✓ Geselecteerd';
    opacity: 1;
    color: var(--cosmic-pink);
}

.payment-type-selection .alternative-icon {
    font-size: 3.4rem !important;
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin: 0 !important;
}

/* Hide text labels - emoji-only display */
.payment-type-selection .alternative-label {
    display: none !important;
}

.payment-type-selection .payment-type-option:hover .alternative-icon {
    transform: scale(1.15) rotate(5deg) !important;
    filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.6));
}

.payment-type-selection .payment-type-option:has(input[type="radio"]:checked) .alternative-icon,
.payment-type-selection .payment-type-option:has(input[type="checkbox"]:checked) .alternative-icon {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.8));
}

/* Mobile responsive adjustments for payment type selection */
@media (max-width: 768px) {
    .payment-type-selection {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .payment-type-selection .payment-type-option {
        padding: 15px 12px !important;
        border-radius: 14px !important;
    }

    .payment-type-selection .alternative-icon {
        font-size: 2.8rem !important;
    }
}

@media (max-width: 480px) {
    .payment-section-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .payment-type-selection .payment-type-option {
        padding: 12px 10px !important;
        border-radius: 12px !important;
    }

    .payment-type-selection .alternative-icon {
        font-size: 2.6rem !important;
    }
}

/* AND/OR Payment Logic Toggle */
.payment-logic-toggle {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.6), rgba(26, 35, 126, 0.4));
    border: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.logic-options {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.logic-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.logic-option input[type="radio"] {
    display: none;
}

.logic-option .logic-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 2px solid rgba(176, 190, 197, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logic-emoji {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.logic-option:hover .logic-text {
    border-color: rgba(0, 230, 118, 0.6);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 230, 118, 0.05));
    color: var(--neon-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.2);
}

.logic-option:hover .logic-emoji {
    transform: scale(1.2) rotate(5deg);
}

.logic-option input[type="radio"]:checked + .logic-text {
    border-color: var(--neon-green);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), rgba(0, 230, 118, 0.15));
    color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4), inset 0 0 10px rgba(0, 230, 118, 0.2);
}

.logic-option input[type="radio"]:checked + .logic-text .logic-emoji {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.8));
}

.logic-hint {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
}

.logic-hint span {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
}

/* Mobile responsive for logic toggle */
@media (max-width: 768px) {
    .payment-logic-toggle {
        padding: 14px;
        margin: 16px 0;
    }

    .logic-options {
        gap: 10px;
    }

    .logic-option .logic-text {
        padding: 10px 12px;
        font-size: 12px;
    }

    .logic-emoji {
        font-size: 18px;
    }

    .logic-hint span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .payment-logic-toggle {
        padding: 12px;
        margin: 14px 0;
    }

    .logic-option .logic-text {
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .logic-option .logic-text span:last-child {
        display: none;
    }

    .logic-emoji {
        font-size: 24px;
    }

    .logic-hint span {
        font-size: 10px;
    }
}

/* Payment display in timeline */
.payment-methods-display,
.payment-offerings-display {
    font-size: 14px;
    line-height: 1.6;
    color: var(--neon-green);
}

.payment-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    margin: 0 6px;
}

/* Merchant Chat Message Bubbles */
.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    margin: 8px 0;
}

.message-bubble.sent {
    background: linear-gradient(135deg, var(--cosmic-pink), var(--nebula-purple));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    background: rgba(255, 255, 255, 0.1);
    color: var(--space-white);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-bubble.system-message {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2), rgba(66, 165, 245, 0.1));
    color: var(--space-white);
    margin: 8px auto;
    max-width: 90%;
    text-align: center;
    border: 1px solid rgba(100, 181, 246, 0.3);
    font-size: 13px;
}

.message-bubble .message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    opacity: 0.8;
}

.message-bubble .message-sender {
    font-weight: 600;
}

.message-bubble .order-tag {
    background: rgba(255, 235, 59, 0.2);
    color: var(--star-yellow);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-family: 'Orbitron', monospace;
}

.message-bubble .message-content {
    line-height: 1.5;
    padding: 0;
}

.message-bubble .message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}