        :root {
            --bg-main: #131217;
            --bg-card: #1c1b20;
            --bg-nav: #17161b;
            --bg-modal: #1c1b20;
            --text-light: #ffffff;
            --text-muted: #9aa0a6;
            --text-dim: #5f6368;
            --border: rgba(255, 255, 255, 0.08);
            --border-light: rgba(255, 255, 255, 0.12);
            --color-red-bg: #3b282e;
            --color-red-icon: #b85c6b;
            --color-blue-bg: #222b40;
            --color-blue-icon: #5b7eb8;
            --color-green-bg: #1c332e;
            --color-green-icon: #4b9e7d;
            --color-orange-bg: #3b2e1c;
            --color-orange-icon: #b8925b;
            --color-purple-bg: #2e1c3b;
            --color-purple-icon: #8a5bb8;
            --accent: #4b9e7d;
            --accent-bg: rgba(75, 158, 125, 0.15);
            --danger: #b85c6b;
            --danger-bg: rgba(184, 92, 107, 0.15);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
        body { background-color: #000; display: flex; justify-content: center; min-height: 100vh; }
        .app-container { width: 100%; max-width: 400px; height: 100vh; background-color: var(--bg-main); display: flex; flex-direction: column; position: relative; overflow: hidden; }
        .hidden { display: none !important; }
        
        .auth-overlay { position: absolute; inset: 0; background: #000; z-index: 999; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s; }
        .auth-overlay.hidden { display: none; }
        .auth-card { background: var(--bg-card); padding: 40px 24px; border-radius: 24px; width: 100%; max-width: 380px; text-align: center; margin: 16px; box-sizing: border-box; border: 1px solid var(--border); }
        .auth-icon { font-size: 40px; color: var(--accent); margin-bottom: 20px; }
        .auth-card h2 { color: var(--text-light); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
        .auth-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
        .auth-card .form-group { text-align: left; }
        .auth-card .submit-btn { margin-top: 8px; }
        .btn-register { background: transparent !important; border: 1px solid var(--border-light) !important; color: var(--text-muted) !important; margin-top: 10px !important; }
        .btn-register:hover { background: rgba(255,255,255,0.05) !important; color: var(--text-light) !important; }
        .auth-message { margin-top: 16px; padding: 10px; border-radius: 8px; font-size: 13px; text-align: center; }
        .auth-message.error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(184,92,107,0.3); }
        .auth-message.success { background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(75,158,125,0.3); }

        .loading-overlay { position: absolute; inset: 0; background: var(--bg-main); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; gap: 16px; }
        .loading-spinner { width: 36px; height: 36px; border: 3px solid var(--border-light); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading-text { color: var(--text-dim); font-size: 13px; }

        header { padding: 20px 16px 10px; display: flex; align-items: center; gap: 12px; position: relative; }
        .header-icon { color: var(--text-muted); font-size: 20px; cursor: pointer; transition: color 0.2s; flex-shrink: 0; }
        .header-icon:hover { color: var(--text-light); }
        .search-bar { flex: 1; background-color: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 20px; padding: 10px 16px; color: var(--text-light); font-size: 14px; outline: none; transition: border-color 0.2s, background-color 0.2s; }
        .search-bar::placeholder { color: var(--text-dim); }
        .search-bar:focus { border-color: var(--accent); background-color: rgba(255,255,255,0.1); }

        .dropdown-menu { position: absolute; top: 54px; right: 16px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-light); padding: 6px 0; z-index: 60; min-width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
        .dropdown-item { padding: 10px 16px; color: var(--text-light); font-size: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.2s; }
        .dropdown-item:hover { background: rgba(255,255,255,0.06); }
        .dropdown-item i { width: 18px; text-align: center; color: var(--text-muted); }

        .categories { display: flex; gap: 10px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
        .categories::-webkit-scrollbar { display: none; }
        .chip { padding: 8px 16px; border-radius: 12px; border: 1px solid var(--border-light); color: var(--text-muted); font-size: 14px; white-space: nowrap; cursor: pointer; transition: all 0.3s; user-select: none; }
        .chip:hover { border-color: rgba(255,255,255,0.2); }
        .chip.active { background-color: rgba(255,255,255,0.15); color: var(--text-light); border-color: rgba(255,255,255,0.25); }

        .page { display: none; flex: 1; flex-direction: column; overflow-y: auto; padding: 8px 0 90px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
        .page.active { display: flex; }
        .page::-webkit-scrollbar { width: 4px; }
        .page::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

        .date-display { padding: 0 16px 8px; color: var(--text-muted); font-size: 13px; }
        .date-display strong { color: var(--text-light); font-weight: 600; }
        .habit-list { padding: 8px 16px; display: flex; flex-direction: column; gap: 12px; }
        .habit-card { background-color: var(--bg-card); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; transition: transform 0.2s, opacity 0.3s; animation: slideIn 0.3s ease-out; }
        @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .habit-card.completing { animation: completePulse 0.5s ease-out; }
        @keyframes completePulse { 0% { transform: scale(1); } 30% { transform: scale(1.02); } 100% { transform: scale(1); } }
        .icon-circle { width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; flex-shrink: 0; }
        .habit-info-container { flex: 1; min-width: 0; cursor: pointer; padding: 4px 0; }
        .habit-info-container h3 { color: var(--text-light); font-size: 15px; font-weight: 500; margin-bottom: 3px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .habit-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .habit-meta p { color: var(--text-dim); font-size: 12px; }
        .habit-badges {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 4px;
        }
        
        .streak-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-dim);
            padding: 3px 8px;
            border-radius: 8px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .streak-badge.active {
            color: #fff;
            background: var(--color-orange-bg);
            border-color: rgba(184, 146, 91, 0.3);
        }

        .streak-badge.active i {
            color: var(--color-orange-icon);
        }

        .ema-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 8px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--border);
        }
        .streak-badge { display: inline-flex; align-items: center; gap: 3px; color: var(--color-orange-icon); font-size: 11px; font-weight: 600; }
        .progress-btn { background: transparent; border: 2px solid; border-radius: 50%; width: 46px; height: 46px; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; flex-shrink: 0; }
        .progress-btn:hover { transform: scale(1.08); }
        .progress-btn:active { transform: scale(0.93); }
        .progress-btn.completed { color: #fff !important; box-shadow: 0 0 20px rgba(0,0,0,0.3); }
        .progress-btn .count-text { line-height: 1.1; text-align: center; }

        .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; gap: 16px; }
        .empty-state i { font-size: 48px; color: var(--text-dim); opacity: 0.5; }
        .empty-state h3 { color: var(--text-muted); font-size: 16px; font-weight: 500; }
        .empty-state p { color: var(--text-dim); font-size: 13px; line-height: 1.5; }

        .fab { position: absolute; bottom: 80px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(75,158,125,0.4); transition: all 0.3s; z-index: 10; }
        .fab:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(75,158,125,0.5); }

        .bottom-nav { position: absolute; bottom: 0; width: 100%; background-color: var(--bg-nav); display: flex; justify-content: space-around; padding: 10px 0 20px; border-top: 1px solid var(--border); z-index: 10; }
        .nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-muted); font-size: 11px; cursor: pointer; transition: color 0.2s; padding: 4px 12px; border-radius: 12px; }
        .nav-item:hover { color: var(--text-light); }
        .nav-item.active { color: var(--text-light); }
        .nav-item i { font-size: 18px; transition: all 0.3s; }
        .nav-item.active i { background-color: rgba(255,255,255,0.1); padding: 6px 16px; border-radius: 16px; }

        .weekly-chart-card { background: var(--bg-card); border-radius: 20px; margin: 0 16px 24px; padding: 20px 16px 16px; }
        .chart-header { color: var(--text-light); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
        .chart-subheader { color: var(--text-dim); font-size: 11px; margin-bottom: 20px; }
        .weekly-chart { display: flex; justify-content: space-between; align-items: flex-end; height: 100px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .chart-bar-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
        .chart-bar-track { width: 14px; height: 70px; background: rgba(255,255,255,0.04); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
        .chart-bar-fill { width: 100%; background: var(--accent); height: 0%; border-radius: 10px; transition: height 0.4s cubic-bezier(0.1,1,0.1,1); }
        .chart-bar-percent { font-size: 10px; color: var(--text-dim); font-weight: 600; height: 16px; line-height: 16px; }
        .chart-bar-percent.has-value { color: var(--text-muted); }
        .chart-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
        .chart-label.today-label { color: var(--text-light); font-weight: bold; }

        .detail-header { padding: 20px 16px; display: flex; align-items: center; justify-content: space-between; background: var(--bg-main); }
        .detail-header-left { display: flex; align-items: center; gap: 16px; color: var(--text-light); font-size: 18px; font-weight: 600; }
        .detail-header-right { display: flex; align-items: center; gap: 20px; color: var(--text-muted); font-size: 18px; }
        .detail-header-icon { cursor: pointer; transition: color 0.2s; }
        .detail-header-icon:hover { color: var(--text-light); }

        .detail-dashboard-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 10px 16px 24px; align-items: center; }
        .detail-stat-column { display: flex; flex-direction: column; gap: 16px; }
        .detail-mini-card { display: flex; flex-direction: column; gap: 2px; }
        .detail-mini-card .val { font-size: 20px; font-weight: 700; color: var(--text-light); }
        .detail-mini-card .lbl { font-size: 11px; color: var(--text-muted); font-weight: 500; }
        .detail-stat-column.align-right { text-align: right; }

        .circle-chart-container { display: flex; justify-content: center; align-items: center; padding: 0 10px; }
        .conic-circle-chart { width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--border) 0%, var(--border) 100%); display: flex; align-items: center; justify-content: center; position: relative; }
        .conic-circle-chart::before { content: ''; position: absolute; width: 92px; height: 92px; background: var(--bg-main); border-radius: 50%; }
        .circle-chart-center { position: relative; z-index: 1; text-align: center; }
        .circle-chart-center .percent-num { font-size: 24px; font-weight: 700; color: var(--text-light); }
        .circle-chart-center .percent-lbl { font-size: 10px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; margin-top: -2px; }

        .detail-main-card { background: var(--bg-card); border-radius: 20px; margin: 0 16px 20px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
        .detail-main-card .info h2 { color: var(--text-light); font-size: 18px; font-weight: 600; text-transform: capitalize; margin-bottom: 4px; }
        .detail-main-card .info p { color: var(--text-muted); font-size: 12px; }
        .detail-main-card .info span { display: inline-block; background: rgba(255,255,255,0.05); padding: 3px 10px; border-radius: 8px; font-size: 11px; color: var(--text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

        .detail-section-card { background: var(--bg-card); border-radius: 20px; margin: 0 16px 20px; padding: 20px 16px; }
        .detail-section-title { color: var(--text-light); font-size: 14px; font-weight: 600; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
        .detail-section-title select { background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; outline: none; cursor: pointer; }
        .monthly-bar-chart { display: flex; justify-content: space-between; align-items: flex-end; height: 90px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.04); }
        .monthly-bar-track { width: 18px; height: 65px; background: rgba(255,255,255,0.03); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
        .monthly-bar-fill { width: 100%; background: var(--accent); height: 0%; border-radius: 6px; transition: height 0.5s ease; }
        .monthly-empty-state { display: flex; align-items: center; justify-content: center; height: 90px; color: var(--text-dim); font-size: 13px; font-weight: 500; }

        .heatmap-container { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 4px 0; }
        .heatmap-days-labels { display: grid; grid-template-rows: repeat(7,1fr); gap: 6px; align-items: center; font-size: 11px; color: var(--text-dim); font-weight: 600; }
        .heatmap-scroll-area { overflow-x: auto; scrollbar-width: none; }
        .heatmap-scroll-area::-webkit-scrollbar { display: none; }
        .heatmap-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7,24px); grid-auto-columns: 24px; gap: 6px; }
        .heatmap-node { background: rgba(255,255,255,0.04); border-radius: 6px; transition: background 0.2s; cursor: pointer; }
        .heatmap-node.filled { background: var(--accent); }
        .heatmap-node.unscheduled { opacity: 0.25; }

        .detail-bottom-action { position: absolute; bottom: 0; left: 0; right: 0; background: #26211a; border-top: 1px solid rgba(255,255,255,0.05); padding: 14px 20px 30px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
        .detail-bottom-action.completed-state { background: #192621; }
        .detail-action-text { color: #f0cb9e; font-size: 16px; font-weight: 600; }
        .detail-bottom-action.completed-state .detail-action-text { color: #9ef0ce; }
        .detail-action-circle-btn { width: 44px; height: 44px; border-radius: 50%; background: #caa06d; border: none; color: #1c1813; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
        .detail-action-circle-btn:active { transform: scale(0.9); }
        .detail-bottom-action.completed-state .detail-action-circle-btn { background: #56a383; color: #fff; }

        .modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
        .modal-overlay.active { opacity: 1; pointer-events: all; }
        .modal { background: var(--bg-modal); border-radius: 24px 24px 0 0; padding: 24px 20px 40px; width: 100%; transform: translateY(100%); transition: transform 0.3s ease-out; max-height: 85vh; overflow-y: auto; }
        .modal-overlay.active .modal { transform: translateY(0); }
        .modal-handle { width: 40px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin: 0 auto 20px; }
        .modal h2 { color: var(--text-light); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
        .modal .modal-subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
        .form-group { margin-bottom: 18px; }
        .form-group label { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 8px; font-weight: 500; }
        .form-group input, .form-group select { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-light); border-radius: 12px; color: var(--text-light); font-size: 15px; outline: none; transition: border-color 0.2s; }
        .form-group input::placeholder { color: var(--text-dim); }
        .form-group input:focus, .form-group select:focus { border-color: var(--accent); }
        .form-group select option { background: var(--bg-card); color: var(--text-light); }
        .color-options { display: flex; gap: 12px; }
        .color-option { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
        .color-option:hover { transform: scale(1.1); }
        .color-option.active { border-color: var(--text-light); }
        .color-option i { font-size: 14px; opacity: 0; transition: opacity 0.2s; }
        .color-option.active i { opacity: 1; }
        .icon-options { display: flex; gap: 10px; flex-wrap: wrap; }
        .icon-option { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 2px solid transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.2s; }
        .icon-option:hover { background: rgba(255,255,255,0.1); color: var(--text-light); }
        .icon-option.active { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
        .modal-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
        .submit-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
        .submit-btn:active { transform: translateY(0); }
        .btn-delete-modal { width: 100%; padding: 14px; background: rgba(184,92,107,0.1); color: var(--danger); border: 1px solid rgba(184,92,107,0.3); border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .btn-delete-modal:hover { background: rgba(184,92,107,0.2); }

        .sort-list-container { display: flex; flex-direction: column; gap: 8px; }
        .sort-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.04); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); transition: background 0.2s; }
        .sort-item:hover { background: rgba(255,255,255,0.06); }
        .drag-handle { color: var(--text-dim); cursor: grab; font-size: 16px; touch-action: none; }
        .drag-handle:active { cursor: grabbing; }
        .sort-icon-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
        .sort-name { flex: 1; color: var(--text-light); font-size: 14px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sortable-ghost { opacity: 0.4; background: var(--accent-bg); border-color: var(--accent); }
        .sortable-chosen { background: rgba(255,255,255,0.08); }

        .schedule-type-options { display: flex; gap: 8px; flex-wrap: wrap; }
        .schedule-type-chip { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-light); color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all 0.2s; user-select: none; }
        .schedule-type-chip:hover { border-color: rgba(255,255,255,0.2); }
        .schedule-type-chip.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
        .day-picker { display: flex; gap: 8px; flex-wrap: wrap; }
        .day-chip { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 2px solid transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; user-select: none; }
        .day-chip:hover { background: rgba(255,255,255,0.1); color: var(--text-light); }
        .day-chip.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

        .toast-container { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
        .toast { padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 10px; animation: toastIn 0.3s ease-out; pointer-events: auto; }
        .toast.success { background: rgba(75,158,125,0.95); }
        .toast.info { background: rgba(91,126,184,0.95); }
        .toast.error { background: rgba(184,92,107,0.95); }
        .toast.warning { background: rgba(184,142,107,0.95); }
        .toast.hiding { animation: toastOut 0.3s ease-in forwards; }
        @keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

        .confirm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
        .confirm-overlay.active { opacity: 1; pointer-events: all; }
        .confirm-box { background: var(--bg-card); border-radius: 20px; padding: 24px; width: 85%; max-width: 320px; text-align: center; }
        .confirm-box h3 { color: var(--text-light); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
        .confirm-box p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
        .confirm-buttons { display: flex; gap: 10px; }
        .confirm-buttons button { flex: 1; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
        .btn-cancel { background: rgba(255,255,255,0.08); color: var(--text-muted); }
        .btn-cancel:hover { background: rgba(255,255,255,0.12); color: var(--text-light); }
        .btn-danger { background: var(--danger); color: #fff; }
        .btn-danger:hover { opacity: 0.9; }

        .page-title { color: var(--text-light); font-size: 24px; font-weight: 700; padding: 8px 16px 4px; }
        .page-subtitle { color: var(--text-dim); font-size: 13px; padding: 0 16px 16px; }
        .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 20px; }
        .stat-card { background: var(--bg-card); border-radius: 16px; padding: 16px; }
        .stat-card .stat-value { color: var(--text-light); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
        .stat-card .stat-label { color: var(--text-dim); font-size: 11px; font-weight: 500; }
        .progress-section-title { color: var(--text-light); font-size: 14px; font-weight: 600; padding: 0 16px 12px; }
        .progress-bar-container { padding: 0 16px 14px; }
        .progress-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; color: var(--text-muted); }
        .progress-bar-track { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
        .progress-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }

        .settings-section { padding: 0 16px 24px; }
        .settings-section h3 { color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
        .settings-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--bg-card); border-radius: 14px; margin-bottom: 8px; cursor: pointer; transition: background 0.2s; }
        .settings-item:hover { background: rgba(255,255,255,0.06); }
        .settings-item.danger:hover { background: var(--danger-bg); }
        .settings-item-left { display: flex; align-items: center; gap: 14px; color: var(--text-light); font-size: 14px; }
        .settings-item-left i { color: var(--text-muted); width: 20px; text-align: center; }
        .settings-item.danger .settings-item-left span { color: var(--danger); }
        .settings-item.danger .settings-item-left i { color: var(--danger); }
        .settings-item-right { color: var(--text-dim); font-size: 13px; }
        .sync-status { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 0 16px 20px; }
        .sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); transition: background 0.3s; }
        .sync-dot.synced { background: var(--accent); }
        .sync-dot.error { background: var(--danger); }
        .sync-dot.syncing { animation: pulse 1.2s ease-in-out infinite; }
        @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }