/* Playful Friends Page - Vibrant Colorful Glassmorphic Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(ellipse at top left, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(76, 175, 80, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #1a1d29 0%, #2a2d3a 50%, #3a3f4b 100%);
    min-height: 100vh;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e2e8f0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(76, 175, 80, 0.03) 0%, transparent 40%);
    z-index: -1;
}

/* Animated Background Elements */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 25% 25%, transparent 0%, transparent 1%, rgba(255, 193, 7, 0.02) 2%, transparent 3%),
        radial-gradient(circle at 75% 75%, transparent 0%, transparent 1%, rgba(255, 107, 107, 0.02) 2%, transparent 3%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}


/* Header */
.header {
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100% !important;
    max-width: none !important;
    box-shadow:
        0 4px 20px rgba(255, 107, 107, 0.1),
        0 8px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bounce 2s ease-in-out infinite;
}

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

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

.btn-icon {
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 107, 107, 0.15) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    color: #ffd93d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow:
        0 4px 16px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 107, 107, 0.25) 100%);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(255, 193, 7, 0.3),
        0 12px 48px rgba(0, 0, 0, 0.15);
}

.btn-icon:hover::before {
    left: 100%;
}

.control-icon {
    width: 20px;
    height: 20px;
}

/* Larger icon for leaderboard button in friends page */
#leaderboard-btn .control-icon {
    width: 32px !important;
    height: 32px !important;
}

/* Main Content */
.friends-content {
    flex: 1;
    padding: 32px 24px;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    position: relative;
}

.friends-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(76, 175, 80, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Friends Header Section */
.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    width: 100%;
    padding: 8px;
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    backdrop-filter: blur(12px);
    box-shadow:
        0 8px 32px rgba(255, 107, 107, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.add-friend-section {
    display: flex;
    align-items: center;
}

.search-section {
    position: relative;
    flex: 1;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    color: rgba(148, 163, 184, 0.8);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: subtleFloat 3s ease-in-out infinite;
}

@keyframes subtleFloat {

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

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

.search-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.7) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(255, 193, 7, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 193, 7, 0.6);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.8) 100%);
    box-shadow:
        0 0 0 4px rgba(255, 193, 7, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: rgba(148, 163, 184, 0.7);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.add-friend-btn {
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 107, 107, 0.15) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    padding: 14px 20px;
    color: #ffd93d;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow:
        0 4px 16px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.add-friend-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-friend-btn:hover {
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 107, 107, 0.25) 100%);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffeb3b;
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(255, 193, 7, 0.3),
        0 12px 48px rgba(0, 0, 0, 0.15);
}

.add-friend-btn:hover::before {
    left: 100%;
}

.add-friend-btn svg {
    width: 18px;
    height: 18px;
}

