/* ==================== متغیرهای CSS ==================== */
:root {
    --bg-gradient-start: #0a0f1a;
    --bg-gradient-end: #0a1f2e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-tertiary: rgba(255,255,255,0.45);
    --accent: #0a84ff;
    --accent-hover: #0091ff;
    --accent-glow: rgba(10,132,255,0.3);
    --success: #34c759;
    --warning: #ff9f0a;
    --danger: #ff3b30;
    --glass: rgba(28,28,35,0.72);
    --glass-border: rgba(255,255,255,0.12);
    --card-bg: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --island-bg: rgba(0,0,0,0.85);
    --island-text: #ffffff;
    --island-border: rgba(255,255,255,0.2);
    --shared-badge-bg: rgba(10,132,255,0.2);
    --radius-sm: 14px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

[data-theme="light"] {
    --bg-gradient-start: #e8f0f8;
    --bg-gradient-end: #d4e4f7;
    --text-primary: #1c2433;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --glass: rgba(255,255,255,0.78);
    --glass-border: rgba(0,0,0,0.10);
    --card-bg: rgba(0,0,0,0.04);
    --border: rgba(0,0,0,0.10);
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --island-bg: rgba(255,255,255,0.92);
    --island-text: #1c2433;
    --island-border: rgba(0,0,0,0.12);
    --shared-badge-bg: rgba(10,132,255,0.1);
}

/* ==================== ریست و پایه ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(145deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    line-height: 1.6;
    direction: rtl;
}
.hidden { display: none !important; }
.text-center { text-align: center; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==================== اسکرول بار ==================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.4); }

/* ==================== استیت خالی ==================== */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-tertiary); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ==================== صفحه احراز هویت ==================== */
.auth-container {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    z-index: 5000; background: linear-gradient(145deg, #0a0f1a, #0a1f2e);
}
.auth-bg { position: absolute; inset: 0; overflow: hidden; }
.auth-bg-shape {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
    animation: authFloat 20s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; background: #0a84ff; top: -10%; left: -10%; animation-delay: 0s; }
.shape-2 { width: 400px; height: 400px; background: #bf5af2; bottom: -10%; right: -10%; animation-delay: -7s; }
.shape-3 { width: 300px; height: 300px; background: #30d158; top: 50%; left: 50%; animation-delay: -14s; }
@keyframes authFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
.auth-card {
    position: relative; z-index: 1; width: 100%; max-width: 460px;
    background: var(--glass); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    padding: 40px 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 28px; font-weight: 800; color: var(--text-primary); }
.auth-logo i { font-size: 36px; color: var(--accent); }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.auth-form h2 { font-size: 20px; margin-bottom: 24px; text-align: center; }
.auth-form .input-group { position: relative; margin-bottom: 16px; }
.auth-form .input-group i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 14px; transition: color 0.2s; pointer-events: none; }
.auth-form .input-group:focus-within i { color: var(--accent); }
.auth-form input { width: 100%; padding: 14px 44px 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text-primary); font-size: 15px; font-family: inherit; transition: var(--transition); }
[data-theme="light"] .auth-form input { background: rgba(0,0,0,0.03); color: var(--text-primary); }
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.input-row { display: flex; gap: 12px; } .input-row .input-group { flex: 1; }
.toggle-password { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 14px; }
.auth-btn { width: 100%; padding: 16px; border-radius: var(--radius); border: none; background: linear-gradient(135deg, var(--accent), #5e5ce6); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); margin-top: 8px; }
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ==================== اپ اصلی ==================== */
.app-container { min-height: 100vh; padding-bottom: 90px; position: relative; transition: padding 0.3s ease; }
.dynamic-bg { position: fixed; inset: 0; z-index: -2; background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end)); transition: background 0.3s ease; }
.stars-container { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.star { position: absolute; width: 2px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 50%; animation: starFloat 8s linear infinite; box-shadow: 0 0 4px rgba(255,255,255,0.5); transition: background 0.3s ease, box-shadow 0.3s ease; }
[data-theme="light"] .star { background: rgba(80, 100, 140, 0.4); box-shadow: 0 0 3px rgba(80, 100, 140, 0.25); }
@keyframes starFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.8; } 80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1.2); }
}
.main-container { max-width: 1300px; margin: 0 auto; padding: 80px 20px 40px; position: relative; z-index: 10; }

/* ==================== تب‌ها ==================== */
.tab-pane { display: none; animation: fadeInUp 0.35s ease forwards; }
.tab-pane.active { display: block; }
.tab-pane.tab-hidden { display: none !important; }

/* ==================== Dynamic Island ==================== */
.dynamic-island {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    background: var(--island-bg); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    border-radius: 32px; padding: 8px 18px; z-index: 1001; cursor: pointer;
    border: 0.5px solid var(--island-border); box-shadow: 0 10px 28px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1); min-width: 140px;
}
.dynamic-island.minimized { border-radius: 40px; padding: 6px 16px; }
.dynamic-island.minimized .island-expanded-content { display: none; }
.dynamic-island.minimized .island-minimized-content { display: flex; align-items: center; gap: 14px; }
.dynamic-island:not(.minimized) { min-width: 320px; padding: 12px 20px; }
.dynamic-island:not(.minimized) .island-minimized-content { display: none; }
.dynamic-island:not(.minimized) .island-expanded-content { display: flex; flex-direction: column; gap: 8px; }
.island-minimized-content { color: var(--island-text); font-size: 14px; font-weight: 500; }
.island-minimized-content i { font-size: 12px; opacity: 0.8; }
.notification-dot { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
.island-expanded-content { font-size: 13px; color: var(--island-text); }
.island-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.island-row .separator { color: var(--text-tertiary); }
.island-progress-bar { background: rgba(128,128,128,0.25); border-radius: 6px; height: 4px; overflow: hidden; margin: 4px 0; }
.island-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--success)); border-radius: 6px; transition: width 0.3s ease; }
.island-stats { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-secondary); }
.island-notif-btn { cursor: pointer; position: relative; }
.notif-badge { position: absolute; top: -6px; right: -8px; background: var(--danger); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 9px; display: flex; align-items: center; justify-content: center; }

/* ==================== کارت‌های شیشه‌ای ==================== */
.glass-card { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: all 0.2s ease; }

