/* 🌍 GLOBAL */
html {
  background: #0b1220;
  min-height: 100%;
}
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: radial-gradient(circle at top, #111827, #0b1220); color: #e5e7eb; min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start; padding-top: 80px; padding-bottom: 80px; }
.open { max-height: 1000px; opacity: 1; transform: translateY(0); pointer-events: auto; }
.closed { max-height: 0; opacity: 0; transform: translateY(-10px); pointer-events: none; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; text-align: center; margin-bottom: 8px; }
h2 { font-size: 20px; font-weight: 600; opacity: 0.9; text-align: center; }
.subtitle { text-align: center; opacity: 0.7; font-size: 14px; line-height: 1.5; margin-bottom: 15px; }
textarea { width: 100%; box-sizing: border-box; min-height: 100px; margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: white; font-size: 16px; outline: none; resize: none; transition: all 0.2s ease; }
textarea:focus { border-color: rgba(59,130,246,0.6); background: rgba(255,255,255,0.07); }
.top-actions { display: flex; gap: 14px; margin-top: 18px; margin-bottom: 20px; }
button { border: none; cursor: pointer; }
.btn { flex: 1; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.btn.primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; box-shadow: 0 10px 25px rgba(37,99,235,0.3); }
.btn.secondary { background: rgba(255,255,255,0.08); color: #e5e7eb; border: 1px solid rgba(255,255,255,0.15); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.96); }
.task { padding: 14px; margin-top: 10px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: flex-start; gap: 12px; transition: all 0.25s ease; }
.task:hover { transform: translateY(-2px); background: rgba(255,255,255,0.07); }
.task:active { transform: scale(0.98); }
.check-btn { width: 18px; height: 18px; background: white; border: 2px solid #ddd; border-radius: 5px; margin-top: 2px; flex-shrink: 0; cursor: pointer; transition: all 0.2s ease; }
.check-btn:hover { border-color: #4caf50; transform: scale(1.1); }
.task.done { opacity: 0.6; }
.trash-btn { margin-left: auto; background: transparent; border: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #ef4444; transition: all 0.2s ease; font-size: 16px; }
.trash-btn:hover { background: rgba(239,68,68,0.12); transform: scale(1.1); color: #dc2626; }
.done-header { margin-top: 20px; padding: 12px; background: rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; text-align: center; display: flex; justify-content: center; align-items: center; gap: 12px; }
#active-list, #done-list { display: block; overflow: hidden; transition: all 0.35s ease; }
.done-section { margin-top: 18px; }

/* HEADER */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
}
.header-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
body.logged-out .header-inner { justify-content: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.logo-icon { width: 30px; height: 30px; transition: transform 0.25s ease, filter 0.25s ease; }
.logo:hover .logo-icon { transform: scale(1.1) rotate(6deg); filter: drop-shadow(0 0 8px rgba(59,130,246,0.5)); }
.logo span { letter-spacing: -0.5px; }
.auth-buttons { display: flex; gap: 8px; align-items: center; }
.auth-btn { padding: 6px 10px; font-size: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #e5e7eb; cursor: pointer; transition: all 0.2s ease; }
.auth-btn.primary { background: #3b82f6; border: none; }
.auth-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.1); }
.user-email { font-size: 12px; opacity: 0.7; margin-right: 4px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-menu { position: relative; display: flex; align-items: center; }
.more-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #e5e7eb; cursor: pointer; font-size: 18px; transition: all 0.2s ease; }
.more-btn:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); }
.more-dropdown { position: absolute; top: 45px; right: 0; width: 180px; background: rgba(20,20,20,0.9); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; backdrop-filter: blur(12px); overflow: hidden; transition: all 0.25s ease; z-index: 100; }
.more-item { padding: 10px 12px; font-size: 13px; cursor: pointer; transition: all 0.2s ease; }
.more-item:hover { background: rgba(255,255,255,0.08); }
.hero { margin-top: 10px; margin-bottom: 30px; }
.task.urgent { border-left: 4px solid #ef4444; }
.task.medium { border-left: 4px solid #f59e0b; }
.task.normal { border-left: 4px solid #22c55e; }

/* 🔐 MODAL D'AUTH */
.auth-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 1000; transition: opacity 0.25s ease; }
.auth-modal.closed { opacity: 0; pointer-events: none; transform: none; max-height: none; }
.auth-modal.open { opacity: 1; pointer-events: auto; transform: none; max-height: none; }
.auth-modal-content { background: #111827; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 32px 28px; width: 90%; max-width: 380px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5); max-height: 85vh; overflow-y: auto; }
.auth-modal-content h2 { margin-top: 0; margin-bottom: 20px; }
.auth-modal-content input { width: 100%; box-sizing: border-box; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: white; font-size: 16px; outline: none; transition: all 0.2s ease; }
.auth-modal-content input:focus { border-color: rgba(59,130,246,0.6); background: rgba(255,255,255,0.07); }
.auth-modal-content .btn { width: 100%; margin-top: 8px; }
.auth-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.05); color: #e5e7eb; font-size: 14px; cursor: pointer; transition: all 0.2s ease; z-index: 5; }
.auth-close:hover { background: rgba(255,255,255,0.1); }
.auth-error { color: #ef4444; font-size: 13px; min-height: 18px; margin-bottom: 8px; text-align: center; }
.auth-switch { text-align: center; font-size: 13px; opacity: 0.8; margin-top: 16px; margin-bottom: 0; }
.auth-switch a { color: #3b82f6; text-decoration: none; font-weight: 600; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }
.auth-forgot { display: block; text-align: center; font-size: 12px; color: #93c5fd; text-decoration: none; margin-top: -4px; margin-bottom: 12px; transition: color 0.2s ease; }
.auth-forgot:hover { color: #3b82f6; text-decoration: underline; }
.auth-info { text-align: center; font-size: 13px; opacity: 0.8; margin-top: -8px; margin-bottom: 18px; }

/* ✏️ ÉDITION INLINE */
.task-text { cursor: text; outline: none; padding: 2px 4px; margin: -2px -4px; border-radius: 4px; transition: background 0.15s ease; }
.task-text:hover { background: rgba(255,255,255,0.04); }
.task-text:focus { background: rgba(59,130,246,0.15); cursor: text; }
.task-content { flex: 1; }

/* 🗑️ BOUTON VIDER */
.clear-btn { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; font-size: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; font-weight: 600; }
.clear-btn:hover { background: rgba(239,68,68,0.2); transform: translateY(-1px); }
.clear-btn:active { transform: scale(0.95); }

/* 📊 MODALS INFO */
.info-modal-content { max-width: 460px; }
.info-modal-content h2 { margin-bottom: 6px; text-align: left; font-size: 22px; }
.info-modal-content .info-subtitle { opacity: 0.6; font-size: 13px; margin-bottom: 20px; }
.info-section { margin-bottom: 20px; }
.info-section:last-child { margin-bottom: 0; }
.info-section h3 { font-weight: 600; margin: 0 0 10px 0; letter-spacing: 0.3px; text-transform: uppercase; font-size: 11px; opacity: 0.5; }
.info-section p { margin: 0 0 8px 0; font-size: 14px; line-height: 1.5; opacity: 0.85; }
.info-section ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; opacity: 0.85; }
.info-section ul li { margin-bottom: 4px; }
.info-section kbd { display: inline-block; padding: 2px 7px; font-size: 11px; font-family: ui-monospace, "SF Mono", Monaco, monospace; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 5px; box-shadow: 0 1px 0 rgba(255,255,255,0.05); margin: 0 2px; }

/* 📊 Dashboard */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: #fff; }
.stat-label { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.stat-card.accent .stat-value { background: linear-gradient(135deg, #3b82f6, #60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.priority-bars { display: flex; flex-direction: column; gap: 10px; }
.priority-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.priority-bar-label { width: 70px; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.priority-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.priority-dot.urgent { background: #ef4444; }
.priority-dot.medium { background: #f59e0b; }
.priority-dot.normal { background: #22c55e; }
.priority-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.priority-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.priority-bar-fill.urgent { background: #ef4444; }
.priority-bar-fill.medium { background: #f59e0b; }
.priority-bar-fill.normal { background: #22c55e; }
.priority-bar-count { width: 28px; text-align: right; font-weight: 600; opacity: 0.8; }
.empty-state { text-align: center; padding: 30px 0 10px; opacity: 0.6; font-size: 14px; line-height: 1.6; }
.empty-state-emoji { font-size: 36px; margin-bottom: 8px; }

/* 📩 Contact */
.contact-card { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.25); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.contact-email { font-family: ui-monospace, "SF Mono", Monaco, monospace; font-size: 14px; color: #60a5fa; word-break: break-all; }
.btn-mailto { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; text-align: center; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s ease; box-shadow: 0 10px 25px rgba(37,99,235,0.3); margin-top: 8px; }
.btn-mailto:hover { transform: translateY(-2px); }

/* ℹ️ À propos */
.about-tagline { font-size: 14px; line-height: 1.6; opacity: 0.85; margin-bottom: 16px; }
.about-meta { display: flex; gap: 16px; font-size: 12px; opacity: 0.5; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 16px; }
.about-meta span:before { content: "•"; margin-right: 6px; opacity: 0.5; }
.about-meta span:first-child:before { content: ""; margin-right: 0; }

/* 🎉 TOAST DE FIN DE TÂCHES */
.completion-toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px); background: linear-gradient(135deg, #1f2937, #111827); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 16px 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.15); min-width: 240px; max-width: 90%; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 2000; }
.completion-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.completion-toast-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; letter-spacing: -0.3px; }
.completion-toast-subtitle { font-size: 13px; opacity: 0.7; }

@media (max-width: 480px) {
  .user-email { display: none; }
  h1 { font-size: 24px; }
  body { padding-top: 70px; padding-left: 16px; padding-right: 16px; }
}

/* 📅 BADGE DATE D'ÉCHÉANCE */
.task-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.task-meta { font-size: 13px; opacity: 0.7; margin-top: 6px; }
.due-badge { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; flex-shrink: 0; white-space: nowrap; }
.due-badge.today { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.due-badge.soon { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.due-badge.week { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35); }
.due-badge.later { background: rgba(255, 255, 255, 0.06); color: #d1d5db; border: 1px solid rgba(255, 255, 255, 0.12); }

/* 👤 PROFIL UTILISATEUR */
.profile-menu { position: relative; display: flex; align-items: center; }
.profile-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; transition: all 0.2s ease; padding: 0; overflow: hidden; }
.profile-btn:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(59,130,246,0.35); }
.profile-btn:active { transform: scale(0.95); }
.profile-avatar { line-height: 1; }
.profile-dropdown { position: absolute; top: 48px; right: 0; width: 230px; background: rgba(20,20,28,0.95); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; transition: all 0.25s ease; z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.profile-info { padding: 12px 14px; }
.profile-info-label { font-size: 11px; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.profile-info-email { font-size: 13px; opacity: 0.95; word-break: break-all; line-height: 1.3; }
.profile-divider { height: 1px; background: rgba(255,255,255,0.08); }
.profile-item { padding: 11px 14px; font-size: 13px; cursor: pointer; transition: all 0.15s ease; }
.profile-item:hover { background: rgba(255,255,255,0.06); }
.profile-item.logout { color: #fca5a5; }
.profile-item.logout:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* 👤 SECTION PROFIL (nom/prénom) */
.profile-name-section { margin-bottom: 18px; }
.profile-input-label { display: block; font-size: 12px; opacity: 0.6; margin: 12px 0 6px 0; font-weight: 500; }
.profile-input { width: 100%; box-sizing: border-box; padding: 11px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: white; font-size: 16px; outline: none; transition: all 0.2s ease; }
.profile-input:focus { border-color: rgba(59,130,246,0.5); background: rgba(255,255,255,0.07); }
.profile-section-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 22px 0 18px 0; }

/* 🎭 SÉLECTEUR D'AVATAR */
.avatar-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.avatar-tab { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #d1d5db; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.18s ease; }
.avatar-tab:hover { background: rgba(255,255,255,0.08); }
.avatar-tab.active { background: linear-gradient(135deg, #3b82f6, #2563eb); border-color: transparent; color: white; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 480px) { .avatar-grid { grid-template-columns: repeat(5, 1fr); } }
.avatar-cell { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; cursor: pointer; transition: all 0.18s ease; user-select: none; }
.avatar-cell:hover { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.4); transform: scale(1.08); }
.avatar-cell.selected { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(37,99,235,0.3)); border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.3); }
.avatar-current { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.2); border-radius: 12px; margin-bottom: 16px; }
.avatar-current-preview { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #2563eb); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; color: white; flex-shrink: 0; }
.avatar-current-text { flex: 1; }
.avatar-current-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.avatar-current-sub { font-size: 12px; opacity: 0.6; }
.avatar-reset { font-size: 12px; color: #93c5fd; cursor: pointer; background: none; border: none; padding: 0; text-decoration: underline; margin-top: 4px; }
.avatar-reset:hover { color: #3b82f6; }

/* 🌟 STATS PILLS DANS LE HERO */
.stats-pills { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.stat-pill { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.2px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #d1d5db; }
.stat-pill.accent { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.15)); border-color: rgba(59,130,246,0.35); color: #93c5fd; }
.stat-pill .stat-pill-icon { margin-right: 4px; opacity: 0.85; }

/* 🌱 EMPTY STATE PRINCIPAL */
.empty-state-big { text-align: center; padding: 50px 20px; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.08); border-radius: 16px; margin-top: 16px; }
.empty-state-big-emoji { font-size: 48px; margin-bottom: 12px; display: block; }
.empty-state-big-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; opacity: 0.9; }
.empty-state-big-sub { font-size: 13px; opacity: 0.55; line-height: 1.5; }
.empty-state-small { text-align: center; padding: 24px 16px; font-size: 13px; opacity: 0.55; }
.empty-state-small-emoji { font-size: 24px; display: block; margin-bottom: 6px; opacity: 0.7; }

/* 🔻 FOOTER */
.app-footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 14px 20px; display: flex; justify-content: center; gap: 18px; font-size: 11px; opacity: 0.45; background: linear-gradient(to top, rgba(11,18,32,0.9), transparent); flex-wrap: wrap; z-index: 5; pointer-events: none; }
.app-footer * { pointer-events: auto; }
.app-footer a { color: inherit; cursor: pointer; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
.app-footer a:hover { color: #93c5fd; opacity: 1; }
.footer-version { opacity: 0.7; }

body { padding-bottom: 100px !important; }

/* ⚠️ MODAL DE CONFIRMATION */
.confirm-modal-content { max-width: 380px; text-align: center; }
.confirm-modal-content h2 { text-align: center; margin: 0 0 8px 0; font-size: 19px; }
.confirm-icon { font-size: 44px; margin-bottom: 14px; line-height: 1; display: inline-block; animation: confirmPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes confirmPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.confirm-message { font-size: 14px; opacity: 0.75; margin: 0 0 24px 0; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; margin-top: 0; }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 10px 25px rgba(239,68,68,0.3); }
.btn.danger:hover { box-shadow: 0 12px 30px rgba(239,68,68,0.4); }

/* 📲 BOUTON D'INSTALLATION PWA */
.more-item.install-item { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.15)); border-bottom: 1px solid rgba(255,255,255,0.06); color: #93c5fd; font-weight: 600; }
.more-item.install-item:hover { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(37,99,235,0.25)); color: #bfdbfe; }

/* 📲 INSTRUCTIONS D'INSTALLATION iOS */
.install-step { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 10px; }
.install-step-num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-step-text { font-size: 14px; line-height: 1.5; opacity: 0.9; }
.ios-share-icon { display: inline-block; padding: 1px 7px; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); border-radius: 6px; color: #93c5fd; font-size: 13px; margin: 0 2px; }

/* 🔔 NOTIFICATIONS */
.notif-warn { padding: 10px 14px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 10px; font-size: 13px; color: #fcd34d; margin-bottom: 16px; }
.notif-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-bottom: 18px; }
.notif-toggle-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notif-toggle-sub { font-size: 12px; opacity: 0.6; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.15); border-radius: 999px; transition: 0.25s; }
.slider:before { content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: 0.25s; }
.switch input:checked + .slider { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.switch input:checked + .slider:before { transform: translateX(20px); }
.notif-times-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; margin-bottom: 18px; transition: opacity 0.2s ease; }
.notif-times-section.disabled { opacity: 0.4; pointer-events: none; }
.notif-section-title { font-size: 13px; font-weight: 600; opacity: 0.85; margin-bottom: 12px; }
.notif-time-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.notif-time-input { flex: 1; padding: 10px 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: white; font-size: 16px; outline: none; transition: border-color 0.2s; color-scheme: dark; }
.notif-time-input:focus { border-color: rgba(59,130,246,0.5); }
.notif-time-input:disabled { opacity: 0.5; cursor: not-allowed; }
.notif-time-remove { width: 32px; height: 32px; border-radius: 50%; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.notif-time-remove:hover { background: rgba(239,68,68,0.25); }
.notif-time-remove:disabled { opacity: 0.4; cursor: not-allowed; }
.notif-add-time { width: 100%; padding: 10px; margin-top: 4px; background: transparent; border: 1px dashed rgba(255,255,255,0.15); border-radius: 10px; color: #93c5fd; font-size: 13px; cursor: pointer; transition: all 0.18s; }
.notif-add-time:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.4); }
.notif-add-time:disabled { opacity: 0.4; cursor: not-allowed; }
.notif-test-section { margin-bottom: 18px; }
.notif-test-section .btn { margin-top: 0; }
.notif-info { background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.15); border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.6; opacity: 0.85; }
.notif-info p { margin: 0 0 6px 0; }
.notif-info p:last-child { margin-bottom: 0; }

/* 🚀 BANNIÈRE DE MISE À JOUR */
.update-banner { position: fixed; top: -70px; left: 0; right: 0; z-index: 200; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; box-shadow: 0 6px 24px rgba(0,0,0,0.35); font-size: 14px; font-weight: 600; transition: top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.update-banner.visible { top: 0; }
.update-banner-text { flex: 1; letter-spacing: 0.2px; }
.update-banner-btn { padding: 7px 14px; border-radius: 8px; background: white; color: #1d4ed8; border: none; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.update-banner-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.update-banner-close { background: transparent; border: none; color: rgba(255,255,255,0.75); font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 8px; transition: color 0.15s ease; }
.update-banner-close:hover { color: white; }
@media (max-width: 480px) {
  .update-banner { padding: 10px 14px; font-size: 13px; }
  .update-banner-text { font-size: 12px; }
  .update-banner-btn { padding: 6px 12px; font-size: 12px; }
}

/* 🎨 BADGE CATÉGORIE SUR LES TÂCHES */
.cat-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.2px; border: 1px solid; white-space: nowrap; flex-shrink: 0; }

/* 🎨 MODAL DE GESTION DES MATIÈRES */
.cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; transition: all 0.18s ease; }
.cat-row:hover { background: rgba(255,255,255,0.06); }
.cat-row-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.cat-row-color { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.15); }
.cat-row-name { flex: 1; font-size: 14px; font-weight: 500; }
.cat-row-actions { display: flex; gap: 6px; }
.cat-icon-btn { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: #d1d5db; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.cat-icon-btn:hover { background: rgba(255,255,255,0.12); color: white; }
.cat-icon-btn.danger:hover { background: rgba(239,68,68,0.2); color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.cat-edit-form { background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.2); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.cat-edit-form-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; opacity: 0.9; }
.cat-edit-input { width: 100%; box-sizing: border-box; padding: 10px 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: white; font-size: 16px; outline: none; margin-bottom: 10px; }
.cat-edit-input:focus { border-color: rgba(59,130,246,0.5); }
.cat-color-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cat-color-cell { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all 0.15s ease; }
.cat-color-cell:hover { transform: scale(1.1); }
.cat-color-cell.selected { border-color: white; transform: scale(1.15); box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }
.cat-icon-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cat-icon-cell { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: all 0.15s ease; }
.cat-icon-cell:hover { background: rgba(255,255,255,0.1); }
.cat-icon-cell.selected { background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.5); transform: scale(1.05); }
.cat-edit-actions { display: flex; gap: 8px; }
.cat-edit-actions .btn { flex: 1; margin: 0; padding: 10px; font-size: 13px; }
.cat-add-btn { width: 100%; padding: 11px; background: transparent; border: 1px dashed rgba(255,255,255,0.15); border-radius: 10px; color: #93c5fd; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.18s; margin-bottom: 10px; }
.cat-add-btn:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.4); }
.cat-reset-link { display: block; text-align: center; font-size: 12px; color: #93c5fd; cursor: pointer; background: none; border: none; width: 100%; padding: 8px; }
.cat-reset-link:hover { color: #3b82f6; text-decoration: underline; }

/* ================================
   🏠 LANDING PAGE
   ================================ */
.landing-view {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Halo bleu subtil derrière le hero pour combler le vide */
.landing-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* HERO */
.landing-hero {
  margin-bottom: 110px;
  animation: landingFade 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes landingFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-title {
  font-size: clamp(42px, 6.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 30px;
  color: #f4f6fa;
}

.landing-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 50px;
  font-weight: 400;
}

.landing-cta {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.landing-cta .btn.primary {
  flex: 0 1 auto;
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.btn-link {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 13px 6px;
  transition: color 0.18s ease;
}
.btn-link:hover { color: white; }

.landing-trust {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* PREVIEW */
.landing-preview {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 90px;
  animation: landingFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.demo-task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border-left-width: 3px;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
}
.demo-task:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}
.demo-task.urgent { border-left-color: #ef4444; }
.demo-task.medium { border-left-color: #f59e0b; }
.demo-task.normal { border-left-color: #22c55e; }
.demo-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.demo-task-body { flex: 1; min-width: 0; }
.demo-task-body b {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}
.demo-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}

/* META */
.landing-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.4px;
  font-weight: 500;
}

/* MOBILE */
@media (max-width: 600px) {
  .landing-view { padding: 60px 20px 70px; }
  .landing-hero { margin-bottom: 70px; }
  .landing-preview { margin-bottom: 60px; }
  .landing-cta { flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .landing-cta .btn.primary { width: 100%; max-width: 260px; padding: 14px 24px; }
}
/* ================================
   🍅 MODE FOCUS / POMODORO
   ================================ */

/* Modal de démarrage : choix durée + tâche */
.focus-today-stat {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #fcd34d;
}
.focus-today-icon { font-size: 18px; }

.focus-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.5;
  font-weight: 600;
  margin: 18px 0 10px;
}

.focus-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.focus-duration-btn {
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.focus-duration-btn:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}
.focus-duration-btn.primary {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.15));
  border-color: rgba(59,130,246,0.4);
}
.focus-duration-min { font-size: 26px; font-weight: 700; line-height: 1; }
.focus-duration-unit { font-size: 11px; opacity: 0.6; margin-top: 2px; }
.focus-duration-label { font-size: 11px; opacity: 0.7; margin-top: 6px; font-weight: 500; }

.focus-task-select {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.focus-task-select:focus { border-color: rgba(59, 130, 246, 0.5); }
.focus-task-select option { background: #111827; }

/* OVERLAY plein écran pendant la session */
.focus-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f1729 0%, #050810 100%);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: focusOverlayIn 0.4s ease;
}
.focus-overlay.visible { display: flex; }

@keyframes focusOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.focus-overlay-content {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.focus-status {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 12px;
}

.focus-task-name {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 50px;
  font-weight: 500;
  min-height: 22px;
}

.focus-timer-wrap { margin-bottom: 50px; }

.focus-time {
  font-size: clamp(80px, 18vw, 140px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  color: white;
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.focus-progress-bar {
  width: 100%;
  max-width: 320px;
  height: 4px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.focus-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 0.3s linear;
}

.focus-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.focus-btn {
  padding: 12px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.focus-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.focus-btn.danger {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}
.focus-btn.danger:hover {
  background: rgba(239,68,68,0.2);
}

.focus-tip {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}

/* États paused */
.focus-overlay.paused .focus-time {
  opacity: 0.5;
  animation: focusPulse 1.5s ease-in-out infinite;
}
@keyframes focusPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.3; }
}
/* Fix : la modal de confirmation doit passer au-dessus de l'overlay focus */
#confirm-modal { z-index: 11000; }
/* ================================
   🔥 STREAKS + GAMIFICATION
   ================================ */

/* Pill streak dans le hero */
.stat-pill.streak {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.15));
  border-color: rgba(245,158,11,0.4);
  color: #fcd34d;
}

/* Toast quand un succès est débloqué */
.achievement-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(245,158,11,0.2);
  min-width: 280px;
  max-width: 360px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2000;
}
.achievement-toast.show { opacity: 1; transform: translateX(0); }
.ach-toast-icon {
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(245,158,11,0.5));
  animation: achPulse 2s ease-in-out infinite;
}
@keyframes achPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.ach-toast-body { flex: 1; }
.ach-toast-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #fcd34d; font-weight: 700; margin-bottom: 2px; }
.ach-toast-name { font-size: 15px; font-weight: 700; color: white; margin-bottom: 2px; }
.ach-toast-desc { font-size: 12px; opacity: 0.7; }

@media (max-width: 600px) {
  .achievement-toast { top: auto; bottom: 80px; right: 10px; left: 10px; min-width: 0; }
}

/* Cards Streak dans le dashboard */
.streak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.streak-card { padding: 16px; border-radius: 14px; text-align: center; }
.streak-card.current { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(239,68,68,0.08)); border: 1px solid rgba(245,158,11,0.3); }
.streak-card.best { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.streak-value { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -1px; color: #fff; margin-bottom: 4px; }
.streak-card.current .streak-value {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.streak-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.65; font-weight: 600; }
.streak-hint { font-size: 11px; opacity: 0.55; margin-top: 8px; font-weight: 400; font-style: italic; }

/* Grid des succès */
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .ach-grid { grid-template-columns: repeat(3, 1fr); } }
.ach-cell {
  aspect-ratio: 1 / 1.15;
  padding: 8px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
}
.ach-cell.unlocked {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05));
  border-color: rgba(245,158,11,0.3);
}
.ach-cell.unlocked:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.12); }
.ach-cell.locked { opacity: 0.35; filter: grayscale(0.8); }
.ach-icon { font-size: 24px; margin-bottom: 4px; }
.ach-name { font-size: 10px; font-weight: 700; margin-bottom: 2px; line-height: 1.2; }
.ach-desc { font-size: 9px; opacity: 0.6; line-height: 1.3; }

/* Lifetime stats */
.lifetime-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lifetime-stats > div { padding: 12px 14px; background: rgba(255,255,255,0.03); border-radius: 10px; font-size: 12px; opacity: 0.85; text-align: center; }
.lifetime-stats b { font-size: 22px; color: #fff; display: block; margin-bottom: 4px; }
/* 🔁 BADGE RÉCURRENCE */
.recur-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
}
/* 🖱️ DRAG & DROP */
.drag-handle {
  align-self: center;
  cursor: grab;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 4px 6px 10px;
  user-select: none;
  flex-shrink: 0;
  letter-spacing: -3px;
  font-weight: 700;
  transition: color 0.15s ease, transform 0.15s ease;
  touch-action: none;
  display: inline-flex;
  align-items: center;
}
.drag-handle:hover { 
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}
.drag-handle:active { cursor: grabbing; }
/* États pendant le drag */
.task-ghost {
  opacity: 0.35;
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}
.task-chosen { cursor: grabbing; }
.task-dragging {
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.4);
  transform: scale(1.02);
}
/* ================================
   📅 CALENDRIER HEBDO
   ================================ */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cal-nav-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.18s ease;
}
.cal-nav-btn:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
}
.cal-nav-title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.cal-today-btn {
  display: block;
  margin: 0 auto 14px;
  padding: 6px 14px;
  font-size: 12px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 999px;
  color: #93c5fd;
  cursor: pointer;
  transition: all 0.18s;
}
.cal-today-btn:hover {
  background: rgba(59,130,246,0.2);
}

.cal-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.cal-day {
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: all 0.18s ease;
}
.cal-day.today {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.35);
}
.cal-day.past { opacity: 0.5; }
.cal-day.weekend { background: rgba(255,255,255,0.015); }

.cal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cal-day-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.75);
}
.cal-day.today .cal-day-name { color: #93c5fd; }
.cal-day-name .today-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 9px;
  background: rgba(59,130,246,0.4);
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  color: white;
}
.cal-day-date {
  font-size: 11px;
  opacity: 0.55;
}
.cal-day-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-task {
  padding: 7px 10px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid #6b7280;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-empty {
  font-size: 11px;
  opacity: 0.3;
  text-align: center;
  padding: 4px;
  font-style: italic;
}

.cal-no-date-section {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
}
.cal-no-date-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-no-date-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* ================================
   🌅 ONBOARDING
   ================================ */
.onb-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 41, 0.97) 0%, rgba(5, 8, 16, 0.99) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: onbFadeIn 0.5s ease;
}
.onb-overlay.visible { display: flex; }
@keyframes onbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.onb-modal {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 30px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: onbSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes onbSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.onb-skip {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.18s ease;
  padding: 6px 10px;
}
.onb-skip:hover { color: white; }

.onb-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: inline-block;
  animation: onbIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}
@keyframes onbIconPop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.onb-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.onb-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px;
  font-weight: 500;
}

.onb-body {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}
.onb-body code {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #93c5fd;
}
.onb-body b { color: white; }

.onb-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.onb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.onb-dot.active {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  width: 24px;
  border-radius: 4px;
}

.onb-actions {
  display: flex;
  gap: 10px;
}
.onb-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
}
.onb-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.onb-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}
.onb-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.onb-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 480px) {
  .onb-modal { padding: 32px 22px 22px; border-radius: 20px; }
  .onb-icon { font-size: 52px; }
  .onb-title { font-size: 22px; }
  .onb-body { font-size: 13px; }
}
/* ================================
   ☀️ MODE CLAIR
   ================================ */

/* Transitions fluides au switch */
body, .top-header, .task, .auth-modal-content, .info-modal-content,
.more-dropdown, .profile-dropdown, .more-btn, .auth-btn,
.btn.secondary, .stat-pill, .cal-day, .cat-row, .ach-cell,
.empty-state-big, textarea, input[type="email"], input[type="password"],
input[type="text"], .profile-input, .cat-edit-input, .focus-task-select,
.streak-card.best, .notif-toggle-row, .notif-times-section {
  transition: background-color 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, box-shadow 0.3s ease;
}

/* === ROOT BACKGROUND === */
html.theme-light {
  background: #f5f7fa;
}
html.theme-light body {
  background: radial-gradient(circle at top, #ffffff, #eef1f6);
  color: #1f2937;
}

/* === TEXTES GLOBAUX === */
html.theme-light h1, html.theme-light h2, html.theme-light h3,
html.theme-light .logo span {
  color: #111827;
}
html.theme-light .subtitle,
html.theme-light .info-subtitle {
  color: rgba(31, 41, 55, 0.65);
}

/* === HEADER === */
html.theme-light .top-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html.theme-light .more-btn,
html.theme-light .auth-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1f2937;
}
html.theme-light .more-btn:hover,
html.theme-light .auth-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* === DROPDOWNS === */
html.theme-light .more-dropdown,
html.theme-light .profile-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
html.theme-light .more-item,
html.theme-light .profile-item {
  color: #1f2937;
}
html.theme-light .more-item:hover,
html.theme-light .profile-item:hover {
  background: rgba(0, 0, 0, 0.05);
}
html.theme-light .profile-divider {
  background: rgba(0, 0, 0, 0.08);
}
html.theme-light .profile-info-label {
  color: rgba(31, 41, 55, 0.5);
}
html.theme-light .profile-info-email {
  color: #1f2937;
}

/* === TÂCHES === */
html.theme-light .task {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1f2937;
}
html.theme-light .task:hover {
  background: rgba(0, 0, 0, 0.04);
}
html.theme-light .check-btn {
  background: white;
  border-color: #9ca3af;
}
html.theme-light .check-btn:hover {
  border-color: #22c55e;
}
html.theme-light .task-meta {
  color: #6b7280;
}
html.theme-light .done-header {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}
html.theme-light .empty-state-big {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1f2937;
}
html.theme-light .empty-state-big-sub {
  color: rgba(31, 41, 55, 0.55);
}

/* === INPUTS === */
html.theme-light textarea,
html.theme-light input[type="email"],
html.theme-light input[type="password"],
html.theme-light input[type="text"],
html.theme-light .auth-modal-content input,
html.theme-light .profile-input,
html.theme-light .cat-edit-input,
html.theme-light .focus-task-select,
html.theme-light .notif-time-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1f2937;
}
html.theme-light textarea:focus,
html.theme-light input:focus,
html.theme-light .profile-input:focus,
html.theme-light .cat-edit-input:focus {
  background: white;
  border-color: rgba(59, 130, 246, 0.5);
}

/* === MODALS === */
html.theme-light .auth-modal {
  background: rgba(0, 0, 0, 0.45);
}
html.theme-light .auth-modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1f2937;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}
html.theme-light .auth-close {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

/* === BOUTONS === */
html.theme-light .btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
  border-color: rgba(0, 0, 0, 0.1);
}
html.theme-light .btn.secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}
html.theme-light .btn-link {
  color: rgba(31, 41, 55, 0.7);
}
html.theme-light .btn-link:hover {
  color: #111827;
}

/* === STATS PILLS === */
html.theme-light .stat-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #374151;
}

/* === DASHBOARD === */
html.theme-light .stat-card {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}
html.theme-light .stat-value { color: #111827; }
html.theme-light .stat-label { color: rgba(31, 41, 55, 0.6); }

/* === STREAK + ACHIEVEMENTS === */
html.theme-light .streak-card.best {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
html.theme-light .streak-label {
  color: rgba(31, 41, 55, 0.65);
}
html.theme-light .ach-cell {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.06);
}
html.theme-light .lifetime-stats > div {
  background: rgba(0, 0, 0, 0.025);
  color: #1f2937;
}
html.theme-light .lifetime-stats b { color: #111827; }

/* === CATÉGORIES === */
html.theme-light .cat-row {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
html.theme-light .cat-icon-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: #374151;
}

/* === CALENDRIER === */
html.theme-light .cal-day {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
html.theme-light .cal-day.today {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
}
html.theme-light .cal-task {
  background: rgba(0, 0, 0, 0.04);
  color: #1f2937;
}
html.theme-light .cal-nav-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1f2937;
}

/* === NOTIFICATIONS === */
html.theme-light .notif-toggle-row,
html.theme-light .notif-times-section {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}
html.theme-light .slider {
  background: rgba(0, 0, 0, 0.15);
}

/* === DRAG HANDLE === */
html.theme-light .drag-handle {
  color: rgba(0, 0, 0, 0.35);
}
html.theme-light .drag-handle:hover {
  color: rgba(0, 0, 0, 0.75);
}

/* === FOOTER === */
html.theme-light .app-footer {
  background: linear-gradient(to top, rgba(245, 247, 250, 0.95), transparent);
  color: rgba(31, 41, 55, 0.6);
}

/* === BANNIÈRE UPDATE === gardée en bleu, pas besoin d'override */

/* === FOCUS / ONBOARDING / TOAST overlays === gardés sombres, plus immersif */

/* === LANDING PAGE (déconnecté) === */
html.theme-light .landing-title {
  background: linear-gradient(180deg, #111827, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.theme-light .landing-subtitle {
  color: rgba(31, 41, 55, 0.65);
}
html.theme-light .landing-trust,
html.theme-light .landing-meta {
  color: rgba(31, 41, 55, 0.5);
}
html.theme-light .demo-task {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}
html.theme-light .demo-task-body b {
  color: #111827;
}
html.theme-light .demo-meta {
  color: rgba(31, 41, 55, 0.55);
}
html.theme-light .demo-check {
  background: white;
  border-color: rgba(0, 0, 0, 0.25);
}
html.theme-light .landing-view::before {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}
/* ================================
   🎬 ANIMATION HERO
   ================================ */

/* Glow ambient subtil derrière le hero */
.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: heroGlowPulse 6s ease-in-out infinite;
}
html.theme-light .hero::before {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* Stagger fade-in à l'entrée dans l'app */
.hero h1 {
  animation: heroSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .subtitle {
  animation: heroSlideIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .stats-pills {
  animation: heroSlideIn 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Emoji du greeting qui salue subtilement, comme une vraie main */
.hero-emoji {
  display: inline-block;
  animation: heroEmojiWave 3.5s ease-in-out 1.2s infinite;
  transform-origin: 70% 80%;
}
@keyframes heroEmojiWave {
  0%, 65%, 100% { transform: rotate(0deg); }
  72% { transform: rotate(-14deg); }
  79% { transform: rotate(10deg); }
  86% { transform: rotate(-8deg); }
  93% { transform: rotate(4deg); }
}

/* Stats pills : hover plus vivant + transition fluide */
.stat-pill {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: default;
}
.stat-pill:hover {
  transform: translateY(-2px);
}
.stat-pill.accent:hover {
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2);
}

/* Subtle pulse sur l'avatar du profil (signale "je suis vivant") */
.profile-btn:not(:hover) {
  animation: profilePulse 4s ease-in-out infinite;
}
@keyframes profilePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12); }
}

/* Stat pill 🔥 streak : flamme qui vibre légèrement */
.stat-pill.streak .stat-pill-icon {
  display: inline-block;
  animation: streakFlicker 1.8s ease-in-out infinite;
  transform-origin: 50% 80%;
}
@keyframes streakFlicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.12) rotate(-3deg); }
  50% { transform: scale(1.05) rotate(2deg); }
  75% { transform: scale(1.1) rotate(-2deg); }
}
/* ================================
   📋 TEMPLATES DE TÂCHES
   ================================ */
.templates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .templates-grid { grid-template-columns: 1fr; }
}
.template-card {
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.template-card:hover {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-2px);
}
.template-icon {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
}
.template-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}
.template-desc {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.4;
  margin-bottom: 8px;
}
.template-count {
  font-size: 11px;
  color: #93c5fd;
  font-weight: 600;
}

/* Preview screen */
.template-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  max-height: 320px;
  overflow-y: auto;
}
.template-preview-task {
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid #6b7280;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.template-preview-actions {
  display: flex;
  gap: 10px;
}
.template-preview-actions .btn { flex: 1; }

/* Light mode */
html.theme-light .template-card {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
html.theme-light .template-preview-task {
  background: rgba(0,0,0,0.025);
  border-color: rgba(0,0,0,0.06);
}
/* ================================
   📜 SCROLL DANS LES SECTIONS
   ================================ */
#active-list,
#done-list {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Scrollbar Webkit (Chrome, Safari, Edge) */
#active-list::-webkit-scrollbar,
#done-list::-webkit-scrollbar {
  width: 6px;
}
#active-list::-webkit-scrollbar-track,
#done-list::-webkit-scrollbar-track {
  background: transparent;
}
#active-list::-webkit-scrollbar-thumb,
#done-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background 0.2s ease;
}
#active-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Mode clair */
html.theme-light #active-list,
html.theme-light #done-list {
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
html.theme-light #active-list::-webkit-scrollbar-thumb,
html.theme-light #done-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}
html.theme-light #active-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}
