@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* App-wide Scrollbar Styling */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 10px;
    background: #000;
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
    background: #111;
    border-radius: 8px;
}

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fff 0%, #222 100%);
    border-radius: 8px;
    border: 2px solid #000;
    min-height: 40px;
    transition: background 0.3s;
}

html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
    background: #fff;
    border: 2px solid #fff;
}

/* For Firefox */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #fff #111;
    font-family: 'Plus Jakarta Sans';
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #000000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.glass {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Chat page header override - hide default navbar on desktop */
.chat-page .header {
    display: none;
}

/* ================================================
   CHAT TOP BAR - Enhanced Styles
   Connection info (left), Logo+Online (center), Buttons (right)
   ================================================ */

/* Chat Top Bar - Make it flex with 3 sections */
.chat-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 1rem;
}

/* Connection Info - Left Section */
.connection-info {
    flex: 0 0 auto;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.875rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.status-badge.connected .status-pulse {
    background: #22c55e;
}

.status-badge.disconnected .status-pulse {
    background: #ef4444;
    animation: none;
}

.status-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}

/* Center Section - Logo + Brand + Online Counter */
.chat-top-bar-center {
    flex: 1 1 auto;
    display: none; /* Hidden on mobile */
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

@media (min-width: 769px) {
    .chat-top-bar-center {
        display: flex;
    }
}

.topbar-home-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
}

.topbar-home-link:hover {
    opacity: 0.8;
}

.topbar-logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.topbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.topbar-online-counter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34, 197, 94, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.topbar-online-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.topbar-online-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.topbar-online-text span {
    color: #22c55e;
    font-weight: 600;
}

/* Right Section - Action Buttons */
.chat-actions-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.header-btn svg {
    flex-shrink: 0;
}

/* Like Button */
.header-btn.like-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.header-btn.like-btn:hover svg {
    stroke: #22c55e;
}

/* Dislike Button */
.header-btn.dislike-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.header-btn.dislike-btn:hover svg {
    stroke: #ef4444;
}

/* Block Button */
.header-btn.block-user-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.header-btn.block-user-btn:hover svg {
    stroke: #ef4444;
}

/* Skip Button */
.header-btn.skip-user-btn {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.header-btn.skip-user-btn svg {
    stroke: #22c55e;
}

.header-btn.skip-user-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.35);
}

/* Next Button */
.header-btn.next-user-btn {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.header-btn.next-user-btn svg {
    stroke: #3b82f6;
}

.header-btn.next-user-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
}

/* End Button */
.header-btn.end-chat-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.header-btn.end-chat-btn svg {
    stroke: #ef4444;
}

.header-btn.end-chat-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Exchange Button */
.header-btn.exchange-request-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.header-btn.exchange-request-btn:hover svg {
    stroke: #a855f7;
}

/* Desktop Chat Page Layout - Hide navbar, no scroll */
@media (min-width: 769px) {
    .chat-page {
        overflow: hidden !important;
    }
    
    .chat-page body,
    body.chat-page {
        overflow: hidden !important;
        height: 100vh !important;
    }
    
    /* Hide navbar on chat page desktop */
    .chat-page .header {
        display: none !important;
    }
    
    .chat-page .enterprise-chat-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    .chat-page .chat-main-content {
        height: calc(100% - 50px) !important;
        max-height: calc(100% - 50px) !important;
        overflow: hidden !important;
    }
    
    .chat-page .chat-panel {
        max-height: 100% !important;
        overflow: hidden !important;
    }
    
    .chat-page .messages-container {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        min-height: 0 !important;
    }
    
    /* Hide footer on chat page desktop */
    .chat-page footer,
    .chat-page .footer,
    .chat-page .site-footer {
        display: none !important;
    }
    
    /* Hide button text on smaller desktop screens */
    @media (max-width: 1100px) {
        .header-btn span:not(#likeCount):not(#dislikeCount) {
            display: none;
        }
        
        .header-btn {
            padding: 0.5rem;
        }
    }
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

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

.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    background: #ffffff;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.nav-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.hire{
    min-width: 9rem !important;
}

.github-btn:hover {
    background: #ffffff;
    color: #333333;
    border-color: #cccccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.nav-btn:hover .nav-icon {
    filter: brightness(1);
}

.github-btn:hover .nav-icon {
    filter: brightness(0.3);
}

/* Hide Leaflet attribution only, not zoom controls */
.leaflet-bottom.leaflet-right .leaflet-control-attribution {
    display: none !important;
}

/* Anti-AdBlock Toggle Switch */
.anti-adblock-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.anti-adblock-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 0, 0.5);
}

/* Location Permission Notification */
.location-notification {
    position: relative;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 152, 0, 0.95));
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out;
}

.location-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 16px;
}

.location-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
}

.location-notification-icon i {
    font-size: 18px;
    color: #000;
}

.location-notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #000;
}

.location-notification-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.location-notification-text span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
}

.location-notification-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.location-notification-dismiss:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.location-notification-dismiss i {
    font-size: 16px;
    color: #000;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjust main content when notification is visible */
body.location-notification-visible .main {
    padding-top: 80px; /* Extra space for notification */
}

/* Navbar Link - Dashboard */
.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(25, 195, 125, 0.1);
    border: 1px solid rgba(25, 195, 125, 0.3);
    border-radius: 8px;
    color: #19c37d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-right: auto;
}

.navbar-link:hover {
    background: rgba(25, 195, 125, 0.2);
    border-color: #19c37d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.3);
}

.navbar-link i {
    font-size: 1rem;
}

.navbar-link span {
    display: inline;
}

/* Navbar User Profile */
/* Navbar Queue Status - Gold Glittering Style */
.navbar-queue-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(
        135deg,
        #ffd700 0%,
        #ffed4e 20%,
        #ffd700 40%,
        #ffb300 60%,
        #ffd700 80%,
        #ffed4e 100%
    );
    background-size: 200% 200%;
    animation: goldShimmer 3s ease-in-out infinite;
    border: 2px solid rgba(255, 237, 78, 0.8);
    border-radius: 50px;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.5),
        0 8px 25px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.navbar-queue-status:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.6),
        0 12px 35px rgba(255, 215, 0, 0.4);
}

.navbar-queue-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-queue-number {
    font-size: 1.1rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar-user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.navbar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.navbar-user-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.navbar-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

/* Toggle Switch Container */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Toggle Slider */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Checked State - Green */
.toggle-input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5), 
                inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.6);
}

/* Hover Effects */
.toggle-label:hover .toggle-slider {
    background-color: rgba(255, 255, 255, 0.2);
}

.toggle-label:hover .toggle-input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00ff33 0%, #00dd00 100%);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7), 
                inset 0 0 15px rgba(0, 255, 0, 0.3);
}

/* Slide In/Out Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 101;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.tech-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo a:hover {
    color: #cccccc;
    transition: color 0.2s ease;
}

.tech-icon {
    width: 75px;
    height: 75px;
    transition: transform 0.2s ease;
}

.tech-icon:hover {
    transform: scale(1.1);
}

.nav-info {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 400;
}

/* Main Content */
.main {
    flex: 1;
    padding: 0 0 2rem 0;
}