/* Radio Button Tabs - Now in Header - Playful 3D Design */
.friends-tabs {
    display: flex;
    gap: 6px;
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 193, 7, 0.12) 50%, rgba(76, 175, 80, 0.08) 100%);
    border-radius: 16px;
    padding: 6px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
    box-shadow:
        0 8px 24px rgba(255, 107, 107, 0.2),
        0 4px 12px rgba(255, 193, 7, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes subtleFloat {

    0%,
    100% {
        transform: perspective(1000px) rotateX(2deg) translateY(0px);
    }

    50% {
        transform: perspective(1000px) rotateX(2deg) translateY(-2px);
    }
}

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

.friends-tabs label {
    flex: 1;
    padding: 10px 18px;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(100px) rotateX(0deg);
}

.friends-tabs input[type="radio"]:checked+label {
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.4) 0%, rgba(255, 107, 107, 0.3) 50%, rgba(76, 175, 80, 0.2) 100%);
    color: #fff;
    border: 2px solid rgba(255, 193, 7, 0.6);
    box-shadow:
        0 6px 20px rgba(255, 193, 7, 0.4),
        0 3px 10px rgba(255, 107, 107, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transform: perspective(100px) rotateX(-5deg) translateY(-3px) scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {

    0%,
    100% {
        box-shadow:
            0 6px 20px rgba(255, 193, 7, 0.4),
            0 3px 10px rgba(255, 107, 107, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.2),
            inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow:
            0 8px 25px rgba(255, 193, 7, 0.5),
            0 4px 15px rgba(255, 107, 107, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    }
}

.friends-tabs label:hover:not(:checked) {
    color: rgba(255, 255, 255, 0.95);
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 107, 107, 0.15) 50%, rgba(76, 175, 80, 0.1) 100%);
    transform: perspective(100px) rotateX(-2deg) translateY(-2px) scale(1.02);
    box-shadow:
        0 4px 15px rgba(255, 193, 7, 0.3),
        0 2px 8px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(148, 163, 184, 0.8);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: rgba(255, 193, 7, 0.3);
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: rgba(255, 193, 7, 0.9);
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.7;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Friends List */
.friends-list {
    display: grid;
    gap: 16px;
}

.friend-item {
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.friend-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.friend-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
}

.friend-item:hover {
    background:
        linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 193, 7, 0.12) 100%);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 12px 32px rgba(255, 107, 107, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.friend-item:hover::before {
    opacity: 1;
}

.friend-item:hover::after {
    width: 120%;
    height: 120%;
}

.friend-item>* {
    position: relative;
    z-index: 1;
}

.friend-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.friend-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 193, 7, 0.3);
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Online Status Dot */
.online-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid rgba(30, 41, 59, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.online-status-dot.online {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: onlinePulse 2s ease-in-out infinite;
}

.online-status-dot.offline {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

@keyframes onlinePulse {

    0%,
    100% {
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 4px rgba(16, 185, 129, 0.1);
    }
}

.friend-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.friend-item:hover .friend-avatar {
    border-color: rgba(255, 193, 7, 0.5);
    transform: scale(1.05);
    box-shadow:
        0 4px 16px rgba(255, 193, 7, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.friend-item:hover .friend-avatar::before {
    opacity: 1;
}

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

.friend-name {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.friend-focus-id {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background:
        linear-gradient(135deg, rgba(71, 85, 105, 0.5) 0%, rgba(51, 65, 85, 0.4) 100%);
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.room-owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 152, 0, 0.2) 100%);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.4);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow:
        0 2px 8px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: ownerPulse 2s ease-in-out infinite;
    vertical-align: middle;
}

.room-owner-badge svg {
    width: 14px;
    height: 14px;
}

@keyframes ownerPulse {

    0%,
    100% {
        box-shadow:
            0 2px 8px rgba(255, 193, 7, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow:
            0 4px 12px rgba(255, 193, 7, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

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

.friend-action-btn {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
    color: rgba(147, 197, 253, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 40px;
    min-height: 40px;
}

.friend-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.friend-action-btn:hover {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #dbeafe;
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.friend-action-btn:hover::before {
    left: 100%;
}

.friend-action-btn.remove {
    background:
        linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, rgba(239, 68, 68, 0.08) 100%);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
}

.friend-action-btn.remove:hover {
    background:
        linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(239, 68, 68, 0.12) 100%);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
    box-shadow:
        0 4px 16px rgba(248, 113, 113, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Friend Requests */
.friend-requests,
.sent-requests {
    display: grid;
    gap: 12px;
}

.request-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.request-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #059669);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.request-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.request-item:hover::before {
    opacity: 1;
}

.request-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(71, 85, 105, 0.3);
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.request-item:hover .request-avatar {
    border-color: rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

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

.request-name {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e1e5ea;
    letter-spacing: -0.01em;
}

.request-focus-id {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.8);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: rgba(71, 85, 105, 0.3);
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 400;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.request-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.accept-btn {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.accept-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.decline-btn {
    background: rgba(30, 41, 59, 0.8);
    color: rgba(148, 163, 184, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.decline-btn:hover {
    background: rgba(71, 85, 105, 0.3);
    color: #e1e5ea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cancel-btn {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.cancel-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.15);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 32px;
    color: rgba(226, 232, 240, 0.9);
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.empty-state-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    color: rgba(148, 163, 184, 0.6);
    opacity: 0.8;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(51, 65, 85, 0.4) 100%);
    border-radius: 50%;
    border: 2px solid rgba(71, 85, 105, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-icon:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.empty-state h3 {
    margin: 0 0 16px 0;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-state p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(148, 163, 184, 0.85);
    max-width: 450px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    display: flex;
}

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

    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.modal-content {
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #e1e5ea;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #e1e5ea;
    letter-spacing: -0.01em;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #e1e5ea;
    background: rgba(71, 85, 105, 0.3);
}

.modal-body {
    padding: 28px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.focus-id-input-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.focus-id-input {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: #e1e5ea;
    font-size: 0.95rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 400;
    transition: all 0.2s ease;
}

.focus-id-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.focus-id-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.send-request-btn {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 14px 24px;
    color: #93c5fd;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.send-request-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    color: #dbeafe;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.send-request-btn:disabled {
    background: rgba(71, 85, 105, 0.3);
    color: rgba(148, 163, 184, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.focus-id-help {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 12px;
    padding: 18px;
}

.focus-id-help p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(148, 163, 184, 0.8);
}

.focus-id-help p:last-child {
    margin-bottom: 0;
}

/* Notification Styles */
.notification-overlay {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    display: none;
    animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-overlay.show {
    display: block;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.notification-content {
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 100%;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.25),
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #e1e5ea;
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

.notification-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e1e5ea;
    letter-spacing: -0.01em;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.notification-close:hover {
    color: #e1e5ea;
    background: rgba(71, 85, 105, 0.3);
}

.notification-body {
    padding: 22px;
}

.requester-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.requester-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(71, 85, 105, 0.3);
    object-fit: cover;
}

.requester-details h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #e1e5ea;
    letter-spacing: -0.01em;
}

.requester-details p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.8);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: rgba(71, 85, 105, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
}

.request-message {
    margin: 0 0 18px 0;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.9);
    text-align: center;
    font-weight: 400;
}

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

.notification-actions .accept-btn,
.notification-actions .decline-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .friends-content {
        padding: 20px 16px;
    }

    .friends-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-section {
        flex: 1;
        min-width: 250px;
    }

    .focus-id-input-container {
        flex-direction: column;
    }

    .send-request-btn {
        width: 100%;
    }

    .notification-overlay {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .notification-content {
        max-width: none;
    }

    .friend-item,
    .request-item {
        padding: 16px;
        gap: 12px;
    }

    .friend-avatar,
    .request-avatar {
        width: 48px;
        height: 48px;
    }

    .online-status-dot {
        width: 14px;
        height: 14px;
        bottom: 1px;
        right: 1px;
    }

    .friend-name,
    .request-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }

    .friends-content {
        padding: 16px 12px;
    }

    .friends-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .search-input,
    .add-friend-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .friend-item,
    .request-item {
        padding: 14px;
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .friend-actions,
    .request-actions {
        justify-content: center;
        gap: 6px;
    }

    .friend-action-btn,
    .request-action-btn {
        padding: 6px;
    }

    .online-status-dot {
        width: 12px;
        height: 12px;
        bottom: 0px;
        right: 0px;
    }

    .modal-content {
        width: 95%;
        margin: 16px;
    }

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #e2e8f0;
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(59, 130, 246, 0.15);
    border-top: 4px solid transparent;
    border-image: linear-gradient(45deg, #3b82f6, #6366f1, #8b5cf6) 1;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 24px;
    position: relative;
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #3b82f6, #6366f1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

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

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

.loading-screen p {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* ===========================
   ROOM MODE SELECTOR STYLES
   =========================== */

.room-mode-selector {
    display: flex;
    gap: 8px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(168, 85, 247, 0.08) 100%);
    border-radius: 18px;
    padding: 6px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(139, 92, 246, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.room-mode-selector input[type="radio"] {
    display: none;
}

.room-mode-selector .mode-btn {
    flex: 1;
    padding: 10px 16px;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.room-mode-selector .mode-icon {
    font-size: 1.1rem;
}

.room-mode-selector input[type="radio"]:checked+.mode-btn {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(139, 92, 246, 0.3) 50%, rgba(168, 85, 247, 0.2) 100%);
    color: #fff;
    border: 2px solid rgba(59, 130, 246, 0.6);
    box-shadow:
        0 6px 20px rgba(59, 130, 246, 0.4),
        0 3px 10px rgba(139, 92, 246, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.room-mode-selector .mode-btn:hover:not(.disabled) {
    color: rgba(255, 255, 255, 0.95);
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(168, 85, 247, 0.1) 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 4px 15px rgba(59, 130, 246, 0.3),
        0 2px 8px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.room-mode-selector .mode-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coming-soon-badge {
    font-size: 0.65rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1d29;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
    font-weight: 800;
}

/* Mode Content Containers */
.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

/* ===========================
   SOCIAL ROOMS STYLES
   =========================== */

/* Rooms Grid Container */
.rooms-grid-container {
    padding: 20px 0;
}

.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.rooms-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.create-room-btn {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 12px 20px;
    color: #93c5fd;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.create-room-btn:hover {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: #dbeafe;
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.3),
        0 12px 48px rgba(0, 0, 0, 0.15);
}

.create-room-btn svg {
    width: 18px;
    height: 18px;
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.room-square {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.room-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.room-square:hover {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(59, 130, 246, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.room-square:hover::before {
    opacity: 1;
}

.room-square-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.room-square-name {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

.room-square-members {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-square-members svg {
    width: 16px;
    height: 16px;
}

/* Room Members View */
.room-members-container {
    padding: 20px 0;
}

.room-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.room-members-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

.back-to-rooms-btn,
.manage-room-btn {
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(71, 85, 105, 0.15) 100%);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    padding: 10px 18px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-to-rooms-btn:hover,
.manage-room-btn:hover {
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.3) 0%, rgba(71, 85, 105, 0.25) 100%);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.back-to-rooms-btn svg,
.manage-room-btn svg {
    width: 16px;
    height: 16px;
}

.room-members-list {
    display: grid;
    gap: 12px;
}

/* ===========================
   PUBLIC ROOMS - COMING SOON
   =========================== */

.coming-soon-container {
    text-align: center;
    padding: 80px 20px;
    color: rgba(226, 232, 240, 0.9);
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.coming-soon-container h2 {
    margin: 0 0 16px 0;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-container p {
    margin: 0 0 32px 0;
    font-size: 1.1rem;
    color: rgba(148, 163, 184, 0.9);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 32px;
}

.feature-item {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #e2e8f0;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 1.5rem;
}

.coming-soon-text {
    font-size: 1.2rem !important;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   MODAL FORM STYLES
   =========================== */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-group .required {
    color: #f87171;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: #e1e5ea;
    font-size: 0.95rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    color: #dbeafe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

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

.btn-secondary {
    background: rgba(71, 85, 105, 0.3);
    color: rgba(148, 163, 184, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.4);
    color: #e1e5ea;
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2);
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Manage Room Sections */
.manage-room-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

.manage-room-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.manage-room-section h4 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.room-info-text {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
}

.room-info-description {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.9);
}

.room-info-members {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
}

.friend-select {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: #e1e5ea;
    font-size: 0.95rem;
    font-family: 'Poppins', 'Inter', sans-serif;
    margin-bottom: 12px;
    cursor: pointer;
}

.friend-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.danger-zone {
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.2) !important;
    border-radius: 12px;
    padding: 20px !important;
}

.delete-room-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(248, 113, 113, 0.3);
}

.delete-room-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-room-warning svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.delete-confirmation-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e1e5ea;
    font-size: 0.9rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.delete-confirmation-input:focus {
    outline: none;
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.delete-confirmation-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.delete-helper-text {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.7);
    margin-bottom: 12px;
}

/* Empty Room State */
.empty-rooms-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(148, 163, 184, 0.8);
}

.empty-rooms-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: rgba(226, 232, 240, 0.9);
}

.empty-rooms-state p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .room-mode-selector {
        gap: 4px;
        padding: 4px;
    }

    .room-mode-selector .mode-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .room-mode-selector .mode-icon {
        font-size: 1rem;
    }

    .coming-soon-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .room-members-header {
        flex-direction: column;
        align-items: stretch;
    }

    .back-to-rooms-btn,
    .manage-room-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .room-mode-selector .mode-text {
        display: none;
    }

    .room-mode-selector .mode-btn {
        padding: 8px;
    }

    .coming-soon-badge {
        display: none;
    }

    .rooms-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .create-room-btn {
        width: 100%;
        justify-content: center;
    }
}