:root {
            --bg-primary: #121212;
            --bg-secondary: #1e1e1e;
            --bg-tertiary: #2d2d2d;
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --accent: #5865f2;
            --accent-hover: #4752c4;
            --success: #43b581;
            --danger: #f04747;
            --warning: #faa61a;
            --online: #3ba55d;
            --idle: #faa61a;
            --dnd: #ed4245;
            --offline: #747f8d;
        }

        .light-mode {
            --bg-primary: #ffffff;
            --bg-secondary: #f2f3f5;
            --bg-tertiary: #e3e5e8;
            --text-primary: #060607;
            --text-secondary: #4f5660;
            --accent: #5865f2;
            --accent-hover: #4752c4;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            transition: all 0.3s ease;
            overflow-x: hidden;
        }

        /* Logo Bar Styles */
        .logo-bar {
            height: 60px;
            background-color: var(--bg-secondary);
            border-bottom: 1px solid var(--bg-tertiary);
            display: flex;
            align-items: center;
            padding: 0 20px;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--accent), #7945ff);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-text {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(90deg, var(--accent), #43b581);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .logo-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .action-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-tertiary);
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .action-icon:hover {
            background-color: var(--accent);
            transform: translateY(-2px);
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-container {
            display: flex;
            align-items: center;
            background-color: var(--bg-tertiary);
            border-radius: 20px;
            padding: 5px 15px;
            width: 250px;
            transition: all 0.3s ease;
        }

        .search-container input {
            background: transparent;
            border: none;
            color: var(--text-primary);
            outline: none;
            width: 100%;
            padding: 5px;
        }

        .theme-toggle-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-tertiary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .theme-toggle-icon:hover {
            background-color: var(--accent);
            transform: translateY(-2px);
        }

        /* App Container */
        .app-container {
            display: flex;
            height: calc(100vh - 60px);
        }

        /* Sidebar Styles */
        .sidebar {
            width: 240px;
            background-color: var(--bg-secondary);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
            z-index: 1000;
            overflow-y: auto;
        }

        .sidebar-header {
            padding: 16px;
            border-bottom: 1px solid var(--bg-tertiary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-title {
            font-weight: 600;
            font-size: 16px;
        }

        .create-channel-btn {
            background-color: var(--bg-tertiary);
            border: none;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .create-channel-btn:hover {
            background-color: var(--accent);
        }

        .server-list {
            padding: 16px;
            overflow-y: auto;
        }

        .server-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background-color: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .server-icon:hover {
            border-radius: 16px;
            background-color: var(--accent);
        }

        .server-icon.active {
            border-radius: 16px;
            background-color: var(--accent);
        }

        .channel-list {
            padding: 16px;
            flex: 1;
            overflow-y: auto;
        }

        .channel-category {
            text-transform: uppercase;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-top: 16px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .add-channel-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
        }

        .channel-item {
            display: flex;
            align-items: center;
            padding: 8px;
            border-radius: 4px;
            margin-bottom: 4px;
            cursor: pointer;
            color: var(--text-secondary);
        }

        .channel-item:hover {
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .channel-item.active {
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .channel-item i {
            margin-right: 8px;
        }

        .channel-notification {
            margin-left: auto;
            background-color: var(--accent);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
        }

        /* Main Content Area */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .section {
            display: none;
            flex: 1;
            overflow-y: auto;
            flex-direction: column;
        }

        .section.active {
            display: flex;
        }

        .chat-header {
            height: 48px;
            background-color: var(--bg-secondary);
            border-bottom: 1px solid var(--bg-tertiary);
            display: flex;
            align-items: center;
            padding: 0 16px;
            justify-content: space-between;
        }

        .channel-header {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }

        .channel-header i {
            margin-right: 0;
            display: flex;
            align-items: center;
        }

        .channel-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .voice-btn,
        .video-btn,
        .member-list-btn,
        .invite-btn {
            width: 32px;
            height: 32px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-tertiary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .voice-btn:hover,
        .video-btn:hover,
        .member-list-btn:hover,
        .invite-btn:hover {
            background-color: var(--accent);
        }

        .messages-container {
            flex: 1;
            padding: 16px;
            overflow-y: auto;
        }

        .message {
            display: flex;
            margin-bottom: 16px;
        }

        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--accent);
            margin-right: 16px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .message-content {
            flex: 1;
        }

        .message-header {
            display: flex;
            align-items: baseline;
            margin-bottom: 4px;
            position: relative;
        }

        .username {
            font-weight: 600;
            margin-right: 8px;
        }

        .timestamp {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .message-text {
            color: var(--text-primary);
        }

        .input-area {
            padding: 16px;
            background-color: var(--bg-secondary);
            display: flex;
            align-items: center;
            gap: 10px;
            position: sticky;
            bottom: 0;
            z-index: 10;
        }

        .message-input-container {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            background-color: var(--bg-tertiary);
            border-radius: 8px;
            padding: 0 10px;
        }

        .message-input {
            background: transparent;
            border: none;
            color: var(--text-primary);
            outline: none;
            width: 100%;
            padding: 12px 0;
            resize: none;
            height: 44px;
        }

        .emoji-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 18px;
            padding: 5px;
        }

        .emoji-btn:hover {
            color: var(--text-primary);
        }

        .send-btn {
            background-color: var(--accent);
            border: none;
            border-radius: 4px;
            color: white;
            padding: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
        }

        .send-btn:hover {
            background-color: var(--accent-hover);
        }

        /* Friends Section */
        .friends-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            padding: 20px;
        }

        .friend-card {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
            cursor: pointer;
        }

        .friend-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
        }

        .friend-info {
            flex: 1;
        }

        .friend-name {
            font-weight: 600;
            margin-bottom: 4px;
            position: relative;
        }

        .friend-status {
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .online {
            background-color: var(--online);
        }

        .friend-actions {
            display: flex;
            gap: 10px;
        }

        /* Friend options menu */
        .friend-options-menu {
            position: absolute;
            top: calc(100% + 5px);
            right: 0;
            width: 200px;
            background-color: var(--bg-secondary);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            z-index: 1001;
            display: none;
        }

        .friend-card.menu-open {
            z-index: 1000;
        }

        .friend-option {
            padding: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .friend-option:hover {
            background-color: var(--bg-tertiary);
        }

        /* Games Section */
        .games-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            padding: 20px;
        }

        .game-card {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .game-card:hover {
            transform: translateY(-5px);
        }

        .game-image {
            height: 150px;
            background-color: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
        }

        .game-info {
            padding: 16px;
        }

        .game-title {
            font-weight: 600;
            margin-bottom: 8px;
        }

        .game-description {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }

        .game-players {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* Digital Stash Section */
        .stash-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 20px;
        }

        .stash-tabs {
            display: flex;
            gap: 10px;
            border-bottom: 1px solid var(--bg-tertiary);
            padding-bottom: 10px;
        }

        .stash-tab {
            padding: 8px 16px;
            background-color: var(--bg-tertiary);
            border-radius: 4px;
            cursor: pointer;
        }

        .stash-tab.active {
            background-color: var(--accent);
        }

        .stash-content {
            display: none;
        }

        .stash-content.active {
            display: block;
        }

        .shop-container,
        .inventory-container,
        .services-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .shop-item,
        .inventory-item,
        .service-item {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            overflow: hidden;
        }

        .item-image {
            height: 150px;
            background-color: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
        }

        .item-info {
            padding: 16px;
            position: relative;
        }

        .item-title {
            font-weight: 600;
            margin-bottom: 8px;
        }

        .item-description {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 12px;
        }

        .item-price {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .price {
            font-weight: 600;
            color: var(--accent);
        }

        .buy-btn {
            padding: 6px 12px;
            background-color: var(--accent);
            border-radius: 4px;
            cursor: pointer;
        }

        .buy-btn:hover {
            background-color: var(--accent-hover);
        }

        /* Settings Section */
        .settings-container {
            max-width: 800px;
            padding: 20px;
            margin-bottom: 60px;
            overflow-y: auto;
        }

        .settings-group {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .settings-title {
            font-weight: 600;
            margin-bottom: 16px;
            font-size: 18px;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--bg-tertiary);
        }

        .setting-item:last-child {
            border-bottom: none;
        }

        .setting-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .setting-name {
            font-weight: 600;
            margin-bottom: 4px;
        }

        .setting-description {
            font-size: 14px;
            color: var(--text-secondary);
        }

        /* Right Sidebar */
        .right-sidebar {
            width: 240px;
            background-color: var(--bg-secondary);
            padding: 16px;
            transition: transform 0.3s ease;
            overflow-y: auto;
            height: calc(100vh - 60px);
        }

        .member-list {
            margin-top: 16px;
            position: relative;
        }

        .member-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .member-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--accent);
            margin-right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            position: relative;
        }

        .status-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            position: absolute;
            bottom: 0;
            right: 0;
            border: 2px solid var(--bg-secondary);
        }

        .status-indicator.online {
            background-color: var(--online);
        }

        .status-indicator.idle {
            background-color: var(--idle);
        }

        .status-indicator.dnd {
            background-color: var(--dnd);
        }

        .status-indicator.offline {
            background-color: var(--offline);
        }

        /* Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--bg-secondary);
            display: flex;
            justify-content: space-around;
            padding: 8px;
            z-index: 1000;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-secondary);
            cursor: pointer;
        }

        .nav-item.active {
            color: var(--accent);
            transform: translateY(-5px);
        }

        .nav-item i {
            font-size: 20px;
            margin-bottom: 4px;
            transition: color 0.3s ease;
        }

        .nav-label {
            font-size: 12px;
            transition: color 0.3s ease;
        }

        /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        /* Modals */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            display: none;
        }

        .modal-content {
            background-color: var(--bg-secondary);
            border-radius: 8px;
            padding: 24px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--bg-tertiary);
            padding-bottom: 10px;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }

        .close-modal {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 24px;
            cursor: pointer;
        }

        .auth-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--bg-tertiary);
        }

        .auth-tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            color: var(--text-secondary);
        }

        .auth-tab.active {
            border-bottom: 2px solid var(--accent);
            color: var(--accent);
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border-radius: 4px;
            border: 1px solid var(--bg-tertiary);
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
        }

        .auth-btn,
        .form-btn {
            width: 100%;
            padding: 12px;
            background-color: var(--accent);
            border: none;
            border-radius: 4px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            margin-top: 10px;
        }

        .auth-btn:hover,
        .form-btn:hover {
            background-color: var(--accent-hover);
        }

        /* Notification Panel */
        .notification-panel {
            position: absolute;
            top: 50px;
            right: 20px;
            width: 300px;
            background-color: var(--bg-secondary);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            display: none;
        }

        .notification-header {
            padding: 16px;
            border-bottom: 1px solid var(--bg-tertiary);
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .clear-notifications {
            color: var(--accent);
            cursor: pointer;
            font-size: 12px;
        }

        .notification-list {
            max-height: 300px;
            overflow-y: auto;
        }

        .notification-item {
            padding: 12px 16px;
            border-bottom: 1px solid var(--bg-tertiary);
            cursor: pointer;
        }

        .notification-item:hover {
            background-color: var(--bg-tertiary);
            border-radius: 4px;
        }

        .notification-title {
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .notification-content {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .notification-time {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        /* Emoji Picker */
        .emoji-picker {
            position: absolute;
            bottom: 60px;
            right: 10px;
            width: 300px;
            height: 200px;
            background-color: var(--bg-secondary);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            display: none;
            padding: 10px;
            overflow-y: auto;
        }

        .emoji-category {
            margin-bottom: 10px;
        }

        .emoji-category-title {
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .emoji-grid {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 5px;
        }

        .emoji {
            font-size: 20px;
            cursor: pointer;
            text-align: center;
            padding: 5px;
            border-radius: 4px;
            transition: background-color 0.2s ease;
        }

        .emoji:hover {
            background-color: var(--bg-tertiary);
        }

        /* Mobile Sidebar Toggle */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 20px;
            cursor: pointer;
            margin-right: 10px;
        }

        /* Friend invite items */
        .friend-invite-item {
            display: flex;
            align-items: center;
            padding: 10px;
            margin-bottom: 10px;
            background-color: var(--bg-tertiary);
            border-radius: 8px;
        }

        .invite-button {
            margin-left: auto;
            padding: 6px 12px;
            background-color: var(--accent);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
        }

        /* Invite link section */
        .invite-link-section {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid var(--bg-tertiary);
        }

        .invite-link-title {
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-primary);
        }

        .invite-link-container {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .invite-link-input {
            flex: 1;
            padding: 10px;
            border-radius: 4px;
            background-color: var(--bg-tertiary);
            border: 1px solid var(--bg-tertiary);
            color: var(--text-primary);
        }

        .copy-link-btn {
            padding: 10px 15px;
            background-color: var(--accent);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .copy-link-btn:hover {
            background-color: var(--accent-hover);
        }

        .share-options {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .share-btn {
            flex: 1;
            padding: 8px;
            border-radius: 4px;
            background-color: var(--bg-tertiary);
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .share-btn:hover {
            background-color: var(--accent);
        }

        /* Profile Modal */
        .profile-modal-content {
            max-width: 600px;
        }

        .profile-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            font-weight: bold;
            position: relative;
        }

        .profile-status {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            position: absolute;
            bottom: 0;
            right: 0;
            border: 3px solid var(--bg-secondary);
        }

        .profile-details {
            flex: 1;
        }

        .profile-username {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .profile-status-text {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .profile-bio {
            background-color: var(--bg-tertiary);
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
        }

        .profile-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin: 20px 0;
        }

        .stat-item {
            background-color: var(--bg-tertiary);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 5px;
            position: relative;
        }

        .stat-label {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .profile-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .profile-action-btn {
            flex: 1;
            padding: 12px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 600;
        }

        .message-btn {
            background-color: var(--accent);
            color: white;
        }

        .message-btn:hover {
            background-color: var(--accent-hover);
        }

        .call-btn {
            background-color: var(--success);
            color: white;
        }

        .call-btn:hover {
            background-color: #3ba55d;
        }

        .more-btn {
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
            width: 50px;
        }

        .more-btn:hover {
            background-color: var(--accent);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .sidebar {
                position: absolute;
                left: 0;
                transform: translateX(-100%);
                height: calc(100vh - 60px);
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .right-sidebar {
                position: absolute;
                right: 0;
                transform: translateX(100%);
                height: calc(100vh - 60px);
            }

            .right-sidebar.active {
                transform: translateX(0);
            }

            .mobile-menu-btn {
                display: block;
            }

            /* Show user icon on mobile */
            .logo-actions .action-icon:nth-child(4),
            .logo-actions .action-icon:nth-child(5) {
                display: flex;
            }

            .logo-text {
                font-size: 18px;
            }

            .search-container {
                width: 40px;
                overflow: hidden;
                padding: 5px;
            }

            .search-container.active {
                width: 200px;
                padding: 5px 15px;
            }

            .search-container input {
                display: none;
            }

            .search-container.active input {
                display: block;
            }

            /* Show voice and video buttons on mobile for DMs */
            .dm-channel .channel-actions .voice-btn,
            .dm-channel .channel-actions .video-btn {
                display: flex;
            }
        }

        @media (max-width: 768px) {
            .logo-bar {
                padding: 0 12px;
            }

            .logo-text {
                font-size: 16px;
            }

            .logo {
                width: 32px;
                height: 32px;
            }

            .friends-container,
            .games-container,
            .shop-container,
            .inventory-container,
            .services-container {
                grid-template-columns: 1fr;
            }

            .stash-tabs {
                flex-wrap: wrap;
            }

            .bottom-nav {
                display: flex;
            }

            .main-content {
                padding-bottom: 60px;
            }

            .profile-header {
                flex-direction: column;
                text-align: center;
            }

            .profile-stats {
                grid-template-columns: 1fr;
            }

            .profile-actions {
                flex-direction: column;
            }

            .invite-link-container {
                flex-direction: column;
            }
        }

        @media (min-width: 769px) {
            .bottom-nav {
                display: none;
            }
        }

        /* Direct message specific styles */
        .dm-channel .channel-actions .voice-btn,
        .dm-channel .channel-actions .video-btn {
            display: flex;
        }

        .dm-channel .channel-actions .member-list-btn,
        .dm-channel .channel-actions .invite-btn {
            display: none;
        }

        /* Animation for notifications */
        @keyframes slideIn {
            from {
                transform: translateY(-10px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .notification-item {
            animation: slideIn 0.3s ease;
        }

        /* Animation for friend cards */
        .friend-card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .friend-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
		
		.unread-badge {
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-left: auto;
}

.channel-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
}

.channel-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.channel-item.active {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Notification Bell Styles */
.action-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-icon:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Notification Panel Styles */
.notification-panel {
  position: absolute;
  top: 50px;
  right: 20px;
  width: 350px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  border: 1px solid var(--bg-tertiary);
}

.notification-header {
  padding: 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clear-notifications {
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: normal;
}

.clear-notifications:hover {
  text-decoration: underline;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background-color: var(--bg-tertiary);
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-content {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.notification-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.notification-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
}

/* Animation for notifications */
@keyframes notificationPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.notification-pulse {
  animation: notificationPulse 0.5s ease;
}

/* Friends section styles */
.friends-container {
  padding: 20px;
}

.friends-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.friends-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.friends-tab.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.friends-list {
  display: none;
}

.friends-list.active {
  display: block;
}

.friend-item, .friend-request-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.friend-item:hover, .friend-request-item:hover {
  background-color: var(--hover-color);
}

.friend-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  overflow: hidden;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-weight: 600;
}

.friend-status, .request-text {
  font-size: 0.9em;
  color: var(--text-muted);
}

.friend-actions, .request-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.action-btn:hover {
  background-color: var(--hover-color);
  color: var(--text-color);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* User profile modal */
/* Add this to your CSS file */
/* Add this to your CSS file */
#userProfileModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#userProfileModal .modal-content {
  background-color: #36393f;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  color: #fff;
}

#closeUserProfile {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #b9bbbe;
  background: none;
  border: none;
  z-index: 1001;
}

#closeUserProfile:hover {
  color: #fff;
}

.profile-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

#profileAvatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid #7289da;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#profileUsername {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#profileStatus {
  font-size: 14px;
  color: #b9bbbe;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.online {
  background-color: #43b581;
  box-shadow: 0 0 6px #43b581;
}

.status-indicator.idle {
  background-color: #faa61a;
  box-shadow: 0 0 6px #faa61a;
}

.status-indicator.dnd {
  background-color: #f04747;
  box-shadow: 0 0 6px #f04747;
}

.status-indicator.offline {
  background-color: #747f8d;
  box-shadow: 0 0 6px #747f8d;
}

.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.profile-actions .btn {
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  font-size: 14px;
  border: none;
  outline: none;
}

.profile-actions .btn.primary {
  background-color: #7289da;
  color: white;
}

.profile-actions .btn.primary:hover {
  background-color: #677bc4;
}

.profile-actions .btn.secondary {
  background-color: #4f545c;
  color: #fff;
}

.profile-actions .btn.secondary:hover {
  background-color: #5d6269;
}

.profile-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.profile-actions .btn:disabled:hover {
  background-color: #7289da;
}

/* Background blur effect */
#userProfileModal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(5px);
  z-index: -1;
}

/* Animation for modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#userProfileModal .modal-content {
  animation: modalFadeIn 0.2s ease-out;
}

/* Toast notifications */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #36393f;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid #7289da;
}

.toast-notification.success {
  border-left-color: #43b581;
}

.toast-notification.error {
  border-left-color: #f04747;
}

.toast-notification.info {
  border-left-color: #7289da;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Add to your CSS file */
.dm-category {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.dm-channel .channel-hash {
  color: #7289da;
}

.dm-channel .channel-hash i {
  font-size: 12px;
}

.dm-channel {
  opacity: 0.8;
}

.dm-channel:hover {
  opacity: 1;
}

/* Add to your CSS file */
.voice-chat-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.voice-participants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.voice-participant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--bg-secondary);
}

.voice-participant.muted {
  opacity: 0.7;
}

.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.participant-name {
  flex: 1;
  font-weight: 500;
}

.participant-status {
  font-size: 0.8em;
  color: var(--text-muted);
}

.voice-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.voice-control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  transition: all 0.2s ease;
}

.voice-control-btn:hover {
  background-color: var(--bg-tertiary);
}

.voice-control-btn.active {
  background-color: var(--danger);
  color: white;
}

.voice-control-btn.leave-btn {
  background-color: var(--danger);
  color: white;
}

.voice-control-btn.leave-btn:hover {
  background-color: var(--danger-hover);
}

.voice-connection-status {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Voice Channel Styles */
.voice-category {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.voice-channel .channel-hash {
  color: #43b581; /* Green color for voice channels */
}

.voice-channel .channel-hash i {
  font-size: 12px;
}

.voice-channel {
  opacity: 0.8;
}

.voice-channel:hover {
  opacity: 1;
}

/* Game Channel Styles */
.game-category {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.game-channel .channel-hash {
  color: #faa61a; /* Orange color for game channels */
}

.game-channel .channel-hash i {
  font-size: 12px;
}

.game-channel {
  opacity: 0.8;
}

.game-channel:hover {
  opacity: 1;
}

/* Text Channel Styles */
.text-category {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.text-channel .channel-hash {
  color: #8e9297; /* Default text color for text channels */
}

.text-channel {
  opacity: 0.8;
}

.text-channel:hover {
  opacity: 1;
}

/* Add to your CSS file */
.voice-participant {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: background-color 0.2s;
}

.voice-participant:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.voice-participant.local {
  background-color: rgba(114, 137, 218, 0.2);
}

.voice-participant.muted {
  opacity: 0.7;
}

.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #7289da;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-weight: bold;
  color: white;
}

.participant-name {
  flex: 1;
  font-weight: 500;
  color: white;
}

.participant-status {
  font-size: 0.8em;
  color: #b9bbbe;
}

.voice-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 10px;
}

.voice-control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #7289da;
  color: white;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.voice-control-btn:hover {
  background-color: #677bc4;
}

.voice-control-btn.active {
  background-color: #f04747;
}

.voice-connection-status {
  text-align: center;
  margin-top: 15px;
  color: #b9bbbe;
  font-style: italic;
}

#voiceParticipants {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

/* --- Voice Banner --- */
.voice-banner {
  background: #2f3136;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-left: 10px;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}

.voice-banner-actions {
  display: flex;
  gap: 8px;
}

.voice-banner .btn.small {
  background: #5865f2;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.voice-banner .btn.small:hover {
  background: #4752c4;
}

/* --- Voice Live Badge (header + channel list) --- */
.voice-live-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: bold;
  white-space: nowrap;
}

.voice-live-badge.clickable {
  cursor: pointer;
  transition: background 0.2s, transform 0.15s ease;
}

.voice-live-badge.clickable:hover {
  background: #c0392b;
  transform: scale(1.05);
}

/* --- Member List Voice Indicator --- */
.member-item {
  position: relative;
}

.voice-indicator {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #2ecc71; /* green */
  border-radius: 50%;
}

.voice-indicator.clickable {
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, background 0.2s;
}

.voice-indicator.clickable:hover {
  transform: scale(1.3);
  background: #27ae60;
}

.voice-status {
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: bold;
  margin: 10px 0;
  text-align: center;
}
.voice-status.connecting {
  background-color: #2196f3;
  color: white;
}
.voice-status.waiting {
  background-color: #ff9800;
  color: white;
}

.voice-status.connected {
  background-color: #4caf50;
  color: white;
}

.voice-status.error {
  background-color: #f44336;
  color: white;
}

.voice-status.disconnected {
  background-color: #9e9e9e;
  color: white;
}

.voice-banner .join-btn {
  background-color: #4caf50;
  color: white;
  border: none;
}

.voice-banner .dismiss-btn {
  background-color: #f44336;
  color: white;
  border: none;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.channel-item {
  position: relative;
}

.channel-item .voice-live-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: bold;
}

.voice-live-badge.clickable {
  cursor: pointer;
  transition: background 0.2s;
}

.voice-live-badge.clickable:hover {
  background: #c0392b;
}

/* Friends Section - Updated to match existing theme */
#friendsSection {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100%;
  overflow-y: auto;
  padding: 0;
}

.friends-header {
  padding: 16px;
  border-bottom: 1px solid var(--bg-tertiary);
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friends-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.friends-search {
  display: flex;
  gap: 10px;
}

.friends-search input {
  flex: 1;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--bg-tertiary);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-primary);
}

.friends-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.friends-tabs {
  display: flex;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.friends-tabs .tab {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}

.friends-tabs .tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.friends-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friend-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.friend-item:hover {
  background-color: var(--bg-tertiary);
}

.friend-item.pending {
  background-color: rgba(114, 137, 218, 0.1);
}

.friend-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  flex-shrink: 0;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

.status-indicator.online {
  background-color: var(--online);
}

.status-indicator.idle {
  background-color: var(--idle);
}

.status-indicator.dnd {
  background-color: var(--dnd);
}

.status-indicator.offline {
  background-color: var(--offline);
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.friend-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.friend-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.empty-state p {
  margin: 0 0 20px 0;
  opacity: 0.7;
}

/* Mobile improvements */
@media (max-width: 768px) {
  /* Hide right sidebar on mobile */
  .right-sidebar {
    display: none !important;
  }
  
  /* Friends section mobile optimization */
  .friends-header {
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .friends-search {
    flex-direction: column;
  }
  
  .friends-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .friends-tabs .tab {
    padding: 12px;
    font-size: 14px;
  }
  
  .friend-item {
    padding: 10px;
  }
  
  /* Bottom nav improvements */
  .bottom-nav {
    padding: 6px;
  }
  
  .nav-item {
    padding: 4px;
  }
  
  .nav-item i {
    font-size: 18px;
  }
  
  .nav-label {
    font-size: 10px;
  }
}

/* Ensure proper section visibility on mobile */
@media (max-width: 1024px) {
  .section {
    width: 100%;
  }
  
  .section.active {
    display: block !important;
  }
}
/* Notification styles */
.notification-toast {
  background-color: #36393f;
  border-left: 4px solid #7289da;
  color: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  max-width: 350px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.notification-text {
  font-size: 14px;
  color: #b9bbbe;
}

.notification-close {
  background: none;
  border: none;
  color: #b9bbbe;
  cursor: pointer;
  font-size: 18px;
  margin-left: 10px;
}

.notification-close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  /* Only show active sections */
  .section {
    display: none;
  }
  
  .section.active {
    display: block;
    height: calc(100vh - 120px);
    overflow-y: auto;
  }
  
  /* Specific styling for friends section on mobile */
  #friendsSection.active {
    padding: 10px;
  }
  
  .friend-item {
    padding: 12px;
  }
  
  /* Make friend tabs tappable on mobile */
  .friends-tabs .tab {
    padding: 12px;
    font-size: 14px;
  }
}


@media (max-width: 768px) {
  /* Ensure profile icon is always visible */
  #userIcon {
    display: flex !important;
  }
  
  /* Improve touch targets */
  .action-icon, .nav-item, .channel-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Bottom navigation enhancements */
  .bottom-nav {
    backdrop-filter: blur(10px);
    background-color: rgba(var(--bg-secondary-rgb), 0.9);
  }
  
  /* Right sidebar mobile view */
  .right-sidebar {
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Message input improvements */
  .message-input {
    border-radius: 20px;
  }
}

/* Touch feedback state */
.touch-active {
  opacity: 0.7;
  transform: scale(0.95);
}

/* Prevent content shift when scrollbar appears */
html {
  overflow-x: hidden;
  margin-right: calc(-1 * (100vw - 100%));
}

/* Improve scrolling on mobile */
.messages-container, .channel-list, .member-list {
  -webkit-overflow-scrolling: touch;
}

/* Better modal handling on mobile */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .modal-content {
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* Search styles */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 8px 12px;
  margin-right: 10px;
}

.search-container i {
  color: var(--text-muted);
  margin-right: 8px;
}

.search-container input {
  background: transparent;
  border: none;
  color: var(--text-normal);
  outline: none;
  width: 180px;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 5px;
  display: none;
}

.search-results-dropdown.show {
  display: block;
}

.search-result-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--bg-tertiary);
  color: var(--text-normal);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-tertiary);
}

.search-result-icon {
  width: 20px;
  text-align: center;
}

.search-results-container {
  padding: 20px;
}

.search-results-container .search-result-item {
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.error {
  padding: 20px;
  text-align: center;
  color: var(--error-color);
}

/* Ensure search section is properly displayed */
#searchSection {
  display: none;
  flex-direction: column;
}

#searchSection.active {
  display: flex;
}

/* Search Pagination Styles */
.search-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 15px;
  border-top: 1px solid var(--bg-tertiary);
}

.pagination-btn {
  background-color: var(--bg-tertiary);
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover {
  background-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.pagination-btn.active {
  background-color: var(--accent);
  color: var(--text-primary);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .search-pagination {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .pagination-btn {
    padding: 6px 10px;
    min-width: 36px;
    font-size: 13px;
  }
}