/* Landing Page Styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
    /* Performance optimizations for smooth scrolling */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.land-flex{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    min-height: calc(100vh - 200px);
    position: relative;
    padding-bottom: 2rem;
    /* Performance optimizations for smooth scrolling */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Radar Animation Wrapper */
.radar-animation-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    min-height: 500px;
    padding-top: 40px;
    padding-right: 60px;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Hero Radar Container */
.hero-radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* GPU acceleration for animations */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.hero-radar-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: radarPulse 3s ease-in-out infinite;
    /* GPU acceleration for animation */
    will-change: box-shadow, transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

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

.hero-radar-line {
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ffffff 100%);
    top: 50%;
    left: 50%;
    transform-origin: 0% 50%;
    animation: radarScan 3s linear infinite;
    filter: drop-shadow(0 0 10px #ffffff);
}

@keyframes radarScan {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-radar-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.hero-radar-dot.center-dot {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: centerDotPulse 1.5s ease-in-out infinite;
}

@keyframes centerDotPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

/* Floating Avatars */
.floating-avatars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* Performance optimizations */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.floating-avatar {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: floatAvatar 4s ease-in-out;
    opacity: 0;
    /* GPU acceleration for smooth animation */
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes floatAvatar {
    0% {
        opacity: 0;
        transform: scale(0.5) translate3d(0, 20px, 0);
    }
    10% {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
    }
    90% {
        opacity: 1;
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translate3d(0, -20px, 0);
    }
}

.floating-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #000;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-avatar-img svg {
    width: 100%;
    height: 100%;
    display: block;
}

.floating-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-avatar-name {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    background: rgba(0,0,0,0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Preferences Bar */
.preferences-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Filters Preferences Bar (second row with status and visibility filters) */
.preferences-bar-filters {
    margin-top: 1rem;
}

.preferences-bar-filters .preferences-bar-form {
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.preferences-bar-filters .preference-group {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

.preferences-bar-filters .start-free-call-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Compact dropdown styles for filter row */
.preferences-bar-filters .country-select,
.preferences-bar-filters .purpose-select {
    width: 100%;
    min-width: 180px;
    max-width: 220px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
}

/* Mode Preferences Bar (second row with chat mode options) */
.preferences-bar-mode {
    margin-top: 1rem;
}

.preferences-bar-mode .preferences-bar-form {
    justify-content: space-between;
    align-items: center;
}

/* Mode checkboxes specific styling */
.mode-checkbox input[type="checkbox"] {
    display: none;
}

.mode-checkbox .checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 4px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mode-checkbox .checkbox-icon {
    font-size: 14px;
    color: #000;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-style: normal;
    font-weight: bold;
}

.mode-checkbox input[type="checkbox"]:checked + .checkbox-box {
    background: #ffffff;
    border-color: #ffffff;
}

.mode-checkbox input[type="checkbox"]:checked + .checkbox-box .checkbox-icon {
    opacity: 1;
}

.mode-checkbox .checkbox-text {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mode-checkbox input[type="checkbox"]:checked ~ .checkbox-text {
    color: #ffffff;
}

/* Free Call Button */
.start-free-call-btn {
    margin-top: 0;
    width: auto;
    white-space: nowrap;
}

.preferences-bar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.preferences-bar-form {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Desktop-specific layout for filters bar */
@media (min-width: 769px) {
    .preferences-bar-filters .preferences-bar-form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 2rem;
    }
    
    .preferences-bar-filters .preference-group:has(.checkbox-group) {
        width: 100%;
        flex-basis: 100%;
        justify-content: flex-start;
    }
}

.preference-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preference-group.age-group {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.preference-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #cccccc;
    white-space: nowrap;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
}

/* Custom Checkbox Styling */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.custom-checkbox:hover {
    transform: translateY(-1px);
}

.custom-checkbox input[type="radio"],
.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 4px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-icon {
    font-size: 14px;
    color: #000;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-style: normal;
    font-weight: bold;
}

.custom-checkbox input[type="radio"]:checked + .checkbox-box,
.custom-checkbox input[type="checkbox"]:checked + .checkbox-box {
    background: #ffffff;
    border-color: #ffffff;
}

.custom-checkbox input[type="radio"]:checked + .checkbox-box .checkbox-icon,
.custom-checkbox input[type="checkbox"]:checked + .checkbox-box .checkbox-icon {
    opacity: 1;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-checkbox input[type="radio"]:checked ~ .checkbox-text,
.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-text {
    color: #ffffff;
}

/* Age Slider */
.age-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s ease;
}

.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.age-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.age-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.age-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

#ageValue {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.hero-logo {
    max-width: 600px;
    border-radius: 10px;
    margin-bottom: 16px;
    width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-title-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: phoneRingShake 1s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

@keyframes phoneRingShake {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    10% {
        transform: rotate(-5deg) scale(1);
    }
    20% {
        transform: rotate(5deg) scale(1);
    }
    30% {
        transform: rotate(-5deg) scale(1);
    }
    40% {
        transform: rotate(5deg) scale(1);
    }
    50% {
        transform: rotate(-5deg) scale(1);
    }
    60% {
        transform: rotate(5deg) scale(1);
    }
    70% {
        transform: rotate(-3deg) scale(1);
    }
    80% {
        transform: rotate(3deg) scale(1);
    }
    90% {
        transform: rotate(-1deg) scale(1);
    }
}

.hero-big-heading {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(
        90deg,
        #6b7280 0%,
        #9ca3af 20%,
        #d1d5db 40%,
        #f3f4f6 50%,
        #ffffff 60%,
        #f3f4f6 70%,
        #d1d5db 80%,
        #9ca3af 90%,
        #6b7280 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineEffect 3s linear infinite;
    position: relative;
}

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

.big-heading-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    gap: 2rem;
}

/* Hero Icons for Big Heading */
.hero-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.hero-icon-left {
    animation-delay: 0s;
}

.hero-icon-right {
    animation-delay: 1.5s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.big-heading-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: shimmer 3s infinite;
}

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

/* Online Count Styles */
.online-count {
    margin-bottom: 1rem;
    text-align: left;
}

/* Navbar Online Count - compact version for header */
.navbar-online-count {
    margin-top: 0.5rem;
    margin-bottom: 0;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-online-count .online-text {
    font-size: 0.8rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.navbar-online-count .pulse-dot {
    width: 6px;
    height: 6px;
}

.online-text, .connected-text {
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.connected-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.boys-count, .girls-count, .connected-count {
    font-weight: 700;
    color: #22c55e;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse-green-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-green-dot {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Red pulse dot animation for busy/in-call users */
@keyframes pulse-red-dot {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Yellow pulse dot animation for offline users */
@keyframes pulse-yellow-dot {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(234, 179, 8, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}

 .features-section h3, .preferences-card h2{
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    max-width: 500px;
}

/* Preferences Card */
.preferences-card {
    flex: 1;
    background: #111111;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    max-width: 400px;
}

.preferences-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
}

.preferences-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-header {
    width: 100%;
    margin-bottom: 0.8rem;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    background: #222222;
    border: 1px solid #444444;
    border-radius: 8px;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 1rem;
    text-align: left;
}

.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.radio-group-2 .radio-label {
    flex: 1;
    max-width: calc(50% - 0.25rem);
}

.radio-group-3 .radio-label {
    flex: 1;
    max-width: calc(33.333% - 0.34rem);
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #cccccc;
    transition: all 0.3s ease;
    padding: 0.6rem 0.8rem;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #000000;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
}

/* .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #cccccc;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border: 1px solid #333333;
    border-radius: 12px;
    background: #000000;
    min-width: 120px;
    justify-content: center;
} */

.radio-label:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
}

.radio-label input[type="radio"]:checked + .radio-custom + span {
    color: #ffffff;
}

.radio-label input[type="radio"]:checked ~ span {
    color: #ffffff;
}

.radio-label:has(input[type="radio"]:checked) {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.radio-label:has(input[type="radio"]:checked) .radio-custom {
    background: #000000;
    border-color: #000000;
}

.radio-label:has(input[type="radio"]:checked) .radio-custom::after {
    background: #ffffff;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    /* border: 2px solid #ffffff; */
    border-radius: 50%;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    background: #ffffff;
    border-color: #ffffff;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
}

/* Buttons */

.chat-btn, .audio-btn, .video-btn{
    background-color: transparent;
}

.start-chat-btn, .control-btn, .action-btn, .send-btn {
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* Green style for start-free-call-btn matching navbar Dashboard/Pricing buttons */
.start-free-call-btn {
    background: rgba(25, 195, 125, 0.1);
    border: 2px solid rgba(25, 195, 125, 0.3);
    color: #19c37d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-free-call-btn:hover {
    background: rgba(25, 195, 125, 0.2);
    border-color: #19c37d;
    color: #19c37d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.3);
}

.start-free-call-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.start-chat-btn:hover, .control-btn:hover, .action-btn:hover, .send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.start-chat-btn:active, .control-btn:active, .action-btn:active, .send-btn:active {
    transform: translateY(0);
}

.start-chat-btn:disabled {
    background: #333333;
    color: #666666;
    border-color: #333333;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cccccc;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Saved Preferences */
.saved-preferences {
    background: #222222;
    border: 2px solid #444444;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

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

.saved-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.checkmark {
    color: #ffffff;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #111111;
    border: 2px solid #333333;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
    animation: floatFeatureIcon 3s ease-in-out infinite;
}

/* Stagger the animation for each feature */
.feature:nth-child(1) .feature-icon img {
    animation-delay: 0s;
}

.feature:nth-child(2) .feature-icon img {
    animation-delay: 0.75s;
}

.feature:nth-child(3) .feature-icon img {
    animation-delay: 1.5s;
}

.feature:nth-child(4) .feature-icon img {
    animation-delay: 2.25s;
}

@keyframes floatFeatureIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature:hover .feature-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation-play-state: paused;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.feature p {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Safety Notice */
/* Chat Room Styles */
.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Status Bar */
.status-bar {
    background: #222222;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.status-text {
    font-weight: 500;
    color: #ffffff;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff0000;
    transition: all 0.3s ease;
    position: relative;
}

.status-indicator.connected {
    background: #00ff00;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.status-indicator.searching {
    background: #ffff00;
    animation: pulse 2s infinite;
}

.status-indicator.error {
    background: #ff0000;
}

@keyframes heartbeat {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    25% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1);
        opacity: 1;
    }
    75% { 
        transform: scale(1.1);
        opacity: 0.9;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Video Section */
.video-section {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.video-wrapper {
    position: relative;
    background: #111111;
    border: 2px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    /* Force 16:9 aspect ratio */
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16/9) {
    .video-wrapper {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    }
    
    .video-wrapper video,
    .video-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Hide video element when no stream */
.video-wrapper video.no-stream {
    opacity: 0;
    pointer-events: none;
}

/* Show video element when stream is active */
.video-wrapper video.has-stream {
    opacity: 1;
    background: #000000;
}

/* Video placeholder styling */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.local-placeholder {
    background-image: url('../img/1.jpg');
}

.remote-placeholder {
    background-image: url('../img/2.jpg');
}

/* Hide placeholder when video is playing */
.video-placeholder.hidden {
    opacity: 0 !important;
    visibility: hidden;
}

/* Show placeholder when video is not playing */
.video-placeholder.visible {
    opacity: 1 !important;
    visibility: visible;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 70%, rgba(0,0,0,0.8));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1rem;
    pointer-events: none;
    z-index: 15;
}

.video-label {
    color: #ffffff;
    font-weight: 600;
    background: rgba(0,0,0,0.8);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}


/* Minimalistic Toggle Buttons */
.toggle-btn {
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    backdrop-filter: blur(4px);
}

.toggle-btn:hover, .toggle-btn:focus {
    background: rgba(255,255,255,0.9);
    color: #000;
    border-color: #ffffff;
    transform: scale(1.05);
}

/* Active/Inactive states for toggle buttons */
.toggle-btn.active {
    background: rgba(76, 175, 80, 0.9);
    border-color: #4CAF50;
    color: #fff;
}

.toggle-btn.inactive {
    background: rgba(244, 67, 54, 0.9);
    border-color: #f44336;
    color: #fff;
}

.local-video-wrapper .video-overlay {
    justify-content: space-between;
}

.connection-status {
    color: #cccccc;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Video Controls */
.video-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-shrink: 0;
}

.control-btn {
    width: auto;
    margin: 0;
    padding: 0.75rem 1.5rem;
}

.start-video-btn {
    background: #ffffff;
    color: #000000;
}

.end-video-btn {
    background: #333333;
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* Chat Section */
.chat-section {
    height: 500px;
    display: flex;
    flex-direction: column;
    border: 2px solid #333333;
    border-radius: 8px;
    background: #111111;
    flex-shrink: 0;
    margin-bottom: 2rem;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.typing-text {
    color: #cccccc;
    font-size: 0.9rem;
    font-style: italic;
}

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

.typing-dots span {
    width: 4px;
    height: 4px;
    background: #cccccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.message.own {
    background: #ffffff;
    color: #000000;
    align-self: flex-end;
    margin-left: auto;
}

.message.other {
    background: #333333;
    color: #ffffff;
    align-self: flex-start;
}

.message.system {
    background: #222222;
    color: #cccccc;
    text-align: center;
    align-self: center;
    font-style: italic;
    border: 1px solid #444444;
}

.chat-input-container {
    border-top: 1px solid #333333;
    padding: 1rem;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-input {
    flex: 1;
    background: #222222;
    border: 1px solid #444444;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.chat-input:focus {
    border-color: #ffffff;
}

.chat-input::placeholder {
    color: #666666;
}

.send-btn {
    width: auto;
    margin: 0;
    padding: 0.75rem 1.5rem;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.next-btn {
    background: #333333;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.stop-btn {
    background: #222222;
    color: #ffffff;
    border: 1px solid #666666;
}

/* Incoming Call Overlay */
.incoming-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.incoming-call-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.incoming-call-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.incoming-call-container {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    animation: callSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes callSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.incoming-call-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.incoming-call-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: iconPulse 2s ease-in-out infinite;
}

.incoming-call-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 2;
}

/* Call type specific icon colors */
.incoming-call-icon.chat-call {
    background: rgba(59, 130, 246, 0.2);
}

.incoming-call-icon.chat-call svg {
    stroke: #3b82f6;
}

.incoming-call-icon.audio-call {
    background: rgba(34, 197, 94, 0.2);
}

.incoming-call-icon.audio-call svg {
    stroke: #22c55e;
}

.incoming-call-icon.video-call {
    background: rgba(219, 39, 119, 0.2);
}

.incoming-call-icon.video-call svg {
    stroke: #db2777;
}

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

.incoming-call-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: -0.3px;
}

.incoming-call-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.caller-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 15, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: avatarPulse 2.5s ease-in-out infinite;
    overflow: hidden;
}

.caller-avatar svg {
    width: 100%;
    height: 100%;
}

@keyframes avatarPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
}

.caller-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.caller-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.call-type {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 500;
}

/* Call type colors */
.call-type.chat-type {
    color: #3b82f6;
}

.call-type.audio-type {
    color: #22c55e;
}

.call-type.video-type {
    color: #a855f7;
}

.incoming-call-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.call-action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 140px;
}

.call-action-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.decline-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.decline-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.accept-btn {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.accept-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.call-action-btn:active {
    transform: translateY(0);
}

.leaflet-container {
    background: transparent !important;
}

/* Responsive for incoming call */
@media (max-width: 480px) {
    .incoming-call-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .incoming-call-icon {
        width: 48px;
        height: 48px;
    }
    
    .incoming-call-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .incoming-call-title {
        font-size: 1.25rem;
    }
    
    .caller-avatar {
        width: 88px;
        height: 88px;
    }
    
    .caller-name {
        font-size: 1.15rem;
    }
    
    .call-action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .call-action-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .location-picker-coords {
        flex-direction: row !important;
    }

    .btn-secondary {
        width: 33vw;
    }

    .modal-btn-secondary {
        width: 32vw;
    }
}

/* ===========================================
   OUTGOING CALL OVERLAY - Caller's Screen
   Shows "Calling..." status with end call button
   =========================================== */
.outgoing-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.outgoing-call-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.outgoing-call-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.outgoing-call-container {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    animation: callSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.outgoing-call-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.outgoing-call-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: iconPulse 2s ease-in-out infinite;
}

.outgoing-call-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 2;
}

/* Call type specific icon colors for outgoing */
.outgoing-call-icon.chat-call {
    background: rgba(59, 130, 246, 0.2);
}

.outgoing-call-icon.chat-call svg {
    stroke: #3b82f6;
}

.outgoing-call-icon.audio-call {
    background: rgba(34, 197, 94, 0.2);
}

.outgoing-call-icon.audio-call svg {
    stroke: #22c55e;
}

.outgoing-call-icon.video-call {
    background: rgba(219, 39, 119, 0.2);
}

.outgoing-call-icon.video-call svg {
    stroke: #db2777;
}

.outgoing-call-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: -0.3px;
}

.outgoing-call-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.callee-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 15, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: avatarPulse 2.5s ease-in-out infinite;
    overflow: hidden;
}

.callee-avatar svg,
.callee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.callee-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.callee-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.calling-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

.calling-dots span:nth-child(1) {
    animation-delay: 0s;
}

.calling-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.calling-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.outgoing-call-actions {
    display: flex;
    justify-content: center;
}

.end-call-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.end-call-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.end-call-btn:active {
    transform: translateY(0);
}

.end-call-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* Responsive for outgoing call */
@media (max-width: 480px) {
    .outgoing-call-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .outgoing-call-icon {
        width: 48px;
        height: 48px;
    }
    
    .outgoing-call-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .outgoing-call-title {
        font-size: 1.25rem;
    }
    
    .callee-avatar {
        width: 88px;
        height: 88px;
    }
    
    .callee-name {
        font-size: 1.15rem;
    }
    
    .end-call-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Footer */
.footer {
    background: #000000;
    padding: 2rem 0;
    margin-top: auto;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    width: 120%;
}

.footer-links span {
    color: #cccccc;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Responsive Design */

/* Tablet Landscape and Small Desktop */
@media (max-width: 1024px) {
    .land-flex {
        gap: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-logo {
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
    
    .preferences-card {
        max-width: 350px;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .land-flex {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }
    
    .hero-section {
        text-align: center;
        margin-bottom: 1rem;
        padding: 1rem 0;
        min-height: auto;
    }
    
    .hero-logo {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .preferences-card {
        max-width: none;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Header Mobile Styles */
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.875rem 15px;
        gap: 0;
        position: relative;
    }
    
    .header-left {
        flex: 0 0 auto;
        order: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .header-center {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        order: 4;
        margin-top: 0.75rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.98);
        border-radius: 8px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 102;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        animation: slideDownMenu 0.3s ease;
    }
    
    .header-center.active {
        display: flex;
    }
    
    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobile menu scrollbar */
    .header-center::-webkit-scrollbar {
        width: 6px;
    }
    
    .header-center::-webkit-scrollbar-track {
        background: rgba(17, 17, 17, 0.5);
        border-radius: 3px;
    }
    
    .header-center::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .header-center::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    /* For Firefox */
    .header-center {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) rgba(17, 17, 17, 0.5);
    }
    
    /* Navbar Link Mobile */
    .navbar-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-right: 0;
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
    }
    
    .navbar-link:hover {
        background: rgba(25, 195, 125, 0.15);
    }
    
    .navbar-link span {
        display: inline;
    }
    
    .navbar-link i {
        font-size: 1.125rem;
        width: 24px;
        text-align: center;
    }
    
    .incognito-toggle, .exchange-details-toggle {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    
    /* GitHub Button Mobile */
    .github-btn {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .github-label {
        display: inline;
    }
    
    .github-stars {
        display: inline-flex !important;
    }
    
    .location-notification-content {
        padding: 10px 15px;
        gap: 12px;
    }
    
    .location-notification-icon {
        width: 32px;
        height: 32px;
    }
    
    .location-notification-icon i {
        font-size: 16px;
    }
    
    .location-notification-text strong {
        font-size: 14px;
    }
    
    .location-notification-text span {
        font-size: 12px;
    }
    
    .location-notification-dismiss {
        width: 28px;
        height: 28px;
    }
    
    .location-notification-dismiss i {
        font-size: 14px;
    }
    
    /* Navbar Queue Status - Mobile Responsive */
    .navbar-queue-status {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }
    
    .navbar-queue-label {
        font-size: 0.75rem;
    }
    
    .navbar-queue-number {
        font-size: 1rem;
    }
    
    /* Navbar User Profile - Mobile Responsive */
    .navbar-user-profile {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
    
    .navbar-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .navbar-user-name {
        font-size: 0.95rem;
    }
    
    .tech-icons {
        gap: 0.35rem;
    }
    
    .tech-icon {
        width: 65px;
        height: 65px;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: left;
        white-space: nowrap;
    }
    
    .nav-icon {
        width: 16px;
        height: 16px;
    }
    
    .nav-info {
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Anti-AdBlock Toggle Mobile */
    .anti-adblock-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .toggle-text {
        font-size: 0.85rem;
    }
    
    .toggle-switch {
        width: 45px;
        height: 24px;
    }
    
    .toggle-slider:before {
        height: 16px;
        width: 16px;
        left: 2px;
        bottom: 2px;
    }
    
    .toggle-input:checked + .toggle-slider:before {
        transform: translateX(21px);
    }

    .landing-container {
        padding: 0 15px;
        min-height: auto;
    }

    .land-flex {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }

    .hero-section {
        text-align: center;
        margin-bottom: 1rem;
        padding: 1rem 0;
        min-height: auto;
    }

    .hero-logo {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .preferences-card {
        max-width: none;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .online-count {
        text-align: center;
        margin-bottom: 0.8rem;
    }
    
    /* Keep navbar online count visible on tablets */
    .navbar-online-count {
        margin-left: 0.5rem;
        gap: 0.5rem;
    }
    
    .navbar-online-count .online-text {
        font-size: 0.7rem;
        margin-top: 0.8rem;
    }
    
    .online-text, .connected-text {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .connected-text {
        font-size: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .preferences-card {
        padding: 1.2rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .radio-group-2 .radio-label,
    .radio-group-3 .radio-label {
        flex: none;
        max-width: none;
    }
    
    .radio-label {
        min-width: unset;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        padding: 0 15px;
        min-height: calc(100vh - 120px);
    }
    
    .video-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .video-wrapper {
        /* Maintain 16:9 aspect ratio on mobile with proper height */
        aspect-ratio: 16/9;
        width: 100%;
        min-height: 250px; /* Ensure minimum height on mobile */
        height: auto;
    }
    
    /* Mobile fallback for browsers without aspect-ratio support */
    @supports not (aspect-ratio: 16/9) {
        .video-wrapper {
            height: 0;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            min-height: unset;
        }
    }
    
    .video-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chat-section {
        height: 400px;
        margin-bottom: 1rem;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hide Privacy First section on mobile */
    .footer-privacy-section {
        display: none !important;
    }
    
    /* Reverse flex order - Copyright first, Made with last */
    .footer-copyright-section {
        order: 1;
        text-align: center !important;
        margin-bottom: 0.75rem;
    }
    
    .footer-made-section {
        order: 2;
        text-align: center !important;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile header styles */
    .header {
        padding: 0.75rem 0;
    }
    
    .header .container {
        padding: 0.75rem 12px;
    }
    
    /* Location Notification - Extra Small Mobile */
    .location-notification-content {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .location-notification-text {
        gap: 2px;
    }
    
    .location-notification-text strong {
        font-size: 13px;
    }
    
    .location-notification-text span {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .location-notification-icon {
        width: 28px;
        height: 28px;
    }
    
    .location-notification-icon i {
        font-size: 14px;
    }
    
    .location-notification-dismiss {
        width: 26px;
        height: 26px;
    }
    
    .location-notification-dismiss i {
        font-size: 13px;
    }
    
    /* Extra small mobile - keep queue status visible in dropdown */
    .navbar-queue-status {
        padding: 0.65rem 0.875rem;
        gap: 0.4rem;
        margin-right: 0;
        width: 100%;
    }
    
    .navbar-queue-label {
        font-size: 0.7rem;
    }
    
    .navbar-queue-number {
        font-size: 0.9rem;
    }
    
    /* Extra small mobile - compact profile in dropdown */
    .navbar-user-profile {
        padding: 0.65rem 0.875rem;
        gap: 0.6rem;
        width: 100%;
    }
    
    .navbar-user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .navbar-user-name {
        font-size: 0.85rem;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
        margin-top: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .navbar-link {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .nav-info {
        font-size: 0.75rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.4rem;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .container, .landing-container {
        padding: 0 15px;
        min-height: auto;
    }
    
    .land-flex {
        gap: 1.5rem;
        margin-top: -4vh;
    }
    
    .hero-section {
        margin-top: 6vh;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .hero-logo {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .online-count {
        text-align: center;
        margin-bottom: 0.6rem;
    }
    
    /* Keep navbar online count visible on mobile with smaller font */
    .navbar-online-count {
        margin-left: 0.3rem;
        gap: 0.3rem;
    }
    
    .navbar-online-count .online-text {
        font-size: 0.65rem;
        margin-top: 0.8rem;
    }
    
    .online-text, .connected-text {
        font-size: 0.75rem;
        justify-content: center;
    }
    
    .connected-text {
        font-size: 0.7rem;
    }
    
    .preferences-card {
        padding: 1rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .radio-label {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .chat-container {
        padding: 0 15px;
    }
    
    .video-wrapper {
        /* Ensure good height on smaller mobile screens */
        min-height: 220px;
    }
    
    /* Mobile fallback for browsers without aspect-ratio support */
    @supports not (aspect-ratio: 16/9) {
        .video-wrapper {
            min-height: unset;
        }
    }
    
    .chat-input-wrapper {
        flex-direction: column;
    }
    
    .send-btn {
        width: 100%;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 10px;
    background: #000;
}

.chat-messages::-webkit-scrollbar-track {
    background: #111;
    border-radius: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fff 0%, #222 100%);
    border-radius: 8px;
    border: 2px solid #000;
    min-height: 40px;
    transition: background 0.3s;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #fff;
    border: 2px solid #fff;
}

/* For Firefox */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #fff #111;
}

/* Video Call Buttons */
.video-green-btn {
    background: #22c55e;
    color: #ffffff !important;
    border: 2px solid #22c55e;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: auto;
    margin-top: 0;
    margin-right: 1rem;
}

.video-green-btn:hover {
    background: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.video-green-btn:active {
    transform: translateY(0);
}

.video-red-btn {
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ef4444;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: auto;
    margin-top: 0;
    margin-right: 1rem;
}

.video-red-btn:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.video-red-btn:active {
    transform: translateY(0);
}

/* Age Input Field */
.age-input {
    width: 100%;
    background: #000000;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.age-input:focus {
    border-color: #ffffff;
    background: #111111;
}

.age-input::placeholder {
    color: #666666;
}

/* Remove spinner arrows for number input */
.age-input::-webkit-inner-spin-button,
.age-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.age-input[type=number] {
    -moz-appearance: textfield;
}

/* ===========================================
   FIND PEOPLE NEAR ME SECTION
   =========================================== */

.nearby-section {
    margin: 0 0;
    padding: 3rem 2rem;
    background: #000000;
    max-width: 100%;
    width: 100%;
}

.nearby-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.nearby-header h3 {
    font-family: 'Plus Jakarta Sans';
    font-weight: 800;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-align: left;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
    animation: zigzagRocket 4s ease-in-out infinite;
}

/* Zig-zag rocket launch animation (reduced by 52% height total: 40% + 20%) */
@keyframes zigzagRocket {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: translate(3px, -7.2px) rotate(10deg);
        opacity: 1;
    }
    20% {
        transform: translate(-3px, -14.4px) rotate(-10deg);
        opacity: 1;
    }
    30% {
        transform: translate(5px, -24px) rotate(15deg);
        opacity: 0.9;
    }
    40% {
        transform: translate(-5px, -33.6px) rotate(-15deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(6px, -43.2px) rotate(20deg);
        opacity: 0.6;
    }
    60% {
        transform: translate(-6px, -33.6px) rotate(-15deg);
        opacity: 0.8;
    }
    70% {
        transform: translate(5px, -24px) rotate(15deg);
        opacity: 0.9;
    }
    80% {
        transform: translate(-3px, -14.4px) rotate(-10deg);
        opacity: 1;
    }
    90% {
        transform: translate(3px, -7.2px) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
}

.nearby-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0.5rem 0 0 0;
    text-align: left;
}

.header-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nearby-header .start-chat-btn {
    max-width: 400px;
    margin: 0;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    flex: 1;
    min-width: 200px;
}

.start-video-chat-btn {
    background: #ffffff;
    color: #000000;
}

.start-text-chat-btn {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.start-text-chat-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* Radar Scanner - Hide old one */
.radar-container {
    display: none;
}

.radar-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    position: relative;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: radarPulse 3s ease-in-out infinite;
}

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

.radar-line {
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ffffff 100%);
    top: 50%;
    left: 50%;
    transform-origin: 0% 50%;
    animation: radarScan 2s linear infinite;
    filter: drop-shadow(0 0 10px #ffffff);
}

@keyframes radarScan {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.radar-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.radar-dot.center-dot {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: centerDotPulse 1.5s ease-in-out infinite;
}

@keyframes centerDotPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

.radar-status {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.radar-status .pulse-dot {
    width: 10px;
    height: 10px;
}

/* Nearby Users Container - Vertical Scroll */
.nearby-users-container {
    max-height: none;
    padding: 2rem 1rem;
    overflow-y: visible;
    scroll-behavior: smooth;
}

.nearby-users-container::-webkit-scrollbar {
    width: 10px;
    background: #000;
}

.nearby-users-container::-webkit-scrollbar-track {
    background: #111;
    border-radius: 8px;
}

.nearby-users-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fff 0%, #222 100%);
    border-radius: 8px;
    border: 2px solid #000;
    transition: background 0.3s;
}

.nearby-users-container::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

/* Users Grid - Desktop: 4 cards per row, unlimited vertical rows */
.nearby-users-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    /* Performance optimizations for smooth rendering */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style;
}

/* User Card */
.user-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    padding-top: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Critical performance optimizations for smooth scrolling */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
}

/* Queue indicator clock icon for busy users - top right corner */
.user-card.busy-user::after {
    content: '⏱';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.3rem;
    opacity: 0.8;
    z-index: 10;
    padding: 0.3rem 0.5rem;
}

.user-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.user-card:hover::before {
    opacity: 1;
}

.user-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(15, 15, 15, 0.5);
    /* GPU acceleration for smooth scrolling */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.user-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
}

.gender-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, border-color;
}

.user-card:hover .gender-badge {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) translate3d(0, 0, 0);
}

.gender-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.user-card:hover .user-avatar {
    transform: scale(1.08) translate3d(0, 0, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.user-info {
    color: #ffffff;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.3px;
    background: linear-gradient(
        90deg,
        #6b7280 0%,
        #9ca3af 20%,
        #d1d5db 40%,
        #f3f4f6 50%,
        #ffffff 60%,
        #f3f4f6 70%,
        #d1d5db 80%,
        #9ca3af 90%,
        #6b7280 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: userNameShine 3s linear infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    /* GPU acceleration for smooth animation */
    will-change: background-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* User status indicator (next to name) */
.user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* New User Name Row - Minimalistic Layout */
.user-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.user-name-text {
    font-size: 1.05rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
}

.country-flag {
    font-size: 1rem;
    line-height: 1;
}

/* Exchange Badge */
.exchange-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 2px;
    transition: all 0.3s ease;
}

.exchange-badge img {
    width: 14px;
    height: 14px;
}

.user-card:hover .exchange-badge {
    transform: scale(1.1);
}

/* Purpose Badge with Flag */
.purpose-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.purpose-flag {
    font-size: 0.6rem;
}

.purpose-text {
    color: inherit;
}

/* Purpose Colors */
.purpose-badge.purpose-love {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.purpose-badge.purpose-friends {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.purpose-badge.purpose-hookups {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-card:hover .purpose-badge.purpose-love {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
}

.user-card:hover .purpose-badge.purpose-friends {
    background: rgba(234, 179, 8, 0.25);
    border-color: rgba(234, 179, 8, 0.5);
}

.user-card:hover .purpose-badge.purpose-hookups {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Purpose Flag in Top Right Corner */
.purpose-flag-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: help;
}

/* Hide purpose flag corner when busy (queue clock shows instead) */
.user-card.busy-user .purpose-flag-corner {
    display: none;
}

.purpose-flag-corner.purpose-love {
    background: rgba(34, 197, 94, 0.25);
    border: 2px solid rgba(34, 197, 94, 0.6);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.purpose-flag-corner.purpose-friends {
    background: rgba(234, 179, 8, 0.25);
    border: 2px solid rgba(234, 179, 8, 0.6);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
}

.purpose-flag-corner.purpose-hookups {
    background: rgba(239, 68, 68, 0.25);
    border: 2px solid rgba(239, 68, 68, 0.6);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.user-card:hover .purpose-flag-corner {
    transform: scale(1.1);
}

.user-card:hover .purpose-flag-corner.purpose-love {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.user-card:hover .purpose-flag-corner.purpose-friends {
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.5);
}

.user-card:hover .purpose-flag-corner.purpose-hookups {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.user-status-dot.available {
    background-color: #22c55e;
    animation: pulse-green-dot 2s ease-in-out infinite;
}

.user-status-dot.busy,
.user-status-dot.in_call {
    background-color: #ef4444;
    animation: pulse-red-dot 2s ease-in-out infinite;
}

.user-status-dot.offline {
    background-color: #eab308;
    animation: pulse-yellow-dot 2s ease-in-out infinite;
}

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

.user-details {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    justify-content: center;
    align-items: center;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.user-age,
.user-distance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-age img,
.user-distance img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
    /* GPU acceleration for images */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: opacity;
}

.user-card:hover .user-age img,
.user-card:hover .user-distance img {
    opacity: 1;
}

.user-distance {
    color: #ffffff;
    font-weight: 600;
}

.user-age img {
    width: 18px;
    height: 18px;
}

.user-distance img {
    width: 20px;
    height: 20px;
}

.user-card-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
    justify-content: center;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* GPU acceleration for smooth interaction */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, background-color;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.action-btn svg,
.action-btn i {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.action-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.chat-btn {
    color: #ffffff;
}

.chat-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.audio-btn {
    color: #ffffff;
}

.audio-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.video-btn {
    color: #ffffff;
}

/* minimal pink */

/* .video-btn:hover {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.4);
    color: #ec4899;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
} */

.video-btn:hover {
    background: rgba(219, 39, 119, 0.15);
    border-color: rgba(219, 39, 119, 0.45);
    color: #db2777;
    box-shadow: 0 6px 16px rgba(219, 39, 119, 0.35);
}

.distance-close {
    color: #22c55e;
}

.distance-medium {
    color: #ffaa00;
}

.distance-far {
    color: #ff5555;
}

/* Queue Button Styles - Glittering Gold Gradient */
.queue-btn {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    height: 48px;
}

/* Glittering Gold Gradient for In-Queue State */
.queue-btn.in-queue {
    background: linear-gradient(
        135deg,
        #ffd700 0%,
        #ffed4e 20%,
        #ffd700 40%,
        #ffb300 60%,
        #ffd700 80%,
        #ffed4e 100%
    );
    background-size: 200% 200%;
    animation: goldShimmer 3s ease-in-out infinite;
    color: #000000;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.5),
        0 8px 25px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 237, 78, 0.8);
}

.queue-btn.in-queue:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.6),
        0 12px 35px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
}

.queue-btn.in-queue:active {
    transform: translateY(-1px) scale(1.01);
}

/* Glitter animation */
@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1.2);
    }
    25% {
        background-position: 50% 50%;
        filter: brightness(1.1) saturate(1.3);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.2) saturate(1.4);
    }
    75% {
        background-position: 50% 50%;
        filter: brightness(1.1) saturate(1.3);
    }
}

/* Sparkle effect overlay */
.queue-btn.in-queue::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: sparkle 2.5s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(360deg);
    }
}

.queue-btn-label {
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.queue-btn-count {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* User card actions when showing queue */
.user-card-actions.queue-mode {
    display: block;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
    animation: toastSlideIn 0.3s ease;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #ffffff;
}

.toast-message {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.4;
}

.toast-message strong {
    color: #ffffff;
    font-weight: 600;
}

.toast.info {
    border-color: #60a5fa;
}

.toast.success {
    border-color: #22c55e;
}

.toast.warning {
    border-color: #fbbf24;
}

.toast.error {
    border-color: #ef4444;
}

/* Mobile toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: #cccccc;
}

.loading-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333333;
    border-top: 4px solid #ffffff;
}

/* No Users Message */
.no-users-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #cccccc;
    font-size: 1.1rem;
}

/* Pagination Controls - Enterprise Grade */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #666;
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    background: #0a0a0a;
    border-color: #333;
    color: #555;
    cursor: not-allowed;
    opacity: 0.3;
}

.pagination-arrow {
    font-size: 1.25rem;
    font-weight: bold;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #666;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: #888;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.pagination-number.active {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    border-color: #fff;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #888;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.pagination-info-bottom {
    display: flex;
    justify-content: center;
    padding: 0.5rem 1rem;
    color: #888;
    font-size: 0.9rem;
}

.pagination-count {
    font-size: 0.9rem;
    color: #888;
}

.pagination-count strong {
    color: #fff;
    font-weight: 700;
}

/* Responsive Design for Nearby Section */
@media (max-width: 1200px) {
    /* Tablet landscape - 3 cards per row */
    .nearby-users-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .land-flex {
        gap: 2rem;
    }
    
    .hero-radar-circle {
        width: 350px;
        height: 350px;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 992px) {
    /* Tablet - 2 cards per row */
    .nearby-users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .land-flex {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .radar-animation-wrapper {
        min-height: 400px;
    }
    
    .hero-radar-circle {
        width: 300px;
        height: 300px;
    }
    
    .preferences-bar-form {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .preference-group {
        width: 100%;
        /* flex-direction: row;
        align-items: flex-start; */
    }
    
    .preference-group.age-group {
        max-width: 100%;
    }
    
    .hero-title {
        justify-content: center;
        text-align: center;
    }
    
    .big-heading-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .nearby-section {
        margin: 0 0 2rem 0;
        padding: 2rem 0;
    }
    
    .nearby-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .nearby-header h3 {
        font-size: 1.8rem;
        justify-content: center;
        text-align: center;
    }
    
    .nearby-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Mobile - 1 card per row */
    .nearby-users-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .user-avatar,
    .user-avatar-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .gender-badge {
        width: 24px;
        height: 24px;
    }
    
    .gender-badge img {
        width: 16px;
        height: 16px;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
    
    /* Mobile: New user card elements */
    .user-name-row {
        gap: 0.3rem;
    }
    
    .user-name-text {
        font-size: 0.9rem;
        max-width: 120px;
    }
    
    .country-flag {
        font-size: 0.9rem;
    }
    
    .exchange-badge {
        width: 16px;
        height: 16px;
    }
    
    .exchange-badge img {
        width: 12px;
        height: 12px;
    }
    
    /* Mobile: Purpose corner flag */
    .purpose-flag-corner {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        top: 8px;
        right: 8px;
    }
    
    .purpose-badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.6rem;
    }
    
    .purpose-flag {
        font-size: 0.5rem;
    }
    
    .user-details {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .hero-title-icon {
        width: 50px;
        height: 50px;
    }
    
    .hero-big-heading {
        font-size: 28px;
    }

    .big-heading-section {
        padding: 2.5rem 1rem;
        gap: 1rem;
    }
    
    .hero-icon {
        width: 40px;
        height: 40px;
    }
    
    .section-icon {
        width: 35px;
        height: 35px;
    }
    
    .radar-animation-wrapper {
        justify-content: center;
        align-items: center;
        padding-right: 0;
        padding-top: 0;
    }
    
    .hero-radar-circle {
        width: 250px;
        height: 250px;
    }
    
    .preferences-bar {
        padding: 1.25rem 1.5rem;
    }
    
    .checkbox-group {
        flex-wrap: wrap;
    }
    
    /* Button layout for mobile */
    .header-action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .nearby-header .start-chat-btn {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {

    .profile-editor-name-section, .profile-editor-country-section {
        flex-direction: row !important;
        align-items: baseline;
    }

    /* Mobile - 1 card per row (same as 768px) */
    .nearby-users-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 0 0.5rem;
    }
    
    .nearby-header {
        padding: 0 0.5rem;
    }
    
    .user-card {
        padding: 0.75rem;
    }
    
    .user-avatar,
    .user-avatar-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .gender-badge {
        width: 22px;
        height: 22px;
    }
    
    .gender-badge img {
        width: 14px;
        height: 14px;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-details {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-big-heading {
        font-size: 24px;
    }

    .big-heading-section {
        padding: 2rem 1rem;
    }
    
    .radar-animation-wrapper {
        min-height: 300px;
    }
    
    .hero-radar-circle {
        width: 200px;
        height: 200px;
    }
    
    .floating-avatar-img {
        width: 40px;
        height: 40px;
    }
    
    .preferences-bar {
        padding: 1rem;
    }
    
    .preferences-bar-title {
        font-size: 1.1rem;
    }
}

/* ===============================================
   PROFILE EDITOR STYLES
   =============================================== */

.profile-editor-bar {
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%);
    border: 2px solid #444;
    margin-bottom: 1.5rem;
}

.profile-editor-container {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Avatar Section */
.profile-editor-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.profile-avatar-display {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 195, 125, 0.3);
}

.profile-avatar-display:hover {
    border-color: #22e891;
    box-shadow: 0 6px 20px rgba(25, 195, 125, 0.5);
    transform: scale(1.05);
}

.profile-avatar-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-display svg {
    width: 100%;
    height: 100%;
}

.profile-avatar-placeholder {
    font-size: 40px;
    color: #666;
}

.profile-upload-btn,
.profile-delete-btn {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(25, 195, 125, 0.3);
    background: rgba(25, 195, 125, 0.1);
    color: #19c37d;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-upload-btn:hover {
    background: rgba(25, 195, 125, 0.2);
    border-color: #19c37d;
    color: #19c37d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.3);
}

.profile-delete-btn {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    padding: 0.6rem;
}

.profile-delete-btn:hover {
    background: #ff4444;
    color: #fff;
}

/* Name Editor Section */
.profile-editor-name-section {
    flex: 1;
    min-width: 5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name-input-wrapper {
    position: relative;
    display: block;
}

.profile-name-input {
    padding: 0.75rem 3rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.profile-name-input:focus {
    outline: none;
    border-color: #19c37d;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(25, 195, 125, 0.1);
}

.profile-name-input::placeholder {
    color: #888;
}

.profile-shuffle-icon-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #19c37d;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    z-index: 1;
}

.profile-shuffle-icon-btn:hover {
    background: rgba(25, 195, 125, 0.15);
    color: #22e891;
    transform: translateY(-50%) scale(1.1);
}

.profile-shuffle-icon-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.profile-shuffle-icon-btn i {
    transition: transform 0.3s ease;
}

.profile-shuffle-icon-btn:hover i {
    animation: spin 0.6s linear infinite;
}

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

/* Incognito Section with Toggle Switch */
.profile-editor-incognito-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

/* Incognito Toggle Switch - Same Style as Anti-AdBlock */
.incognito-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.incognito-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 0, 0.5);
}

/* Profile Picture Upload Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

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

.modal-content {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%);
    border: 2px solid #444;
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h3 i {
    color: #19c37d;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Upload Zone */
.profile-picture-upload-zone {
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.profile-picture-upload-zone:hover {
    border-color: #19c37d;
    background: rgba(25, 195, 125, 0.05);
}

.profile-picture-upload-zone.dragover {
    border-color: #19c37d;
    background: rgba(25, 195, 125, 0.1);
    transform: scale(1.02);
}

.upload-zone-content {
    pointer-events: none;
}

.upload-zone-content i {
    font-size: 3rem;
    color: #19c37d;
    margin-bottom: 1rem;
}

.upload-zone-content p {
    margin: 0.5rem 0;
    color: #fff;
}

.upload-hint {
    color: #888 !important;
    font-size: 0.9rem !important;
}

/* Image Preview */
.profile-picture-preview {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #19c37d;
    box-shadow: 0 8px 24px rgba(25, 195, 125, 0.3);
}

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

.preview-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #19c37d;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(25, 195, 125, 0.3);
}

.preview-remove-btn:hover {
    background: #15a368;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.5);
}

/* Upload Progress */
.upload-progress-container {
    margin-top: 1.5rem;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #19c37d 0%, #22e891 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: #19c37d;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #19c37d 0%, #22e891 100%);
    color: #000;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 195, 125, 0.4);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive for Profile Editor */
@media (max-width: 768px) {

    .profile-editor-incognito-section{
        width: 100%;
    }
    
    .profile-editor-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .profile-editor-avatar-section {
        flex-direction: column;
        width: 100%;
    }
    
    .profile-avatar-display {
        width: 120px;
        height: 120px;
    }
    
    .profile-upload-btn,
    .profile-delete-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-editor-name-section {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .profile-editor-name-section .preference-label {
        text-align: left;
        width: 10%;
        flex-shrink: 0;
        margin: 0;
    }
    
    .profile-name-input-compact {
        max-width: 100%;
        width: 80%;
    }
    
    .profile-name-input-wrapper {
        width: 80% !important;
        flex: 1;
    }
    
    .profile-name-input {
        width: 100%;
    }
    
    .profile-name-input-group {
        flex-direction: column;
    }
    
    .profile-shuffle-btn {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .profile-picture-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .leaflet-control-geocoder-form input {
        width: 72vw !important;
    }
}

/* ============================================
   COUNTRY & PURPOSE SELECTORS
   ============================================ */

/* Compact name input when country selector is present */
.profile-name-input-compact {
    flex: 0 1 auto;
}

/* Country selector as separate section (like Name section) */
.profile-editor-country-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 30vh;
}

/* Mobile responsive styles for profile editor */
@media (max-width: 768px) {
    .profile-editor-country-section {
        width: 100%;
        min-width: 100%;
        margin-top: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .profile-editor-country-section .preference-label {
        text-align: left;
        width: 10%;
        flex-shrink: 0;
        margin: 0;
    }
    
    .country-select {
        width: 70% !important;
        flex: 1;
        min-width: auto;
    }
}

@media screen and (min-width: 798px) {
    #jobRoleGroup[style*="display: block"] {
        margin-top: 1vh;
    }
}

.profile-editor-country-section .preference-label {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

/* Enhanced dropdown styles - minimalistic and professional with beautiful background */
.country-select,
.purpose-select {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(25, 195, 125, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1.5px solid rgba(25, 195, 125, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    width: 100%;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 
                inset 0 1px 2px rgba(255, 255, 255, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
}

.country-select:hover,
.purpose-select:hover {
    border-color: rgba(25, 195, 125, 0.6);
    background: linear-gradient(135deg, rgba(25, 195, 125, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 195, 125, 0.2),
                inset 0 1px 3px rgba(255, 255, 255, 0.08);
}

.country-select:focus,
.purpose-select:focus {
    outline: none;
    border-color: #19c37d;
    background: linear-gradient(135deg, rgba(25, 195, 125, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.2), 
                0 8px 20px rgba(25, 195, 125, 0.25),
                inset 0 1px 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.country-select option,
.purpose-select option {
    background: linear-gradient(135deg, #0d0d0d 0%, #050505 100%);
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* Remove old styles */
.country-selector-group,
.country-label {
    display: none;
}

/* Job Role Group - conditionally displayed */
#jobRoleGroup {
    transition: all 0.3s ease;
}

/* Responsive adjustments for selectors */
@media (max-width: 1200px) {
    .profile-name-input-group {
        flex-wrap: wrap;
    }
    
    .profile-editor-country-section {
        width: 100%;
    }
    
    .country-select,
    .purpose-select {
        width: 100%;
    }
    
    .preferences-bar-filters .preferences-bar-form {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .preferences-bar-filters .start-free-call-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .profile-name-input-compact {
        max-width: 100%;
        flex: 1;
    }
    
    .profile-editor-name-section{
        gap: 2rem;
    }

    .profile-editor-name-section,
    .profile-editor-country-section {
        width: 100%;
        min-width: auto;
        align-items: baseline;
    }

    .profile-editor-country-section {
        justify-content: center;
        gap: 2rem;
    }
    
    .country-select,
    .purpose-select {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.25rem;
    }
    
    .preferences-bar-filters .preferences-bar-form {
        flex-wrap: wrap;
    }
    
    .preferences-bar-filters .preference-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .preferences-bar-filters .preference-group .preference-label {
        width: 10%;
        flex-shrink: 0;
        text-align: left;
        margin: 0;
    }
    
    .preferences-bar-filters .country-select,
    .preferences-bar-filters .purpose-select {
        min-width: auto;
        max-width: 100%;
        width: 90%;
        flex: 1;
    }
}

/* ===========================
   EXCHANGE DETAILS SECTION
   =========================== */

/* Exchange Details Toggle - Same style as Incognito Toggle */
.exchange-details-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.exchange-details-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 0, 0.5);
}

/* Exchange Details Row (Fourth Filter Row) */
.preferences-bar-exchange {
    margin-top: 1rem;
    background: linear-gradient(135deg, #0d0d0d 0%, #000000 100%);
    border: 2px solid #222;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin 0.5s ease-in-out,
                padding 0.5s ease-in-out;
    padding: 0;
    will-change: max-height, opacity, transform;
}

.preferences-bar-exchange.expanding {
    max-height: 2500px;
    opacity: 1;
    transform: scaleY(1);
    padding: 1.5rem;
}

.preferences-bar-exchange.expanded {
    max-height: none;
    opacity: 1;
    transform: scaleY(1);
    padding: 1.5rem;
}

.exchange-details-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.exchange-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.exchange-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.exchange-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exchange-label-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.exchange-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.exchange-input:focus {
    border-color: #19c37d;
    background: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(25, 195, 125, 0.1);
}

.exchange-input:hover {
    border-color: #ffffff;
}

.exchange-input::placeholder {
    color: #666666;
    font-style: italic;
}

.exchange-input-clickable {
    cursor: pointer;
    user-select: none;
}

.exchange-input-clickable:hover {
    border-color: #19c37d;
    background: rgba(25, 195, 125, 0.05);
}

/* Custom Fields */
.exchange-custom-field {
    display: block;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-end;
}

.exchange-custom-field-key {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.exchange-custom-field-key:focus {
    border-color: #19c37d;
    background: #0a0a0a;
}

.exchange-custom-field label{
    align-items: baseline;
}

.exchange-custom-field-value {
    flex: 1;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.exchange-custom-field-value:focus {
    border-color: #19c37d;
    background: #0a0a0a;
}

/* Remove Button for Custom Fields */
.exchange-remove-field-btn {
    background: rgba(239, 68, 68, 0.1);
    margin-top: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    flex-shrink: 0;
}

.exchange-remove-field-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.05);
}

/* Add Field Button */
.exchange-add-field-btn {
    background: rgba(25, 195, 125, 0.1);
    border: 1px solid rgba(25, 195, 125, 0.3);
    color: #19c37d;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 48px;
}

.exchange-add-field-btn:hover {
    background: rgba(25, 195, 125, 0.2);
    border-color: #19c37d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.2);
}

.exchange-add-field-btn:active {
    transform: translateY(0);
}

.exchange-add-field-btn svg {
    width: 24px;
    height: 24px;
}

.exchange-add-field-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.1);
    border-color: rgba(100, 100, 100, 0.3);
    color: #666666;
}

.exchange-add-field-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Location Picker Modal */
.location-picker-modal-content {
    max-width: 800px;
    width: 95%;
    height: 70vh;
}

.location-picker-map {
    width: 100%;
    height: 40vh;
    border-radius: 8px;
    background: #111;
}

/* Leaflet Zoom Controls - Bottom Right with Green Styling */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-zoom a {
    background: rgba(17, 17, 17, 0.95) !important;
    border: 2px solid #19c37d !important;
    color: #19c37d !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    line-height: 32px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: #19c37d !important;
    color: #000 !important;
    transform: scale(1.05) !important;
}

.leaflet-control-zoom a:active {
    transform: scale(0.95) !important;
}

.leaflet-control-zoom-in {
    border-radius: 6px 6px 0 0 !important;
    border-bottom: 1px solid #19c37d !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 6px 6px !important;
}

/* GPS Locate Button - Above Zoom Controls */
.leaflet-control-gps {
    margin-bottom: 6px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-gps-button {
    background: rgba(17, 17, 17, 0.95) !important;
    border: 2px solid #19c37d !important;
    border-radius: 6px !important;
    color: #19c37d !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.leaflet-control-gps-button:hover {
    background: #19c37d !important;
    color: #000 !important;
    transform: scale(1.05) !important;
}

.leaflet-control-gps-button:active {
    transform: scale(0.95) !important;
}

.leaflet-control-gps-button.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

.leaflet-control-gps-button i {
    line-height: 1 !important;
}

/* Leaflet Geocoder Search Box - Minimalistic Styling */
.leaflet-control-geocoder {
    background: rgba(17, 17, 17, 0.95) !important;
    border: 1px solid rgba(25, 195, 125, 0.3) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
}

.leaflet-control-geocoder-form {
    background: transparent !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.leaflet-control-geocoder-icon {
    display: none !important;
}

.leaflet-control-geocoder-form input {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 35px 10px 12px !important;
    font-size: 13px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.leaflet-control-geocoder-form input:focus {
    outline: none !important;
    background: rgba(25, 195, 125, 0.05) !important;
}

.leaflet-control-geocoder-form input::placeholder {
    color: #888 !important;
    font-size: 13px !important;
}

/* Custom search icon using Font Awesome */
.leaflet-control-geocoder-form::before {
    content: "\f002" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 12px !important;
    color: #19c37d !important;
    font-size: 14px !important;
    pointer-events: none !important;
    z-index: 1000 !important;
}

/* Hide the default clear button completely */
.leaflet-control-geocoder-form button[type="reset"],
.leaflet-control-geocoder-form .leaflet-control-geocoder-reset {
    display: none !important;
}

/* Custom clear button with image icon */
.custom-geocoder-clear-btn {
    position: absolute !important;
    right: 1.8rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    width: 30px !important;
    height: 30px !important;
    z-index: 1000 !important;
}

.custom-geocoder-clear-btn img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    transition: all 0.2s ease !important;
}

.custom-geocoder-clear-btn:hover img {
    transform: scale(1.15) !important;
}

/* Search results dropdown - minimalistic */
.leaflet-control-geocoder-alternatives {
    background: rgba(17, 17, 17, 0.98) !important;
    border: 1px solid rgba(25, 195, 125, 0.3) !important;
    border-radius: 6px !important;
    margin-top: 4px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-control-geocoder-alternatives li {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    transition: all 0.15s ease !important;
}

.leaflet-control-geocoder-alternatives li:hover {
    background: rgba(25, 195, 125, 0.08) !important;
    color: #19c37d !important;
}

.leaflet-control-geocoder-alternatives li:last-child {
    border-bottom: none !important;
}

.leaflet-control-geocoder-address {
    color: #fff !important;
    font-size: 13px !important;
}

.leaflet-control-geocoder-address-context {
    color: #888 !important;
    font-size: 11px !important;
    margin-top: 2px !important;
}

.leaflet-control-geocoder-selected {
    background: rgba(25, 195, 125, 0.15) !important;
    color: #19c37d !important;
}

/* Custom scrollbar for search results */
.leaflet-control-geocoder-alternatives::-webkit-scrollbar {
    width: 6px;
}

.leaflet-control-geocoder-alternatives::-webkit-scrollbar-track {
    background: transparent;
}

.leaflet-control-geocoder-alternatives::-webkit-scrollbar-thumb {
    background: rgba(25, 195, 125, 0.3);
    border-radius: 3px;
}

.leaflet-control-geocoder-alternatives::-webkit-scrollbar-thumb:hover {
    background: rgba(25, 195, 125, 0.5);
}

.location-picker-hint {
    color: #19c37d;
    font-size: 0.9rem;
    text-align: center;
    margin: 1rem 0 0 0;
    font-style: italic;
}

.location-picker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.location-picker-coords {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(25, 195, 125, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(25, 195, 125, 0.2);
    flex: 1;
    min-width: 250px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.location-picker-coords span {
    color: #cccccc;
    font-size: 0.9rem;
}

.location-picker-coords strong {
    color: #19c37d;
    font-weight: 700;
}

.location-delete-btn {
    background: transparent;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.location-delete-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff6666;
    transform: scale(1.1);
}

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

.location-delete-btn svg {
    width: 18px;
    height: 18px;
}

.location-picker-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.modal-body {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    outline: none;
}

.modal-btn-primary {
    background-color: #19c37d;
    color: #000000;
    border-color: #19c37d;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 195, 125, 0.3);
}

.modal-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #666666;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}

.modal-title {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leaflet-control-geocoder-alternatives{
    width: 100% !important;
}

.leaflet-control-geocoder-alternatives li a {
  color: #22e891 !important;
  background-color: transparent !important;
}


/* Responsive Exchange Details */
@media (max-width: 1200px) {
    .exchange-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .leaflet-control-geocoder-form input {
        width: 24vw !important;
    }
}

@media (max-width: 768px) {
    .exchange-row {
        grid-template-columns: 1fr;
    }
    
    .exchange-details-toggle {
        padding: 0.4rem 0.8rem;
    }
    
    .preferences-bar-exchange {
        padding: 1rem;
    }
    
    .preferences-bar-exchange.expanding {
        max-height: 42vh;
    }
    
    .preferences-bar-exchange.expanded {
        max-height: 42vh;
    }
    
    .location-picker-map {
        height: 300px;
    }
    
    .location-picker-coords {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Fix for mobile modal centering and animation */
@media (max-width: 768px) {
    .modal {
        /* JS sets display: flex, so we just need alignment */
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        margin: auto;
        max-height: 85vh;
        width: 90%;
    }
}

/* New animation for location pin in modal */
@keyframes pinBounce {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 10px 8px rgba(0,0,0,0.2));
    }
}

.modal-title .section-icon {
    animation: pinBounce 2s ease-in-out infinite !important;
}

/* ===========================================
   MOBILE VIDEO CHAT UI REDESIGN
   50/50 video split with floating chat overlay
   =========================================== */

/* Mobile Video Chat Container */
@media (max-width: 768px) {
    /* Hide desktop chat panel on mobile video mode */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .chat-panel {
        display: none !important;
    }
    
    /* Make video panel full height on mobile */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .chat-main-content {
        flex-direction: column;
        height: calc(100vh - 60px);
        padding: 0;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-panel {
        visibility: visible !important;
        display: flex !important;
        flex-direction: column;
        flex: 1;
        height: 100%;
        padding: 0;
    }
    
    /* 50/50 Video Grid for Mobile */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-grid {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 2px;
        background: #000;
        height: 100%;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-card {
        flex: 1;
        min-height: 0;
        border-radius: 0;
        background: #000;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-wrapper {
        height: 100% !important;
        aspect-ratio: unset !important;
        min-height: unset !important;
        border-radius: 0;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Compact top bar for mobile video */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .chat-top-bar {
        padding: 0.5rem 1rem;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .chat-actions-header {
        gap: 0.25rem;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .header-btn span {
        display: none;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .header-btn {
        padding: 0.4rem 0.6rem;
        min-width: unset;
    }
}

/* Floating Chat Button */
.mobile-chat-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.mobile-chat-fab:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.mobile-chat-fab .fab-icon {
    width: 20px;
    height: 20px;
}

.mobile-chat-fab .fab-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chevron points DOWN by default, rotates to UP when expanded */
.mobile-chat-fab.expanded .fab-chevron {
    transform: rotate(180deg);
}

/* Mobile Bottom Toolbar - HIDDEN by default */
.mobile-video-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-video-toolbar .toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-video-toolbar .toolbar-btn:active {
    transform: scale(0.95);
}

.mobile-video-toolbar .toolbar-btn svg {
    width: 28px;
    height: 28px;
}

.mobile-video-toolbar .toolbar-btn span {
    font-size: 11px;
    font-weight: 500;
}

.mobile-video-toolbar .toolbar-btn.next-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.mobile-video-toolbar .toolbar-btn.end-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Floating Chat Overlay Panel - HIDDEN by default, slides up */
.mobile-chat-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

/* Visible state - slides up from bottom */
.mobile-chat-overlay.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-chat-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f8f8;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.mobile-chat-overlay-header .chat-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.mobile-chat-overlay-header .close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mobile-chat-overlay-header .close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-chat-overlay-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mobile overlay message styles - override main chat styles for visibility */
.mobile-chat-overlay-messages .message.own,
.mobile-chat-overlay-messages .message.user {
    background: #000000 !important;
    color: #ffffff !important;
    align-self: flex-end;
    margin-left: auto;
    border-radius: 16px 16px 4px 16px;
}

.mobile-chat-overlay-messages .message.other {
    background: #e5e5ea !important;
    color: #000000 !important;
    align-self: flex-start;
    border-radius: 16px 16px 16px 4px;
}

.mobile-chat-overlay-messages .message.system {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #666666 !important;
    text-align: center;
    align-self: center;
    font-style: italic;
    font-size: 12px;
    border: none !important;
    padding: 6px 12px;
    border-radius: 12px;
}

/* Mobile typing indicator */
.mobile-typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.03);
}

.mobile-typing-indicator .typing-animation {
    display: flex;
    gap: 3px;
    align-items: center;
}

.mobile-typing-indicator .typing-dot {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

.mobile-typing-indicator .typing-text {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.mobile-chat-overlay-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #f8f8f8;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-chat-overlay-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.mobile-chat-overlay-input input:focus {
    border-color: #333;
}

.mobile-chat-overlay-input button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-chat-overlay-input button:active {
    transform: scale(0.9);
}

.mobile-chat-overlay-input button svg {
    width: 20px;
    height: 20px;
}

/* Show mobile elements only on mobile video mode */
@media (max-width: 768px) {
    /* CRITICAL: Force video panel visible on mobile for video/audio modes */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-panel {
        visibility: visible !important;
        display: flex !important;
        flex: 1 !important;
        height: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* HIDE the regular chat panel on mobile video mode */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .chat-panel {
        display: none !important;
    }
    
    /* Make main content full height */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .chat-main-content {
        height: calc(100vh - 50px) !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Video grid 50/50 vertical split */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 4px !important;
        height: 100% !important;
        width: 100% !important;
        padding: 4px !important;
        background: #000 !important;
    }
    
    /* Video cards take full space */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-card {
        width: 100% !important;
        height: 100% !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-wrapper {
        width: 100% !important;
        height: 100% !important;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Show ONLY the FAB button */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .mobile-chat-fab {
        display: flex !important;
    }
    
    /* HIDE bottom toolbar - actions in top bar */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .mobile-video-toolbar {
        display: none !important;
    }
    
    /* SHOW header action buttons on mobile */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .chat-actions-header {
        display: flex !important;
    }
    
    /* Mobile chat overlay - HIDDEN by default, slides up when .visible added */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .mobile-chat-overlay {
        display: flex !important;
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Overlay visible state */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .mobile-chat-overlay.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Video label overlays */
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-label-overlay {
        position: absolute;
        top: 8px;
        left: 8px;
        display: flex;
        gap: 8px;
        z-index: 10;
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .video-badge {
        position: relative;
        top: 3.5rem;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 4px 10px;
        border-radius: 0;
        font-size: 11px;
        font-weight: 600;
        backdrop-filter: blur(4px);
    }
    
    .enterprise-chat-container:not(.text-only-mode):not(.audio-only-mode) .connection-badge {
        position: relative;
        top: 3.5rem;
        background: rgba(34, 197, 94, 0.8);
        color: #fff;
        padding: 4px 10px;
        border-radius: 0;
        font-size: 11px;
        font-weight: 500;
    }
}

/* Handle notch/safe areas */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .mobile-chat-fab {
            bottom: max(20px, env(safe-area-inset-bottom));
        }
        
        .mobile-chat-overlay {
            bottom: 0;
        }
    }
}

/* ===========================================
   AUDIO VISUALIZER - Voice Wave Animation
   Circular avatar with animated voice waves
   =========================================== */

/* Audio Visualizer Section - Hidden by default */
.audio-visualizer-section {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(10, 10, 10, 1) 100%);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Mobile responsive sizing */
@media (max-width: 768px) {
    .audio-visualizer-section {
        min-height: 220px;
        padding: 1rem;
    }
}

/* Show audio visualizer only in audio-only mode */
.audio-only-mode .audio-visualizer-section {
    display: flex !important;
}

/* Hide video panel in audio-only mode */
.audio-only-mode .video-panel {
    display: none !important;
}

/* Desktop/Laptop Audio-Only Mode Layout Fix (screens wider than 768px) */
@media (min-width: 769px) {
    .audio-only-mode .chat-main-content {
        display: flex !important;
        flex-direction: row !important;
        height: calc(100vh - 70px) !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .audio-only-mode .audio-visualizer-section {
        flex: 0 0 300px !important;
        max-width: 300px !important;
        height: 100% !important;
        min-height: unset !important;
    }
    
    .audio-only-mode .chat-panel {
        flex: 1 1 auto !important;
        max-width: calc(100% - 300px) !important;
        height: 100% !important;
        overflow: hidden !important;
    }
}

/* Mobile Audio-Only Mode Layout Fix (screens 768px and below) */
@media (max-width: 768px) {
    .audio-only-mode .chat-main-content {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 60px) !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .audio-only-mode .audio-visualizer-section {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 50vh !important;
    }
    
    /* Hide desktop chat panel on mobile audio mode - use floating overlay instead */
    .audio-only-mode .chat-panel {
        display: none !important;
    }
    
    /* Show FAB button for audio-only mode on mobile */
    .audio-only-mode .mobile-chat-fab {
        display: flex !important;
    }
    
    /* Show header action buttons on mobile audio mode */
    .audio-only-mode .chat-actions-header {
        display: flex !important;
    }
    
    /* Mobile chat overlay for audio-only mode - same as video */
    .audio-only-mode .mobile-chat-overlay {
        display: flex !important;
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Overlay visible state for audio mode */
    .audio-only-mode .mobile-chat-overlay.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Hide mobile connection bar in audio mode - use top bar instead */
    .audio-only-mode .mobile-connection-bar {
        display: none !important;
    }
    
    /* Hide mobile chat toolbar in audio mode - use header buttons */
    .audio-only-mode .mobile-chat-toolbar {
        display: none !important;
    }
}

.audio-visualizer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Avatar Circle with Waves */
.audio-avatar-circle {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-content {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.avatar-content svg,
.avatar-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Voice Wave Rings */
.audio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.4);
    opacity: 0;
    animation: waveExpand 2.5s ease-out infinite;
}

.wave-1 {
    width: 130px;
    height: 130px;
    animation-delay: 0s;
}

.wave-2 {
    width: 130px;
    height: 130px;
    animation-delay: 0.6s;
}

.wave-3 {
    width: 130px;
    height: 130px;
    animation-delay: 1.2s;
}

.wave-4 {
    width: 130px;
    height: 130px;
    animation-delay: 1.8s;
}

@keyframes waveExpand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        border-width: 3px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
        border-width: 1px;
    }
}

/* Speaking Animation - More intense waves */
.audio-avatar-circle.speaking .wave {
    animation-duration: 1.2s;
    border-color: rgba(34, 197, 94, 0.6);
}

.audio-avatar-circle.speaking .wave-1 {
    animation-delay: 0s;
}

.audio-avatar-circle.speaking .wave-2 {
    animation-delay: 0.3s;
}

.audio-avatar-circle.speaking .wave-3 {
    animation-delay: 0.6s;
}

.audio-avatar-circle.speaking .wave-4 {
    animation-delay: 0.9s;
}

@keyframes waveExpandSpeaking {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        border-width: 4px;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
        border-width: 1px;
    }
}

.audio-avatar-circle.speaking .wave {
    animation-name: waveExpandSpeaking;
}

/* Avatar glow when speaking */
.audio-avatar-circle.speaking .avatar-content {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 
        0 0 20px rgba(34, 197, 94, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

/* User Info */
.audio-user-info {
    text-align: center;
}

.audio-user-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.35rem 0;
}

.audio-call-status {
    font-size: 0.9rem;
    font-weight: 500;
    color: #22c55e;
    margin: 0;
}

/* Mobile Audio-Only Mode Layout */
@media (max-width: 768px) {
    .audio-only-mode .audio-visualizer-section {
        flex: 0 0 auto !important;
        min-height: 250px !important;
        max-height: 300px !important;
        padding: 1.5rem !important;
    }
    
    .audio-only-mode .chat-main-content {
        flex-direction: column !important;
    }
    
    .audio-only-mode .chat-panel {
        flex: 1 1 auto !important;
    }
    
    .audio-avatar-circle {
        width: 140px;
        height: 140px;
    }
    
    .avatar-content {
        width: 100px;
        height: 100px;
    }
    
    .wave-1, .wave-2, .wave-3, .wave-4 {
        width: 110px;
        height: 110px;
    }
    
    .audio-user-name {
        font-size: 1.1rem;
    }
    
    .audio-call-status {
        font-size: 0.85rem;
    }
}

/* ===========================================
   MOBILE TEXT-ONLY & AUDIO-ONLY UNIFIED LAYOUT
   Same design as video mode for consistency
   =========================================== */

@media (max-width: 768px) {
    /* Text-only mode top bar - match video mode */
    .text-only-mode .chat-top-bar {
        position: relative !important;
        display: flex !important;
        flex: 0 0 50px !important;
        padding: 0 12px !important;
        background: rgba(0, 0, 0, 0.95) !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    
    .text-only-mode .chat-actions-header {
        display: flex !important;
        gap: 6px !important;
        margin-top: 0 !important;
    }
    
    .text-only-mode .chat-actions-header .header-btn {
        padding: 6px 8px !important;
        min-width: unset !important;
        border-radius: 6px !important;
        height: 36px !important;
    }
    
    .text-only-mode .chat-actions-header .header-btn span {
        display: none !important;
    }
    
    .text-only-mode .chat-actions-header .header-btn svg,
    .text-only-mode .chat-actions-header .header-btn img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .text-only-mode .connection-info {
        display: none !important;
    }
    
    /* Hide mobile-connection-bar in text-only mode */
    .text-only-mode .mobile-connection-bar {
        display: none !important;
    }
    
    /* Audio-only mode top bar - match video mode */
    .audio-only-mode .chat-top-bar {
        position: relative !important;
        display: flex !important;
        flex: 0 0 50px !important;
        padding: 0 12px !important;
        background: rgba(0, 0, 0, 0.95) !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    
    .audio-only-mode .chat-actions-header {
        display: flex !important;
        gap: 6px !important;
        margin-top: 0 !important;
    }
    
    .audio-only-mode .chat-actions-header .header-btn {
        padding: 6px 8px !important;
        min-width: unset !important;
        border-radius: 6px !important;
        height: 36px !important;
    }
    
    .audio-only-mode .chat-actions-header .header-btn span {
        display: none !important;
    }
    
    .audio-only-mode .chat-actions-header .header-btn svg,
    .audio-only-mode .chat-actions-header .header-btn img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .audio-only-mode .connection-info {
        display: none !important;
    }
    
    /* Hide mobile-connection-bar in audio-only mode */
    .audio-only-mode .mobile-connection-bar {
        display: none !important;
    }
    
    /* Mobile Chat FAB for text-only and audio-only */
    .text-only-mode .mobile-chat-fab,
    .audio-only-mode .mobile-chat-fab {
        display: none !important;
    }
}

/* ===========================================
   PHASE 1 UI - ENTERPRISE LAUNCH LAYOUT
   =========================================== */

/* Phase 1 Layout Container */
.landing-container.phase-1-layout {
    max-width: 100%;
    padding: 0;
}

/* Navbar Find People Section */
.navbar-find-people {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-section-icon {
    width: 24px;
    height: 24px;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.navbar-find-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

/* Phase 1 Sections Padding Fix */
.phase-1-layout .big-heading-section {
    max-width: 1200px;
    margin: 2rem auto;
}

.phase-1-layout .features-section {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 20px;
}

/* Phase 1 Ghost Mode Toggle Styles */
.ghost-mode-group {
    display: flex;
    align-items: center;
}

.ghost-mode-toggle {
    display: flex;
    align-items: center;
}

.ghost-mode-toggle .toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ghost-mode-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    position: relative;
}

.ghost-mode-info:hover {
    color: #ffffff;
}

.ghost-mode-info svg {
    width: 16px;
    height: 16px;
}

/* Tooltip for Ghost Mode Info */
.ghost-mode-info::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ghost-mode-info:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Phase 1 Hero Section - Two Column Layout */
.phase-1-hero-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
    align-items: flex-start;
}

/* Left Column - Radar (25%) */
.phase-1-hero-left {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    position: relative;
}

.phase-1-radar {
    padding: 0;
    margin-top: -10px;
    min-height: auto;
    margin-bottom: 1.5rem;
}

.phase-1-radar .hero-radar-circle {
    width: 280px;
    height: 280px;
}

.phase-1-hero-text {
    text-align: center;
}

.phase-1-hero-text .hero-title {
    margin-top: 5rem;
    font-size: 1.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.phase-1-hero-text .hero-title-icon {
    width: 40px;
    height: 40px;
}

.phase-1-hero-text .hero-subtitle {
    font-size: 0.95rem;
    text-align: center;
    max-width: 100%;
}

/* Right Column - Preferences (75%) */
.phase-1-hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.phase-1-hero-right .preferences-bar {
    margin: 0 0 1rem 0;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phase-1-hero-right .preferences-bar-filters {
    margin-top: 0;
}

.phase-1-hero-right .preferences-bar-filters .preferences-bar-form {
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Phase 1 Single Bar - Proper Container Spacing */
.phase-1-single-bar {
    margin-bottom: 0;
}

.phase-1-single-bar .profile-editor-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 0;
    margin: 0;
}

.phase-1-single-bar .phase-1-ghost-mode {
    margin-left: auto;
    flex-shrink: 0;
}

.phase-1-single-bar .ghost-mode-toggle {
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.phase-1-single-bar .ghost-mode-toggle:hover {
    background: rgba(255, 107, 157, 0.15);
}

/* ================================================
   Phase 1 Buttons + Users Combined Layout
   ================================================ */
.phase-1-buttons-and-users {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

/* Phase 1 Call Buttons Container - 3 equal columns */
.phase-1-call-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Phase 1 Users Row - Matches button layout */
.phase-1-users-row {
    width: 100%;
}

/* Phase 1 Limited Grid - 3 cards aligned under 3 buttons */
.phase-1-limited-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-height: none;
    overflow: hidden;
}

/* Hide extra cards beyond 3 in Phase 1 desktop */
.phase-1-limited-grid .user-card:nth-child(n+4) {
    display: none !important;
}

/* No users message styling for Phase 1 */
.phase-1-users-row .no-users-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.phase-1-users-row .no-users-message p {
    margin: 0;
    font-size: 0.9rem;
}

.phase-1-users-row .loading-indicator {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Call Button Styles */
.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.call-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.call-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.call-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Text Chat Button - Blue theme */
.call-btn-text {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.call-btn-text:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.call-btn-text:active {
    transform: translateY(0);
}

/* Audio Call Button - Green theme */
.call-btn-audio {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.call-btn-audio:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.35) 100%);
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.call-btn-audio:active {
    transform: translateY(0);
}

/* Video Call Button - Purple/Pink theme */
.call-btn-video {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.call-btn-video:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.35) 100%);
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.call-btn-video:active {
    transform: translateY(0);
}

/* Disabled state for call buttons */
.call-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Phase 1 Nearby Section */
.phase-1-nearby-section {
    padding: 2rem;
    margin: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.phase-1-nearby-section .nearby-users-container {
    padding: 0;
}

/* Hidden elements in Phase 1 */
.phase-1-hidden {
    display: none !important;
}

/* Phase 1 Responsive Styles */
@media (max-width: 1024px) {
    .phase-1-hero-section {
        flex-direction: column-reverse;
        padding: 1.5rem;
        min-height: auto;
    }
    
    .phase-1-hero-left {
        margin-top: 3rem;
        flex: none;
        width: 100%;
        position: relative;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .phase-1-radar .hero-radar-circle {
        width: 220px;
        height: 220px;
    }
    
    .phase-1-hero-right {
        width: 100%;
    }
    
    .phase-1-call-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .phase-1-limited-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .call-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .phase-1-header-section {
        padding: 1.5rem 1rem;
    }
    
    .phase-1-nearby-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .phase-1-nearby-header .section-icon {
        width: 35px;
        height: 35px;
    }
    
    .phase-1-hero-section {
        padding: 1rem;
        gap: 1rem;
    }
    
    .phase-1-radar .hero-radar-circle {
        width: 180px;
        height: 180px;
    }
    
    .phase-1-hero-text .hero-title {
        font-size: 1.4rem;
    }
    
    .phase-1-hero-text .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .phase-1-hero-right .preferences-bar {
        padding: 1rem;
    }
    
    .phase-1-hero-right .preferences-bar-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .phase-1-hero-right .preference-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .phase-1-hero-right .preference-group.age-group {
        max-width: 100%;
    }
    
    /* Mobile: Stack buttons and cards vertically */
    .phase-1-call-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .phase-1-limited-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Show all 3 cards stacked on mobile */
    .phase-1-limited-grid .user-card:nth-child(n+4) {
        display: none !important;
    }
    
    .call-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .phase-1-nearby-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .phase-1-header-section {
        padding: 1rem 0.75rem;
    }
    
    .phase-1-nearby-header h3 {
        font-size: 1.3rem;
    }
    
    .phase-1-nearby-header .nearby-subtitle {
        font-size: 0.9rem;
    }
    
    .phase-1-radar .hero-radar-circle {
        width: 150px;
        height: 150px;
    }
    
    .phase-1-hero-text .hero-title {
        font-size: 1.2rem;
    }
    
    .phase-1-hero-text .hero-title-icon {
        width: 30px;
        height: 30px;
    }
    
    .call-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .call-btn i {
        font-size: 1rem;
    }
    
    /* Hide navbar find people text on very small screens */
    .navbar-find-people {
        position: relative;
        left: auto;
        transform: none;
    }
    
    .navbar-find-text {
        display: none;
    }
    
    .navbar-section-icon {
        width: 20px;
        height: 20px;
    }
}

/* Responsive styles for navbar find-people */
@media (max-width: 768px) {
    .navbar-find-people {
        position: relative;
        left: auto;
        transform: none;
    }
    
    .navbar-find-text {
        font-size: 0.75rem;
    }
    
    .navbar-section-icon {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================
   AGE VERIFICATION & CONSENT POPUP
   ============================================================ */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.age-verification-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

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

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

.age-verification-popup {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

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

.age-verification-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.age-verification-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.age-verification-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.age-verification-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.age-verification-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dob-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dob-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.dob-label svg {
    stroke: #22c55e;
}

.dob-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dob-input:focus {
    outline: none;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.dob-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.dob-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.consent-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-section h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

.consent-scroll {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.consent-scroll::-webkit-scrollbar {
    width: 5px;
}

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

.consent-scroll::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.4);
    border-radius: 3px;
}

.consent-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.6;
}

.consent-text h4 {
    color: #22c55e;
    font-size: 0.85rem;
    margin: 0.875rem 0 0.4rem;
    font-weight: 600;
}

.consent-text h4:first-child {
    margin-top: 0;
}

.consent-text p {
    margin-bottom: 0.4rem;
}

.consent-text ul {
    margin: 0.4rem 0;
    padding-left: 1.25rem;
}

.consent-text li {
    margin-bottom: 0.2rem;
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.875rem;
    background: rgba(34, 197, 94, 0.06);
    border-radius: 10px;
    border: 2px solid rgba(34, 197, 94, 0.15);
    transition: all 0.3s ease;
}

.consent-checkbox-label:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

.consent-checkbox {
    display: none;
}

.consent-checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.consent-checkbox:checked + .consent-checkbox-custom {
    background: #22c55e;
    border-color: #22c55e;
}

.consent-checkbox:checked + .consent-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.consent-checkbox-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
}

.age-verification-actions {
    margin-top: 1.25rem;
    text-align: center;
}

.verify-btn {
    width: 100%;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verify-btn.active,
.verify-btn:not(:disabled) {
    background: #22c55e;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.verify-btn.active:hover,
.verify-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.45);
    background: #16a34a;
}

.verify-btn svg {
    stroke: currentColor;
}

.exit-text {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    margin-top: 1rem;
}

.exit-text a {
    color: #22c55e;
    text-decoration: underline;
}

.exit-text a:hover {
    color: #16a34a;
}

.underage-warning {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.underage-warning svg {
    margin-bottom: 1.25rem;
}

.underage-warning h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.underage-warning p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.underage-warning .redirect-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Mobile responsive for Age Verification */
@media (max-width: 480px) {
    .age-verification-popup {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .age-verification-header h2 {
        font-size: 1.5rem;
    }
    
    .consent-scroll {
        max-height: 150px;
    }
}

/* Phase 1 Profile Editor - Single Row Layout with Equal Ratios */
.phase-1-single-bar .profile-editor-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
}

/* Phase 1 Avatar - 20% Width */
.phase-1-single-bar .profile-editor-avatar-section {
    flex: 0 0 12%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phase-1-single-bar .profile-avatar-display {
    width: 100px;
    height: 100px;
}

.phase-1-single-bar .profile-avatar-placeholder {
    font-size: 24px;
}

.phase-1-single-bar .profile-avatar-buttons {
    display: none;
}

/* Phase 1 Name Section - 30% Width */
.phase-1-single-bar .profile-editor-name-section {
    flex: 0 0 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.phase-1-single-bar .profile-editor-name-section .preference-label {
    display: none;
}

.phase-1-single-bar .profile-name-input-wrapper {
    width: 100%;
}

.phase-1-single-bar .profile-name-input-compact {
    padding: 0.625rem 2.75rem 0.625rem 0.875rem;
    font-size: 0.95rem;
    height: 42px;
    width: 100%;
}

.phase-1-single-bar .profile-shuffle-icon-btn {
    width: 32px;
    height: 32px;
    right: 5px;
}

/* Phase 1 Country Section - 25% Width */
.phase-1-single-bar .profile-editor-country-section {
    flex: 0 0 25%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.phase-1-single-bar .profile-editor-country-section .preference-label {
    display: none;
}

.phase-1-single-bar .country-select {
    width: 100%;
    height: 42px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
}

/* Phase 1 Ghost Mode - 25% Width */
.phase-1-single-bar .phase-1-ghost-mode {
    flex: 0 0 25%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.phase-1-single-bar .ghost-mode-toggle {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    white-space: nowrap;
}

.phase-1-single-bar .toggle-text {
    font-size: 0.9rem;
}

/* Responsive adjustments for Phase 1 Single Bar */
@media (max-width: 1200px) {
    .phase-1-single-bar .profile-editor-container {
        gap: 0.75rem;
    }
    
    .phase-1-single-bar .toggle-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .phase-1-single-bar .profile-editor-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    /* Stack in 2 rows on tablet */
    .phase-1-single-bar .profile-editor-avatar-section {
        flex: 0 0 15%;
    }
    
    .phase-1-single-bar .profile-editor-name-section {
        flex: 0 0 40%;
    }
    
    .phase-1-single-bar .profile-editor-country-section {
        flex: 0 0 40%;
    }
    
    .phase-1-single-bar .phase-1-ghost-mode {
        flex: 0 0 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    /* Full width stacking on mobile */
    .phase-1-single-bar .profile-editor-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .phase-1-single-bar .profile-editor-avatar-section,
    .phase-1-single-bar .profile-editor-name-section,
    .phase-1-single-bar .profile-editor-country-section,
    .phase-1-single-bar .phase-1-ghost-mode {
        flex: 0 0 auto;
        width: 100%;
    }
    
    /* Stack country selector vertically and let it fill the row */
    .phase-1-single-bar .profile-editor-country-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Ensure country selector matches name field width on mobile */
    .phase-1-single-bar .profile-editor-country-section .country-select {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .phase-1-single-bar .profile-editor-avatar-section {
        justify-content: flex-start;
    }
    
    .phase-1-single-bar .phase-1-ghost-mode {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .phase-1-single-bar .profile-name-input-compact,
    .phase-1-single-bar .country-select {
        font-size: 0.9rem;
        height: 40px;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    }
    
    .phase-1-single-bar .ghost-mode-toggle {
        height: 40px;
        padding: 0 0.75rem;
    }
}

/* Improved Age Verification Popup Styling */
.age-verification-popup {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    animation: popupScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.age-verification-overlay {
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.9);
}

.age-verification-header h2 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.dob-label {
    color: #22c55e;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.dob-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.2s ease;
    color-scheme: dark;
}

.dob-input:focus {
    background: rgba(34, 197, 94, 0.08);
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    outline: none;
}

.consent-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
}

.consent-checkbox-label {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 12px;
}

.verify-btn:not(:disabled) {
    background: #22c55e;
    box-shadow: 0 8px 20px -6px rgba(34, 197, 94, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: translateY(0);
}

.verify-btn:not(:disabled):hover {
    transform: translateY(-2px);
    background: #16a34a;
    box-shadow: 0 12px 25px -8px rgba(34, 197, 94, 0.6);
}
