@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;800&display=swap');



        :root {

            --bg-color: #09090b; --card-bg: rgba(39, 39, 42, 0.5); --text-main: #ffffff; --text-muted: #8b949e;

            --accent-red: #ff5252; --accent-orange: #ff9800; --accent-green: #4caf50;

            --border-color: rgba(255, 255, 255, 0.08); --input-border: rgba(255, 255, 255, 0.08); --tab-bg: #1a202c;

            --tab-active: #2d333b; --hover-bg: #2d333b; --glow-color: rgba(16, 185, 129, 0.15);

        }







        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

        body { 

            background-color: #09090b; 

            

            background-attachment: fixed;

            color: var(--text-main); padding: 20px; min-height: 100vh; display: flex; flex-direction: column; transition: all 0.3s; user-select: none; -webkit-user-select: none; 

        }

        input, textarea { user-select: text; -webkit-user-select: text; }



        .header-btn {

            background: transparent; border: 1px solid var(--input-border); color: var(--text-muted);

            border-radius: 20px; padding: 8px 15px; font-family: 'JetBrains Mono', monospace;

            font-size: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; font-weight: bold; gap: 8px;

        }

        .header-btn:hover { color: var(--text-main); border-color: var(--text-muted); background: var(--hover-bg); }



        #auth-container { display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; gap: 20px; }        .auth-logo, .logo { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-transform: uppercase; letter-spacing: -1.5px; user-select: none; -webkit-user-select: none; line-height: 1; }

        .auth-logo { font-size: 42px; margin-bottom: 0px; margin-top: 15px; text-align: center; }

        .logo { font-size: 42px; }

        .auth-card { background-color: var(--card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 30px; border-radius: 20px; width: 100%; max-width: 350px; border: 1px solid var(--border-color); transition: all 0.3s ease; }

        .auth-card h2 { font-family: 'JetBrains Mono', monospace; margin-bottom: 20px; text-align: center; transition: color 0.3s ease; }

        .auth-card.register-mode { border-color: var(--accent-green); }

        .auth-card.register-mode h2 { color: var(--accent-green); }



        .auth-input, .profile-input {

            width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 10px; border: 1px solid var(--border-color);

            background-color: #09090b; color: var(--text-main); font-size: 16px; outline: none; transition: all 0.3s;

        }

        .auth-input:focus, .profile-input:focus { border-color: #44b6f8; }

        .profile-input[readonly] { background-color: var(--tab-bg); color: var(--text-muted); opacity: 0.6; cursor: default; }

        .password-container { position: relative; width: 100%; margin-bottom: 15px; }

        .password-container .auth-input { margin-bottom: 0; padding-right: 45px; }

        .eye-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); display: none; align-items: center; justify-content: center;}

        .eye-icon:hover { color: var(--text-main); }

        .auth-btn { width: 100%; padding: 15px; border: none; border-radius: 10px; background: var(--accent-green); color: #fff; font-weight: bold; font-size: 16px; cursor: pointer; margin-bottom: 10px; transition: all 0.3s ease; }

        .auth-btn:hover { opacity: 0.9; }

        .auth-switch { text-align: center; color: var(--text-muted); font-size: 14px; cursor: pointer; }



        #app-container { display: none; width: 100%; max-width: 960px; margin: 0 auto; flex-grow: 1; position: relative;}

        header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; margin-top: 15px; flex-wrap: wrap; gap: 15px; }

        .header-left { display: flex; gap: 15px; align-items: center; }

        .header-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

        .date-badge { border: 1px solid var(--input-border); padding: 8px 15px; border-radius: 20px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }

        .logout-btn { background-color: transparent; border: 1px solid var(--accent-red); color: var(--accent-red); padding: 8px 15px; border-radius: 20px; font-size: 12px; font-family: 'JetBrains Mono', monospace; cursor: pointer; transition: all 0.2s; font-weight: bold; }

        .logout-btn:hover { background-color: var(--accent-red); color: white; }



        .dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

        @media (min-width: 800px) { .dashboard-grid { grid-template-columns: 1fr 420px; align-items: stretch; } }

        

        .left-col { min-width: 0; }

        .card { background-color: var(--card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; padding: 25px; border: 1px solid var(--border-color); transition: all 0.2s; }

        

        .main-stat { text-align: center; margin-bottom: 20px; }

        .counter-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 10px; }

        .counter-btn { background-color: var(--tab-bg); color: var(--text-muted); border: 1px solid var(--input-border); border-radius: 50%; width: 50px; height: 50px; font-size: 24px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.1s; user-select: none; }

        .counter-btn:hover { background-color: var(--hover-bg); color: var(--text-main); }

        #sub-btn:active { background-color: var(--accent-red) !important; border-color: var(--accent-red) !important; color: white !important; transform: scale(0.9); }

        #add-btn:active { background-color: var(--accent-green) !important; border-color: var(--accent-green) !important; color: white !important; transform: scale(0.9); }

        .main-stat h1 { font-size: 80px; font-weight: 800; line-height: 1; margin: 0; min-width: 80px; color: var(--text-main); transition: color 0.3s; user-select: none; -webkit-user-select: none;}

        .main-stat p { color: var(--text-muted); font-family: 'JetBrains Mono'; font-size: 12px; max-width: 90%; margin: 0 auto; margin-top: 10px; user-select: none; -webkit-user-select: none;}



        .progress-bar-container { height: 8px; background-color: var(--tab-bg); border-radius: 4px; margin-bottom: 25px; overflow: hidden; }

        .progress-bar { height: 100%; width: 0%; background: linear-gradient(to right, var(--accent-green), var(--accent-orange), var(--accent-red)); transition: width 0.3s ease; }



        .grid-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

        .stat-box { background-color: var(--tab-bg); padding: 20px; border-radius: 16px; transition: background-color 0.3s;}

        .stat-box h3 { font-size: 28px; margin-bottom: 5px; color: var(--text-main); transition: color 0.3s; user-select: none; -webkit-user-select: none;}

        .stat-box p { color: var(--text-muted); font-family: 'JetBrains Mono'; font-size: 11px; user-select: none; -webkit-user-select: none;}



        .chart-header { display: flex; justify-content: space-between; font-family: 'JetBrains Mono'; font-size: 12px; color: #44b6f8; margin-bottom: 15px; font-weight: bold; text-transform: uppercase; user-select: none; -webkit-user-select: none;}

        .chart-scroll-wrapper { width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 5px; }

        .chart-scroll-wrapper::-webkit-scrollbar { height: 4px; }

        .chart-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }

        .chart-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }

        .chart-container { position: relative; height: 200px; width: 100%; }



        .tabs-container { display: flex; background: var(--tab-bg); border-radius: 12px; margin-bottom: 20px; padding: 5px; transition: background-color 0.3s; }

        .tab-btn { flex: 1; text-align: center; padding: 8px 0; font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); cursor: pointer; border-radius: 8px; transition: all 0.2s; text-transform: uppercase; user-select: none; -webkit-user-select: none; }

        .tab-btn.active { background: var(--tab-active); color: var(--accent-orange); font-weight: bold; }

        .chart-tab.active { color: #44b6f8; }



        #leaderboard-container { overflow-y: auto; overflow-x: hidden; padding-right: 5px; }

        #leaderboard-container::-webkit-scrollbar { width: 4px; }

        #leaderboard-container::-webkit-scrollbar-track { background: transparent; }

        #leaderboard-container::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }



        .lb-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); transition: border-color 0.3s;}

        .lb-item:last-child { border-bottom: none; }

        .lb-rank { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); width: 40px; font-size: 14px; text-align: left; margin-right: 5px; display: flex; align-items: center; flex-shrink: 0;}

        

        .avatar { width: 32px; height: 32px; min-width: 32px; min-height: 32px; aspect-ratio: 1 / 1; flex-shrink: 0; border-radius: 50%; background-color: var(--tab-active); background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; display: inline-block; margin-right: 12px; border: 1px solid var(--border-color); flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b949e'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E"); }

        .profile-pic-preview { width: 100px; height: 100px; min-width: 100px; min-height: 100px; aspect-ratio: 1 / 1; flex-shrink: 0; margin: 0 auto; border-radius: 50%; background-color: var(--tab-active); background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; border: 2px solid var(--accent-green); cursor: pointer; position: relative; overflow: hidden; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b949e'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E"); }

        .profile-pic-preview::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 30%; background-color: rgba(0,0,0,0.6); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 4h3l2-2h6l2 2h3c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2zm8 3c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 16px; opacity: 0; transition: opacity 0.2s; }

        .profile-pic-preview:hover::after { opacity: 1; }

        .view-avatar { width: 120px; height: 120px; min-width: 120px; min-height: 120px; aspect-ratio: 1 / 1; flex-shrink: 0; border-radius: 50%; background-color: var(--tab-bg); background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; margin: 0 auto 10px auto; border: 3px solid var(--border-color); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b949e'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E"); }



        .lb-name { flex-grow: 1; font-weight: 600; font-size: 15px; color: var(--text-main); display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px;}

        .lb-score { font-family: 'JetBrains Mono', monospace; color: var(--accent-orange); font-weight: bold; background: var(--tab-bg); padding: 4px 10px; border-radius: 12px; font-size: 13px; transition: background-color 0.3s; flex-shrink: 0;}

        .lb-item:nth-child(1) .lb-rank, .lb-item:nth-child(2) .lb-rank, .lb-item:nth-child(3) .lb-rank { font-weight: 800; color: var(--text-main); }



        .lb-clickable { cursor: pointer; transition: all 0.2s; }

        .lb-clickable:hover .lb-name { color: var(--accent-green); text-decoration: underline; }



        

        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 5000; display: none; justify-content: center; align-items: center; padding: 20px; }

        .modal { background: rgba(24, 24, 27, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); width: 100%; max-width: 400px; border-radius: 24px; padding: 30px; border: 1px solid var(--border-color); position: relative; max-height: 90vh; overflow-y: auto; }

        .close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; z-index: 10;}

        

        .profile-edit-header { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin-bottom: 25px; text-align: center; }

        .remove-pic-btn { background: transparent; border: 1px solid var(--accent-red); color: var(--accent-red); border-radius: 8px; padding: 4px 8px; font-size: 10px; cursor: pointer; margin: 10px auto 0 auto; display: block; font-family: 'JetBrains Mono', monospace; transition: all 0.2s; }

        .remove-pic-btn:hover { background: var(--accent-red); color: white; }



        @keyframes gentle-shake {

            0% { transform: translateX(0) rotate(0); }

            20% { transform: translateX(-3px) rotate(-2deg); }

            40% { transform: translateX(3px) rotate(2deg); }

            60% { transform: translateX(-3px) rotate(-2deg); }

            80% { transform: translateX(3px) rotate(2deg); }

            100% { transform: translateX(0) rotate(0); }

        }

        .shaking-text { animation: gentle-shake 0.25s linear 4; display: inline-block; }



        .switch-container { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; background: #09090b; padding: 15px; border-radius: 10px; border: 1px solid var(--border-color); }

        .switch-label { font-size: 14px; color: var(--text-main); font-weight: 600;}

        .switch-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: normal;}

        .switch { position: relative; display: inline-block; width: 50px; height: 24px; }

        .switch input { opacity: 0; width: 0; height: 0; }

        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--input-border); transition: .4s; border-radius: 24px; }

        .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }

        input:checked + .slider { background-color: var(--accent-green); }

        input:checked + .slider:before { transform: translateX(26px); }

        

        .view-profile-header { text-align: center; margin-bottom: 10px;
        margin-top: 15px; }

        .view-avatar-wrapper { position: relative; display: inline-block; margin: 0 auto 10px auto; }

        .status-dot { position: absolute; bottom: 8px; right: 8px; width: 14px; height: 14px; border-radius: 50%; border: 4px solid #18181b; transition: background-color 0.3s; box-sizing: content-box; }

        .status-dot::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; }

        .status-dot.online { background-color: var(--accent-green); }
        .status-dot.online::after { animation: pulse-online 2s infinite; }

        .status-dot.offline { background-color: var(--text-muted); }
        .status-dot.offline::after { animation: pulse-offline 2s infinite; }

        @keyframes pulse-online {
            0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.8); }
            70% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
            100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
        }

        @keyframes pulse-offline {
            0% { box-shadow: 0 0 0 0 rgba(139, 148, 158, 0.8); }
            70% { box-shadow: 0 0 0 6px rgba(139, 148, 158, 0); }
            100% { box-shadow: 0 0 0 0 rgba(139, 148, 158, 0); }
        }

        .view-name { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 2px; }

        .view-sub-info { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }



        

        .chat-container { flex: 1 1 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; padding-right: 12px; min-height: 0;}

        .chat-container::-webkit-scrollbar { width: 4px; }

        .chat-container::-webkit-scrollbar-track { background: transparent; }

        .chat-container::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }

        

        .chat-container.is-reacting .chat-msg-wrap:not(.highlighted-for-reaction) { filter: blur(3px); opacity: 0.4; pointer-events: none; }

        

        .chat-msg-wrap { display: flex; flex-direction: column; max-width: 85%; position: relative; flex-shrink: 0; transition: filter 0.2s, opacity 0.2s, transform 0.2s; }

        .chat-msg-wrap.me { align-self: flex-end; align-items: flex-end; }

        .chat-msg-wrap.other { align-self: flex-start; align-items: flex-start; }

        

        .chat-msg-wrap.highlighted-for-reaction { z-index: 1500 !important; transform: scale(1.02); }



        .chat-header-info { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

        

        .chat-header-info .chat-avatar { 

            width: 24px !important; 

            height: 24px !important; 

            flex: 0 0 24px !important; 

            border-radius: 50% !important; 

            background-color: var(--tab-active); 

            background-size: cover !important; 

            background-position: center !important; 

            background-repeat: no-repeat !important;

            border: 1px solid var(--border-color); 

            display: inline-block !important;

            box-sizing: border-box !important;

            aspect-ratio: 1 / 1 !important;

        }



        .chat-name { font-weight: bold; color: var(--text-main); }

        

        .chat-name-clickable { cursor: pointer; transition: color 0.2s; }

        .chat-name-clickable:hover { color: var(--accent-green); text-decoration: underline; }

        .avatar-clickable { cursor: pointer; transition: opacity 0.2s; }

        .avatar-clickable:hover { opacity: 0.7; }



        .chat-bubble { padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.4; word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; white-space: pre-wrap; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

        .chat-msg-wrap.me .chat-bubble { background: var(--accent-green); color: #000; border-bottom-right-radius: 4px; font-weight: 600; }

        .chat-msg-wrap.other .chat-bubble { background: var(--tab-bg); color: var(--text-main); border-bottom-left-radius: 4px; border: 1px solid var(--border-color); }

        

        .chat-edited { font-size: 9px; opacity: 0.7; margin-left: 5px; font-style: italic; }

        

        .chat-reply-box { font-size: 11px; opacity: 0.8; margin-bottom: 4px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,0.1); border-left: 2px solid rgba(255,255,255,0.3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;}

        .chat-msg-wrap.other .chat-reply-box { background: rgba(255,255,255,0.05); border-color: var(--text-muted); }



        .chat-reactions { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; z-index: 10; }

        .chat-reaction-badge { background: var(--tab-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 2px 6px; font-size: 11px; display: flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }

        .chat-msg-wrap.me .chat-reaction-badge { background: rgba(255,255,255,0.2); border: none; color: #000;}



        

        .chat-input-wrapper { position: relative; display: flex; flex-direction: column; background: #09090b; border-radius: 12px; border: 1px solid var(--input-border); transition: border-color 0.2s; flex-shrink: 0; z-index: 1500; }

        .chat-input-wrapper:focus-within { border-color: #44b6f8; }

        

        .chat-action-bar { display: none; padding: 6px 12px; font-size: 11px; color: var(--text-muted); background: rgba(68, 182, 248, 0.1); border-bottom: 1px solid var(--border-color); justify-content: space-between; align-items: center; border-radius: 12px 12px 0 0;}

        .chat-action-bar.edit-mode { background: rgba(255, 152, 0, 0.1); color: var(--accent-orange); }

        .chat-action-cancel { cursor: pointer; font-weight: bold; padding: 2px 6px; border-radius: 50%; transition: background 0.2s; }

        .chat-action-cancel:hover { background: rgba(255,255,255,0.1); }



        .chat-input-container { display: flex; align-items: flex-end; border-radius: 12px;}

        

        .chat-emoji-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 0 10px 0 15px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; margin-bottom: 12px; }

        .chat-emoji-btn:hover { color: var(--text-main); }

        

        .chat-emoji-picker { position: absolute; bottom: calc(100% + 10px); left: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px; box-shadow: 0 -4px 15px rgba(0,0,0,0.5); z-index: 1600; display: none; width: 260px; flex-wrap: wrap; gap: 8px; max-height: 150px; overflow-y: auto; overflow-x: hidden;}

        .chat-emoji-picker::-webkit-scrollbar { width: 4px; }

        .chat-emoji-picker::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }

        .chat-emoji-picker span { font-size: 20px; cursor: pointer; transition: transform 0.1s; user-select: none; text-align: center; width: 28px;}

        .chat-emoji-picker span:hover { transform: scale(1.3); }



        .chat-input-container textarea { flex-grow: 1; padding: 12px 10px; border: none; background: transparent; color: var(--text-main); font-size: 14px; outline: none; resize: none; overflow-y: auto; max-height: calc(1.4em * 4 + 24px); line-height: 1.4em; font-family: 'Inter', sans-serif; display: block; margin: 0;}

        .chat-input-container textarea::-webkit-scrollbar { width: 4px; }

        .chat-input-container textarea::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }

        .chat-input-container button[type="submit"] { width: 32px; height: 32px; margin: 6px 10px 6px 0; padding: 0; border: none; background: #44b6f8; color: #000; cursor: pointer; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; border-radius: 50%; align-self: flex-end; flex-shrink: 0;}

        .chat-input-container button[type="submit"]:hover { opacity: 0.9; }



        

        .context-menu { position: absolute; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 5px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.6); z-index: 2000; display: none; min-width: 160px; overflow: hidden; }

        .context-menu-item { padding: 10px 15px; font-size: 13px; cursor: pointer; color: var(--text-main); transition: background 0.2s; display: flex; align-items: center; gap: 8px; }

        .context-menu-item:hover { background: var(--tab-bg); }

        .context-menu-item.danger { color: var(--accent-red); }



        

        .card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 2000; border-radius: inherit; display: none; overflow: hidden; }

        .reaction-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 1400; display: none; border-radius: 24px; }

        .reaction-picker { position: absolute; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 8px 14px; box-shadow: 0 4px 15px rgba(0,0,0,0.8); z-index: 1600; display: none; gap: 15px; align-items: center; justify-content: center; }

        @keyframes slideUpSheet {

            from { transform: translateY(100%); }

            to { transform: translateY(0); }

        }

        .reaction-sheet { position: absolute; bottom: 0; left: 0; right: 0; background: var(--card-bg); border-top-left-radius: 16px; border-top-right-radius: 16px; padding: 12px 0; display: flex; flex-direction: column; max-height: 85%; animation: slideUpSheet 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 -4px 20px rgba(0,0,0,0.5); }

        .sheet-handle-wrapper { padding: 10px 0; cursor: grab; display: flex; justify-content: center; align-items: center; }

        .sheet-handle { width: 40px; height: 5px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; }

        .reaction-tabs { display: flex; gap: 8px; padding: 0 16px 12px 16px; border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; }

        .reaction-tabs::-webkit-scrollbar { display: none; }

        .reaction-tab { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; background: transparent; transition: background 0.2s, color 0.2s; white-space: nowrap; user-select: none; }

        .reaction-tab.active { background: var(--tab-bg); color: var(--text-main); }

        .reaction-sheet-content { display: flex; flex-direction: column; overflow-y: auto; padding: 12px 16px; gap: 4px; flex: 1; }

        .reaction-user-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; cursor: pointer; transition: background 0.2s; }

        .reaction-user-item:hover { background: var(--hover-bg); }

        .reaction-user-avatar { width: 32px; height: 32px; border-radius: 50%; background-color: var(--tab-active); background-size: cover; background-position: center; border: 1px solid var(--border-color); }

        .reaction-user-name { font-weight: 600; font-size: 14px; color: var(--text-main); }

        .reaction-emoji { font-size: 24px; cursor: pointer; transition: transform 0.1s; user-select: none; }

        .reaction-emoji:hover { transform: scale(1.3); }

        .reaction-emoji.selected { transform: scale(1.3); background: rgba(255,255,255,0.1); border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.1); }



        .chart-popup { position: absolute; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.6); z-index: 100; display: none; min-width: 140px; pointer-events: none; }

        .chart-popup-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }

        .chart-popup-value { font-size: 22px; font-weight: 800; color: var(--accent-green); }

        .chart-popup-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }



        .chart-sheet-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); z-index: 50; border-radius: inherit; display: none; }

        .chart-sheet { position: absolute; bottom: 0; left: 0; right: 0; background: var(--card-bg); border-top-left-radius: 16px; border-top-right-radius: 16px; padding: 12px 0 20px 0; display: flex; flex-direction: column; max-height: 70%; animation: slideUpSheet 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 -4px 20px rgba(0,0,0,0.5); z-index: 51; }

        .chart-sheet-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: bold; color: var(--text-muted); text-transform: uppercase; padding: 0 16px 10px 16px; border-bottom: 1px solid var(--border-color); }

        .chart-sheet-content { overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }

        .chart-sheet-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--tab-bg); border-radius: 10px; }

        .chart-sheet-row-label { font-size: 13px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

        .chart-sheet-row-value { font-size: 18px; font-weight: 800; color: var(--accent-green); }

        .chart-sheet-content::-webkit-scrollbar { width: 4px; }

        .chart-sheet-content::-webkit-scrollbar-track { background: transparent; }

        .chart-sheet-content::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }



        .features-scroll::-webkit-scrollbar { width: 4px; }

        .features-scroll::-webkit-scrollbar-track { background: transparent; }

        .features-scroll::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; }



        @keyframes weekendGlow {

            0% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.2); }

            50% { box-shadow: 0 0 15px rgba(76, 175, 80, 0.8); }

            100% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.2); }

        }

        .weekend-glow {

            animation: weekendGlow 2s infinite;

            border-color: var(--accent-green) !important;

            color: var(--accent-green) !important;

        }

        

        .footer-link {

            color: var(--text-muted); text-decoration: none; font-family: 'JetBrains Mono', monospace; transition: all 0.2s;

        }

        .footer-link:hover {

            color: var(--accent-green); cursor: pointer;

        }



    

        body::before,

        body::after {

            content: "";

            position: fixed;

            top: -50%;

            left: -50%;

            width: 200%;

            height: 200%;

            z-index: -1;

            pointer-events: none;

            will-change: transform;

        }



        body::before {

            background-image: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15), transparent 25%);

            animation: floatSpotGreen 300s ease-in-out infinite alternate;

        }



        body::after {

            background-image: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1), transparent 25%);

            animation: floatSpotBlue 350s ease-in-out infinite alternate-reverse;

        }



        @keyframes floatSpotGreen {

            0% { transform: translate(-20%, 0%) scale(1); }

            20% { transform: translate(10%, 20%) scale(1.2); }

            40% { transform: translate(25%, -15%) scale(0.9); }

            60% { transform: translate(-10%, -25%) scale(1.1); }

            80% { transform: translate(-25%, 15%) scale(0.85); }

            100% { transform: translate(15%, 5%) scale(1.15); }

        }



        @keyframes floatSpotBlue {

            0% { transform: translate(20%, -10%) scale(1); }

            25% { transform: translate(-15%, 15%) scale(1.15); }

            50% { transform: translate(-25%, -20%) scale(0.85); }

            75% { transform: translate(10%, 25%) scale(1.2); }

            100% { transform: translate(25%, 0%) scale(0.95); }

        }