/* ==================== آمار ==================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { padding: 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; }
.stat-card.active { border-color: var(--accent); background: rgba(10,132,255,0.15); box-shadow: 0 0 0 1px var(--accent); }
.stat-icon { font-size: 28px; width: 52px; height: 52px; background: rgba(255,255,255,0.08); border-radius: 18px; display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .stat-icon { background: rgba(0,0,0,0.05); }
.stat-number { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ==================== هدر سکشن ==================== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 16px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.add-box-btn, .add-goal-btn, .add-deadline-btn, .join-by-code-btn, .shared-actions-top button {
    background: var(--accent); border: none; padding: 10px 18px; border-radius: 30px;
    color: white; font-weight: 600; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.add-goal-btn, .add-deadline-btn { padding: 10px; border-radius: 30px; }
.add-box-btn:hover, .add-goal-btn:hover, .add-deadline-btn:hover, .join-by-code-btn:hover { background: var(--accent-hover); transform: scale(1.02); }

/* ==================== تسک باکس‌ها ==================== */
.taskboxes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.taskbox-card {
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 28px; overflow: hidden; transition: all 0.25s ease;
}
.taskbox-card:hover { transform: translateY(-6px); border-color: rgba(128,128,128,0.25); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.taskbox-header { padding: 22px 20px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.taskbox-icon { font-size: 36px; }
.taskbox-info h3 { font-size: 18px; font-weight: 600; }
.taskbox-count { font-size: 12px; color: var(--text-tertiary); }
.taskbox-actions { display: flex; gap: 8px; }
.taskbox-actions button { background: rgba(255,255,255,0.08); border: none; width: 36px; height: 36px; border-radius: 14px; color: var(--text-secondary); cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .taskbox-actions button { background: rgba(0,0,0,0.06); }
.taskbox-actions button:hover { background: var(--accent); color: white; }
.taskbox-body { padding: 20px; }
.taskbox-tasks { display: flex; flex-direction: column; gap: 10px; }
.task-item { background: var(--card-bg); border-radius: 20px; padding: 14px; transition: 0.2s; border: 1px solid var(--border); cursor: pointer; }
.task-item:hover { background: rgba(255,255,255,0.08); }
.task-item.completed { opacity: 0.55; }
.task-item.completed .task-name { text-decoration: line-through; }
.task-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-checkbox { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--text-tertiary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.15s; flex-shrink: 0; }
.task-checkbox.checked { background: var(--success); border-color: var(--success); }
.task-checkbox.checked::after { content: "✓"; color: white; font-size: 14px; font-weight: bold; }
.task-stars { font-size: 12px; }
.task-name { font-weight: 600; flex: 1; }
.task-name:hover { color: var(--accent); }
.task-tag { font-size: 10px; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,0.1); }
[data-theme="light"] .task-tag { background: rgba(0,0,0,0.06); }
.tag-work { background: rgba(10,132,255,0.2); color: #5e9cff; }
.tag-personal { background: rgba(52,199,89,0.2); color: #34c759; }
.tag-urgent { background: rgba(255,59,48,0.2); color: #ff5e55; }
.task-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; opacity: 0; transition: 0.15s; }
.task-item:hover .task-actions { opacity: 1; }
.task-actions button { background: rgba(255,255,255,0.08); border: none; width: 32px; height: 32px; border-radius: 12px; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .task-actions button { background: rgba(0,0,0,0.06); }
.task-actions button:hover { background: var(--accent); color: white; }
.task-actions button.delete:hover { background: var(--danger); }

/* ==================== باکس‌های اشتراکی ==================== */
.shared-box-card { position: relative; }
.shared-owner-badge {
    background: var(--shared-badge-bg); color: var(--accent); font-weight: 600; font-size: 12px;
    padding: 8px 16px; display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid var(--border);
}
.shared-owner-badge i { font-size: 14px; }

/* ==================== بخش‌های تب اشتراک ==================== */
.shared-section { margin-bottom: 36px; }
.shared-section-title {
    font-size: 17px; font-weight: 700; margin-bottom: 16px; padding: 12px 16px;
    background: rgba(10,132,255,0.08); border-radius: var(--radius); color: var(--accent);
    display: flex; align-items: center; gap: 10px; border: 1px solid rgba(10,132,255,0.15);
}
.shared-section-title i { font-size: 20px; }
.shared-goal-item { position: relative; margin-bottom: 16px; }
.shared-goal-item .shared-owner-badge { border-bottom: 1px solid var(--border); }
.shared-deadline-card { position: relative; margin-bottom: 16px; }
.shared-deadline-card .shared-owner-badge { border-bottom: 1px solid var(--border); }

/* ==================== نوت کارت‌ها ==================== */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.note-card {
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden;
    transition: all 0.25s ease; border-top: 4px solid var(--note-color, var(--accent));
}
.note-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.note-card-header { padding: 16px 16px 8px; display: flex; justify-content: space-between; align-items: flex-start; }
.note-card-header h3 { font-size: 16px; font-weight: 700; flex: 1; margin-right: 8px; }
.note-card-actions { display: flex; gap: 4px; }
.note-card-actions button {
    background: rgba(255,255,255,0.08); border: none; width: 32px; height: 32px;
    border-radius: 10px; color: var(--text-secondary); cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
[data-theme="light"] .note-card-actions button { background: rgba(0,0,0,0.06); }
.note-card-actions button:hover { background: var(--accent); color: white; }
.note-card-actions button.delete:hover { background: var(--danger); }
.note-card-body { padding: 8px 16px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.note-card-footer {
    padding: 10px 16px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-tertiary); display: flex; align-items: center; gap: 6px;
}
.shared-note-card { position: relative; }

/* ==================== زیرتسک‌های inline ==================== */
.subtasks-inline { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.subtask-inline-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; transition: 0.15s; }
.subtask-inline-item.completed { opacity: 0.5; }
.subtask-inline-item.completed .subtask-inline-name { text-decoration: line-through; }
.subtask-checkbox { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--text-tertiary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.15s; flex-shrink: 0; }
.subtask-checkbox.checked { background: var(--success); border-color: var(--success); }
.subtask-checkbox.checked::after { content: "✓"; color: white; font-size: 10px; font-weight: bold; }
.subtask-inline-name { font-size: 13px; color: var(--text-secondary); }

/* ==================== اهداف ==================== */
.goals-list { display: flex; flex-direction: column; gap: 16px; }
.goal-item { background: var(--card-bg); border-radius: var(--radius-lg); padding: 20px; border-right: 4px solid var(--accent); transition: all 0.3s ease; }
.goal-item.goal-completed { border-right-color: var(--success); background: rgba(52,199,89,0.08); }
.goal-header { display: flex; justify-content: space-between; margin-bottom: 12px; align-items: center; }
.goal-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.goal-streak { font-size: 13px; background: rgba(255,159,10,0.2); color: var(--warning); padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.goal-actions { display: flex; align-items: center; gap: 4px; }
.goal-actions button { background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: 16px; padding: 6px; border-radius: 8px; transition: 0.2s; }
.goal-actions button:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.goal-increment-btn { color: var(--success) !important; font-size: 20px !important; }
.goal-increment-btn:hover { background: rgba(52,199,89,0.2) !important; transform: scale(1.15); }
.progress-bar { height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; margin: 12px 0; }
[data-theme="light"] .progress-bar { background: rgba(0,0,0,0.08); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--warning), var(--success)); width: 0%; border-radius: 5px; transition: width 0.6s ease; }
.progress-fill.complete { background: linear-gradient(90deg, var(--success), #00ff88); }
.goal-stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); }

/* ==================== ددلاین‌ها ==================== */
.main-deadlines-list { display: flex; flex-direction: column; gap: 20px; }
.main-deadline-card { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 28px; padding: 24px; border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.main-deadline-card::before { content: ""; position: absolute; top: 0; right: 0; width: 6px; height: 100%; background: var(--deadline-color, var(--danger)); box-shadow: 0 0 12px var(--deadline-color, var(--danger)); }
.main-deadline-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.main-deadline-title { font-size: 18px; font-weight: 700; }
.main-deadline-actions { display: flex; gap: 8px; }
.main-deadline-actions button { background: rgba(255,255,255,0.08); border: none; width: 34px; height: 34px; border-radius: 10px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .main-deadline-actions button { background: rgba(0,0,0,0.06); }
.main-deadline-actions button:hover { background: var(--accent); color: #fff; }
.deadline-timeline { margin: 20px 0; }
.timeline-track { background: rgba(255,255,255,0.1); height: 8px; border-radius: 4px; overflow: hidden; }
[data-theme="light"] .timeline-track { background: rgba(0,0,0,0.08); }
.timeline-progress { height: 100%; background: linear-gradient(90deg, var(--danger), var(--warning)); border-radius: 4px; transition: width 1s ease; }
.deadline-countdown { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.countdown-item { text-align: center; background: rgba(255,255,255,0.05); padding: 12px; border-radius: 20px; min-width: 65px; }
[data-theme="light"] .countdown-item { background: rgba(0,0,0,0.04); }
.countdown-value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* ==================== پروفایل ==================== */
.profile-container { display: flex; flex-direction: column; gap: 24px; }
.profile-card { display: flex; align-items: center; gap: 24px; padding: 28px; }
.profile-avatar { font-size: 64px; color: var(--accent); }
.profile-info h2 { font-size: 22px; margin-bottom: 4px; }
.profile-info p { font-size: 14px; color: var(--text-secondary); margin: 2px 0; }
.profile-badge { font-size: 12px; color: var(--text-tertiary); background: rgba(255,255,255,0.06); padding: 6px 12px; border-radius: 20px; display: inline-block; margin-top: 8px; }
[data-theme="light"] .profile-badge { background: rgba(0,0,0,0.05); }
.profile-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.profile-stat { padding: 20px; text-align: center; }
.profile-stat-value { font-size: 28px; font-weight: 800; display: block; }
.profile-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; display: block; }

/* ==================== گزارشات ==================== */
.analytics-section { padding: 24px; margin-bottom: 24px; }
.analytics-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.period-selector { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 4px; }
[data-theme="light"] .period-selector { background: rgba(0,0,0,0.03); }
.period-btn {
    padding: 8px 16px; border: none; background: transparent; color: var(--text-secondary);
    border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s ease;
}
.period-btn.active { background: var(--accent); color: white; }
.period-btn:hover:not(.active) { background: rgba(255,255,255,0.06); }
.analytics-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.analytics-card { padding: 20px; }
.analytics-card-header { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.analytics-stats-row { display: flex; gap: 20px; flex-wrap: wrap; }
.analytics-stat { text-align: center; flex: 1; min-width: 100px; padding: 18px 12px; background: rgba(255,255,255,0.03); border-radius: var(--radius); border: 1px solid var(--border); }
[data-theme="light"] .analytics-stat { background: rgba(0,0,0,0.02); }
.analytics-stat-value { font-size: 26px; font-weight: 800; display: block; background: linear-gradient(135deg, var(--accent), var(--success)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.analytics-stat-label { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; display: block; }
.analytics-goals-list { display: flex; flex-direction: column; gap: 14px; }
.analytics-goal-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.analytics-goal-item:last-child { border-bottom: none; }
.analytics-goal-name { font-weight: 600; font-size: 14px; }
.analytics-goal-stats { font-size: 12px; color: var(--text-tertiary); }

/* ==================== مخاطبان ==================== */
.contacts-section { padding: 24px; margin-bottom: 24px; }
.contacts-list { display: flex; flex-direction: column; gap: 8px; }
.contact-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: rgba(255,255,255,0.03); border-radius: var(--radius); border: 1px solid var(--border);
    transition: 0.2s;
}
[data-theme="light"] .contact-item { background: rgba(0,0,0,0.02); }
.contact-item:hover { background: rgba(10,132,255,0.06); border-color: var(--accent); }
.contact-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #5e5ce6);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; flex-shrink: 0;
}
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-name { font-weight: 600; font-size: 15px; }
.contact-detail { font-size: 12px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-actions { display: flex; gap: 6px; }
.contact-actions button {
    background: rgba(255,255,255,0.08); border: none; width: 34px; height: 34px;
    border-radius: 10px; color: var(--text-secondary); cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
[data-theme="light"] .contact-actions button { background: rgba(0,0,0,0.06); }
.contact-actions button:hover { background: var(--accent); color: white; }
.contact-actions button.delete:hover { background: var(--danger); }

/* ==================== لیست مخاطبان در مودال ==================== */
.contacts-checkbox-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; margin-top: 8px; padding: 4px; }
.contact-checkbox-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); cursor: pointer; transition: 0.2s;
    border: 1px solid transparent;
}
[data-theme="light"] .contact-checkbox-item { background: rgba(0,0,0,0.02); }
.contact-checkbox-item:hover { border-color: var(--accent); background: rgba(10,132,255,0.05); }
.contact-checkbox-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.contact-checkbox-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-checkbox-info span { font-weight: 500; font-size: 14px; }
.contact-checkbox-info small { font-size: 11px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==================== تنظیمات مجوز ==================== */
.share-permissions {
    background: rgba(10,132,255,0.04); border-radius: var(--radius); padding: 18px; margin-bottom: 20px;
    border: 1px solid rgba(10,132,255,0.12);
}
[data-theme="light"] .share-permissions { background: rgba(10,132,255,0.02); }
.share-permissions h4 { font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--accent); }
.perm-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.perm-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--text-secondary); }
.perm-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.perm-reactions { border-top: 1px solid var(--border); padding-top: 14px; }
.perm-reactions label { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 10px; font-weight: 500; }
.emoji-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.emoji-option {
    width: 44px; height: 44px; border-radius: 14px; border: 2px solid transparent;
    background: rgba(255,255,255,0.06); font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
[data-theme="light"] .emoji-option { background: rgba(0,0,0,0.04); }
.emoji-option:hover { transform: scale(1.1); background: rgba(10,132,255,0.1); }
.emoji-option.active { background: var(--accent); border-color: white; box-shadow: 0 0 12px var(--accent-glow); transform: scale(1.05); }
.emoji-option:not(.active) { opacity: 0.35; filter: grayscale(30%); }

/* ==================== مودال جزئیات (واکنش و کامنت) ==================== */
.task-detail-body { padding: 24px; }
.detail-section { margin-bottom: 24px; }
.detail-section h4 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.reactions-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.reaction-btn {
    padding: 10px 16px; border-radius: 24px; border: 1.5px solid var(--border);
    background: rgba(255,255,255,0.04); color: var(--text-secondary);
    cursor: pointer; font-size: 18px; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 6px; font-weight: 500;
}
[data-theme="light"] .reaction-btn { background: rgba(0,0,0,0.03); }
.reaction-btn:hover { background: rgba(10,132,255,0.15); border-color: var(--accent); transform: translateY(-2px); }
.reaction-btn.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; max-height: 300px; overflow-y: auto; }
.comment-item {
    padding: 14px 16px; background: rgba(255,255,255,0.03); border-radius: 16px;
    border: 1px solid var(--border);
}
[data-theme="light"] .comment-item { background: rgba(0,0,0,0.02); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment-header strong { font-size: 13px; color: var(--accent); }
.comment-time { font-size: 10px; color: var(--text-tertiary); }
.comment-body { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.comment-input-row { display: flex; gap: 10px; margin-top: 8px; }
.comment-input-row input { flex: 1; }

/* ==================== تاریخچه فعالیت‌ها ==================== */
.activity-log-section { padding: 24px; }
.activity-log-section h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.activity-logs-list { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.log-item { padding: 12px 16px; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
[data-theme="light"] .log-item { background: rgba(0,0,0,0.03); }
.log-item .log-details { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-item .log-action { font-weight: 600; }
.log-item .log-entity { color: var(--text-tertiary); font-size: 12px; }
.log-item .log-value { color: var(--accent); font-weight: 500; font-size: 12px; }
.log-item .log-time { color: var(--text-tertiary); font-size: 11px; white-space: nowrap; }
.logout-btn { padding: 16px; border: none; border-radius: var(--radius); background: rgba(255,59,48,0.15); color: var(--danger); font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; width: 100%; }
.logout-btn:hover { background: rgba(255,59,48,0.3); }

/* ==================== تنظیمات ==================== */
.settings-card { padding: 24px; border-radius: var(--radius-xl); }
.settings-card h2 { margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.setting-group { margin-bottom: 28px; }
.setting-group label { font-weight: 600; display: block; margin-bottom: 12px; }
.theme-switcher { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-btn { flex: 1; min-width: 80px; padding: 12px; border-radius: var(--radius); background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.2s; text-align: center; }
[data-theme="light"] .theme-btn { background: rgba(0,0,0,0.04); }
.theme-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.setting-toggle { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 14px; }
.toggle-switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.15); border-radius: 28px; transition: 0.3s;
}
[data-theme="light"] .toggle-slider { background: rgba(0,0,0,0.15); }
.toggle-slider::before {
    content: ""; position: absolute; height: 22px; width: 22px; left: 3px; bottom: 3px;
    background: white; border-radius: 50%; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }
.setting-item.danger { width: 100%; padding: 16px; border-radius: var(--radius); background: rgba(255,59,48,0.1); border: none; color: var(--danger); font-weight: 700; cursor: pointer; text-align: center; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.version { text-align: center; font-size: 12px; color: var(--text-tertiary); margin-top: 20px; }

/* ==================== داک بار ==================== */
.dock-bar { position: fixed; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; z-index: 1000; pointer-events: none; }
.dock-container {
    background: rgba(0,0,0,0.65); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-radius: 44px; padding: 6px 10px; display: flex; gap: 4px;
    border: 0.5px solid rgba(255,255,255,0.2); pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow-x: auto;
}
[data-theme="light"] .dock-container { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dock-item { background: transparent; border: none; display: flex; flex-direction: column; align-items: center; padding: 8px 11px; border-radius: 32px; color: var(--text-secondary); transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.2); cursor: pointer; white-space: nowrap; min-width: 52px; }
.dock-item i { font-size: 19px; }
.dock-item span { font-size: 9px; margin-top: 4px; font-weight: 500; }
.dock-item.active { background: var(--accent); color: white; transform: translateY(-4px); }
.dock-item .active-dot { width: 5px; height: 5px; background: white; border-radius: 50%; margin-top: 6px; visibility: hidden; }
.dock-item.active .active-dot { visibility: visible; }

/* ==================== موقعیت‌های مختلف داک ==================== */
.dock-bar.dock-bottom { bottom: 20px; top: auto; left: 0; right: 0; flex-direction: row; justify-content: center; }
.dock-bar.dock-bottom .dock-container { flex-direction: row; }
.dock-bar.dock-top { top: 20px; bottom: auto; left: 0; right: 0; flex-direction: row; justify-content: center; }
.dock-bar.dock-top .dock-container { flex-direction: row; }
.dock-bar.dock-left {
    top: 50%; left: 20px; right: auto; bottom: auto; transform: translateY(-50%);
    flex-direction: column; justify-content: center;
}
.dock-bar.dock-left .dock-container { flex-direction: column; gap: 6px; }
.dock-bar.dock-left .dock-item { flex-direction: row; padding: 10px 14px; min-width: auto; gap: 8px; }
.dock-bar.dock-left .dock-item span { display: inline; font-size: 11px; }
.dock-bar.dock-left .dock-item i { font-size: 18px; }
.dock-bar.dock-right {
    top: 50%; right: 20px; left: auto; bottom: auto; transform: translateY(-50%);
    flex-direction: column; justify-content: center;
}
.dock-bar.dock-right .dock-container { flex-direction: column; gap: 6px; }
.dock-bar.dock-right .dock-item { flex-direction: row-reverse; padding: 10px 14px; min-width: auto; gap: 8px; }
.dock-bar.dock-right .dock-item span { display: inline; font-size: 11px; }
.dock-bar.dock-right .dock-item i { font-size: 18px; }

/* ==================== مودال‌ها ==================== */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: 0.25s; padding: 20px; }
.modal.show { opacity: 1; visibility: visible; }
.modal-content { background: var(--glass); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border-radius: 40px; max-width: 500px; width: 100%; max-height: 85vh; overflow-y: auto; border: 1px solid var(--glass-border); transform: scale(0.95); transition: 0.2s ease; }
.modal.show .modal-content { transform: scale(1); }
.modal-large { max-width: 650px; }
.modal-header { display: flex; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.modal-close { background: rgba(255,255,255,0.1); border: none; width: 36px; height: 36px; border-radius: 30px; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--danger); color: #fff; }
form { padding: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
input, select, textarea { width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,0.08); color: var(--text-primary); font-family: inherit; font-size: 15px; }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: rgba(0,0,0,0.04); color: var(--text-primary); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icon-picker, .color-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.icon-option { width: 50px; height: 50px; border-radius: 18px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); font-size: 24px; cursor: pointer; }
.icon-option.selected { border-color: var(--accent); background: var(--accent-glow); }
.color-option { width: 42px; height: 42px; border-radius: 16px; border: 2px solid transparent; cursor: pointer; }
.color-option.selected { border-color: white; transform: scale(1.1); }
.priority-selector { display: flex; align-items: center; gap: 12px; }
.priority-selector input { flex: 1; }
.datetime-input-group { display: flex; gap: 10px; } .datetime-input-group input { flex: 1; }
.subtasks-container { display: flex; flex-direction: column; gap: 10px; }
.subtask-item { display: flex; gap: 10px; } .subtask-input { flex: 1; }
.subtask-add-btn { width: 44px; height: 44px; border-radius: 14px; border: none; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.subtasks-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.subtask-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,0.04); border-radius: 12px; }
[data-theme="light"] .subtask-list-item { background: rgba(0,0,0,0.03); }
.subtask-list-item span { flex: 1; font-size: 14px; }
.subtask-list-item button { background: none; border: none; color: var(--text-tertiary); cursor: pointer; }
.subtask-list-item button:hover { color: var(--danger); }
.form-actions { display: flex; gap: 14px; margin-top: 28px; }
.btn-cancel, .btn-submit { flex: 1; padding: 15px; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-cancel { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-secondary); }
[data-theme="light"] .btn-cancel { background: rgba(0,0,0,0.04); }
.btn-cancel:hover { background: rgba(255,255,255,0.12); }
.btn-submit { background: linear-gradient(135deg, var(--accent), #5e5ce6); border: none; color: #fff; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }

/* ==================== اشتراک‌گذاری ==================== */
.share-modal-body { padding: 24px; }
.share-box-name { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 20px; color: var(--accent); }
.share-method { margin-bottom: 20px; }
.share-method h4 { font-size: 14px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.share-code-box { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); border-radius: var(--radius); padding: 12px; }
[data-theme="light"] .share-code-box { background: rgba(0,0,0,0.03); }
.share-code-box code { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: 2px; color: var(--accent); text-align: center; }
.share-divider { text-align: center; margin: 16px 0; position: relative; }
.share-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.share-divider span { position: relative; background: var(--glass); padding: 0 16px; font-size: 12px; color: var(--text-tertiary); }
.copy-btn { background: var(--accent); border: none; width: 42px; height: 42px; border-radius: var(--radius-sm); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.copy-btn:hover { background: var(--accent-hover); }

/* ==================== نوتیفیکیشن‌ها ==================== */
.notifications-container { padding: 16px; max-height: 50vh; overflow-y: auto; }
.notif-item { padding: 16px; border-radius: var(--radius); margin-bottom: 8px; background: rgba(255,255,255,0.04); border-right: 3px solid var(--accent); cursor: pointer; transition: 0.2s; }
.notif-item.unread { background: rgba(10,132,255,0.1); }
.notif-item:hover { background: rgba(255,255,255,0.08); }
.notif-item .notif-title { font-weight: 600; font-size: 14px; }
.notif-item .notif-message { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.notif-item .notif-time { font-size: 10px; color: var(--text-tertiary); margin-top: 6px; }
.notif-actions { padding: 16px; border-top: 1px solid var(--border); text-align: center; }
.notif-actions button { padding: 10px 24px; border-radius: var(--radius); border: none; background: var(--accent); color: #fff; cursor: pointer; font-weight: 600; }

/* ==================== Toast ==================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px 20px; min-width: 280px; max-width: 400px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); animation: slideInRight 0.4s ease; pointer-events: auto; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }
.toast-icon { font-size: 20px; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info .toast-icon { color: var(--accent); }
.toast-message { flex: 1; font-size: 14px; }

/* ==================== Smart Calendar ==================== */
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin-bottom: 16px; }
.calendar-header h2 { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--success)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cal-nav-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 16px; }
.cal-nav-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.weather-forecast { padding: 20px; margin-bottom: 20px; }
.weather-header { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--accent); }
.weather-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.weather-stat { flex: 1; min-width: 120px; text-align: center; }
.weather-stat-value { font-size: 24px; font-weight: 800; display: block; background: linear-gradient(135deg, var(--accent), var(--success)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.weather-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; display: block; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 24px; }
.calendar-day-header { text-align: center; font-size: 13px; font-weight: 700; color: var(--text-tertiary); padding: 10px 0; }
.calendar-day { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; min-height: 60px; }
.calendar-day:hover { background: rgba(10, 132, 255, 0.08); border-color: rgba(10, 132, 255, 0.2); }
.calendar-day.empty { cursor: default; background: transparent; border: none; }
.calendar-day.today { border: 2px solid var(--accent); background: rgba(10, 132, 255, 0.08); }
.calendar-day.selected { background: var(--accent) !important; color: white; }
.calendar-day.selected .calendar-day-number { color: white; }
.calendar-day-number { font-size: 16px; font-weight: 700; z-index: 1; }
.calendar-day-tasks { position: absolute; top: 4px; right: 6px; font-size: 10px; font-weight: 700; background: var(--accent); color: white; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.calendar-day-mood { position: absolute; bottom: 2px; font-size: 14px; }
.calendar-day-heat { position: absolute; bottom: 2px; left: 4px; font-size: 9px; color: var(--success); font-weight: 600; }
.calendar-tasks-section { margin-bottom: 24px; }
.calendar-goals-section { margin-bottom: 24px; }
.calendar-streaks { margin-bottom: 24px; }
.streaks-list { display: flex; gap: 12px; flex-wrap: wrap; }
.streak-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.calendar-friends { margin-bottom: 24px; }

/* ==================== My Day ==================== */
.myday-hero { padding: 28px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.myday-greeting h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; background: linear-gradient(135deg, var(--warning), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.myday-greeting p { font-size: 14px; color: var(--text-secondary); }
.myday-mood-selector { display: flex; gap: 10px; }
.mood-btn { width: 48px; height: 48px; border-radius: 16px; border: 2px solid var(--border); background: rgba(255,255,255,0.04); font-size: 22px; cursor: pointer; transition: all 0.25s ease; display: flex; align-items: center; justify-content: center; }
.mood-btn:hover { transform: scale(1.15); border-color: var(--accent); background: rgba(10,132,255,0.1); }
.mood-btn.active { border-color: var(--accent); background: var(--accent); transform: scale(1.1); box-shadow: 0 4px 16px var(--accent-glow); }
.myday-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.myday-stat-card { padding: 20px; text-align: center; border-radius: var(--radius-lg); }
.myday-stat-value { font-size: 32px; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--success)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.myday-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.myday-tasks-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.myday-task-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
.myday-task-item:hover { background: rgba(10,132,255,0.04); border-color: var(--accent); }
.myday-task-item.overdue { border-right: 3px solid var(--danger); }
.myday-task-checkbox { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--text-tertiary); cursor: pointer; flex-shrink: 0; transition: all 0.15s ease; }
.myday-task-checkbox.checked { background: var(--success); border-color: var(--success); }
.myday-task-checkbox.checked::after { content: "✓"; color: white; font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center; height: 100%; }
.myday-task-info { flex: 1; min-width: 0; }
.myday-task-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.myday-task-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-tertiary); flex-wrap: wrap; }
.myday-task-priority { font-size: 13px; color: var(--warning); flex-shrink: 0; }
.myday-badge { font-size: 10px; padding: 3px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.myday-badge.overdue { background: rgba(255,59,48,0.15); color: var(--danger); }
.myday-badge.urgent { background: rgba(255,59,48,0.15); color: var(--danger); }
.myday-suggestion { padding: 12px 18px; background: rgba(255,159,10,0.06); border-radius: var(--radius); border: 1px dashed rgba(255,159,10,0.3); font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.myday-deadlines-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.myday-deadline-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
.myday-deadline-item:hover { background: rgba(10,132,255,0.04); border-color: var(--accent); }
.myday-deadline-color { width: 6px; height: 40px; border-radius: 3px; flex-shrink: 0; }
.myday-deadline-info { flex: 1; min-width: 0; }
.myday-deadline-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.myday-deadline-time { font-size: 12px; color: var(--text-tertiary); }
.myday-goals-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.myday-goal-item { padding: 16px 18px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
.myday-goal-item:hover { background: rgba(10,132,255,0.04); border-color: var(--accent); }
.myday-goal-header { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.myday-friends-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.myday-friend-card { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; gap: 14px; }
.myday-friend-header { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.myday-friend-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #5e5ce6); display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; flex-shrink: 0; }
.myday-friend-info { display: flex; flex-direction: column; gap: 2px; }
.myday-friend-name { font-weight: 600; font-size: 15px; }
.myday-friend-stats { font-size: 12px; color: var(--text-tertiary); }
.myday-energy-btn { padding: 10px 18px; border-radius: 20px; border: 1px solid var(--warning); background: rgba(255,159,10,0.08); color: var(--warning); cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.myday-energy-btn:hover { background: var(--warning); color: white; transform: scale(1.05); }

/* ==================== NLP Preview ==================== */
.nlp-preview { background: rgba(10,132,255,0.06); border: 1px solid rgba(10,132,255,0.2); border-radius: 16px; padding: 14px; margin-top: 10px; animation: fadeInUp 0.3s ease; }
.nlp-preview-header { font-weight: 700; font-size: 13px; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.nlp-preview-items { display: flex; flex-direction: column; gap: 6px; }
.nlp-preview-item { font-size: 12px; color: var(--text-secondary); padding: 6px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.nlp-preview-item span { color: var(--accent); font-weight: 600; }

/* ==================== Social Day ==================== */
.friends-feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item { padding: 16px; border-radius: var(--radius); transition: all 0.2s ease; }
.feed-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.feed-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.feed-item-user { display: flex; align-items: center; gap: 10px; }
.feed-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #5e5ce6); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; flex-shrink: 0; }
.feed-username { font-weight: 600; font-size: 14px; }
.feed-time { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.feed-item-body { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-sm); border: 1px solid var(--border); }
[data-theme="light"] .feed-item-body { background: rgba(0, 0, 0, 0.02); }
.feed-icon { font-size: 20px; flex-shrink: 0; }
.feed-message { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.energy-boosts-list { display: flex; flex-direction: column; gap: 10px; }
.energy-boost-item { padding: 16px; border-radius: var(--radius); border-right: 4px solid var(--warning); transition: all 0.2s ease; }
.energy-boost-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 159, 10, 0.15); }
.energy-boost-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.energy-boost-sender { display: flex; align-items: center; gap: 10px; }
.energy-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--warning), #ff6b35); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; flex-shrink: 0; }
.energy-username { font-weight: 600; font-size: 14px; }
.energy-time { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.energy-boost-body { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255, 159, 10, 0.05); border-radius: var(--radius-sm); border: 1px dashed rgba(255, 159, 10, 0.2); }
[data-theme="light"] .energy-boost-body { background: rgba(255, 159, 10, 0.03); }
.energy-icon { font-size: 20px; flex-shrink: 0; animation: energyPulse 1.5s ease-in-out infinite; }
@keyframes energyPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 1; } }
.energy-message { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
#dailyReflectionContainer { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 20px; }
#dailyReflectionInput { width: 100%; border-radius: var(--radius); padding: 14px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text-primary); font-family: inherit; font-size: 14px; resize: vertical; min-height: 80px; transition: all 0.2s ease; line-height: 1.8; }
[data-theme="light"] #dailyReflectionInput { background: rgba(0, 0, 0, 0.02); color: var(--text-primary); }
#dailyReflectionInput:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
#dailyReflectionInput::placeholder { color: var(--text-tertiary); font-style: italic; }

/* ==================== Dock Position Dropdown ==================== */
.dock-position-dropdown { position: relative; width: 100%; max-width: 300px; }
.dock-dropdown-btn { width: 100%; padding: 14px 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s ease; font-family: inherit; }
[data-theme="light"] .dock-dropdown-btn { background: rgba(0, 0, 0, 0.04); }
.dock-dropdown-btn:hover { border-color: var(--accent); background: rgba(10, 132, 255, 0.08); }
.dock-dropdown-btn i { font-size: 14px; color: var(--text-tertiary); transition: transform 0.2s ease; }
.dock-dropdown-btn:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.dock-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); z-index: 100; overflow: hidden; animation: fadeInUp 0.2s ease; }
[data-theme="light"] .dock-dropdown-menu { background: rgba(255, 255, 255, 0.95); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); }
.dock-dropdown-item { padding: 14px 18px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; transition: all 0.15s ease; border-bottom: 1px solid var(--border); }
.dock-dropdown-item:last-child { border-bottom: none; }
.dock-dropdown-item:hover { background: rgba(10, 132, 255, 0.08); color: var(--text-primary); }
.dock-dropdown-item.active { background: rgba(10, 132, 255, 0.15); color: var(--accent); font-weight: 700; }
.dock-dropdown-item span { font-size: 18px; }

/* ==================== Repeat Task Settings ==================== */
.repeat-settings { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 4px; }
[data-theme="light"] .repeat-settings { background: rgba(0, 0, 0, 0.02); }
.repeat-settings select { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: var(--text-primary); font-family: inherit; font-size: 14px; cursor: pointer; transition: all 0.2s ease; }
[data-theme="light"] .repeat-settings select { background: rgba(0, 0, 0, 0.03); }
.repeat-settings select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.repeat-interval-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.repeat-interval-group label { display: block; font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; }
.repeat-interval-group input[type="number"] { width: 100px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: var(--text-primary); font-family: inherit; font-size: 14px; text-align: center; transition: all 0.2s ease; }
[data-theme="light"] .repeat-interval-group input[type="number"] { background: rgba(0, 0, 0, 0.03); }
.repeat-interval-group input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.task-tag.repeat-tag { background: rgba(191, 90, 242, 0.2); color: #bf5af2; font-size: 10px; padding: 4px 10px; border-radius: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ==================== پومودورو پرو پلاس ==================== */
.tab-pane#tab-pomodoro { display: none; }
.tab-pane#tab-pomodoro.active { display: block !important; }
.pomodoro-wrapper { display: flex; flex-direction: column; gap: 24px; padding: 20px 0; }
.pomodoro-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; flex-wrap: wrap; gap: 16px; }
.pomodoro-header-left { display: flex; align-items: center; gap: 12px; }
.pomodoro-header-left h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.pomodoro-badge { font-size: 28px; animation: pomoBounce 2s ease-in-out infinite; display: inline-block; }
@keyframes pomoBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.pomodoro-mode-switch { display: flex; gap: 6px; background: rgba(255,255,255,0.04); border-radius: 16px; padding: 5px; }
[data-theme="light"] .pomodoro-mode-switch { background: rgba(0,0,0,0.04); }
.pomodoro-mode-switch .mode-btn { padding: 10px 20px; border-radius: 12px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.25s ease; display: flex; align-items: center; gap: 6px; font-family: inherit; }
.pomodoro-mode-switch .mode-btn.active { background: var(--accent); color: white; box-shadow: 0 4px 16px var(--accent-glow); }
.pomodoro-mode-switch .mode-btn:hover:not(.active) { background: rgba(255,255,255,0.08); }
[data-theme="light"] .pomodoro-mode-switch .mode-btn:hover:not(.active) { background: rgba(0,0,0,0.06); }
.pomodoro-today-stats { display: flex; gap: 20px; font-size: 13px; color: var(--text-secondary); }
.pomodoro-today-stats strong { color: var(--accent); font-size: 16px; }
.pomodoro-section { display: block; }

.timer-main-card { padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.timer-circle-wrapper { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.timer-svg { position: absolute; width: 100%; height: 100%; }
.timer-svg .orbit-particle { animation: pomoOrbitRotate 8s linear infinite; transform-origin: 150px 150px; }
.timer-svg .particle-1 { animation-duration: 6s; }
.timer-svg .particle-2 { animation-duration: 10s; animation-delay: -3s; }
.timer-svg .particle-3 { animation-duration: 8s; animation-delay: -5s; }
@keyframes pomoOrbitRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.timer-inner-content { position: absolute; text-align: center; z-index: 2; }
.timer-display { font-size: 60px; font-weight: 900; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #ffffff, #a8d8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 2px; line-height: 1.2; }
[data-theme="light"] .timer-display { background: linear-gradient(135deg, #1c2433, #0a84ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.timer-phase { font-size: 16px; color: var(--text-secondary); margin-top: 8px; font-weight: 600; }
.timer-session-count { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

.timer-controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pomo-btn { padding: 12px 24px; border-radius: 16px; border: none; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; white-space: nowrap; }
.pomo-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pomo-btn-start { background: linear-gradient(135deg, var(--accent), #5e5ce6); color: white; }
.pomo-btn-start:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.pomo-btn-pause { background: rgba(255,159,10,0.15); color: var(--warning); border: 1px solid rgba(255,159,10,0.3); }
.pomo-btn-pause:hover:not(:disabled) { background: rgba(255,159,10,0.25); }
.pomo-btn-skip { background: rgba(255,255,255,0.08); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.1); }
[data-theme="light"] .pomo-btn-skip { background: rgba(0,0,0,0.04); }
.pomo-btn-skip:hover:not(:disabled) { background: rgba(255,255,255,0.15); }
.pomo-btn-reset { background: rgba(255,59,48,0.1); color: var(--danger); border: 1px solid rgba(255,59,48,0.2); }
.pomo-btn-reset:hover { background: rgba(255,59,48,0.2); }
.pomo-btn-primary { background: var(--accent); color: white; }
.pomo-btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.pomo-btn-danger { background: rgba(255,59,48,0.1); color: var(--danger); border: 1px solid rgba(255,59,48,0.2); }
.pomo-btn-danger:hover { background: var(--danger); color: white; }

.timer-settings { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.timer-settings .setting-row { display: flex; flex-direction: column; gap: 8px; }
.timer-settings .setting-row > label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.duration-selector { display: flex; gap: 8px; }
.duration-btn { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-secondary); cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.2s ease; font-family: inherit; }
[data-theme="light"] .duration-btn { background: rgba(0,0,0,0.03); }
.duration-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.duration-btn:hover:not(.active) { border-color: var(--accent); }
.task-select-wrapper { position: relative; }
.task-select { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text-primary); font-family: inherit; font-size: 14px; cursor: pointer; appearance: none; -webkit-appearance: none; }
[data-theme="light"] .task-select { background: rgba(0,0,0,0.03); }
.task-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.room-create-card { padding: 24px; margin-bottom: 24px; }
.room-create-card h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.room-create-form { display: flex; flex-direction: column; gap: 14px; }
.room-input { width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text-primary); font-family: inherit; font-size: 14px; }
[data-theme="light"] .room-input { background: rgba(0,0,0,0.03); }
.room-input:focus { outline: none; border-color: var(--accent); }
.room-create-row { display: flex; gap: 12px; }
.room-select { flex: 1; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text-primary); font-family: inherit; font-size: 14px; cursor: pointer; }
[data-theme="light"] .room-select { background: rgba(0,0,0,0.03); }
.rooms-section { margin-bottom: 24px; }
.rooms-section h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.room-card { padding: 20px; position: relative; transition: all 0.2s ease; cursor: pointer; }
.room-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.room-card h4 { font-size: 16px; margin-bottom: 6px; }
.room-card .room-meta { font-size: 12px; color: var(--text-tertiary); margin-bottom: 12px; }
.room-card .room-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.room-card .room-participants-count { font-size: 12px; color: var(--accent); font-weight: 600; }
.room-card .room-host { font-size: 11px; color: var(--text-tertiary); }
.room-join-btn { padding: 8px 20px; border-radius: 20px; border: none; background: var(--accent); color: white; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.2s ease; font-family: inherit; width: 100%; margin-top: 8px; }
.room-join-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.room-badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.room-badge.active-room { background: rgba(52,199,89,0.2); color: var(--success); }
.room-badge.waiting-room { background: rgba(10,132,255,0.2); color: var(--accent); }
.room-member-badge { color: var(--success); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.active-room-card { padding: 24px; margin-bottom: 24px; }
.active-room-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.room-header-info h3 { font-size: 20px; margin-bottom: 4px; }
.room-header-info span { font-size: 13px; color: var(--text-tertiary); }
.room-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.room-timer-section { text-align: center; padding: 24px; margin-bottom: 20px; background: rgba(255,255,255,0.03); border-radius: 20px; border: 1px solid var(--border); }
[data-theme="light"] .room-timer-section { background: rgba(0,0,0,0.02); }
.room-timer-display { font-size: 52px; font-weight: 900; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #ffffff, #a8d8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .room-timer-display { background: linear-gradient(135deg, #1c2433, #0a84ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.room-timer-progress { margin-top: 12px; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
[data-theme="light"] .room-timer-progress { background: rgba(0,0,0,0.08); }
.room-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--success)); border-radius: 4px; transition: width 1s linear; width: 0%; }

.room-participants-section { margin-bottom: 20px; }
.room-participants-section h4 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.participants-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.participant-chip { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(255,255,255,0.05); border-radius: 30px; border: 1px solid var(--border); font-size: 13px; position: relative; }
[data-theme="light"] .participant-chip { background: rgba(0,0,0,0.03); }
.participant-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #5e5ce6); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.participant-avatar.host { border: 2px solid var(--warning); box-shadow: 0 0 8px rgba(255,159,10,0.4); }
.participant-name { font-weight: 600; }
.remove-participant-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 14px; padding: 2px 6px; margin-right: 4px; opacity: 0.6; transition: 0.2s; }
.remove-participant-btn:hover { opacity: 1; transform: scale(1.2); }

.room-chat-section h4 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.chat-messages { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 8px 4px; }
.chat-message { display: flex; gap: 10px; align-items: flex-start; animation: chatSlideIn 0.3s ease; }
@keyframes chatSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-message.my-message { flex-direction: row-reverse; }
.chat-message-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #5e5ce6); display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.chat-message-body { flex: 1; min-width: 0; }
.chat-message-sender { font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.chat-message-text { font-size: 13px; color: var(--text-secondary); padding: 8px 14px; background: rgba(255,255,255,0.04); border-radius: 14px; display: inline-block; max-width: 85%; line-height: 1.6; word-break: break-word; }
[data-theme="light"] .chat-message-text { background: rgba(0,0,0,0.04); }
.chat-message-time { font-size: 9px; color: var(--text-tertiary); margin-top: 4px; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input { flex: 1; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text-primary); font-family: inherit; font-size: 14px; }
[data-theme="light"] .chat-input { background: rgba(0,0,0,0.03); }
.chat-input:focus { outline: none; border-color: var(--accent); }

.sessions-history { padding: 24px; }
.sessions-history h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sessions-list { display: flex; flex-direction: column; gap: 10px; }
.session-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: rgba(255,255,255,0.03); border-radius: 16px; border: 1px solid var(--border); transition: all 0.2s ease; }
[data-theme="light"] .session-item { background: rgba(0,0,0,0.02); }
.session-item:hover { background: rgba(10,132,255,0.04); border-color: var(--accent); }
.session-icon { font-size: 28px; }
.session-info { flex: 1; min-width: 0; }
.session-duration { font-weight: 700; font-size: 16px; }
.session-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.session-status { padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.session-status.completed { background: rgba(52,199,89,0.15); color: var(--success); }
.session-status.incomplete { background: rgba(255,159,10,0.15); color: var(--warning); }

/* ==================== ریسپانسیو ==================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .taskboxes-grid { grid-template-columns: repeat(2, 1fr); }
    .notes-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-stats { grid-template-columns: repeat(3, 1fr); }
    .analytics-stats-row { flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .main-container { padding: 70px 16px 30px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .taskboxes-grid { grid-template-columns: 1fr; }
    .notes-grid { grid-template-columns: 1fr; }
    .dock-container { gap: 2px; padding: 4px 6px; }
    .dock-item { padding: 6px 8px; min-width: 44px; }
    .dock-item span { font-size: 8px; }
    .dynamic-island:not(.minimized) { min-width: 280px; }
    .deadline-countdown { gap: 8px; flex-wrap: wrap; }
    .countdown-item { min-width: 50px; padding: 8px; }
    .countdown-value { font-size: 18px; }
    .profile-card { flex-direction: column; text-align: center; }
    .profile-stats { grid-template-columns: repeat(3, 1fr); }
    .analytics-stats-row { flex-direction: column; gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .input-row { flex-direction: column; }
    .auth-card { margin: 16px; padding: 28px 20px; }
    .perm-row { flex-direction: column; gap: 10px; }
    .emoji-option { width: 38px; height: 38px; font-size: 18px; }
    .reaction-btn { padding: 8px 12px; font-size: 16px; }
    .myday-hero { flex-direction: column; text-align: center; }
    .myday-stats { grid-template-columns: repeat(2, 1fr); }
    .myday-stat-value { font-size: 24px; }
    .mood-btn { width: 40px; height: 40px; font-size: 18px; }
    .myday-friend-card { flex-direction: column; text-align: center; }
    .period-selector { flex-wrap: wrap; }
    .dock-bar.dock-left, .dock-bar.dock-right { display: none; }
    .weather-stats { flex-direction: column; gap: 12px; }
    .weather-stat { text-align: center; }
    .calendar-day { min-height: 44px; border-radius: 12px; }
    .calendar-day-number { font-size: 14px; }
    .calendar-day-tasks { width: 14px; height: 14px; font-size: 8px; top: 2px; right: 3px; }
    .calendar-day-mood { font-size: 11px; }
    
    /* پومودورو ریسپانسیو */
    .timer-circle-wrapper { width: 250px !important; height: 250px !important; }
    .timer-display { font-size: 42px !important; }
    .timer-controls { flex-wrap: wrap; }
    .pomo-btn { padding: 10px 16px; font-size: 12px; }
    .rooms-grid { grid-template-columns: 1fr; }
    .pomodoro-header { flex-direction: column; align-items: flex-start; }
    .room-create-row { flex-direction: column; }
    .active-room-header { flex-direction: column; }
    .room-timer-display { font-size: 38px !important; }
}
@media (max-width: 480px) {
    .main-container { padding: 60px 10px 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .profile-stats { grid-template-columns: 1fr 1fr; }
    .analytics-stats-row { grid-template-columns: 1fr 1fr; }
    .modal-content { max-width: 95%; }
    .toast { min-width: auto; max-width: 90vw; right: 10px; }
    .dock-item span { display: none; }
    .dock-item i { font-size: 18px; }
    .myday-stats { grid-template-columns: 1fr; }
    .calendar-grid { gap: 3px; }
    .calendar-day { min-height: 36px; border-radius: 10px; }
    .calendar-day-number { font-size: 12px; }
    .calendar-day-tasks { width: 12px; height: 12px; font-size: 7px; }
    
    /* پومودورو ریسپانسیو */
    .timer-circle-wrapper { width: 200px !important; height: 200px !important; }
    .timer-svg { transform: scale(0.7); }
    .timer-display { font-size: 32px !important; }
    .pomodoro-mode-switch .mode-btn { padding: 8px 14px; font-size: 12px; }
}
.orbit-particle { animation: orbit1 6s linear infinite; transform-origin: 150px 150px; }
.orbit-particle2 { animation: orbit2 10s linear infinite; transform-origin: 150px 150px; animation-delay: -3s; }
@keyframes orbit1 { from { transform: rotate(0deg) translateX(130px) rotate(0deg); } to { transform: rotate(360deg) translateX(130px) rotate(-360deg); } }
@keyframes orbit2 { from { transform: rotate(0deg) translateX(130px) rotate(0deg); } to { transform: rotate(360deg) translateX(130px) rotate(-360deg); } }
.sort-toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sort-btn { padding: 10px 16px; border-radius: 24px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-secondary); cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.25s ease; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.sort-btn.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }
.sort-btn:hover:not(.active) { border-color: var(--accent); background: rgba(10,132,255,0.08); color: var(--text-primary); }
[data-theme="light"] .sort-btn { background: rgba(0,0,0,0.03); }
[data-theme="light"] .sort-btn.active { background: var(--accent); color: white; }
[data-theme="light"] .sort-btn:hover:not(.active) { background: rgba(10,132,255,0.12); }
/* ==================== Badge کلود در پروفایل ==================== */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.cloud-balance-badge {
    position: absolute;
    bottom: -8px;
    right: -15px;
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
    border-radius: 40px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    white-space: nowrap;
    z-index: 10;
    transition: all 0.2s ease;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.cloud-balance-badge i {
    font-size: 13px;
    margin-left: 2px;
}

.cloud-balance-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.6);
}

/* انیمیشن بروزرسانی موجودی */
.cloud-update {
    animation: cloudPulse 0.3s ease-out;
}

@keyframes cloudPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 10px rgba(10, 132, 255, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

/* ==================== انیمیشن کلود (دریافت/پرداخت) ==================== */
.cloud-animation {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
    animation: cloudFloatUp 2s ease-out forwards;
}

.cloud-animation-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    border-right: 4px solid;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: cloudSlideIn 0.3s ease-out;
}

.cloud-animation-inner i {
    font-size: 24px;
}

.cloud-animation-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cloud-amount {
    font-size: 18px;
    font-weight: 800;
    font-family: monospace;
}

.cloud-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes cloudFloatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px);
    }
}

@keyframes cloudSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== نمایش موجودی کلود در Dynamic Island ==================== */
.island-stats .cloud-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 132, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0a84ff;
}

.island-stats .cloud-stat i {
    font-size: 11px;
}

[data-theme="light"] .island-stats .cloud-stat {
    background: rgba(10, 132, 255, 0.1);
    color: #0a84ff;
}

/* ==================== تاریخچه تراکنش‌های کلود ==================== */
.transactions-section {
    padding: 24px;
    margin-bottom: 24px;
}

.transactions-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border-right: 4px solid;
    transition: all 0.2s ease;
}

[data-theme="light"] .transaction-item {
    background: rgba(0, 0, 0, 0.03);
}

.transaction-item:hover {
    transform: translateX(-5px);
    background: rgba(10, 132, 255, 0.05);
}

.transaction-item.positive {
    border-right-color: var(--success);
}

.transaction-item.negative {
    border-right-color: var(--danger);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.transaction-type {
    font-size: 14px;
    font-weight: 600;
}

.transaction-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.transaction-time {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.transaction-amount {
    font-size: 18px;
    font-weight: 800;
    font-family: monospace;
    white-space: nowrap;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--danger);
}

/* ==================== نمایش موجودی کلود در مای دی ==================== */
.myday-stat-card:last-child .myday-stat-value {
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.myday-stat-card:last-child .myday-stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.myday-stat-card:last-child .myday-stat-label::before {
    content: "☁️";
    font-size: 12px;
}

/* ==================== استایل بخش رفرال ==================== */
.referral-section {
    padding: 24px;
    margin-bottom: 24px;
}

.referral-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.referral-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.referral-stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

[data-theme="light"] .referral-stat-card {
    background: rgba(0, 0, 0, 0.02);
}

.referral-stat-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 4px;
}

.referral-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.referral-code-box {
    background: rgba(10, 132, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(10, 132, 255, 0.15);
}

.referral-code-box label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.referral-code-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.referral-code-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
}

[data-theme="light"] .referral-code-input-group input {
    background: rgba(0, 0, 0, 0.03);
}

.copy-referral-btn {
    padding: 12px 20px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.copy-referral-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.referral-note {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 12px;
}

/* ==================== استایل بخش رفرال در auth.html ==================== */
.referral-message {
    background: rgba(10, 132, 255, 0.12);
    border-radius: 32px;
    padding: 12px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #0a84ff;
    font-weight: 500;
    border: 1px solid rgba(10, 132, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: referralGlow 2s ease-in-out infinite;
    transition: opacity 0.5s ease;
}

@keyframes referralGlow {
    0%, 100% {
        box-shadow: 0 0 0px rgba(10, 132, 255, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(10, 132, 255, 0.3);
    }
}

/* ==================== استایل انیمیشن‌های اضافی ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==================== ریسپانسیو برای تاریخچه کلود ==================== */
@media (max-width: 768px) {
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .transaction-amount {
        align-self: flex-end;
    }
    
    .referral-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .referral-code-input-group {
        flex-direction: column;
    }
    
    .copy-referral-btn {
        justify-content: center;
    }
    
    .cloud-balance-badge {
        padding: 4px 10px;
        font-size: 11px;
        bottom: -6px;
        right: -10px;
    }
    
    .cloud-balance-badge i {
        font-size: 10px;
    }
    
    .island-stats .cloud-stat {
        padding: 2px 6px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cloud-animation-inner {
        padding: 8px 14px;
    }
    
    .cloud-amount {
        font-size: 14px;
    }
    
    .cloud-animation-inner i {
        font-size: 18px;
    }
    
    .transaction-type {
        font-size: 12px;
    }
    
    .transaction-amount {
        font-size: 15px;
    }
}
/* ==================== ماتریس آیزنهاور ==================== */
.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.matrix-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.matrix-legend span {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.legend-urgent-important { background: rgba(255,59,48,0.2); color: #ff3b30; }
.legend-important { background: rgba(10,132,255,0.2); color: #0a84ff; }
.legend-urgent { background: rgba(255,159,10,0.2); color: #ff9f0a; }
.legend-neither { background: rgba(128,128,128,0.2); color: #aaa; }

.eisenhower-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.matrix-quadrant {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}
.quadrant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}
.quadrant-1 .quadrant-header { border-bottom-color: #ff3b30; }
.quadrant-2 .quadrant-header { border-bottom-color: #0a84ff; }
.quadrant-3 .quadrant-header { border-bottom-color: #ff9f0a; }
.quadrant-4 .quadrant-header { border-bottom-color: #8e8e93; }
.quadrant-header h3 { font-size: 18px; margin: 0; }
.badge-urgent { background: #ff3b30; color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; }
.badge-schedule { background: #0a84ff; color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; }
.badge-delegate { background: #ff9f0a; color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; }
.badge-eliminate { background: #8e8e93; color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; }

.quadrant-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}
.matrix-task-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 12px;
    border-right: 4px solid;
    cursor: pointer;
    transition: 0.2s;
}
.matrix-task-item:hover { transform: translateX(-4px); background: rgba(255,255,255,0.08); }
.matrix-task-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.matrix-task-meta { font-size: 11px; color: var(--text-tertiary); display: flex; gap: 8px; flex-wrap: wrap; }
.quick-add-btn {
    margin-top: 16px;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}
.quick-add-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

.matrix-insights {
    padding: 24px;
    margin-top: 24px;
}
.matrix-insights h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.insight-text { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

@media (max-width: 768px) {
    .eisenhower-matrix { grid-template-columns: 1fr; }
}