* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f1419 100%);
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Navbar */
.navbar {
    background: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 22px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    height: 100%;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(2, 255, 64, 0.3));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-icon:hover {
    filter: drop-shadow(0 0 12px rgba(2, 255, 64, 0.5));
    transform: scale(1.05);
}

.logo-text {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.nav-btn:hover {
    background: rgba(2, 255, 64, 0.15);
    border-color: rgba(2, 255, 64, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(2, 255, 64, 0.2);
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    height: calc(100vh - 60px);
    margin-top: 60px;
}

/* Sidebar Styles */
.left-sidebar,
.right-sidebar {
    background: rgba(37, 37, 37, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.right-sidebar {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #02ff40;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(2, 255, 64, 0.2));
}

/* Action Buttons */
.action-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: linear-gradient(135deg, #02ff40 0%, #02d835 100%);
    color: #0a0a0a;
    border-color: rgba(2, 255, 64, 0.3);
    box-shadow: 0 4px 15px rgba(2, 255, 64, 0.2);
}

.action-btn.secondary {
    background: rgba(51, 51, 51, 0.8);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.action-btn.accent {
    background: linear-gradient(135deg, #02ff40 0%, #02d835 100%);
    color: #0a0a0a;
    border-color: rgba(2, 255, 64, 0.3);
    box-shadow: 0 4px 15px rgba(2, 255, 64, 0.2);
}

.action-btn.wallet {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #ffffff;
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.action-btn.guest {
    background: rgba(102, 102, 102, 0.8);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(2, 255, 64, 0.4);
}

.action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Room List */
.room-list {
    margin-top: 1rem;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(51, 51, 51, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.room-item:hover {
    transform: translateY(-2px);
    background: rgba(51, 51, 51, 0.9);
    border-color: rgba(2, 255, 64, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.room-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* Allow shrinking */
}

.room-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    cursor: default;
    transition: all 0.2s ease;
}

.room-name:hover {
    color: #02ff40;
    text-shadow: 0 0 8px rgba(2, 255, 64, 0.3);
}

.room-members {
    font-size: 0.85rem;
    color: rgba(153, 153, 153, 0.8);
    font-weight: 500;
    margin-top: 0.2rem;
}

.join-btn {
    background: linear-gradient(135deg, #02ff40 0%, #02d835 100%);
    color: #0a0a0a;
    border: 1px solid rgba(2, 255, 64, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 3px 12px rgba(2, 255, 64, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.join-btn.small {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
}

.join-btn:hover {
    background: linear-gradient(135deg, #02d835 0%, #02c030 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(2, 255, 64, 0.4);
}

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

/* Chat Area */
.chat-area {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; /* Add this to establish positioning context */
}

.chat-header {
    background: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: -0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.chat-title:hover {
    background: rgba(2, 255, 64, 0.1);
    border-color: rgba(2, 255, 64, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(2, 255, 64, 0.2);
}

.chat-title::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 0.25rem;
    transition: all 0.2s ease;
}

.chat-title:hover::after {
    opacity: 1;
    color: #02ff40;
}

.chat-title i {
    color: #02ff40;
    filter: drop-shadow(0 0 6px rgba(2, 255, 64, 0.3));
    font-size: 1.2rem;
}

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

.chat-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(153, 153, 153, 0.8);
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-btn:hover {
    color: #02ff40;
    background: rgba(2, 255, 64, 0.1);
    border-color: rgba(2, 255, 64, 0.2);
    transform: translateY(-1px);
}

/* BAGS button specific styling */
#chat-bags-btn,
#chat-bags-btn-mobile {
    color: #4a90e2;
    border-color: rgba(74, 144, 226, 0.2);
}

#chat-bags-btn:hover,
#chat-bags-btn-mobile:hover {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Messages */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 200px); /* Limit height to create scrollable area */
    min-height: 400px;
    padding-bottom: 80px; /* Add padding to prevent messages from being hidden behind input */
}

.message {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(37, 37, 37, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.message:hover {
    transform: translateY(-2px);
    background: rgba(37, 37, 37, 0.95);
    border-color: rgba(2, 255, 64, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.message-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.username {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge.buy {
    background: linear-gradient(135deg, #02ff40 0%, #02d835 100%);
    color: #0a0a0a;
    border: 1px solid rgba(2, 255, 64, 0.3);
}

.badge.sell {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.timestamp {
    color: #999;
    font-size: 0.8rem;
    margin-left: auto;
}

.message-text {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.token-alert {
    background: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

.alert-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.token-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.pnl.positive {
    color: #02ff40;
}

.pnl.negative {
    color: #ff4757;
}

.market-cap {
    color: #999;
    font-size: 0.9rem;
}

/* Chat Input */
.chat-input-container {
    padding: 1.5rem;
    background: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    z-index: 100;
    width: 100%;
    max-width: inherit;
}

.chat-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0.5rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    gap: 8px;
}

.message-input {
    flex: 1;
    background: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 24px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-right: 8px;
    z-index: 1001;
    position: relative;
    min-width: 0; /* Prevent flex item from overflowing */
}

.message-input::placeholder {
    color: rgba(153, 153, 153, 0.8);
    font-weight: 500;
}

.message-input:focus {
    outline: none;
    background: rgba(51, 51, 51, 0.95);
    border-color: rgba(2, 255, 64, 0.5);
    box-shadow: 0 0 0 3px rgba(2, 255, 64, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.send-btn {
    background: linear-gradient(135deg, #02ff40 0%, #02d835 100%);
    color: #0a0a0a;
    border: 1px solid rgba(2, 255, 64, 0.3);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(2, 255, 64, 0.3);
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 9999 !important; /* Extremely high z-index */
    pointer-events: auto !important;
    margin-left: 8px;
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: transform; /* Optimize for animations */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Improve touch responsiveness */
    -webkit-user-select: none;
    user-select: none;
    isolation: isolate; /* Create new stacking context */
}

.send-btn:hover {
    background: linear-gradient(135deg, #02d835 0%, #02c030 100%);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px rgba(2, 255, 64, 0.5);
}

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

/* Token Card */
.token-card {
    background: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.token-card:hover {
    transform: translateY(-3px);
    border-color: rgba(2, 255, 64, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.token-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.token-header i {
    color: #02ff40;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(2, 255, 64, 0.4));
}

.token-header span {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.token-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.token-price:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.token-contract {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a90e2;
    margin: 0.5rem 0;
    text-align: center;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.token-contract:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.4);
    transform: scale(1.02);
}

.token-change {
    color: rgba(153, 153, 153, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Private Rooms */
.private-rooms {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.private-room {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(51, 51, 51, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.private-room:hover {
    transform: translateY(-2px);
    background: rgba(51, 51, 51, 0.9);
    border-color: rgba(2, 255, 64, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.room-price {
    color: #02ff40;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Private Rooms List */
.private-rooms-list {
    margin-top: 1rem;
}

.private-room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(51, 51, 51, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.private-room-item:hover {
    transform: translateY(-1px);
    background: rgba(51, 51, 51, 0.9);
    border-color: rgba(2, 255, 64, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.private-room-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.private-room-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.private-room-date {
    font-size: 0.75rem;
    color: rgba(153, 153, 153, 0.8);
    margin-top: 0.2rem;
}

.private-room-join-btn {
    background: linear-gradient(135deg, #02ff40 0%, #02d835 100%);
    color: #0a0a0a;
    border: 1px solid rgba(2, 255, 64, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(2, 255, 64, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.private-room-join-btn:hover {
    background: linear-gradient(135deg, #02d835 0%, #02c030 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(2, 255, 64, 0.4);
}

.private-room-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.private-room-delete-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 71, 87, 0.3);
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.private-room-delete-btn:hover {
    background: linear-gradient(135deg, #ff3838 0%, #ff2929 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.private-room-count {
    font-size: 0.75rem;
    color: rgba(153, 153, 153, 0.8);
    margin-bottom: 0.5rem;
    text-align: center;
    font-style: italic;
}

.no-private-rooms {
    text-align: center;
    color: rgba(153, 153, 153, 0.8);
    font-size: 0.85rem;
    padding: 1rem;
    font-style: italic;
}

/* Private Rooms Subsections */
.private-rooms-subsection {
    margin-bottom: 1.5rem;
}

.private-rooms-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #02ff40;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Online Stats */
.online-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.stat-item i.online {
    color: #02ff40;
}

.online-users {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(51, 51, 51, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.user-item:hover {
    background: rgba(51, 51, 51, 0.8);
    border-color: rgba(2, 255, 64, 0.15);
    transform: translateX(3px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.username {
    flex: 1;
    font-size: 0.9rem;
}

.online-indicator {
    color: #02ff40;
    font-size: 0.6rem;
}

/* Remove old mobile menu toggle - replaced with bottom nav */

/* Mobile Tab System */
.mobile-tabs {
    display: none;
}

.tab-content {
    display: none;
    height: calc(100vh - 60px - 80px); /* Navbar height - Bottom nav height */
    overflow-y: auto;
    padding: 0;
}

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

.tab-header {
    padding: 1rem 1rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

.tab-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.tab-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.mobile-chat {
    height: calc(100vh - 60px - 80px);
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-chat .messages-container {
    flex: 1;
    margin-bottom: 0;
    padding: 1rem;
    padding-bottom: 80px; /* Adjusted padding to match new input position */
    height: calc(100vh - 120px); /* Adjusted height for mobile */
    overflow-y: auto; /* Ensure scrolling works */
}

.mobile-chat .chat-input-container {
    margin-bottom: 0;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 101;
    width: 100%;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
}

/* Hide mobile chat input container - it's now in bottom nav */
.mobile-chat-input-hidden {
    display: none !important;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Chat Input in Bottom Nav */
.mobile-chat-input {
    flex: 1;
    margin-right: 0.5rem;
    display: block;
    margin-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-chat-input .chat-input {
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 44px; /* Ensure minimum touch target size */
}

.mobile-chat-input .message-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    padding: 0;
    min-height: auto;
}

.mobile-chat-input .message-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-chat-input .send-btn {
    background: linear-gradient(135deg, #02ff40 0%, #02d835 100%);
    border: none;
    color: #0a0a0a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(2, 255, 64, 0.3);
    min-width: auto;
    padding: 0;
}

.mobile-chat-input .send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(2, 255, 64, 0.5);
}

.mobile-chat-input .send-btn i {
    font-size: 0.8rem;
    color: #0a0a0a;
}

/* Show chat input only on home tab */
.mobile-chat-input {
    display: block; /* Show by default since home tab is active */
}

/* Hide chat input when not on home tab */
.bottom-nav:not(.home-active) .mobile-chat-input {
    display: none;
}

/* iPhone-specific adjustments */
@supports (padding: max(0px)) {
    .bottom-nav {
        padding-bottom: max(0.25rem, env(safe-area-inset-bottom));
    }
    
    .mobile-chat-input {
        margin-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .mobile-chat .messages-container {
        padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
    }
    
    .main-container {
        margin-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    min-width: 50px;
    flex-shrink: 0;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item.active i {
    color: #02ff40;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(2, 255, 64, 0.4));
}

.nav-item.active span {
    color: #02ff40;
}

.nav-item.active {
    background: rgba(2, 255, 64, 0.1);
    border: 1px solid rgba(2, 255, 64, 0.2);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Alert Items for BAGS Tab */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    background: rgba(51, 51, 51, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.alert-item:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 255, 64, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.alert-details {
    color: rgba(153, 153, 153, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Desktop/Mobile Toggle Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 250px 1fr 250px;
    }
    
    .left-sidebar,
    .right-sidebar {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .mobile-tabs {
        display: block !important;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        position: relative;
        margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* Space for bottom nav and safe area */
        overflow: hidden; /* Prevent horizontal scroll */
        padding: 0; /* Remove all padding */
        width: 100vw; /* Full viewport width */
        margin-left: 0;
        margin-right: 0;
    }
    
    .navbar-content {
        padding: 0 1rem;
    }
    
    .message {
        padding: 1rem;
        margin: 0 0 1rem 0;
    }
    
    .token-alert {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Modal responsive adjustments for mobile */
    .modal {
        width: 98%;
        margin: 1%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stats-grid .stat-item {
        padding: 0.75rem;
    }
    
    .stats-grid .stat-number {
        font-size: 1.25rem;
    }
    
    .stats-grid .stat-label {
        font-size: 0.7rem;
    }

    /* Room name responsive adjustments for mobile */
    .room-name {
        max-width: 120px;
        font-size: 0.9rem;
    }
    
    .room-item {
        padding: 0.75rem 1rem;
    }
    
    .join-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Ensure mobile scrolling is smooth and hidden */
    .tab-content {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Full width layout adjustments */
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .navbar {
        width: 100vw;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .bottom-nav {
        width: 100vw;
        margin: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .message {
        gap: 0.75rem;
        margin: 0 0 0.75rem 0;
    }
    
    .message-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .nav-item {
        padding: 0.4rem 0.8rem;
        min-width: 50px;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    .nav-item span {
        font-size: 0.65rem;
    }
    
    .mobile-chat .messages-container {
        padding: 0.75rem;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* Adjusted for bottom nav with chat input and safe area */
    }
    
    .mobile-chat .chat-input-container {
        padding: 0.4rem 0.75rem;
        border-bottom: none;
    }
    
    /* Mobile chat input adjustments */
    .mobile-chat-input {
        margin-right: 0.25rem;
        margin-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .mobile-chat-input .chat-input {
        padding: 0.4rem 0.75rem;
        min-height: 44px;
    }
    
    .nav-item {
        padding: 0.4rem 0.5rem;
        min-width: 45px;
    }
    
    .tab-sections {
        padding: 0.75rem;
    }
    
    .tab-header {
        padding: 0.75rem 0.75rem 1rem 0.75rem;
    }
}

/* Scrollbar Styling - Desktop Only */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 6px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(51, 51, 51, 0.2);
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, rgba(2, 255, 64, 0.4) 0%, rgba(2, 216, 53, 0.4) 100%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, rgba(2, 255, 64, 0.6) 0%, rgba(2, 216, 53, 0.6) 100%);
    }
}

/* Hide scrollbars on mobile */
@media (max-width: 768px) {
    * {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    *::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
}

/* Additional iOS-style animations */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(2, 255, 64, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(2, 255, 64, 0.7));
    }
}

.left-sidebar {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.right-sidebar {
    animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.message {
    animation: fadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-icon {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Enhanced focus states */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid rgba(2, 255, 64, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Selection styling */
::selection {
    background: rgba(2, 255, 64, 0.3);
    color: #ffffff;
}

/* Guest Profile Styles */
.guest-profile-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.guest-profile-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 255, 64, 0.1);
}

.profile-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.guest-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    background: var(--surface-color);
    transition: all 0.3s ease;
}

.guest-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(2, 255, 64, 0.3);
}

.regenerate-btn {
    position: absolute;
    bottom: -5px;
    right: calc(50% - 50px);
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.regenerate-btn:hover {
    background: #00e04b;
    transform: scale(1.1) rotate(90deg);
}

.profile-info {
    text-align: center;
}

.username-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
}

.username-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(2, 255, 64, 0.2);
}

.username-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    outline: none;
}

.username-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.save-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    opacity: 0.7;
}

.save-btn:hover {
    background: #00e04b;
    transform: scale(1.05);
    opacity: 1;
}

.guest-id {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    display: inline-block;
    font-family: 'Courier New', monospace;
}

.guest-id span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Profile button in navbar */
.nav-btn.profile-active {
    background: rgba(2, 255, 64, 0.1);
    color: var(--accent-color);
}

.nav-btn.profile-active:hover {
    background: rgba(2, 255, 64, 0.2);
}

/* Animation for profile updates */
.profile-update-animation {
    animation: profilePulse 0.6s ease-out;
}

@keyframes profilePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Desktop profile variant (right sidebar) */
.desktop-profile {
    padding: 15px;
    margin-bottom: 15px;
}

.desktop-profile .guest-avatar {
    width: 60px;
    height: 60px;
}

.desktop-profile .regenerate-btn {
    right: calc(50% - 35px);
    width: 25px;
    height: 25px;
    font-size: 10px;
}

.desktop-profile .username-input {
    font-size: 14px;
}

.desktop-profile .guest-id {
    font-size: 11px;
    padding: 4px 8px;
}

/* Wallet Authentication Styles */
.wallet-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.action-btn.connected {
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
    border: 2px solid var(--accent-color);
}

.action-btn.connected:hover {
    background: #00e04b;
    border-color: #00e04b;
}

.action-btn.disconnect {
    background: #ff4444;
    color: white;
    border: 2px solid #ff4444;
    font-size: 14px;
    padding: 8px 16px;
}

.action-btn.disconnect:hover {
    background: #ff6666;
    border-color: #ff6666;
    transform: translateY(-2px);
}

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

.wallet-modal {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.wallet-modal-header {
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d1117;
}

.wallet-modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.wallet-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wallet-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.wallet-modal-content {
    padding: 20px 24px 24px 24px;
    background: #1a1a1a;
}

.wallet-modal-content p {
    color: #a0a0a0;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.wallet-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 255, 64, 0.1), rgba(0, 200, 50, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallet-option:hover {
    border-color: #02ff40;
    background: #161b22;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(2, 255, 64, 0.2),
                0 0 0 1px rgba(2, 255, 64, 0.1);
}

.wallet-option:hover::before {
    opacity: 1;
}

.wallet-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.wallet-name {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Wallet Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Coming Soon Styles */
.coming-soon {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background: rgba(2, 255, 64, 0.05);
    border: 1px dashed rgba(2, 255, 64, 0.3);
    margin: 10px 0;
}

.coming-soon-text {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Add Room Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: #1a1a1a;
    border-radius: 16px;
    border: 2px solid #333333;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 2.5%;
}

.modal-header {
    background: #0d1117;
    padding: 24px 24px 20px 24px;
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

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

.modal-content {
    padding: 24px;
    background: #1a1a1a;
}

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

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

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(2, 255, 64, 0.2);
}

.form-group input[type="text"]::placeholder {
    color: #6e7681;
    font-family: inherit;
}

.form-help {
    display: block;
    color: #8b949e;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.4;
}

.rate-limit-info {
    background: rgba(2, 255, 64, 0.05);
    border: 1px solid rgba(2, 255, 64, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-limit-info i {
    color: var(--accent-color);
    font-size: 14px;
}

.rate-limit-info span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.rate-limit-info.warning {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.2);
}

.rate-limit-info.warning i {
    color: #ffc107;
}

.rate-limit-info.error {
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

.rate-limit-info.error i {
    color: #dc3545;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.btn-primary {
    background: #02ff40 !important;
    color: #000000 !important;
    border: 1px solid #02ff40 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(2, 255, 64, 0.4) !important;
}

.btn-primary:hover {
    background: #01e03a !important;
    border-color: #01e03a !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(2, 255, 64, 0.5) !important;
}

.btn-primary:disabled {
    background: #6e7681 !important;
    border-color: #6e7681 !important;
    color: #8b949e !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.btn:disabled:hover {
    background: #6e7681;
    border-color: #6e7681;
    transform: none;
    box-shadow: none;
}

.validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .guest-profile-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .guest-avatar {
        width: 60px;
        height: 60px;
    }
    
    .regenerate-btn {
        right: calc(50% - 35px);
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .username-input {
        font-size: 14px;
    }

    .wallet-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .wallet-modal {
        width: 95%;
        margin: 20px;
        max-width: 380px;
    }

    .wallet-modal-header {
        padding: 20px 20px 16px 20px;
    }

    .wallet-modal-header h3 {
        font-size: 18px;
    }

    .wallet-modal-content {
        padding: 16px 20px 20px 20px;
    }

    .wallet-option {
        padding: 14px 16px;
        font-size: 15px;
        gap: 14px;
    }

    .wallet-icon {
        width: 32px;
        height: 32px;
    }

    .wallet-modal-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .coming-soon {
        padding: 15px;
    }

    .coming-soon-text {
        font-size: 14px;
    }
}

/* Find Room Modal Styles */
.search-section {
    margin-bottom: 1.5rem;
}

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

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    right: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.rooms-list {
    max-height: 300px;
    overflow-y: auto;
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
    gap: 0.5rem;
}

.no-rooms-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    gap: 0.5rem;
    font-style: italic;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #dc3545;
    gap: 0.5rem;
}

.approved-room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.approved-room-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.room-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.room-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.room-join-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-join-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Info Modal Styles */
.info-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-section h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stats-grid .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stats-grid .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.rules-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.rules-list li:before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
}

/* Settings Modal Styles */
.settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1;
}

.setting-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.setting-item input[type="checkbox"] {
    accent-color: var(--accent-color);
}

.setting-item select {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    min-width: 120px;
}

.setting-item .btn {
    margin: 0;
}

/* System Messages */
.system-message {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.system-message-content {
    background: rgba(2, 255, 64, 0.1);
    border: 1px solid rgba(2, 255, 64, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    max-width: 400px;
    text-align: center;
}

.system-message-content i {
    flex-shrink: 0;
} 