/* ORBLY ULTRA PREMIUM V4 - DYNAMIC THEME ENGINE & RESPONSIVE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-gradient: radial-gradient(circle at top right, #1e1b4b 0%, #0f111a 60%, #050508 100%);
    --bg-servers: rgba(10, 11, 18, 0.8);
    --bg-channels: rgba(20, 23, 38, 0.65);
    --bg-chat: rgba(27, 31, 50, 0.4);
    --bg-members: rgba(15, 17, 26, 0.6);
    --bg-accent: #8b5cf6; 
    --bg-accent-glow: #6366f1; 
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --input-bg: rgba(15, 17, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --modal-bg: linear-gradient(180deg, #141726 0%, #0d0f18 100%);
    --btn-text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg-gradient); color: var(--text-main); overflow: hidden; height: 100vh; width: 100vw; transition: all 0.5s ease; }
.hidden { display: none !important; }

/* ANIMATIONS */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; }

/* ========================================= */
/* 🌟 ULTRA PREMIUM NON-AI LANDING PAGE      */
/* ========================================= */

.landing-container { display: flex; flex-direction: column; height: 100vh; width: 100vw; background: #030305; position: fixed; top: 0; left: 0; z-index: 998; overflow-y: auto; overflow-x: hidden; }

/* Subtle Technical Grid Background */
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 40px 40px; z-index: 0; mask-image: radial-gradient(circle at center, black, transparent 80%); -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%); pointer-events: none;}

/* Cinematic Light Orbs */
.ambient-light { position: absolute; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.light-1 { top: -20%; left: -10%; width: 50vw; height: 50vw; background: rgba(139, 92, 246, 0.3); animation: drift 12s infinite alternate ease-in-out; }
.light-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: rgba(99, 102, 241, 0.2); animation: drift 15s infinite alternate-reverse ease-in-out; }
@keyframes drift { 0% { transform: translate(0, 0); } 100% { transform: translate(60px, 60px); } }