.heart-beat {
    display: inline-block;
    color: #ec4899;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(1); }
}


@media (max-width: 800px) {
    header {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        margin-bottom: 10px;
        margin-top: 15px;
    }
    .header-left {
        justify-content: center;
        width: 100%;
    }
    .header-right {
        justify-content: center;
        width: 100%;
    }
}



    50% { text-shadow: 0 0 18px rgba(76, 175, 80, 1), 0 0 10px rgba(76, 175, 80, 0.8); }
    100% { text-shadow: 0 0 4px rgba(76, 175, 80, 0.6); }
}



    50% { text-shadow: 0 0 15px rgba(76, 175, 80, 1), 0 0 5px rgba(76, 175, 80, 0.8); }
    100% { text-shadow: 0 0 2px rgba(76, 175, 80, 0.5); }
}
.logo span, .auth-logo span,

@keyframes pulse-title-dot {
    0% { text-shadow: 0 0 2px rgba(16, 185, 129, 0.5); }
    50% { text-shadow: 0 0 15px rgba(16, 185, 129, 1); }
    100% { text-shadow: 0 0 2px rgba(16, 185, 129, 0.5); }
}
.logo span, .auth-logo span, .title-dot {
    display: inline-block;
    color: #10b981 !important;
    animation: pulse-title-dot 2s infinite ease-in-out !important;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}
