
        :root {
            --primary: #00D4AA;
            --primary-dark: #00B894;
            --primary-light: rgba(0, 212, 170, 0.15);
            --secondary: #6366F1;
            --secondary-light: rgba(99, 102, 241, 0.15);
            --accent: #F59E0B;
            --accent-light: rgba(245, 158, 11, 0.15);
            --danger: #EF4444;
            --bg: #0F172A;
            --bg-light: #1E293B;
            --bg-lighter: #334155;
            --bg-card: #1E293B;
            --bg-input: #0F172A;
            --text: #F1F5F9;
            --text-secondary: #94A3B8;
            --text-muted: #64748B;
            --border: #334155;
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.2);
            --radius-sm: 10px;
            --radius-md: 14px;
            --radius-lg: 20px;
            --radius-xl: 28px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #020617; color: var(--text); height: 100vh; overflow: hidden;
            display: flex; justify-content: center; align-items: center;
        }
        .app-container {
            width: 100%; max-width: 480px; height: 100vh; max-height: 900px;
            background: var(--bg); position: relative; overflow: hidden;
            display: flex; flex-direction: column; box-shadow: var(--shadow);
        }
        @media (min-width: 481px) {
            .app-container { height: 90vh; border-radius: var(--radius-lg); border: 1px solid var(--border); }
        }
        /* ===== COMPACT HEADER ===== */
        .header {
            background: var(--bg-light); padding: 10px 14px;
            display: flex; align-items: center; justify-content: space-between;
            border-bottom: 1px solid var(--border); z-index: 100; flex-shrink: 0;
        }
        .header-title {
            font-size: 18px; font-weight: 800;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            letter-spacing: -0.5px;
        }
        .header-actions { display: flex; gap: 14px; align-items: center; }
        .header-actions i { font-size: 18px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; position: relative; }
        .header-actions i:hover { color: var(--text); transform: scale(1.1); }
        .notification-badge {
            position: absolute; top: -5px; right: -5px;
            background: linear-gradient(135deg, var(--danger), #FF6B6B); color: white;
            font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
        }
        /* ===== COMPACT TAB NAV ===== */
        .tab-nav {
            display: flex; background: var(--bg-light); border-bottom: 1px solid var(--border);
            padding: 2px 10px 0; gap: 3px; flex-shrink: 0;
        }
        .tab-item {
            flex: 1; padding: 8px 2px 10px; text-align: center; cursor: pointer;
            font-size: 11px; font-weight: 600; color: var(--text-secondary);
            position: relative; transition: all 0.3s ease;
            display: flex; flex-direction: column; align-items: center; gap: 3px;
            border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        }
        .tab-item i { font-size: 16px; }
        .tab-item.active { color: var(--primary); background: var(--primary-light); }
        .tab-item.active::after {
            content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 2px 2px 0 0;
        }
        .tab-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
        /* ===== CONTENT AREA ===== */
        .content-area {
            flex: 1; overflow-y: auto; overflow-x: hidden;
            scrollbar-width: thin; scrollbar-color: var(--bg-lighter) transparent; position: relative;
        }
        .content-area::-webkit-scrollbar { width: 3px; }
        .content-area::-webkit-scrollbar-thumb { background: var(--bg-lighter); border-radius: 3px; }
        .chat-list { padding: 2px 0; }
        .chat-item {
            display: flex; align-items: center; padding: 8px 14px; cursor: pointer;
            transition: all 0.2s; position: relative; border-bottom: 1px solid rgba(255,255,255,0.02);
        }
        .chat-item:hover { background: var(--bg-lighter); }
        .chat-item:active { background: var(--bg-card); }
        /* ===== SMALL AVATAR ===== */
        .avatar {
            width: 40px; height: 40px; border-radius: var(--radius-sm); position: relative;
            flex-shrink: 0; overflow: hidden;
            background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 2px;
        }
        .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-sm) - 2px); background: var(--bg); }
        .avatar.online::after {
            content: ''; position: absolute; bottom: 1px; right: 1px;
            width: 10px; height: 10px; background: var(--primary); border: 2px solid var(--bg);
            border-radius: 50%; box-shadow: 0 0 4px var(--primary);
        }
        .avatar.typing::after {
            content: ''; position: absolute; bottom: 1px; right: 1px;
            width: 10px; height: 10px; background: var(--secondary); border: 2px solid var(--bg);
            border-radius: 50%; animation: pulse 1.5s infinite; box-shadow: 0 0 4px var(--secondary);
        }
        @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }
        .avatar-group {
            display: flex; flex-wrap: wrap; width: 40px; height: 40px;
            border-radius: var(--radius-sm); overflow: hidden; position: relative;
            background: linear-gradient(135deg, var(--primary), var(--secondary)); padding: 2px;
        }
        .avatar-group-inner {
            width: 100%; height: 100%; border-radius: calc(var(--radius-sm) - 2px);
            overflow: hidden; display: flex; flex-wrap: wrap; background: var(--bg);
        }
        .avatar-group img { width: 50%; height: 50%; object-fit: cover; }
        .group-icon {
            position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 7px; color: white; border: 2px solid var(--bg);
        }
        .chat-info { flex: 1; margin-left: 10px; min-width: 0; }
        .chat-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
        .chat-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .chat-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
        .chat-time.unread { color: var(--primary); font-weight: 600; }
        .chat-preview { display: flex; align-items: center; gap: 4px; }
        .chat-message { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
        .chat-message.unread { color: var(--text); font-weight: 500; }
        .chat-message i { font-size: 11px; color: var(--text-muted); }
        .chat-message i.read { color: var(--secondary); }
        .unread-badge {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white;
            font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
            display: flex; align-items: center; justify-content: center; padding: 0 5px; flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(0, 212, 170, 0.3);
        }
        .pinned-icon { color: var(--accent); font-size: 10px; margin-right: 3px; }

        .schedule-list { padding: 6px 10px; }
        .schedule-date-header {
            display: flex; align-items: center; gap: 6px; padding: 10px 4px 8px;
            color: var(--text-muted); font-size: 11px; font-weight: 600;
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .schedule-date-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }
        .schedule-card {
            background: var(--bg-card); border-radius: var(--radius-md); padding: 14px;
            margin-bottom: 8px; border: 1px solid var(--border);
            transition: all 0.3s; position: relative; overflow: hidden;
        }
        .schedule-card::before {
            content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
            background: linear-gradient(180deg, var(--primary), var(--secondary));
            border-radius: var(--radius-md) 0 0 var(--radius-md);
        }
        .schedule-card:hover { transform: translateX(3px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
        .schedule-card.urgent::before { background: linear-gradient(180deg, var(--danger), #FF8E53); }
        .schedule-card.urgent:hover { box-shadow: 0 0 16px rgba(239, 68, 68, 0.2); }
        .schedule-card.completed::before { background: var(--text-muted); }
        .schedule-card.completed { opacity: 0.6; }
        .schedule-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
        .schedule-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
        .schedule-project { font-size: 11px; color: var(--primary); font-weight: 500; display: flex; align-items: center; gap: 3px; }
        .schedule-time-block { background: var(--bg-lighter); border-radius: var(--radius-sm); padding: 5px 10px; text-align: center; min-width: 52px; }
        .schedule-time-block .time { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1; }
        .schedule-time-block .ampm { font-size: 9px; color: var(--text-muted); }
        .schedule-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
        .schedule-footer { display: flex; justify-content: space-between; align-items: center; }
        .schedule-members { display: flex; align-items: center; }
        .schedule-members img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bg-card); margin-left: -6px; }
        .schedule-members img:first-child { margin-left: 0; }
        .more-members {
            width: 24px; height: 24px; border-radius: 50%; background: var(--bg-lighter);
            border: 2px solid var(--bg-card); margin-left: -6px;
            display: flex; align-items: center; justify-content: center;
            font-size: 9px; color: var(--text-secondary); font-weight: 600;
        }
        .schedule-status { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 16px; }
        .schedule-status.pending { background: var(--primary-light); color: var(--primary); }
        .schedule-status.in-progress { background: var(--secondary-light); color: var(--secondary); }
        .schedule-status.urgent { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
        .schedule-status.completed { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }
        .chat-room { display: flex; flex-direction: column; height: 100%; }
        .chat-room-header {
            display: flex; align-items: center; padding: 10px 14px;
            background: var(--bg-light); border-bottom: 1px solid var(--border); gap: 10px; flex-shrink: 0;
        }
        .chat-room-header .avatar { width: 36px; height: 36px; }
        .chat-room-info { flex: 1; min-width: 0; }
        .chat-room-name { font-size: 15px; font-weight: 700; color: var(--text); }
        .chat-room-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
        .chat-room-meta .online-dot { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 3px var(--primary); }
        .chat-room-actions { display: flex; gap: 14px; }
        .chat-room-actions i { font-size: 16px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
        .chat-room-actions i:hover { color: var(--text); }
        .chat-messages {
            flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
            scrollbar-width: thin; scrollbar-color: var(--bg-lighter) transparent;
        }
        .chat-messages::-webkit-scrollbar { width: 3px; }
        .chat-messages::-webkit-scrollbar-thumb { background: var(--bg-lighter); border-radius: 3px; }
        .message-group { display: flex; flex-direction: column; gap: 3px; max-width: 80%; }
        .message-group.incoming { align-self: flex-start; }
        .message-group.outgoing { align-self: flex-end; }
        .message-sender { font-size: 11px; font-weight: 600; color: var(--primary); margin-left: 10px; }
        .message-sender.sender-2 { color: var(--secondary); }
        .message-sender.sender-3 { color: var(--accent); }
        .message-sender.sender-4 { color: #EC4899; }
        .message-bubble {
            padding: 8px 12px; border-radius: var(--radius-md); font-size: 13px;
            line-height: 1.5; position: relative; word-wrap: break-word;
        }
        .message-group.incoming .message-bubble { background: var(--bg-lighter); color: var(--text); border-bottom-left-radius: 3px; }
        .message-group.outgoing .message-bubble {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-bottom-right-radius: 3px;
        }
        .message-time { font-size: 9px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 3px; align-self: flex-end; }
        .message-group.outgoing .message-time { color: rgba(255,255,255,0.7); }
        .message-time i.read { color: var(--secondary); font-size: 9px; }
        .message-group.outgoing .message-time i.read { color: rgba(255,255,255,0.9); }
        .chat-input-area {
            padding: 10px 12px; background: var(--bg-light); border-top: 1px solid var(--border);
            display: flex; align-items: center; gap: 8px; flex-shrink: 0;
        }
        .chat-input-wrapper {
            flex: 1; background: var(--bg-input); border-radius: var(--radius-xl);
            display: flex; align-items: center; padding: 6px 12px; gap: 8px;
            border: 1px solid var(--border); transition: all 0.3s;
        }
        .chat-input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
        .chat-input-wrapper input {
            background: transparent; border: none; outline: none; color: var(--text);
            font-size: 13px; width: 100%; font-family: inherit;
        }
        .chat-input-wrapper input::placeholder { color: var(--text-muted); }
        .input-action {
            width: 32px; height: 32px; border-radius: 50%; background: var(--bg-lighter);
            border: none; color: var(--text-secondary); cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; flex-shrink: 0; font-size: 13px;
        }
        .input-action:hover { background: var(--primary); color: white; }
        .send-btn {
            width: 36px; height: 36px; border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none; color: white; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3); font-size: 13px;
        }
        .send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 212, 170, 0.5); }
        .send-btn:active { transform: scale(0.95); }
        .quick-actions {
            display: flex; gap: 6px; padding: 6px 12px; overflow-x: auto;
            scrollbar-width: none; flex-shrink: 0;
        }
        .quick-actions::-webkit-scrollbar { display: none; }
        .quick-chip {
            background: var(--bg-lighter); border: 1px solid var(--border); color: var(--text-secondary);
            padding: 5px 12px; border-radius: 16px; font-size: 11px; font-weight: 500;
            cursor: pointer; white-space: nowrap; transition: all 0.2s;
        }
        .quick-chip:hover, .quick-chip.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 2px 6px rgba(0, 212, 170, 0.3); }
        .divider-text { display: flex; align-items: center; padding: 12px; color: var(--text-muted); font-size: 11px; }
        .divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }
        .divider-text span { padding: 0 10px; }
        .fab {
            position: absolute; bottom: 20px; right: 16px; width: 50px; height: 50px; border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; color: white;
            font-size: 20px; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 212, 170, 0.4);
            transition: all 0.3s; display: flex; align-items: center; justify-content: center; z-index: 20;
        }
        .fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 6px 24px rgba(0, 212, 170, 0.6); }
        .fab:active { transform: scale(0.95); }
        .tab-content { display: none; animation: fadeIn 0.3s ease; height: 100%; }
        .tab-content.active { display: flex; flex-direction: column; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; text-align: center; color: var(--text-muted); }
        .empty-state i { font-size: 56px; margin-bottom: 14px; opacity: 0.3; }
        .empty-state h3 { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
        .empty-state p { font-size: 13px; max-width: 260px; line-height: 1.6; }
        .typing-dots { display: flex; gap: 2px; align-items: center; }
        .typing-dots span { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out both; }
        .typing-dots span:nth-child(1) { animation-delay: -0.32s; }
        .typing-dots span:nth-child(2) { animation-delay: -0.16s; }
        @keyframes typingBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }
        .scroll-indicator {
            position: absolute; bottom: 80px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
            background: var(--bg-lighter); border: 1px solid var(--border); color: var(--text-secondary);
            display: none; align-items: center; justify-content: center; cursor: pointer;
            z-index: 15; box-shadow: var(--shadow); font-size: 12px;
        }
        .scroll-indicator.show { display: flex; }
        .modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 1000;
            display: none; align-items: flex-start; justify-content: flex-end;
            padding: 52px 16px 0 0; opacity: 0; transition: opacity 0.3s;
        }
        .modal-overlay.show { display: flex; opacity: 1; }
        .modal-menu {
            background: var(--bg-light); border-radius: var(--radius-md); border: 1px solid var(--border);
            min-width: 200px; overflow: hidden; box-shadow: var(--shadow);
            transform: translateY(-10px); transition: transform 0.3s;
        }
        .modal-overlay.show .modal-menu { transform: translateY(0); }
        .modal-menu-item {
            display: flex; align-items: center; gap: 10px; padding: 12px 16px;
            cursor: pointer; transition: all 0.2s; border-bottom: 1px solid rgba(255,255,255,0.03);
        }
        .modal-menu-item:last-child { border-bottom: none; }
        .modal-menu-item:hover { background: var(--bg-lighter); }
        .modal-menu-item i { font-size: 15px; color: var(--primary); width: 18px; text-align: center; }
        .modal-menu-item span { font-size: 13px; font-weight: 500; color: var(--text); }
        .modal-menu-item .menu-desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
        .fullscreen-modal {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg); z-index: 2000; display: none; flex-direction: column;
            animation: slideUp 0.3s ease;
        }
        .fullscreen-modal.show { display: flex; }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .fullscreen-modal-header {
            display: flex; align-items: center; padding: 12px 16px;
            background: var(--bg-light); border-bottom: 1px solid var(--border); gap: 12px;
        }
        .fullscreen-modal-header h2 { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; }
        .fullscreen-modal-header .back-btn {
            width: 32px; height: 32px; border-radius: 50%; background: var(--bg-lighter);
            border: none; color: var(--text); cursor: pointer;
            display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 13px;
        }
        .fullscreen-modal-header .back-btn:hover { background: var(--primary); color: white; }
        .fullscreen-modal-body { flex: 1; overflow-y: auto; padding: 16px; }
        .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
        .gallery-item { aspect-ratio: 1; background: var(--bg-lighter); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: all 0.2s; position: relative; }
        .gallery-item:hover { transform: scale(0.98); opacity: 0.8; }
        .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
        .gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 20px; }
        .settings-section { margin-bottom: 20px; }
        .settings-section-title { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; padding-left: 4px; }
        .settings-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-card); border-radius: var(--radius-md); margin-bottom: 6px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
        .settings-item:hover { border-color: var(--primary); background: var(--bg-lighter); }
        .settings-item i { font-size: 16px; color: var(--primary); width: 20px; text-align: center; }
        .settings-item-content { flex: 1; }
        .settings-item-title { font-size: 13px; font-weight: 600; color: var(--text); }
        .settings-item-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
        .settings-item-arrow { color: var(--text-muted); font-size: 11px; }
        .toggle-switch { width: 40px; height: 22px; background: var(--bg-lighter); border-radius: 11px; position: relative; cursor: pointer; transition: all 0.3s; border: 1px solid var(--border); }
        .toggle-switch.active { background: var(--primary); }
        .toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: all 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
        .toggle-switch.active::after { left: 20px; }
        .info-logo { text-align: center; padding: 30px 16px; }
        .info-logo-icon {
            width: 64px; height: 64px; border-radius: var(--radius-lg);
            background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
            display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
            font-size: 28px; color: white; box-shadow: 0 6px 24px rgba(0, 212, 170, 0.3);
        }
        .info-logo h1 {
            font-size: 20px; font-weight: 800;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .info-version { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
        .info-description { text-align: center; padding: 0 16px 24px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
        .info-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 24px; }
        .info-stat { background: var(--bg-card); border-radius: var(--radius-md); padding: 14px 6px; text-align: center; border: 1px solid var(--border); }
        .info-stat-number { font-size: 18px; font-weight: 700; color: var(--primary); }
        .info-stat-label { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
        .info-footer { text-align: center; padding: 16px; color: var(--text-muted); font-size: 11px; }
        /* ===== CONTACT MODAL ===== */
        .contact-modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); z-index: 3000;
            display: none; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.3s; padding: 20px;
        }
        .contact-modal-overlay.show { display: flex; opacity: 1; }
        .contact-modal {
            background: var(--bg-light); border-radius: var(--radius-lg);
            border: 1px solid var(--border); width: 100%; max-width: 360px;
            box-shadow: var(--shadow); overflow: hidden;
            transform: scale(0.9); transition: transform 0.3s;
        }
        .contact-modal-overlay.show .contact-modal { transform: scale(1); }
        .contact-modal-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 16px 18px; border-bottom: 1px solid var(--border);
        }
        .contact-modal-header h3 {
            font-size: 16px; font-weight: 700; color: var(--text);
            display: flex; align-items: center; gap: 8px;
        }
        .contact-modal-header h3 i { color: var(--primary); }
        .contact-modal-close {
            width: 30px; height: 30px; border-radius: 50%; background: var(--bg-lighter);
            border: none; color: var(--text-secondary); cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; font-size: 13px;
        }
        .contact-modal-close:hover { background: var(--danger); color: white; }
        .contact-modal-body { padding: 20px 18px; }
        .form-group { margin-bottom: 16px; }
        .form-group label {
            display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary);
            margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px;
        }
        .form-group input {
            width: 100%; background: var(--bg-input); border: 1px solid var(--border);
            border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text);
            font-size: 14px; font-family: inherit; transition: all 0.3s;
        }
        .form-group input:focus {
            outline: none; border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        .form-group input::placeholder { color: var(--text-muted); }
        .form-hint {
            font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.4;
        }
        .form-hint i { color: var(--accent); margin-right: 3px; }
        .contact-submit-btn {
            width: 100%; padding: 12px; border-radius: var(--radius-sm);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none; color: white; font-size: 14px; font-weight: 700;
            cursor: pointer; transition: all 0.3s; margin-top: 4px;
            box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
            font-family: inherit;
        }
        .contact-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 212, 170, 0.5);
        }
        .contact-submit-btn:active { transform: translateY(0); }
        @media (hover: none) {
            .chat-item:active { background: var(--bg-lighter); }
            .schedule-card:active { transform: scale(0.98); }
        }
    
/* ===== PROJECT PAGE COMPONENTS ===== */
.info-banner {
    background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(99,102,241,0.1));
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 12px 14px; margin: 10px 12px;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12px; color: var(--text-secondary); line-height: 1.5;
}
.info-banner i { color: var(--primary); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.info-banner b { color: var(--text); }

.project-subtabs {
    display: flex; gap: 8px; padding: 4px 12px 8px;
}
.project-subtab {
    flex: 1; padding: 8px; text-align: center;
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.project-subtab.active {
    background: var(--primary); color: white;
}
.project-subtab:not(.active) {
    background: var(--bg-lighter); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.project-subtab i { margin-right: 4px; }

.project-subcontent { display: none; flex: 1; overflow-y: auto; }
.project-subcontent.active { display: block; }

.filter-bar {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px;
}
.filter-bar .quick-actions { flex: 1; padding: 0; }
.btn-add {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,212,170,0.3);
    transition: all 0.2s; font-size: 13px;
}
.btn-add:hover { transform: scale(1.1); }

/* ===== NOTES ===== */
.notes-list { padding: 0 12px; }
.note-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px;
    transition: all 0.2s; cursor: pointer;
}
.note-card:hover { border-color: var(--primary); }
.note-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.note-title { font-size: 14px; font-weight: 600; color: var(--text); }
.note-date { font-size: 10px; color: var(--text-muted); }
.note-content { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.note-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.note-tag {
    font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 10px;
}
.note-tag.tag-backend { background: var(--primary-light); color: var(--primary); }
.note-tag.tag-api { background: var(--secondary-light); color: var(--secondary); }
.note-tag.tag-design { background: rgba(245,158,11,0.1); color: var(--accent); }
.note-tag.tag-meeting { background: var(--primary-light); color: var(--primary); }
.note-tag.tag-important { background: rgba(236,72,153,0.1); color: #EC4899; }

.btn-add-note {
    display: flex; align-items: center; gap: 6px; padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none; color: white; font-size: 12px; font-weight: 600;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,212,170,0.3);
    transition: all 0.2s; font-family: inherit;
}
.btn-add-note:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,212,170,0.5); }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--bg-light); border: 1px solid var(--border);
    padding: 10px 18px; border-radius: var(--radius-md);
    font-size: 12px; color: var(--text); z-index: 5000;
    box-shadow: var(--shadow); opacity: 0; transition: all 0.3s ease;
    max-width: 90%; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== LOADING ===== */
.loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; z-index: 4000;
}
.loading-overlay.show { display: flex; }
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--bg-lighter);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PROFILE HEADER ===== */
.profile-header { text-align: center; padding: 16px 0 24px; }
.profile-name { font-size: 16px; font-weight: 700; color: var(--text); }
.profile-email { font-size: 12px; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .app-container { max-width: 100%; height: 100vh; border-radius: 0; border: none; }
}
@media (min-width: 768px) {
    .app-container { max-width: 520px; }
    .chat-item { padding: 10px 16px; }
    .message-bubble { font-size: 14px; padding: 10px 14px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .app-container { height: 100vh; border-radius: 0; max-width: 100%; }
    .header { padding: 6px 14px; }
    .tab-item { padding: 4px 2px 6px; font-size: 10px; }
    .tab-item i { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