/* Modern Minimalist Nav */
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 5%; width: 100%; max-width: 1400px; margin: 0 auto; z-index: 1; position: relative; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.orb-logo { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--bg-accent), var(--bg-accent-glow)); box-shadow: 0 0 20px var(--bg-accent); border: 2px solid rgba(255,255,255,0.2); }
.btn-glass { background: rgba(255,255,255,0.05); color: #fff; padding: 10px 24px; border-radius: 100px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: all 0.3s; backdrop-filter: blur(10px); font-size: 14px; }
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* Asymmetric 2-Column Layout */
.landing-content { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding: 20px 5% 80px 5%; max-width: 1400px; margin: 0 auto; z-index: 1; position: relative; width: 100%; }

/* Left Typography Section */
.hero-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.badge { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: #a78bfa; padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 24px; display: inline-block; }
.hero-h1 { font-size: clamp(48px, 5vw, 76px); font-weight: 800; line-height: 1.05; margin-bottom: 24px; color: #fff; letter-spacing: -2px; }
.gradient-text { background: linear-gradient(135deg, #ffffff 10%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; color: #9ca3af; margin-bottom: 40px; font-weight: 400; max-width: 90%; }

/* High-Contrast CTA Button */
.btn-primary-glow { background: #ffffff; color: #000000; padding: 18px 36px; border-radius: 100px; font-size: 16px; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 0 0 4px rgba(255,255,255,0.1), 0 10px 40px rgba(139, 92, 246, 0.4); }
.btn-primary-glow:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 0 6px rgba(255,255,255,0.15), 0 15px 50px rgba(139, 92, 246, 0.6); background: #f3f4f6; }

/* Social Proof Avatars */
.hero-users { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.avatar-group { display: flex; }
.avatar-group img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #030305; margin-left: -16px; }
.avatar-group img:first-child { margin-left: 0; }
.hero-users span { color: #6b7280; font-size: 14px; font-weight: 500; }

/* Right 3D Mockup Section */
.hero-visual { position: relative; width: 100%; height: 500px; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.glass-panel { background: rgba(15, 17, 26, 0.7); backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; width: 100%; max-width: 480px; height: 380px; box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1); transform: rotateY(-15deg) rotateX(5deg); transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; overflow: hidden; }
.glass-panel:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-10px); }

.panel-header { background: rgba(0,0,0,0.3); padding: 16px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #10b981; }
.panel-title { margin-left: auto; margin-right: auto; color: #6b7280; font-size: 12px; font-family: monospace; font-weight: 600; }

.panel-body { display: flex; flex: 1; padding: 16px; gap: 16px; }
.mockup-sidebar { width: 60px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid rgba(255,255,255,0.02); display: flex; flex-direction: column; align-items: center; padding-top: 12px; gap: 12px;}
.mockup-icon { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.mockup-icon.active { background: var(--bg-accent); box-shadow: 0 0 12px var(--bg-accent-glow); }

.mockup-chat { flex: 1; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; padding-bottom: 8px; }
.mock-msg { display: flex; gap: 12px; align-items: flex-end; }
.mock-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #8b5cf6); flex-shrink: 0; }
.mock-av.alt { background: linear-gradient(135deg, #4b5563, #374151); }
.mock-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.line { height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; }
.line.accent { background: var(--bg-accent); }
.line.w-70 { width: 70%; } .line.w-40 { width: 40%; } .line.w-90 { width: 90%; } .line.w-50 { width: 50%; }

/* Floating Element Badges */
.floating-badge { position: absolute; background: rgba(15, 17, 26, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); padding: 12px 20px; border-radius: 100px; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 15px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 10px; animation: float 6s infinite ease-in-out; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; }
.badge-1 { top: 15%; left: -30px; animation-delay: 0s; }
.badge-2 { bottom: 15%; right: -30px; animation-delay: 3s; }

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

/* Mobile Adaptations for Landing */
@media (max-width: 1024px) {
    .landing-content { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-top: 0px; }
    .hero-text { align-items: center; text-align: center; margin-top: 20px; }
    .hero-p { max-width: 100%; }
    .hero-visual { height: 400px; margin-top: 0px; perspective: none; }
    .glass-panel { transform: none; width: 90%; max-width: 400px;}
    .glass-panel:hover { transform: translateY(-5px); }
    .floating-badge { display: none; }
}

/* ========================================= */
/* AUTH SCREEN                               */
/* ========================================= */
.auth-container { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, #030305 100%); position: fixed; z-index: 999; padding: 20px; }
.auth-box { background: rgba(15, 17, 26, 0.8); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); padding: 48px 40px; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.05); width: 100%; max-width: 440px; text-align: center; }
.auth-tab { flex:1; padding: 14px; background:transparent; border:1px solid var(--glass-border); color:var(--text-muted); border-radius:12px; cursor:pointer; font-weight:600; transition:all 0.2s; font-size: 15px;}
.auth-tab.active { background: rgba(139, 92, 246, 0.15); color: var(--text-main); border-color: var(--bg-accent); box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.1); }
#auth-form input { width: 100%; padding: 16px; margin-bottom: 16px; background-color: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-main); font-size: 15px; transition: all 0.3s ease; }
#auth-form input:focus { border-color: var(--bg-accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); outline: none; }
.auth-buttons button { width: 100%; padding: 18px; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; margin-top: 10px;}
#btn-auth-action { background: linear-gradient(135deg, var(--bg-accent), var(--bg-accent-glow)); color: var(--btn-text); box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3); }
#btn-auth-action:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5); }

/* ========================================= */
/* MAIN APP (DESKTOP)                        */
/* ========================================= */
.app-container { display: flex; height: 100vh; width: 100vw; backdrop-filter: blur(8px); position: relative; }
.server-sidebar { width: 76px; background-color: var(--bg-servers); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; border-right: 1px solid var(--glass-border); z-index: 10; transition: background 0.4s; flex-shrink: 0;}
.server-icon { width: 52px; height: 52px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 35%; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: var(--text-main); position: relative;}
.server-icon:hover, .server-icon.active { border-radius: 24%; background: linear-gradient(135deg, var(--bg-accent), var(--bg-accent-glow)); box-shadow: 0 0 16px var(--bg-accent); border-color: transparent; color: var(--btn-text); }
.add-server-btn { color: #10b981; }

.channels-sidebar { width: 256px; background-color: var(--bg-channels); display: flex; flex-direction: column; border-right: 1px solid var(--glass-border); transition: background 0.4s; flex-shrink: 0;}
.sidebar-header { height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--glass-border); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.sidebar-header h3 { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.2s; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 6px; }
.icon-btn:hover, .icon-btn.active { color: var(--text-main); background: rgba(255,255,255,0.08); }

/* CATEGORIES & CHANNELS */
.channels-list { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.category-header { display: flex; align-items: center; padding: 18px 8px 6px 12px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; user-select: none; transition: color 0.2s; }
.category-header:hover { color: var(--text-main); }
.cat-arrow { font-size: 9px; }
.cat-arrow.collapsed { transform: rotate(-90deg) !important; }
.category-channels.hidden { display: none; }

.channel-item { padding: 8px 12px; border-radius: 6px; color: var(--text-muted); cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; display: flex; align-items: center; gap: 10px; justify-content: space-between; position:relative; margin-bottom: 2px;}
.channel-item:hover, .channel-item.active { background: rgba(139, 92, 246, 0.1); color: var(--text-main); }
.channel-item.active { background: rgba(139, 92, 246, 0.2); border-left: 3px solid var(--bg-accent); padding-left: 9px; }
.ch-gear { display:none; color:var(--text-muted); cursor:pointer; padding:4px; border-radius:4px;}
.ch-gear:hover { color:var(--text-main); background:rgba(255,255,255,0.1); }
.channel-item:hover .ch-gear { display:flex; }

.user-profile { height: 64px; background-color: var(--bg-servers); display: flex; justify-content: space-between; align-items: center; padding: 0 16px; border-top: 1px solid var(--glass-border); transition: background 0.4s;}
#btn-logout { background: transparent; border: none; color: var(--text-muted); padding: 8px; border-radius: 6px; cursor: pointer; transition: all 0.2s; display:flex; justify-content:center; align-items:center; }
#btn-logout:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* CHAT AREA & EMPTY STATE */
.chat-area { flex: 1; background-color: var(--bg-chat); display: flex; flex-direction: column; position: relative; transition: background 0.4s; min-width: 0; }
.chat-header { height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--glass-border); backdrop-filter: blur(4px); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.chat-header-left { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.chat-header-left svg { color: var(--text-muted); }
.chat-header-right { display: flex; align-items: center; gap: 16px; }

/* FRIENDS HUB */
.friends-hub { display: flex; flex-direction: column; height: 100%; padding: 32px; gap: 24px; overflow-y: auto; }
.friends-header { display: flex; align-items: center; margin-bottom: 16px; border-bottom: 1px solid var(--glass-border); padding-bottom: 16px; }
.friends-header h2 { margin-left: 12px; }
.friends-section { background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); padding: 24px; border-radius: 16px; }
.friends-split { display:flex; gap:24px; }
.friend-item { display:flex; align-items:center; justify-content:space-between; padding:12px; background:var(--input-bg); border:1px solid var(--glass-border); border-radius:12px; transition:border 0.2s; }
.friend-item:hover { border-color:var(--bg-accent); }
#friend-search-input { padding: 14px; background-color: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-main); font-size: 15px; }
#friend-search-input:focus { border-color: var(--bg-accent); outline: none; }

.messages-container { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; scroll-behavior: smooth; }
.message { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; position: relative; padding-right: 40px; }
.message:hover .msg-actions { opacity: 1; }
.msg-actions { position: absolute; right: 0; top: -10px; opacity: 0; transition: opacity 0.2s; background: var(--bg-servers); border: 1px solid var(--glass-border); border-radius: 8px; padding: 4px; display: flex; box-shadow: 0 4px 12px rgba(0,0,0,0.3);}
.msg-action-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.msg-action-btn:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* MESSAGE INPUT WITH FILE ATTACHMENT */
.message-input-container { padding: 0 24px 24px 24px; }
.message-input-wrapper { display: flex; align-items: center; background-color: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 16px; transition: all 0.3s; box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 4px 8px; }
.message-input-wrapper:focus-within { border-color: var(--bg-accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
#message-input { flex: 1; padding: 14px 12px; background: transparent; border: none; color: var(--text-main); font-size: 15px; }
#message-input:focus { outline: none; }
.attach-btn, .send-btn { background: transparent; border: none; padding: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 12px; transition: all 0.2s; }
.attach-btn { color: var(--text-muted); }
.attach-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }
.send-btn { color: var(--bg-accent); }
.send-btn:hover { background: rgba(139, 92, 246, 0.15); }

/* MEMBERS SIDEBAR */
.members-sidebar { width: 260px; background-color: var(--bg-members); border-left: 1px solid var(--glass-border); display: flex; flex-direction: column; padding: 16px 8px; overflow-y: auto; transition: width 0.3s ease, padding 0.3s ease, background 0.4s; flex-shrink: 0;}
.members-sidebar.hidden-sidebar { width: 0; padding: 0; border: none; overflow: hidden; }
.member-category { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin: 16px 0 8px 8px; letter-spacing: 1px; }
.member-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.member-item:hover { background: rgba(139, 92, 246, 0.1); }
.member-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-border); }
.member-info { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: 1; overflow: hidden;}
.member-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 1px solid currentColor; text-transform: uppercase; font-weight: 800; display: inline-block; flex-shrink: 0;}

/* MODALS - Responsive Setup */
.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 9999; backdrop-filter: blur(12px); padding: 16px; }
.modal-content { background: var(--modal-bg); border: 1px solid var(--glass-border); padding: 32px; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.8); transition: background 0.4s; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-content.profile-modal-content { max-width: 340px; text-align: center; }
.modal-content.standard-modal { max-width: 440px; }
.modal-content.large-modal { max-width: 540px; }
.modal-content.small-modal { max-width: 320px; }

.modal-content h3 { font-size: 22px; margin-bottom: 24px; color: var(--text-main); font-weight: 800; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--glass-border); padding-bottom: 16px;}
.modal-content input[type="text"], .modal-content input[type="number"], .modal-content select { width: 100%; padding: 14px; margin-bottom: 16px; background-color: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); color: var(--text-main); border-radius: 12px; font-size: 15px; transition: all 0.2s;}
.modal-content input:focus, .modal-content select:focus { border-color: var(--bg-accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); outline: none; }
.modal-section { margin-bottom: 24px; background: rgba(139, 92, 246, 0.03); padding: 20px; border-radius: 16px; border: 1px solid var(--glass-border); }
.modal-section h4 { color: var(--text-main); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; font-weight: 800;}

input[type="color"] { -webkit-appearance: none; border: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; background: transparent; padding: 0; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 1px solid var(--glass-border); border-radius: 10px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-accent); }

/* AVATAR UPLOAD */
.avatar-preview-wrapper { position: relative; width: 100px; height: 100px; margin: 0 auto; cursor: pointer; border-radius: 50%; border: 3px dashed var(--bg-accent); overflow: hidden; transition: all 0.2s; }
.avatar-preview-wrapper:hover { border-style: solid; box-shadow: 0 0 20px var(--bg-accent-glow); }
.avatar-preview-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.2s; }
.avatar-preview-wrapper:hover .avatar-overlay { opacity: 1; }

/* ========================================= */
/* 📱 MOBILE RESPONSIVE MAGİC                */
/* ========================================= */

.mobile-only { display: none; }
.desktop-only { display: flex; }

@media (max-width: 1024px) {
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }
    
    .app-container { overflow: hidden; width: 100vw; backdrop-filter: none !important; }

    .server-sidebar {
        position: fixed; left: -150px; top: 0; bottom: 0;
        z-index: 1001; box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        transition: left 0.3s ease;
        transform: none !important; 
    }
    .channels-sidebar {
        position: fixed; left: -400px; top: 0; bottom: 0;
        width: calc(100vw - 76px); max-width: 320px;
        z-index: 1001; box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        transition: left 0.3s ease;
        transform: none !important;
    }
    
    .app-container.show-sidebars .server-sidebar { left: 0; }
    .app-container.show-sidebars .channels-sidebar { left: 76px; }

    #mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; backdrop-filter: blur(4px); }
    #mobile-overlay.hidden { display: none !important; }

    .members-sidebar {
        position: fixed; right: -400px; top: 0; bottom: 0;
        width: 85vw; max-width: 300px;
        z-index: 1001; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: right 0.3s ease;
        transform: none !important;
    }
    .members-sidebar:not(.hidden-sidebar) { right: 0; }

    .chat-area { width: 100vw; flex: 1; }
    .chat-header { padding: 0 16px; }
    .chat-header-right { gap: 8px; }
    .token-display { font-size: 11px; padding: 4px 8px; }

    .friends-split { flex-direction: column; gap: 16px; }
    .friends-hub { padding: 16px; gap: 16px; }
    #friend-search-input { width: 100%; min-width: unset; }
    #btn-send-friend-request { width: 100%; }

    .modal-content { padding: 24px 16px; border-radius: 16px; }
    .modal-content h3 { font-size: 18px; }
}
