* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #8b5cf6; --primary-hover: #7c3aed; --primary-light: #a78bfa; --primary-glow: rgba(139,92,246,0.4);
    --bg-main: #0a0a0f; --bg-card: #12121a; --bg-card-hover: #1a1a2e; --bg-input: #16161f;
    --bg-header: rgba(10,10,15,0.95); --bg-sidebar: rgba(12,12,18,0.98); --bg-bottomnav: rgba(12,12,18,0.98);
    --text-primary: #e8e8f0; --text-secondary: #8888a0; --text-light: #55556a;
    --border-color: #2a2a3a; --border-light: #1e1e2e;
    --green-online: #22c55e; --red-like: #ef4444; --orange: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4); --shadow-md: 0 4px 12px rgba(0,0,0,0.5); --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px;
    --transition: all 0.25s ease;
    --twitch: #9146ff; --youtube: #ff0000; --telegram: #0088cc;
    --twitter: #1da1f2; --instagram: #e1306c; --discord: #5865f2;
    --tiktok: #000000; --github: #333;
    --admin-color: #ef4444; --mod-color: #f59e0b;
}
body { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif; background: var(--bg-main); color: var(--text-primary); line-height: 1.5; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a0a0f 0%, #12121f 50%, #0f0a1a 100%); padding: 20px; }
.auth-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg), 0 0 40px rgba(139,92,246,0.1); }
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo i { font-size: 48px; color: var(--primary); margin-bottom: 10px; text-shadow: 0 0 20px var(--primary-glow); }
.auth-logo h1 { font-size: 28px; color: var(--primary); margin-bottom: 5px; }
.auth-logo p { color: var(--text-secondary); font-size: 14px; }
.auth-tabs { display: flex; gap: 5px; margin-bottom: 25px; background: var(--bg-input); border-radius: var(--radius-sm); padding: 4px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: var(--transition); }
.auth-tab.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); background: var(--bg-input); color: var(--text-primary); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(139,92,246,0.2); }
.form-group textarea { resize: vertical; min-height: 80px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-color); }
.auth-divider span { background: var(--bg-card); padding: 0 12px; position: relative; font-size: 12px; color: var(--text-light); }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: white; transition: var(--transition); }
.social-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.social-btn.twitch { background: var(--twitch); }
.social-btn.telegram { background: var(--telegram); }
.social-btn.discord { background: var(--discord); }
.social-btn.google { background: #db4437; }
.auth-info { margin-top: 20px; padding: 12px; background: rgba(139,92,246,0.08); border-radius: var(--radius-sm); text-align: center; font-size: 12px; color: var(--text-secondary); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: var(--transition); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 10px rgba(139,92,246,0.3); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 15px rgba(139,92,246,0.4); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--primary); }
.btn-full { width: 100%; justify-content: center; padding: 12px; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--red-like); color: white; }
.btn-danger:hover { background: #dc2626; }
.header { background: var(--bg-header); border-bottom: 1px solid var(--border-color); position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 56px; display: flex; align-items: center; padding: 0 20px; backdrop-filter: blur(10px); }
.header-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--primary); cursor: pointer; }
.header-search { position: relative; width: 250px; }
.header-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 14px; }
.header-search input { width: 100%; padding: 8px 14px 8px 36px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 13px; background: var(--bg-input); transition: var(--transition); color: var(--text-primary); }
.header-search input:focus { outline: none; border-color: var(--primary); background: var(--bg-card); }
.header-nav { display: flex; gap: 4px; }
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 11px; color: var(--text-secondary); transition: var(--transition); }
.nav-btn:hover { background: var(--bg-input); color: var(--primary); }
.nav-btn.active { color: var(--primary); background: rgba(139,92,246,0.1); }
.header-right { display: flex; align-items: center; gap: 12px; }
.notification-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); }
.notification-btn:hover { background: var(--bg-input); color: var(--primary); }
.notif-badge { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: var(--red-like); color: white; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.user-menu { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); position: relative; }
.user-menu:hover { background: var(--bg-input); }
.user-menu img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-menu span { font-size: 13px; font-weight: 500; }
.user-menu i { font-size: 12px; color: var(--text-light); }
.user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 200px; display: none; overflow: hidden; z-index: 200; }
.user-dropdown.show { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--text-primary); transition: var(--transition); }
.user-dropdown a:hover { background: var(--bg-input); color: var(--primary); }
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--bg-bottomnav); border-top: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.bottom-nav-items { display: flex; justify-content: space-around; align-items: center; padding: 6px 0; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 10px; color: var(--text-light); transition: var(--transition); min-width: 50px; }
.bottom-nav-item i { font-size: 20px; }
.bottom-nav-item:hover { color: var(--primary); background: rgba(139,92,246,0.1); }
.bottom-nav-item.active { color: var(--primary); }
.app { display: flex; padding-top: 56px; min-height: 100vh; padding-bottom: 60px; }
.sidebar { width: 220px; background: var(--bg-sidebar); border-right: 1px solid var(--border-color); position: fixed; top: 56px; left: 0; bottom: 0; overflow-y: auto; padding: 12px 0; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 8px; cursor: pointer; border-radius: var(--radius-sm); margin: 0 8px; transition: var(--transition); }
.sidebar-profile:hover { background: var(--bg-input); }
.sidebar-profile img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sidebar-info h3 { font-size: 13px; font-weight: 600; }
.sidebar-info p { font-size: 12px; color: var(--green-online); }
.sidebar-stats { display: flex; justify-content: space-around; padding: 12px 16px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin: 8px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 16px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-secondary); }
.sidebar-menu { padding: 8px 0; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: 13px; color: var(--text-primary); transition: var(--transition); }
.menu-item i { width: 20px; text-align: center; color: var(--text-light); }
.menu-item:hover { background: var(--bg-input); }
.menu-item.active { color: var(--primary); font-weight: 500; }
.main-content { margin-left: 220px; flex: 1; padding: 20px; max-width: calc(100% - 220px); }
.page { display: none; }
.page.active { display: block; }
.role-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.role-badge.admin { background: rgba(239,68,68,0.15); color: var(--admin-color); border: 1px solid rgba(239,68,68,0.3); }
.role-badge.moderator { background: rgba(245,158,11,0.15); color: var(--mod-color); border: 1px solid rgba(245,158,11,0.3); }
.create-post-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.create-post-header { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.create-post-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.create-post-header textarea { flex: 1; border: none; resize: none; font-size: 14px; padding: 8px 0; min-height: 40px; background: transparent; color: var(--text-primary); }
.create-post-actions { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 12px; border-top: 1px solid var(--border-light); }
.post-attachments { display: flex; gap: 8px; }
.attach-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); transition: var(--transition); }
.attach-btn:hover { background: var(--bg-input); color: var(--primary); }
.image-preview { position: relative; margin: 0 16px 12px; display: none; }
.image-preview.has-image { display: block; }
.image-preview img { max-height: 200px; border-radius: var(--radius-sm); }
.image-preview .remove-preview { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: rgba(0,0,0,0.6); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; transition: var(--transition); }
.post-card:hover { border-color: rgba(139,92,246,0.3); }
.post-header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 0; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; cursor: pointer; }
.post-user-info { flex: 1; }
.post-username { font-size: 13px; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.post-username:hover { color: var(--primary); }
.post-time { font-size: 12px; color: var(--text-light); }
.post-more { color: var(--text-light); padding: 4px 8px; border-radius: 50%; transition: var(--transition); }
.post-more:hover { background: var(--bg-input); }
.post-content { padding: 12px 16px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.post-media { padding: 0 16px 12px; }
.post-media img { width: 100%; border-radius: var(--radius-sm); cursor: pointer; max-height: 500px; object-fit: cover; }
.post-actions { display: flex; border-top: 1px solid var(--border-light); padding: 4px 8px; }
.post-action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); transition: var(--transition); flex: 1; justify-content: center; }
.post-action-btn:hover { background: var(--bg-input); }
.post-action-btn i { font-size: 16px; }
.post-action-btn.liked { color: var(--red-like); }
@keyframes likeAnim { 0% { transform: scale(1); } 25% { transform: scale(1.4); } 50% { transform: scale(0.9); } 100% { transform: scale(1); } }
.post-action-btn.liked i { animation: likeAnim 0.5s ease; }
@keyframes commentPop { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shareBounce { 0% { transform: translateX(0); } 25% { transform: translateX(5px); } 50% { transform: translateX(-5px); } 75% { transform: translateX(3px); } 100% { transform: translateX(0); } }
.post-comments-preview { padding: 8px 16px; border-top: 1px solid var(--border-light); font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.post-comments-preview:hover { background: var(--bg-input); }
.profile-header { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.profile-cover { position: relative; height: 250px; background: linear-gradient(135deg, var(--primary) 0%, #1e1b4b 100%); overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-edit-btn { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; background: rgba(0,0,0,0.5); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.cover-edit-btn:hover { background: rgba(139,92,246,0.5); }
.profile-info-section { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px 20px; position: relative; }
.profile-avatar-section { position: relative; margin-top: -50px; }
.profile-avatar-section img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--bg-card); object-fit: cover; background: var(--bg-main); }
.avatar-edit-btn { position: absolute; bottom: 8px; right: 8px; width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition); box-shadow: 0 2px 10px rgba(139,92,246,0.4); }
.profile-details { flex: 1; padding-bottom: 8px; }
.profile-details h1 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.profile-details p { color: var(--text-secondary); font-size: 14px; margin: 4px 0 12px; }
.profile-actions { display: flex; gap: 8px; }
.profile-tabs { display: flex; gap: 4px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 4px; box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow-x: auto; }
.profile-tab { padding: 10px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: var(--transition); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.profile-tab:hover { background: var(--bg-input); }
.profile-tab.active { background: var(--primary); color: white; }
.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.photo-grid-item { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.photo-grid-item:hover img { transform: scale(1.05); }
.character-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 16px; }
.character-card-header { display: flex; align-items: center; gap: 16px; padding: 20px; }
.character-avatar { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.character-info h3 { font-size: 18px; margin-bottom: 4px; }
.character-meta { display: flex; gap: 12px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; }
.character-meta span { display: flex; align-items: center; gap: 4px; }
.character-desc { padding: 0 20px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.character-stats-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border-light); }
.char-stat { flex: 1; min-width: 80px; }
.char-stat-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; margin-bottom: 4px; }
.char-stat-bar { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.char-stat-fill { height: 100%; border-radius: 3px; }
.char-stat-fill.str { background: #e74c3c; } .char-stat-fill.agi { background: #2ecc71; }
.char-stat-fill.int { background: #3498db; } .char-stat-fill.sta { background: #f39c12; }
.char-stat-fill.lck { background: #9b59b6; }
.character-actions { display: flex; gap: 8px; padding: 0 20px 20px; }
.edit-profile-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 30px; max-width: 600px; margin: 0 auto; }
.edit-profile-card h2 { margin-bottom: 24px; display: flex; align-items: center; gap: 10px; color: var(--primary); }
.edit-profile-actions { display: flex; gap: 12px; margin-top: 20px; }
.image-upload-area { border: 2px dashed var(--border-color); border-radius: var(--radius-sm); padding: 30px; text-align: center; cursor: pointer; transition: var(--transition); color: var(--text-secondary); }
.image-upload-area:hover { border-color: var(--primary); background: rgba(139,92,246,0.05); }
.image-upload-area i { font-size: 36px; color: var(--text-light); margin-bottom: 8px; }
.messages-container { display: flex; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); height: calc(100vh - 96px); overflow: hidden; }
.messages-sidebar { width: 280px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
.messages-sidebar h3 { padding: 16px; font-size: 16px; border-bottom: 1px solid var(--border-light); }
.search-box { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-input); margin: 8px 12px; border-radius: var(--radius-sm); }
.search-box input { flex: 1; border: none; background: none; font-size: 13px; color: var(--text-primary); }
#conversations-list { flex: 1; overflow-y: auto; }
.conversation-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; transition: var(--transition); }
.conversation-item:hover { background: var(--bg-input); }
.conversation-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.conversation-info { flex: 1; min-width: 0; }
.conversation-name { font-size: 13px; font-weight: 600; }
.conversation-last { font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.messages-main { flex: 1; display: flex; flex-direction: column; }
.messages-header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border-light); }
.messages-header img { width: 36px; height: 36px; border-radius: 50%; }
.messages-header h3 { font-size: 14px; }
.messages-header p { font-size: 12px; color: var(--green-online); }
.messages-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.no-messages { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-light); }
.no-messages i { font-size: 48px; margin-bottom: 16px; }
.message-bubble { max-width: 70%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; word-break: break-word; }
.message-bubble.sent { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.message-bubble.received { align-self: flex-start; background: var(--bg-input); border-bottom-left-radius: 4px; }
.message-time { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.messages-input { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border-light); }
.messages-input input { flex: 1; padding: 10px 16px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 14px; background: var(--bg-input); color: var(--text-primary); }
.messages-input input:focus { outline: none; border-color: var(--primary); }
.message-media { max-width: 250px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 4px; }
.message-media img, .message-media video { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-sm); }
.messages-media-bar { display: flex; gap: 8px; padding: 8px 20px; border-top: 1px solid var(--border-light); }
.media-attach-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); font-size: 16px; }
.media-attach-btn:hover { background: var(--bg-input); color: var(--primary); }
.photos-page, .groups-page, .channels-page { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; }
.groups-container, .channels-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.group-card, .channel-card { border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); }
.group-card:hover, .channel-card:hover { box-shadow: var(--shadow-md); }
.group-cover, .channel-cover { height: 80px; background: linear-gradient(135deg, var(--primary), #1e1b4b); }
.channel-cover { height: 100px; display: flex; align-items: center; justify-content: center; }
.channel-cover i { font-size: 40px; color: rgba(255,255,255,0.3); }
.group-info, .channel-info { padding: 12px; }
.group-info h4, .channel-info h4 { font-size: 14px; margin-bottom: 4px; }
.group-info p, .channel-info p { font-size: 12px; color: var(--text-secondary); }
.channels-header, .characters-header, .games-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.characters-header h2, .games-header h2 { color: var(--primary); }
.all-characters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.settings-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 30px; max-width: 700px; margin: 0 auto; }
.settings-card h2 { margin-bottom: 24px; display: flex; align-items: center; gap: 10px; color: var(--primary); }
.settings-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.settings-section:last-child { border-bottom: none; }
.settings-section h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.settings-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.settings-item:last-child { border-bottom: none; }
.settings-item-info h4 { font-size: 14px; }
.settings-item-info p { font-size: 13px; color: var(--text-secondary); }
.settings-badge { font-size: 12px; color: var(--text-light); background: var(--bg-input); padding: 4px 10px; border-radius: 12px; }
.settings-actions { display: flex; gap: 12px; }
.user-list-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 8px; }
.user-list-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-list-info { flex: 1; }
.user-list-info h4 { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.user-list-info p { font-size: 12px; color: var(--text-secondary); }
.admin-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 16px; }
.admin-panel h3 { margin-bottom: 16px; color: var(--admin-color); display: flex; align-items: center; gap: 8px; }
.admin-panel.mod-panel h3 { color: var(--mod-color); }
.admin-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-action-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition); cursor: pointer; }
.admin-action-btn:hover { border-color: var(--primary); background: rgba(139,92,246,0.05); transform: translateY(-2px); }
.admin-action-btn i { font-size: 28px; color: var(--primary); }
.admin-action-btn span { font-size: 13px; color: var(--text-secondary); }
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); width: 100%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.modal-header h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); }
.modal-close:hover { background: var(--bg-input); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--border-light); }
.btn-cancel { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); border: 1px solid var(--border-color); transition: var(--transition); }
.btn-cancel:hover { background: var(--bg-input); }
.btn-save { padding: 8px 20px; border-radius: var(--radius-sm); font-size: 13px; background: var(--primary); color: white; transition: var(--transition); }
.btn-save:hover { background: var(--primary-hover); }
.comments-list { max-height: 400px; overflow-y: auto; padding: 8px 0; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.comment-item:last-child { border-bottom: none; }
.comment-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.comment-text { font-size: 13px; margin-top: 2px; line-height: 1.4; }
.comment-time { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.comment-input-section { display: flex; align-items: flex-start; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border-light); position: sticky; bottom: 0; background: var(--bg-card); }
.comment-input-wrapper textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 20px; resize: none; font-size: 13px; min-height: 36px; max-height: 100px; background: var(--bg-input); color: var(--text-primary); }
.comment-input-wrapper textarea:focus { outline: none; border-color: var(--primary); }
.game-status-card, .game-platforms-section, .games-library-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 16px; }
.game-platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.game-platform-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); border: 2px solid var(--border-light); transition: var(--transition); cursor: pointer; }
.game-platform-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.game-platform-card.connected { border-color: var(--green-online); background: rgba(34,197,94,0.05); }
.platform-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; flex-shrink: 0; }
.steam-card .platform-icon { background: #1b2838; } .epic-card .platform-icon { background: #333; } .gog-card .platform-icon { background: #a0451b; }
.playstation-card .platform-icon { background: #003087; } .xbox-card .platform-icon { background: #107c10; } .nintendo-card .platform-icon { background: #e60012; }
.platform-info { flex: 1; } .platform-info h4 { font-size: 14px; } .platform-info p { font-size: 12px; color: var(--text-secondary); }
.platform-status { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.platform-status.connected { color: var(--green-online); }
.games-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); transition: var(--transition); border: 1px solid var(--border-color); background: var(--bg-card); }
.filter-btn:hover { background: var(--bg-input); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.game-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); cursor: pointer; }
.game-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.game-card-cover { width: 100%; height: 120px; object-fit: cover; }
.game-card-info { padding: 12px; }
.game-card-info h4 { font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-light); }
.game-card-status { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.game-card-status.playing { background: rgba(34,197,94,0.15); color: var(--green-online); }
.game-card-status.completed { background: rgba(139,92,246,0.15); color: var(--primary-light); }
.game-card-status.backlog { background: rgba(245,158,11,0.15); color: var(--orange); }
.wallpaper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.wallpaper-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid var(--border-light); transition: var(--transition); }
.wallpaper-item:hover { border-color: var(--primary); }
.wallpaper-item video, .wallpaper-item img { width: 100%; height: 120px; object-fit: cover; }
.wallpaper-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.wallpaper-item:hover .wallpaper-overlay { opacity: 1; }
.wallpaper-overlay i { color: white; font-size: 24px; }
.model-badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3); border-radius: var(--radius-sm); color: var(--primary-light); font-size: 13px; }
.model-badge i { font-size: 20px; }
.wallpaper-upload-area { margin-bottom: 16px; }
.hidden-mobile { display: none !important; }
.site-update-banner { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.04)); border: 1px solid rgba(139,92,246,0.3); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; transition: var(--transition); }
.site-update-banner.new { border-color: var(--primary); box-shadow: 0 0 20px rgba(139,92,246,0.15); }
.site-update-banner-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-update-banner-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; flex-shrink: 0; box-shadow: 0 2px 10px rgba(139,92,246,0.3); }
.site-update-banner-info { flex: 1; }
.site-update-banner-info h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-update-banner-info p { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.site-update-banner-close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: var(--transition); }
.site-update-banner-close:hover { background: var(--bg-input); color: var(--text-primary); }
.site-update-banner-changelog { font-size: 13px; color: var(--text-secondary); white-space: pre-wrap; line-height: 1.7; margin-bottom: 12px; }
.site-update-banner-actions { display: flex; gap: 8px; }
.update-new-badge { display: inline-block; background: var(--primary); color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; animation: pulseGlow 2s infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 5px rgba(139,92,246,0.5); } 50% { box-shadow: 0 0 15px rgba(139,92,246,0.8); } }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 24px; box-shadow: var(--shadow-lg); z-index: 2000; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-primary); transition: all 0.3s ease; opacity: 1; }
.toast i { font-size: 18px; }
.toggle-switch { position: relative; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 26px; transition: var(--transition); }
.toggle-slider:before { content: ''; position: absolute; height: 20px; width: 20px; left: 2px; bottom: 2px; background: white; border-radius: 50%; transition: var(--transition); }
.toggle-switch input:checked + .toggle-slider { background: var(--primary); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.settings-row:last-child { border-bottom: none; }
.settings-row-info h4 { font-size: 14px; }
.settings-row-info p { font-size: 12px; color: var(--text-secondary); }
.current-game-playing { display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(139,92,246,0.1); border-radius: var(--radius-sm); border: 1px solid rgba(139,92,246,0.2); }
.current-game-playing img { width: 120px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.current-game-info { flex: 1; }
.current-game-info h4 { font-size: 16px; }
.current-game-info p { font-size: 13px; color: var(--text-secondary); }
.current-game-hours { font-size: 12px; color: var(--primary); margin-top: 4px; }
.profile-games-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; }
.profile-games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.profile-game-card { border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: var(--transition); }
.profile-game-card:hover { box-shadow: var(--shadow-md); }
.profile-game-card img { width: 100%; height: 100px; object-fit: cover; }
.profile-game-card-info { padding: 8px; }
.profile-game-card-info h4 { font-size: 13px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-game-card-info p { font-size: 11px; color: var(--text-light); }
.social-page-header, .social-connect-section, .social-feed-section, .social-stream-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 16px; }
.social-networks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.social-network-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); border: 2px solid var(--border-light); transition: var(--transition); cursor: pointer; }
.social-network-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.social-network-card.connected { border-color: var(--green-online); background: rgba(34,197,94,0.05); }
.network-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; flex-shrink: 0; }
.twitch-card .network-icon { background: var(--twitch); } .youtube-card .network-icon { background: var(--youtube); } .telegram-card .network-icon { background: var(--telegram); }
.twitter-card .network-icon { background: var(--twitter); } .instagram-card .network-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.discord-card .network-icon { background: var(--discord); } .tiktok-card .network-icon { background: var(--tiktok); } .github-card .network-icon { background: var(--github); }
.network-info { flex: 1; } .network-info h4 { font-size: 14px; margin-bottom: 2px; } .network-info p { font-size: 12px; color: var(--text-secondary); }
.network-status { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.network-status.connected { color: var(--green-online); }
.social-feed-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.social-feed-tab { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.social-feed-tab:hover { background: var(--bg-input); }
.social-feed-tab.active { background: var(--primary); color: white; }
.social-feed-item { border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; display: flex; gap: 12px; }
.social-feed-item .feed-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.social-feed-item .feed-content { flex: 1; }
.social-feed-item .feed-source { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.social-feed-item .feed-text { font-size: 14px; }
.social-feed-item .feed-time { font-size: 11px; color: var(--text-light); margin-top: 6px; }
.social-feed-item .feed-actions { display: flex; gap: 12px; margin-top: 8px; }
.social-feed-item .feed-action { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.social-feed-item .feed-action:hover { color: var(--primary); }
.social-sync-info { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: rgba(139,92,246,0.08); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); margin-top: 16px; }
.social-sync-info i { color: var(--primary); margin-top: 2px; }
.no-game-status { text-align: center; padding: 30px; color: var(--text-light); }
.no-game-status i { font-size: 48px; margin-bottom: 12px; display: block; }
.photo-upload-section { margin-bottom: 16px; }
.profile-cover-video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.cover-controls { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 8px; }
.message-file { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); }
.message-file i { font-size: 24px; }
.message-file-info { flex: 1; }
.message-file-name { font-size: 13px; font-weight: 500; }
.message-file-size { font-size: 11px; opacity: 0.7; }
@media (max-width: 900px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; max-width: 100%; padding: 16px; padding-bottom: 70px; }
    .header-nav { display: none; }
    .header-search { width: 150px; }
    .bottom-nav { display: block; }
    .messages-container { flex-direction: column; height: calc(100vh - 116px); }
    .messages-sidebar { width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--border-color); }
}
@media (max-width: 600px) {
    .auth-container { padding: 24px; }
    .social-login { grid-template-columns: 1fr; }
    .profile-info-section { flex-direction: column; align-items: center; text-align: center; }
    .profile-avatar-section { margin-top: -40px; }
    .profile-actions { justify-content: center; }
    .profile-details h1 { font-size: 20px; justify-content: center; }
    .header-search { display: none; }
    .social-networks-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .game-platforms-grid { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .message-bubble { max-width: 85%; }
    .admin-actions { grid-template-columns: 1fr 1fr; }
    .edit-profile-card { padding: 20px; }
}

/* ===== LOGIN LOADER ANIMATION ===== */
.login-loader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.4s ease; }
.login-loader-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0a0a0f 0%, #12121f 40%, #1a0a2e 70%, #0f0a1a 100%); }
.login-loader-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.15) 0%, transparent 60%); animation: loaderPulse 2s ease-in-out infinite; }
.login-loader-content { position: relative; z-index: 1; text-align: center; animation: loaderFadeIn 0.5s ease; }
.login-loader-logo { position: relative; width: 100px; height: 100px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; }
.login-loader-logo i { font-size: 40px; color: var(--primary); z-index: 3; text-shadow: 0 0 30px var(--primary-glow); animation: logoBounce 1s ease infinite; }
.login-loader-ring { position: absolute; inset: 0; border: 3px solid transparent; border-top-color: var(--primary); border-right-color: var(--primary-light); border-radius: 50%; animation: ringSpin 1s linear infinite; }
.login-loader-ring2 { position: absolute; inset: 12px; border: 2px solid transparent; border-bottom-color: var(--primary-light); border-left-color: rgba(139,92,246,0.3); border-radius: 50%; animation: ringSpin 1.5s linear infinite reverse; }
.login-loader-title { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 8px; text-shadow: 0 0 20px var(--primary-glow); letter-spacing: 1px; }
.login-loader-greeting { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.login-loader-bar { width: 240px; height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden; margin: 0 auto 12px; }
.login-loader-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 2px; transition: width 0.2s ease; box-shadow: 0 0 10px var(--primary-glow); }
.login-loader-status { font-size: 12px; color: var(--text-light); }
@keyframes loaderPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes logoBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes loaderFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SHAKE ERROR ===== */
.shake-error { animation: shakeAnim 0.4s ease; }
@keyframes shakeAnim { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }

/* ===== PAGE TRANSITIONS ===== */
.page-entering { animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.page-leaving { animation: pageLeave 0.25s ease forwards; }
@keyframes pageLeave { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-20px); } }

/* ===== AUTH SCREEN ENHANCEMENTS ===== */
.auth-screen { transition: opacity 0.3s ease; }
.auth-container { animation: authSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes authSlideIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-logo i { animation: logoFloat 3s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.auth-logo h1 { animation: textGlow 2s ease-in-out infinite; }
@keyframes textGlow { 0%, 100% { text-shadow: 0 0 10px rgba(139,92,246,0.3); } 50% { text-shadow: 0 0 25px rgba(139,92,246,0.6); } }
.auth-form.active { animation: formFadeIn 0.3s ease; }
@keyframes formFadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* ===== POST CARD ENTRANCE ===== */
.post-card { animation: cardSlideIn 0.4s ease; }
@keyframes cardSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== BUTTON RIPPLE ===== */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,0.3); transform: translate(-50%, -50%); transition: width 0.4s, height 0.4s; }
.btn:active::after { width: 300px; height: 300px; }

/* ===== TOAST ENHANCEMENT ===== */
.toast { animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== MODAL ENHANCEMENT ===== */
.modal.show .modal-content { animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalPopIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ===== APP FADE IN ===== */
@keyframes appFadeIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

/* ===== POST MENU ITEM ===== */
.post-menu-item:hover { background: var(--bg-input) !important; color: var(--primary) !important; }

/* ===== ROLE BADGE USER (hidden when null) ===== */
.role-badge.user { background: rgba(139,92,246,0.1); color: var(--primary-light); border: 1px solid rgba(139,92,246,0.2); }

/* ===== UPLOAD FILE BUTTON ===== */
.upload-file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg-input); border: 1px dashed var(--primary); border-radius: 8px; cursor: pointer; color: var(--primary); font-size: 14px; transition: var(--transition); }
.upload-file-btn:hover { background: rgba(139,92,246,0.1); }

/* ===== UPDATE FILE LINK ===== */
.update-file-link { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-input); border-radius: 8px; color: var(--text-primary); text-decoration: none; font-size: 13px; transition: var(--transition); margin-bottom: 6px; }
.update-file-link:hover { background: rgba(139,92,246,0.1); color: var(--primary); }

/* ===== CONVERSATION UNREAD ===== */
.conversation-unread { background: var(--primary); color: #fff; border-radius: 50%; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; padding: 0 4px; }
.conversation-time { font-size: 11px; color: var(--text-light); white-space: nowrap; padding: 0 8px; }

/* ===== REAL-TIME STATS ===== */
#realtime-stats-grid .admin-action-btn b { color: var(--primary); font-size: 18px; }
#realtime-stats-grid .admin-action-btn span { display: flex; align-items: center; gap: 4px; }

/* ===== LIKE ANIMATION ===== */
@keyframes likeAnim { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* ===== BTN SECONDARY ===== */
.btn-secondary { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(139,92,246,0.1); color: var(--primary); }
