/* ══════════════════════════════════════════════════════════════════
   irfan-dashboard — Design System v2 (Light Mode + shadcn/ui style)
   ══════════════════════════════════════════════════════════════════ */

/* ── CSS Tokens ── */
:root {
  --primary: #EC4899;
  --primary-dark: #DB2777;
  --primary-light: #FCE7F3;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --warning: #D97706;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --text: #111827;
  --text-muted: #6B7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F9FAFB;
  color: #111827;
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ══════════════════════════════════════════════════════════════════
   LOGIN SCREEN — Math Edutech
   ══════════════════════════════════════════════════════════════════ */
#login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #060b18;
  /* subtle dot grid */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Glowing orbs */
.math-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.math-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  top: -180px; left: -160px;
}
.math-orb-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 70%);
  bottom: -140px; right: -120px;
}

/* Floating math symbols */
.math-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.math-symbols span {
  position: absolute;
  color: rgba(148,163,184,0.07);
  font-size: 3.2rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  animation: sym-float 18s ease-in-out infinite;
  user-select: none;
}
.math-symbols span:nth-child(odd)  { animation-direction: alternate; }
.math-symbols span:nth-child(3n)   { animation-duration: 22s; }
.math-symbols span:nth-child(4n)   { animation-duration: 14s; }
@keyframes sym-float {
  0%   { transform: translateY(0) rotate(-4deg);  opacity: 0.07; }
  50%  { transform: translateY(-18px) rotate(4deg); opacity: 0.13; }
  100% { transform: translateY(0) rotate(-4deg);  opacity: 0.07; }
}

/* ── Card ── */
.calc-card {
  position: relative;
  z-index: 1;
  width: 380px;
  background: rgba(10, 16, 34, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 28px;
  padding: 28px 26px 22px;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.12),
    0 32px 80px rgba(0,0,0,0.7),
    0 0 80px rgba(59,130,246,0.07);
  user-select: none;
}

/* ── Header ── */
.calc-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
}
.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.28);
  color: #93c5fd;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.calc-badge-dot {
  width: 6px; height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes badge-pulse {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(59,130,246,0.6); }
  50%      { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 4px rgba(59,130,246,0); }
}
.calc-tagline {
  font-size: 0.72rem;
  color: rgba(148,163,184,0.6);
  letter-spacing: 0.01em;
  padding-left: 2px;
}

/* ── Problem box ── */
.calc-problem-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid #3b82f6;
  border-radius: 14px;
  padding: 14px 16px 16px;
  margin-bottom: 16px;
}
.calc-problem-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.calc-problem-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3b82f6;
  text-transform: uppercase;
}
.calc-difficulty-tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #F472B6;
  background: rgba(236,72,153,0.12);
  border: 1px solid rgba(236,72,153,0.25);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.calc-question {
  color: #e2e8f0;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.15rem;
  line-height: 1.5;
  min-height: 28px;
  transition: opacity 0.25s;
}

/* ── Answer display ── */
.calc-answer-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 4px 4px;
}
.calc-fx-label {
  font-size: 0.78rem;
  color: rgba(100,116,139,0.7);
  font-family: 'Georgia', serif;
  font-style: italic;
  margin-bottom: 14px;
  flex-shrink: 0;
}
#calc-display {
  flex: 1;
  color: #f8fafc;
  font-size: 3rem;
  font-weight: 300;
  text-align: right;
  padding: 4px 2px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
  min-height: 60px;
  line-height: 1;
}

/* ── Divider ── */
.calc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 4px 0 16px;
}

/* ── Calculator grid ── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.calc-btn {
  background: rgba(51,65,85,0.7);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  aspect-ratio: 1;
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.1s, transform 0.08s, box-shadow 0.1s;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1;
}
.calc-btn:hover {
  background: rgba(71,85,105,0.9);
  border-color: rgba(255,255,255,0.1);
}
.calc-btn:active {
  transform: scale(0.92);
  background: rgba(100,116,139,0.8);
}
.calc-func {
  background: rgba(71,85,105,0.6);
  color: #cbd5e1;
  border-color: rgba(255,255,255,0.06);
}
.calc-func:hover { background: rgba(100,116,139,0.7); }
.calc-op {
  background: rgba(245,158,11,0.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
  font-size: 1.35rem;
}
.calc-op:hover  { background: rgba(245,158,11,0.25); border-color: rgba(245,158,11,0.5); }
.calc-op:active { transform: scale(0.92); }
.calc-eq {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.calc-eq:hover  { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }
.calc-eq:active { transform: scale(0.92); box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.calc-zero {
  grid-column: span 2;
  border-radius: 999px;
  aspect-ratio: unset;
  text-align: left;
  padding-left: 26px;
}

/* ── Footer hint ── */
.calc-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(100,116,139,0.5);
  letter-spacing: 0.04em;
}
.calc-footer kbd {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 0.62rem;
  color: rgba(148,163,184,0.7);
}

/* ══════════════════════════════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════════════════════════════ */
#app { display: none; }

/* ── Sidebar Nav ── */
.nav-label {
  padding: 12px 12px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.nav-item:hover { background: #F3F4F6; color: #111827; }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

/* ── Tab transitions ── */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.2s ease-out; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* AI tab needs full height */
main.ai-mode { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
#tab-ai { height: 100%; }
#tab-ai.active { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════
   COMMON COMPONENTS
   ══════════════════════════════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary, .btn.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover, .btn.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary, .btn.btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #E5E7EB;
}
.btn-secondary:hover, .btn.btn-secondary:hover { background: #F9FAFB; border-color: #D1D5DB; }
.btn-ghost, .btn.btn-ghost {
  background: transparent;
  color: #374151;
  border: 1px solid #E5E7EB;
}
.btn-ghost:hover, .btn.btn-ghost:hover { background: #F3F4F6; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 6px;
  color: #6B7280;
  transition: background 0.15s;
}
.btn-icon:hover { background: #F3F4F6; }

/* ── Inputs ── */
.input {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #111827;
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.input::placeholder { color: #9CA3AF; }
.input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.input-group { display: flex; flex-direction: column; }
.input-row { display: flex; gap: 12px; flex-wrap: wrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }

/* ── Cards ── */
.card {
  background: white;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #F3F4F6;
}
.card-title { font-size: 0.875rem; font-weight: 700; color: #111827; }
.card-body { padding: 20px; }
.mb-4 { margin-bottom: 16px; }

/* ── Form inputs (revenue forms) ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}
.form-input {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #111827;
  background: white;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-category { background: #F3F4F6; color: #374151; }
.badge-due { background: #FEE2E2; color: #DC2626; }
.badge-due.ok { background: #ECFDF5; color: #16A34A; }
.badge-recurring { background: #FCE7F3; color: #DB2777; padding: 2px 5px; }
.badge-time { background: var(--primary-light); color: var(--primary); }

/* ── Loading / Empty ── */
.loading {
  padding: 24px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

/* ── Pagination ── */
.pagination-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 12px;
}
.pag-btn {
  padding: 6px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
  font-family: inherit;
}
.pag-btn:hover:not(:disabled) { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.pag-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pag-info { font-size: 0.8rem; color: #6B7280; }

/* ── Progress bars ── */
.progress-bar-track {
  height: 8px;
  background: #F3F4F6;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 8px;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#toast.show.success { background: #16A34A; }
#toast.show.error   { background: #DC2626; }

/* ══════════════════════════════════════════════════════════════════
   TAB: COMMAND
   ══════════════════════════════════════════════════════════════════ */

/* Validation milestones */
.validation-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #F3F4F6;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.validation-item:hover { background: #FDF2F8; color: var(--primary); }
.validation-item.done { background: #DCFCE7; color: #16A34A; border-color: #BBF7D0; }

/* KPI pills */
.mission-kpi-pill {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.mission-kpi-pill:hover { box-shadow: 0 4px 12px rgba(236,72,153,0.1); border-color: rgba(236,72,153,0.25); }
.mission-kpi-pill-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.mission-kpi-pill-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

/* Mission cards */
.mission-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mission-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mission-card-title { font-size: 0.875rem; font-weight: 700; color: #111827; }
.mission-count-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 999px;
}

/* Mission daily checklist grid */
.mission-checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mission-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  border: 1px solid #F3F4F6;
  transition: all 0.15s;
  background: #FAFAFA;
}
.mission-check-item:hover { border-color: var(--primary); background: var(--primary-light); }
.mission-check-item.done { text-decoration: line-through; color: #9CA3AF; background: #F3F4F6; border-color: transparent; }
.mission-check-icon { font-size: 0.85rem; color: var(--primary); }

/* Exec task items */
.exec-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.exec-task-item:hover { background: var(--primary-light); border-color: #FBCFE8; }
.exec-task-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.exec-task-label { flex: 1; font-size: 0.82rem; font-weight: 500; color: #374151; }
.exec-task-fase {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9CA3AF;
  background: #F3F4F6;
  padding: 1px 7px;
  border-radius: 999px;
}

/* Today todos */
.today-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.today-todo-item:hover { background: #F3F4F6; }
.today-todo-check {
  width: 16px; height: 16px;
  border: 2px solid #D1D5DB;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s;
}
.today-todo-item:hover .today-todo-check { border-color: var(--primary); }
.today-todo-label { font-size: 0.82rem; font-weight: 500; color: #374151; }
.today-todo-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 1px 6px;
  border-radius: 5px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Revenue source tags */
.mission-rev-source-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════════════
   TAB: TODOS — View Toggle + Calendar + Kanban
   ══════════════════════════════════════════════════════════════════ */

/* View toggle */
.view-toggle {
  display: flex;
  gap: 4px;
  background: #F3F4F6;
  padding: 3px;
  border-radius: 10px;
}
.view-toggle-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6B7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.view-toggle-btn.active { background: white; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* ── Calendar ── */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cal-nav-btn {
  width: 32px; height: 32px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: all 0.15s;
  font-family: inherit;
}
.cal-nav-btn:hover { background: #F3F4F6; border-color: #D1D5DB; }
.cal-month-label { font-size: 0.975rem; font-weight: 700; color: #111827; flex: 1; }
.cal-today-btn {
  padding: 5px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.cal-today-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding: 0 2px;
}
.dow-sun { color: #EF4444; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}
.cal-cell {
  min-height: 88px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 7px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.cal-cell:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.08); }
.cal-cell.other-month { background: #FAFAFA; opacity: 0.45; }
.cal-cell.today { border-color: var(--primary); border-width: 2px; background: #FDF2F8; }
.cal-cell.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.2); }
.cal-cell.has-overdue { border-color: #FCA5A5; background: #FFF5F5; }

.cal-cell-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-cell.today .cal-cell-num {
  background: var(--primary);
  color: white;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
}
.cal-cell.other-month .cal-cell-num { color: #9CA3AF; }

.cal-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #F3F4F6;
  cursor: pointer;
  transition: background 0.1s;
}
.cal-chip:hover { background: var(--primary-light); }
.cal-chip.done { background: #F0FDF4; text-decoration: line-through; opacity: 0.6; }
.cal-chip.overdue { background: #FEE2E2; }
.cal-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9CA3AF;
}
.cal-chip-dot.high { background: #EF4444; }
.cal-chip-dot.medium { background: #F59E0B; }
.cal-chip-dot.low { background: #D1D5DB; }
.cal-chip-text { font-size: 0.68rem; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip-time { font-size: 0.62rem; font-weight: 700; color: var(--primary); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.cal-chip.done .cal-chip-time { color: #16A34A; }
.cal-chip.overdue .cal-chip-time { color: #DC2626; }
.cal-more { font-size: 0.65rem; color: #9CA3AF; padding: 1px 5px; }

.cal-cell-add {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: transparent;
  border: none;
  font-size: 0.85rem;
  color: #9CA3AF;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cal-cell:hover .cal-cell-add { display: flex; }
.cal-cell-add:hover { background: var(--primary-light); color: var(--primary); }

/* Day panel */
.cal-day-panel {
  display: none;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cal-day-panel.open { display: block; animation: fadeInUp 0.2s ease-out; }
.cal-day-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}
.cal-day-panel-close {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  color: #9CA3AF;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
}
.cal-day-panel-close:hover { background: #F3F4F6; color: #374151; }
.cal-day-task-list { margin-bottom: 12px; }
.cal-day-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.1s;
}
.cal-day-task-item:hover { background: #F9FAFB; }
.cal-day-task-item.done { opacity: 0.5; }
.cal-day-task-item.done .cal-day-task-title { text-decoration: line-through; }
.cal-day-task-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  background: white;
}
.cal-day-task-dot:hover { border-color: var(--primary); background: var(--primary-light); }
.cal-day-task-dot.high { border-color: #FCA5A5; }
.cal-day-task-dot.medium { border-color: #FCD34D; }
.cal-day-task-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cal-day-task-title { flex: 1; font-size: 0.82rem; color: #374151; cursor: pointer; }
.cal-day-task-title:hover { color: var(--primary); }
.cal-day-task-del { background: transparent; border: none; cursor: pointer; font-size: 0.8rem; color: #9CA3AF; padding: 2px 4px; border-radius: 4px; }
.cal-day-task-del:hover { background: #FEE2E2; color: #DC2626; }

.cal-day-add { padding-top: 8px; border-top: 1px solid #F3F4F6; }
.cal-day-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cal-day-add-inp {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  color: #111827;
}
.cal-day-add-inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.cal-day-prio {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  background: white;
  cursor: pointer;
}
.cal-day-time {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  background: white;
  color: #111827;
  width: 96px;
  flex-shrink: 0;
}
.cal-day-time:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.cal-day-add-btn {
  padding: 7px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.cal-day-add-btn:hover { background: var(--primary-dark); }

/* Heatmap konsistensi checklist harian */
.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 13px);
  grid-auto-flow: column;
  grid-auto-columns: 13px;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.heatmap-cell {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: #F3F4F6;
  display: inline-block;
}
.heatmap-cell.empty { background: transparent; }
.heatmap-cell.l1 { background: #C7C2EA; }
.heatmap-cell.l2 { background: #8B82D4; }
.heatmap-cell.l3 { background: var(--primary); }
.heatmap-cell.today { outline: 2px solid var(--primary); outline-offset: 1px; }
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.68rem;
  color: #9CA3AF;
}

/* Agenda (timeline harian) */
.agenda-list {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.agenda-section-hdr {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 0 6px;
}
.agenda-section-hdr:first-child { padding-top: 0; }
.agenda-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 4px;
}
.agenda-time {
  width: 52px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 9px;
  font-variant-numeric: tabular-nums;
}
.agenda-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #F3F4F6;
  border-left: 3px solid var(--primary-light);
  border-radius: 8px;
  background: #FCFCFD;
  transition: background 0.1s;
}
.agenda-card:hover { background: #F9FAFB; }
.agenda-card.done { opacity: 0.5; }
.agenda-card.done .agenda-card-title { text-decoration: line-through; }
.agenda-card-title { flex: 1; font-size: 0.84rem; font-weight: 500; color: #374151; }
.agenda-now-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.agenda-now-line::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #EF4444;
  border-radius: 1px;
}
.agenda-now-line span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #EF4444;
  width: 52px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Undated section */
.cal-undated {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
}
.cal-undated-hdr {
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-undated-hdr span {
  background: #F3F4F6;
  color: #6B7280;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
}
.cal-undated-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cal-undated-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #F3F4F6;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.cal-undated-chip:hover { background: var(--primary-light); color: var(--primary); }
.cal-undated-chip.done { text-decoration: line-through; opacity: 0.5; }
.cal-undated-chip-del {
  background: transparent; border: none; cursor: pointer;
  color: #9CA3AF; font-size: 0.75rem; padding: 0 2px;
  line-height: 1;
}
.cal-undated-chip-del:hover { color: #DC2626; }
.cal-undated-add-btn {
  background: transparent;
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.cal-undated-add-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cal-undated-add-form { display: none; margin-top: 10px; flex-direction: column; gap: 8px; }
.cal-undated-add-form.open { display: flex; }

/* ── Kanban ── */
.kbn-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.kbn-filter-pill {
  padding: 5px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: white;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.kbn-filter-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.kbn-filter-pill.active { background: var(--primary); color: white; border-color: var(--primary); }
.kbn-filter-pill.has-badge { border-color: #FCA5A5; color: #DC2626; }

/* Select toggle button */
.kbn-select-toggle {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.kbn-select-toggle:hover { border-color: var(--primary); color: var(--primary); }
.kbn-select-toggle.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* Bulk action bar */
.kbn-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #1E1B4B;
  color: white;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.kbn-bulk-bar.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.kbn-bulk-count { font-size: 0.82rem; font-weight: 700; }
.kbn-bulk-actions { display: flex; gap: 8px; }
.kbn-bulk-del {
  padding: 5px 14px;
  background: #EF4444;
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.kbn-bulk-del:hover:not(:disabled) { background: #DC2626; }
.kbn-bulk-del:disabled { opacity: 0.6; cursor: not-allowed; }
.kbn-bulk-cancel {
  padding: 5px 12px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.kbn-bulk-cancel:hover { background: rgba(255,255,255,0.25); }

/* "Pilih semua" button in column header */
.kbn-col-selall {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  display: none;
  transition: color 0.15s;
}
.kbn-col-selall:hover { color: var(--primary); }

/* Show "Pilih semua" only when select mode active */
.kanban-col-header:has(+ .kanban-cards .kanban-card.select-mode) .kbn-col-selall,
#kanban-board.select-active .kbn-col-selall { display: block; }

.kbn-filter-date {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  color: #374151;
}

#kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.kanban-col {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
.kanban-col.drag-over { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.kanban-col.col-done { background: #F0FDF4; border-color: #BBF7D0; }
.kanban-col.col-done .kanban-col-header { background: #F0FDF4; border-color: #BBF7D0; }
.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
}
.kanban-col-icon { font-size: 0.9rem; }
.kanban-col-title { font-size: 0.82rem; font-weight: 700; color: #374151; flex: 1; }
.kanban-col-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: #F3F4F6;
  color: #6B7280;
  padding: 2px 8px;
  border-radius: 999px;
}

.kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }

.kanban-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px;
  cursor: grab;
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.kanban-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: #D1D5DB; }
.kanban-card.dragging { opacity: 0.6; box-shadow: 0 8px 24px rgba(0,0,0,0.15); cursor: grabbing; }
.kanban-card.editing { cursor: default; }
.kanban-card.select-mode { cursor: default; }

/* Selected state */
.kanban-card.selected {
  border-color: var(--primary);
  background: #F5F3FF;
  box-shadow: 0 0 0 2px rgba(236,72,153,0.2);
}

/* Checkbox wrapper — hidden until hover or select-mode/selected */
.kanban-card-cb-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.kanban-card:hover .kanban-card-cb-wrap,
.kanban-card.select-mode .kanban-card-cb-wrap,
.kanban-card.selected .kanban-card-cb-wrap { opacity: 1; }

.kanban-card-cb {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Indent title when checkbox visible */
.kanban-card.select-mode .kanban-card-title,
.kanban-card.selected .kanban-card-title { padding-left: 22px; }
.kanban-card-del {
  position: absolute;
  top: 8px; right: 8px;
  background: transparent;
  border: none;
  font-size: 0.7rem;
  color: #D1D5DB;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  display: none;
  font-family: inherit;
}
.kanban-card:hover .kanban-card-del { display: block; }
.kanban-card-del:hover { background: #FEE2E2; color: #DC2626; }
.kanban-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  padding-right: 20px;
  margin-bottom: 8px;
  line-height: 1.4;
  cursor: pointer;
}
.kanban-card-title:hover { color: var(--primary); }
.kanban-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kanban-priority-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D1D5DB;
}
.kanban-priority-dot.high { background: #EF4444; }
.kanban-priority-dot.medium { background: #F59E0B; }
.kanban-priority-dot.low { background: #D1D5DB; }

.kanban-add-area { padding: 10px; border-top: 1px solid #F3F4F6; }
.kanban-add-btn {
  width: 100%;
  padding: 7px;
  background: transparent;
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9CA3AF;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.kanban-add-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.kanban-add-form { display: none; padding-top: 8px; }
.kanban-add-form.open { display: block; }
.kanban-add-input {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #111827;
  outline: none;
  resize: none;
  background: white;
  margin-bottom: 6px;
}
.kanban-add-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.kanban-priority-sel {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  background: white;
  color: #374151;
  margin-bottom: 6px;
  cursor: pointer;
}
.kanban-add-row { display: flex; gap: 6px; margin-top: 4px; }
.kanban-add-save {
  flex: 1;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.kanban-add-save:hover { background: var(--primary-dark); }
.kanban-add-cancel {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.kanban-add-cancel:hover { background: #F3F4F6; }
.kanban-edit-title {
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #111827;
  outline: none;
  resize: none;
  margin-bottom: 6px;
  box-shadow: 0 0 0 3px rgba(236,72,153,0.1);
}
.kanban-edit-row { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.kanban-edit-due,
.kanban-edit-time {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
}
.kanban-edit-time { flex: 0 0 86px; }

/* ══════════════════════════════════════════════════════════════════
   TAB: KPI — Table rows
   ══════════════════════════════════════════════════════════════════ */
#kpi-table-body tr { transition: background 0.1s; }
#kpi-table-body tr:hover { background: #FDF2F8; }
#kpi-table-body td { padding: 13px 24px; border-bottom: 1px solid #F3F4F6; font-size: 0.875rem; }
#kpi-table-body td:first-child { font-weight: 700; color: #111827; }
#kpi-table-body td:not(:first-child) { text-align: right; color: #374151; font-variant-numeric: tabular-nums; }

/* ══════════════════════════════════════════════════════════════════
   TAB: CATATAN
   ══════════════════════════════════════════════════════════════════ */
.notes-search-input { max-width: 280px; }
.notes-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.note-item {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px 20px 16px 18px;
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.note-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }
.note-type-note     { border-left: 4px solid #EC4899; }
.note-type-decision { border-left: 4px solid #F59E0B; }
.note-type-insight  { border-left: 4px solid #22C55E; }
.note-type-blocker  { border-left: 4px solid #EF4444; }

.note-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 8px;
}
.note-type-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.note-type-note   .note-type-dot { color: #EC4899; }
.note-type-decision .note-type-dot { color: #F59E0B; }
.note-type-insight  .note-type-dot { color: #22C55E; }
.note-type-blocker  .note-type-dot { color: #EF4444; }
.note-content { font-size: 0.875rem; color: #374151; line-height: 1.6; white-space: pre-wrap; }
.note-del {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: #D1D5DB;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.15s;
}
.note-del:hover { background: #FEE2E2; color: #DC2626; }
.note-edit {
  position: absolute;
  top: 12px; right: 40px;
  background: transparent;
  border: none;
  font-size: 0.72rem;
  color: #D1D5DB;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.15s;
  filter: grayscale(1) opacity(0.55);
}
.note-edit:hover { background: var(--primary-light); filter: none; }

/* ══════════════════════════════════════════════════════════════════
   TAB: EKSEKUSI — Phase Accordion
   ══════════════════════════════════════════════════════════════════ */
.phase-accordion-item {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phase-accordion-item.open { box-shadow: 0 4px 16px rgba(236,72,153,0.1); }
.phase-accordion-item.has-done { border-color: rgba(236,72,153,0.35); }

.phase-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  background: white;
  transition: background 0.15s;
}
.phase-accordion-header:hover { background: #F9FAFB; }
.phase-accordion-icon {
  font-size: 0.7rem;
  color: #9CA3AF;
  transition: transform 0.2s;
  flex-shrink: 0;
  display: inline-block;
}
.phase-accordion-item.open .phase-accordion-icon { transform: rotate(90deg); }
.phase-accordion-name { flex: 1; font-size: 0.875rem; font-weight: 700; color: #111827; }
.phase-accordion-progress { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.phase-accordion-count { font-size: 0.75rem; font-weight: 700; color: #6B7280; }
.phase-mini-bar { width: 64px; height: 5px; background: #F3F4F6; border-radius: 999px; overflow: hidden; }
.phase-mini-bar-fill { height: 5px; background: var(--primary); border-radius: 999px; transition: width 0.4s; }

.phase-accordion-body { display: none; padding: 0 20px 16px; border-top: 1px solid #F3F4F6; }
.phase-accordion-item.open .phase-accordion-body { display: block; }

.phase-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F9FAFB;
  cursor: pointer;
  transition: opacity 0.15s;
}
.phase-task-row:hover { opacity: 0.75; }
.phase-task-row.done .phase-task-label { text-decoration: line-through; color: #9CA3AF; }
.phase-task-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  transition: all 0.15s;
  background: white;
}
.phase-task-row.done .phase-task-dot { background: var(--primary); border-color: var(--primary); }
.phase-task-label { font-size: 0.85rem; font-weight: 500; color: #374151; flex: 1; }

/* ══════════════════════════════════════════════════════════════════
   TAB: REVENUE
   ══════════════════════════════════════════════════════════════════ */
.kpi-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 12px 12px 0 0;
}
.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  margin-top: 4px;
}
.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 6px;
}
.kpi-target { font-size: 0.75rem; color: #9CA3AF; margin-bottom: 10px; }
.kpi-bar { height: 5px; background: #F3F4F6; border-radius: 999px; overflow: hidden; }
.kpi-bar-fill { height: 5px; background: var(--primary); border-radius: 999px; transition: width 0.5s; }

.rev-th {
  padding: 10px 20px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #F3F4F6;
  background: #F9FAFB;
}
.rev-td { padding: 12px 20px; border-bottom: 1px solid #F9FAFB; font-size: 0.85rem; color: #374151; }
.bop-row:hover .rev-td { background: #FAFAFA; }

.rev-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.rev-log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #F9FAFB;
  transition: background 0.1s;
}
.rev-log-row:hover { background: #FDF2F8; }
.rev-log-date { font-size: 0.78rem; color: #9CA3AF; font-weight: 600; white-space: nowrap; min-width: 90px; }
.rev-log-info { flex: 1; }
.rev-log-label { font-size: 0.85rem; font-weight: 600; color: #111827; display: block; }
.rev-log-desc { font-size: 0.75rem; color: #9CA3AF; }
.rev-log-amount { font-size: 0.9rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.rev-log-del {
  background: transparent; border: none; cursor: pointer;
  font-size: 0.75rem; color: #D1D5DB; padding: 4px 6px; border-radius: 4px;
  font-family: inherit; transition: all 0.15s;
}
.rev-log-del:hover { background: #FEE2E2; color: #DC2626; }

.bop-gratis-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.rev-edit-btn, .bop-edit-btn, .rev-del-btn, .bop-del-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 0.85rem; padding: 4px 6px; border-radius: 4px;
  font-family: inherit; transition: all 0.15s;
}
.bop-edit-btn:hover { background: #FDF2F8; }
.rev-del-btn:hover, .bop-del-btn:hover { background: #FEE2E2; }

.month-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; }
.month-filter-pill {
  padding: 4px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: white;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.month-filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.month-filter-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ══════════════════════════════════════════════════════════════════
   TAB: SPRINT
   ══════════════════════════════════════════════════════════════════ */
.sprint-target-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.sprint-target-item:hover { background: #FDF2F8; border-color: #FBCFE8; }
.sprint-target-item.done { background: #F0FDF4; border-color: #BBF7D0; }
.sprint-target-item.done .sprint-target-text { text-decoration: line-through; color: #9CA3AF; }
.sprint-target-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
  background: white;
}
.sprint-target-item:hover .sprint-target-circle { border-color: var(--primary); }
.sprint-target-item.done .sprint-target-circle {
  background: #16A34A;
  border-color: #16A34A;
  color: white;
}
.sprint-target-item.done .sprint-target-circle::after { content: '✓'; }
.sprint-target-text { font-size: 0.875rem; font-weight: 500; color: #374151; line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════════
   TAB: KONTEN
   ══════════════════════════════════════════════════════════════════ */
.content-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #6B7280;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.content-stat-pill strong { color: #111827; }

.content-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.content-day-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s;
}
.content-day-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.content-day-card.today-card { border-color: var(--primary); background: #FDF2F8; }
.content-day-card.type-live { background: #FFF5F5; border-color: #FCA5A5; }
.content-day-card.type-rest { background: #F9FAFB; opacity: 0.7; }
.content-day-card.type-prep { background: #FEFCE8; border-color: #FDE68A; }
.content-day-card.type-production { background: #F0FDF4; border-color: #BBF7D0; }
.content-day-card.type-review { background: #EFF6FF; border-color: #BFDBFE; }

.content-edit-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: none;
  font-family: inherit;
}
.content-day-card:hover .content-edit-btn { display: block; }
.content-day-name { font-size: 0.72rem; font-weight: 800; color: #374151; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.content-day-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6B7280;
  margin-bottom: 8px;
}
.content-day-card.type-live .content-day-type-badge { color: #DC2626; }
.content-day-slot { font-size: 0.78rem; color: #374151; line-height: 1.4; margin-bottom: 6px; min-height: 36px; }
.content-day-duration { font-size: 0.7rem; color: #9CA3AF; font-weight: 600; }
.content-edit-form {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #E5E7EB;
}
.content-edit-form.open { display: flex; }
.content-edit-form textarea {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-family: inherit;
  outline: none;
  resize: none;
}
.input-dur {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}
.edit-actions { display: flex; gap: 5px; }
.btn-save-small {
  flex: 1; padding: 5px; background: var(--primary); color: white;
  border: none; border-radius: 6px; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.btn-save-small:hover { background: var(--primary-dark); }
.btn-cancel-small {
  padding: 5px 10px; background: transparent; border: 1px solid #E5E7EB;
  border-radius: 6px; font-size: 0.72rem; font-weight: 600; color: #6B7280;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}

/* 8 Konten Tracker */
.content-8-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.content-8-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.content-8-item:hover { background: var(--primary-light); border-color: var(--primary); }
.content-8-item.done { background: #F0FDF4; border-color: #BBF7D0; }
.content-8-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  transition: all 0.2s;
  background: white;
}
.content-8-item.done .content-8-circle { background: #16A34A; border-color: #16A34A; }
.content-8-icon { font-size: 1.1rem; flex-shrink: 0; }
.content-8-info { flex: 1; min-width: 0; }
.content-8-name { font-size: 0.78rem; font-weight: 600; color: #111827; }
.content-8-sub { font-size: 0.68rem; color: #9CA3AF; }
.content-8-reset {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.content-8-reset:hover { border-color: #DC2626; color: #DC2626; background: #FEE2E2; }

/* ══════════════════════════════════════════════════════════════════
   TAB: AI ASSISTANT (full-screen)
   ══════════════════════════════════════════════════════════════════ */
.ai-layout {
  display: flex;
  height: 100%;
  flex: 1;
  overflow: hidden;
}
.ai-sessions-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid #E5E7EB;
  background: #F9FAFB;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ai-new-chat-btn {
  margin: 12px;
  padding: 8px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.ai-new-chat-btn:hover { background: var(--primary-dark); }
.ai-sessions-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.ai-sessions-empty { padding: 20px 12px; font-size: 0.78rem; color: #9CA3AF; text-align: center; line-height: 1.5; }
.ai-session-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
  position: relative;
}
.ai-session-item:hover { background: #F3F4F6; }
.ai-session-item.active { background: var(--primary-light); }
.ai-session-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-session-item.active .ai-session-name { color: var(--primary); font-weight: 600; }
.ai-session-time { font-size: 0.68rem; color: #9CA3AF; flex-shrink: 0; }
.ai-session-del {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  color: #D1D5DB;
  display: none;
  align-items: center;
  flex-shrink: 0;
}
.ai-session-item:hover .ai-session-del { display: flex; }
.ai-session-del:hover { background: #FEE2E2; color: #DC2626; }

.ai-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
}
.ai-page-header {
  padding: 16px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  flex-shrink: 0;
}
.ai-page-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.975rem;
  font-weight: 800;
  color: #111827;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-page-badge {
  -webkit-text-fill-color: initial;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
}
.ai-page-subtitle { font-size: 0.78rem; color: #9CA3AF; margin-top: 2px; }

.ai-page-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #FAFAFA;
}

.ai-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeInUp 0.2s ease-out;
}
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.ai-msg.user .ai-msg-avatar { background: var(--primary); color: white; }
.ai-msg.assistant .ai-msg-avatar {
  background: var(--primary);
  color: white;
}
.ai-msg-bubble {
  max-width: 72%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.65;
}
.ai-msg.user .ai-msg-bubble {
  background: var(--primary);
  color: white;
  border-radius: 14px 4px 14px 14px;
}
.ai-msg.assistant .ai-msg-bubble {
  background: white;
  color: #374151;
  border: 1px solid #E5E7EB;
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ai-msg-content { line-height: 1.7; }
.ai-msg-content p { margin-bottom: 8px; }
.ai-msg-content p:last-child { margin-bottom: 0; }
.ai-msg-content ul, .ai-msg-content ol { padding-left: 20px; margin-bottom: 8px; }
.ai-msg-content li { margin-bottom: 4px; }
.ai-msg-content code {
  background: #F3F4F6;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: monospace;
}
.ai-msg-content pre { background: #F3F4F6; padding: 12px; border-radius: 8px; overflow-x: auto; margin: 8px 0; }
.ai-msg-content strong { font-weight: 700; }

.ai-typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.ai-typing-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9CA3AF;
  animation: typingDot 1.4s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* AI Welcome */
.ai-welcome {
  margin: auto;
  text-align: center;
  max-width: 460px;
  padding: 40px 20px;
}
.ai-welcome-glow {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(236,72,153,0.3);
}
.ai-welcome-title { font-size: 1.25rem; font-weight: 800; color: #111827; margin-bottom: 8px; }
.ai-welcome-sub { font-size: 0.875rem; color: #6B7280; line-height: 1.6; margin-bottom: 24px; }
.ai-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.ai-quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  text-align: left;
}
.ai-quick-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* AI Input */
.ai-page-input-area {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  background: white;
  flex-shrink: 0;
}
.ai-page-input-box {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ai-page-input-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.ai-page-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #111827;
  background: transparent;
  line-height: 1.5;
  max-height: 160px;
}
.ai-page-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid #F3F4F6;
}
.ai-page-hint { font-size: 0.72rem; color: #9CA3AF; }
.ai-page-send-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.ai-page-send-btn:hover { background: var(--primary-dark); }
.ai-page-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════════
   TAB: TUGAS HARIAN — todo-item
   ══════════════════════════════════════════════════════════════════ */
.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #F3F4F6;
  border-radius: 10px;
  background: white;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.todo-item:hover { border-color: rgba(236,72,153,0.2); box-shadow: 0 3px 10px rgba(236,72,153,0.08); }
.todo-body { flex: 1; }
.todo-title { font-size: 0.875rem; font-weight: 600; color: #111827; margin-bottom: 2px; }
.todo-meta { display: flex; gap: 6px; }
.todo-actions { opacity: 0; transition: opacity 0.15s; }
.todo-item:hover .todo-actions { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════
   AI FLOATING CHAT (FAB)
   ══════════════════════════════════════════════════════════════════ */
#ai-fab { display: none; }
#ai-fab:hover {}

.ai-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 500px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.ai-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  background: white;
  border-radius: 16px 16px 0 0;
}
.ai-panel-header button {
  background: transparent; border: none; font-size: 0.85rem; cursor: pointer;
  color: #9CA3AF; padding: 2px 6px; border-radius: 4px; font-family: inherit;
}
.ai-panel-header button:hover { background: #F3F4F6; color: #374151; }
.ai-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.ai-bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
}
.ai-bubble.user { background: var(--primary); color: white; align-self: flex-end; border-radius: 12px 4px 12px 12px; }
.ai-bubble.assistant { background: #F3F4F6; color: #374151; align-self: flex-start; border-radius: 4px 12px 12px 12px; }
.ai-bubble.loading { opacity: 0.6; }
.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #F3F4F6;
}
.ai-input-row input {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  color: #111827;
}
.ai-input-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,72,153,0.1); }
.ai-input-row button {
  padding: 8px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.ai-input-row button:hover { background: var(--primary-dark); }

/* ══════════════════════════════════════════════════════════════════
   CONFIRM MODAL
   ══════════════════════════════════════════════════════════════════ */
#ai-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
#ai-confirm-overlay.open { display: flex; }
.ai-confirm-box {
  background: white;
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: fadeInUp 0.2s ease-out;
}
.ai-confirm-title { font-size: 1rem; font-weight: 800; color: #111827; margin-bottom: 12px; }
.ai-confirm-desc { font-size: 0.875rem; color: #374151; line-height: 1.6; margin-bottom: 20px; }
.ai-confirm-btns { display: flex; gap: 10px; }
.ai-confirm-btns button {
  flex: 1; padding: 10px; border: none; border-radius: 10px;
  font-size: 0.875rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.15s;
}
#ai-confirm-yes { background: var(--primary); color: white; }
#ai-confirm-yes:hover { background: var(--primary-dark); }
#ai-confirm-no { background: #F3F4F6; color: #374151; }
#ai-confirm-no:hover { background: #E5E7EB; }

/* ══════════════════════════════════════════════════════════════════
   MISC / UTILITIES
   ══════════════════════════════════════════════════════════════════ */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 1.25rem; font-weight: 800; color: #111827; }
.page-subtitle { font-size: 0.82rem; color: #9CA3AF; margin-top: 2px; }
.mt-6 { margin-top: 24px; }

/* Phase overall bar (Eksekusi) */
.phase-overall-bar { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════
   MOBILE (≤900px) — sidebar jadi bar atas, grid menumpuk
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Layout utama: kolom — sidebar di atas, konten di bawah */
  #app .flex.h-screen { flex-direction: column; }
  #app aside {
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
  }
  /* Brand: ciutkan, sembunyikan teks */
  #app aside > div:first-child { border-bottom: none; padding: 8px 10px; flex-shrink: 0; }
  #app aside > div:first-child img { width: 30px; height: 30px; }
  #app aside > div:first-child img + div { display: none; }
  /* Nav: horizontal scroll */
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-nav .nav-label { display: none; }
  .nav-item { white-space: nowrap; padding: 6px 10px; gap: 6px; font-size: 0.8rem; flex-shrink: 0; }
  /* Logout: ciutkan */
  #app aside > div:last-child { border-top: none; padding: 6px 8px; flex-shrink: 0; }
  #logout-btn { padding: 6px 8px; font-size: 0.78rem; white-space: nowrap; }

  /* Konten: padding lebih kecil (tab AI tetap full-bleed) */
  main .tab-content.p-7 { padding: 14px; }

  /* Kanban: kolom menumpuk */
  #kanban-board { grid-template-columns: 1fr; }

  /* Kalender: sel lebih kecil, chip tampil dot + jam saja */
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 56px; padding: 4px; border-radius: 7px; }
  .cal-chip-text { display: none; }
  .cal-chip { padding: 2px 3px; gap: 2px; }
  .cal-more { font-size: 0.58rem; padding: 0 2px; }

  /* Konten mingguan & 8 konten: 2 kolom */
  .content-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-8-grid { grid-template-columns: 1fr; }

  /* AI: sembunyikan sidebar sesi (sesi terakhir auto-load) */
  .ai-sessions-sidebar { display: none; }

  /* Agenda: kolom jam lebih ramping */
  .agenda-time { width: 42px; font-size: 0.74rem; }
  .agenda-now-line span { width: 42px; }

  /* Checklist Command: 1 kolom */
  .mission-checklist-grid { grid-template-columns: 1fr; }

  /* Form revenue: 1 kolom */
  .rev-form-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   TEAM HQ — tambahan di atas design system irfan-dashboard
   ══════════════════════════════════════════════════════════════════ */

/* ── Login: pilih profil (ala Netflix) + PIN numpad ── */
.login-card {
  position: relative;
  z-index: 2;
  width: min(440px, 92vw);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 32px 28px;
  backdrop-filter: blur(14px);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-brand img { width: 44px; height: 44px; border-radius: 12px; }
.login-brand-title { color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.login-brand-sub { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.login-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.login-members-grid .loading { color: rgba(255,255,255,0.4); grid-column: 1/-1; text-align: center; padding: 18px 0; }
.login-member-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}
.login-member-card:hover {
  transform: translateY(-3px);
  border-color: var(--member-color, #EC4899);
  background: rgba(255,255,255,0.09);
}
.login-member-avatar {
  font-size: 2.4rem; line-height: 1;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 2px solid var(--member-color, #EC4899);
  border-radius: 50%;
}
.login-member-name { color: #fff; font-size: 0.85rem; font-weight: 600; }

.pin-back-btn {
  background: none; border: none; color: rgba(255,255,255,0.45);
  font-size: 0.8rem; cursor: pointer; padding: 0; margin-bottom: 14px;
}
.pin-back-btn:hover { color: #fff; }
.pin-member-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.pin-member-avatar { font-size: 2.6rem; line-height: 1; }
.pin-member-name { color: #fff; font-weight: 700; font-size: 1rem; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 8px; }
.pin-dots span {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: background .12s, border-color .12s;
}
.pin-dots span.filled { background: #fff; border-color: #fff; }
.pin-dots.shake { animation: pin-shake .4s; }
@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.pin-error { min-height: 18px; text-align: center; color: #F87171; font-size: 0.78rem; margin-bottom: 10px; }
.pin-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 270px; margin: 0 auto;
}
.pin-btn {
  height: 60px; border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  color: #fff; font-size: 1.25rem; font-weight: 600;
  cursor: pointer; transition: background .12s, transform .08s;
}
.pin-btn:hover { background: rgba(255,255,255,0.13); }
.pin-btn:active { transform: scale(0.96); }
.pin-fn { font-size: 1rem; color: rgba(255,255,255,0.55); }

/* ── Sidebar footer: badge member login ── */
.me-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; background: var(--bg, #F9FAFB);
}
.me-badge-avatar { font-size: 1.4rem; line-height: 1; }
.me-badge-info { min-width: 0; flex: 1; }
.me-badge-name { font-size: 0.82rem; font-weight: 700; color: var(--text, #111827); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-badge-role { font-size: 0.68rem; color: var(--text-muted, #9CA3AF); }
.me-badge button {
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: var(--text-muted, #9CA3AF); padding: 4px 6px; border-radius: 8px;
}
.me-badge button:hover { background: #FEE2E2; color: #B91C1C; }

/* ── Command: kartu pet hero ── */
.pet-hero {
  display: flex; align-items: center; gap: 22px;
  border-radius: 18px;
  background: #EC4899;
  color: #fff; padding: 26px 30px;
  cursor: pointer;
}
.pet-hero-visual {
  font-size: 4rem; line-height: 1;
  animation: pet-bounce 2.4s ease-in-out infinite;
}
@keyframes pet-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.pet-hero-info { flex: 1; min-width: 0; }
.pet-hero-name-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pet-hero-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.pet-hero-stage { font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,0.18); padding: 3px 10px; border-radius: 999px; }
.pet-health-bar { height: 8px; background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; margin-bottom: 10px; max-width: 420px; }
.pet-health-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #EF4444 0%, #F59E0B 45%, #22C55E 100%); transition: width .6s; }
.pet-hero-status { font-size: 0.85rem; opacity: 0.92; }
.pet-hero-streak { text-align: center; flex-shrink: 0; }
.pet-hero-streak-num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.pet-hero-streak-label { font-size: 0.72rem; opacity: 0.75; margin-top: 4px; }

/* ── Command: strip "siapa yang menyala" ── */
.streak-strip { display: flex; gap: 18px; flex-wrap: wrap; }
.streak-member { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; }
.streak-member-avatar {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: #F3F4F6;
  border: 2.5px solid #E5E7EB;
  filter: grayscale(1); opacity: 0.6;
  transition: all .25s;
}
.streak-member.active .streak-member-avatar {
  filter: none; opacity: 1;
  border-color: var(--member-color, #EC4899);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--member-color, #EC4899) 18%, transparent);
}
.streak-check {
  position: absolute; right: -3px; bottom: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #22C55E; color: #fff;
  font-size: 0.62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.streak-member-name { font-size: 0.72rem; font-weight: 600; color: var(--text, #111827); }
.streak-member-count { font-size: 0.7rem; font-weight: 700; color: var(--text-muted, #9CA3AF); }
.streak-member.active .streak-member-count { color: #EA580C; }

/* ── Command: kolom todo per member ── */
.member-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.member-col {
  border: 1px solid var(--border, #E5E7EB);
  border-top: 3px solid var(--member-color, #EC4899);
  border-radius: 12px; padding: 12px;
  background: #FAFAFB;
}
.member-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.member-col-avatar { font-size: 1.2rem; line-height: 1; }
.member-col-name { font-size: 0.85rem; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-col-count { font-size: 0.72rem; font-weight: 700; color: var(--member-color, #EC4899); }
.member-col-checklist { font-size: 0.7rem; color: var(--text-muted, #9CA3AF); margin-bottom: 6px; }
.member-col-tasks { display: flex; flex-direction: column; gap: 4px; }
.cmd-todo-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 7px; border-radius: 8px; background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  font-size: 0.78rem;
}
.cmd-todo-item.done { opacity: 0.5; }
.cmd-todo-item.done .cmd-todo-title { text-decoration: line-through; }
.cmd-todo-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--member-color, #EC4899);
  flex-shrink: 0;
}
.cmd-todo-dot.clickable { cursor: pointer; }
.cmd-todo-dot.clickable:hover { background: var(--member-color, #EC4899); }
.cmd-todo-item.done .cmd-todo-dot { background: var(--member-color, #EC4899); }
.cmd-todo-time { font-size: 0.68rem; font-weight: 700; color: var(--primary, #EC4899); flex-shrink: 0; }
.cmd-todo-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-todo-empty { font-size: 0.75rem; color: var(--text-muted, #9CA3AF); padding: 6px 2px; }

/* ── Command: heatmap tim multi-baris ── */
.thm-grid { display: flex; flex-direction: column; gap: 5px; overflow-x: auto; padding-bottom: 4px; }
.thm-row { display: flex; align-items: center; gap: 8px; }
.thm-label {
  width: 34px; flex-shrink: 0; text-align: center;
  font-size: 0.95rem; font-weight: 800;
}
.thm-team-row .thm-label { font-size: 0.6rem; letter-spacing: 0.04em; color: var(--primary, #EC4899); }
.thm-cells { display: flex; gap: 3px; }
.thm-cell {
  width: 9px; height: 9px; border-radius: 2.5px;
  background: #F3F4F6; flex-shrink: 0;
}
.thm-cell.task { background: var(--member-color, #EC4899); }
.thm-cell.checklist { background: color-mix(in srgb, var(--member-color, #EC4899) 55%, #fff); }
.thm-cell.shield { background: #93C5FD; }
.thm-cell.holiday { background: #E5E7EB; }
.thm-cell.team { background: #EC4899; }
.thm-team-row .thm-cell { border-radius: 50%; }

/* ── Member dot/badge umum (panel hari, agenda, kanban) ── */
.member-dot {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.06);
}
.kanban-member-badge { font-size: 0.85rem; line-height: 1; }
.assigned-tag { font-size: 0.68rem; color: var(--text-muted, #9CA3AF); flex-shrink: 0; }
.member-select { max-width: 130px; }

/* ── Checklist tim ── */
.team-daily-row { display: flex; align-items: center; gap: 10px; }
.team-daily-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; background: #F3F4F6;
  border: 2px solid var(--member-color, #E5E7EB);
  flex-shrink: 0;
}
.team-daily-info { flex: 1; min-width: 0; }
.team-daily-name { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.team-daily-bar { height: 6px; background: #F3F4F6; border-radius: 999px; overflow: hidden; }
.team-daily-fill { height: 100%; border-radius: 999px; transition: width .4s; }

/* ── Kelola: pill hari libur ── */
.holiday-pill {
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--border, #E5E7EB);
  background: #fff; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted, #6B7280); cursor: pointer;
  transition: all .12s;
}
.holiday-pill:hover { border-color: var(--primary, #EC4899); }
.holiday-pill.active {
  background: var(--primary, #EC4899); border-color: var(--primary, #EC4899);
  color: #fff;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .pet-hero { flex-direction: column; text-align: center; gap: 12px; padding: 20px; }
  .pet-hero-name-row { justify-content: center; }
  .pet-health-bar { margin-left: auto; margin-right: auto; }
  .member-cols { grid-template-columns: 1fr; }
  .streak-strip { justify-content: center; }
  .login-card { padding: 24px 18px; }
  .login-members-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .pin-btn { height: 54px; }
}

/* ══════════════════════════════════════════════════════════════════
   TEAM HQ — UI/UX UPGRADE v2
   Arah: claymorphism playful (soft 3D, chunky, rounded) di atas brand
   #EC4899 · Fredoka (display) + Nunito (body) · fokus & motion a11y
   ══════════════════════════════════════════════════════════════════ */

:root {
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --clay-shadow:
    0 10px 22px -10px rgba(236,72,153, 0.18),
    0 2px 5px rgba(17, 24, 39, 0.05),
    inset 0 -3px 0 rgba(17, 24, 39, 0.045);
  --clay-shadow-sm:
    0 4px 10px -4px rgba(236,72,153, 0.14),
    0 1px 3px rgba(17, 24, 39, 0.05),
    inset 0 -2px 0 rgba(17, 24, 39, 0.04);
  --clay-press: inset 0 2px 4px rgba(17, 24, 39, 0.08);
}

body {
  font-family: 'Nunito', 'Inter', system-ui, sans-serif;
  background: #F6F5FB;
}

/* Display font utk identitas & angka besar */
h1, h2,
.login-brand-title, .pin-member-name,
.pet-hero-name, .pet-hero-streak-num,
.cal-month-label,
.me-badge-name {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  letter-spacing: 0.005em;
}

/* ── Fokus keyboard terlihat ── */
:focus-visible {
  outline: 3px solid rgba(236,72,153, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}
.input:focus-visible { outline: none; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Sidebar ── */
.nav-item {
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  min-height: 40px;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.nav-item:active { transform: scale(0.97); }
.nav-item.active {
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1.5px rgba(236,72,153, 0.22);
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}
.nav-icon svg { width: 17px; height: 17px; }

.me-badge { border-radius: var(--radius-md); }
.me-badge button { cursor: pointer; min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }

/* ── Kartu: clay di atas utilitas tailwind ── */
main .rounded-xl { border-radius: 18px; }
main .shadow-sm { box-shadow: var(--clay-shadow); }
main .border-gray-200 { border-color: #EAE8F4; }

/* ── Tombol ── */
.btn {
  border-radius: 12px;
  min-height: 38px;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); box-shadow: var(--clay-press); }
.btn-primary, .btn.btn-primary {
  background: #EC4899;
  box-shadow: 0 4px 10px -3px rgba(236,72,153, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.btn-primary:hover, .btn.btn-primary:hover {
  background: #DB2777;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(236,72,153, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.btn-secondary, .btn.btn-secondary {
  border-radius: 12px;
  box-shadow: var(--clay-shadow-sm);
  border-color: #EAE8F4;
}
.btn-secondary:hover, .btn.btn-secondary:hover { transform: translateY(-1px); }

/* ── Input ── */
.input {
  border-radius: 12px;
  min-height: 40px;
  border-color: #E5E2F2;
}
.input:focus { box-shadow: 0 0 0 3.5px rgba(236,72,153, 0.14); }

/* ── View toggle ── */
.view-toggle { border-radius: 13px; padding: 4px; background: #EDEBF7; }
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 7px 14px;
  min-height: 34px;
  transition: all 0.18s;
}
.view-toggle-btn svg { width: 14px; height: 14px; }
.view-toggle-btn.active {
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(236,72,153, 0.18), inset 0 -2px 0 rgba(17, 24, 39, 0.04);
}

/* ── Login ── */
#login-screen {
  background-color: #EC4899;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.10) 0%, transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 42%);
  background-size: 30px 30px, auto, auto;
}
.login-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.login-member-card {
  border-radius: 18px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.login-member-card:hover { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.login-member-card:active { transform: translateY(0) scale(0.97); }
.pin-btn {
  border-radius: 16px;
  box-shadow: inset 0 -2.5px 0 rgba(0, 0, 0, 0.22), 0 3px 8px -3px rgba(0, 0, 0, 0.3);
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
}
.pin-btn:active { transform: translateY(2px) scale(0.97); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3); }

/* ── Pet hero ── */
.pet-hero {
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.14) 0%, transparent 36%),
    radial-gradient(circle at 8% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
    #EC4899;
  box-shadow: 0 18px 40px -16px rgba(236,72,153, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}
.pet-hero-visual {
  position: relative;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.22));
}
.pet-hero-stage { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }

/* ── Strip streak & kolom member ── */
.streak-member-avatar { transition: transform 0.18s, filter 0.25s, opacity 0.25s, border-color 0.25s, box-shadow 0.25s; }
.streak-member:hover .streak-member-avatar { transform: translateY(-2px) scale(1.05); }
.member-col { border-radius: 16px; background: #FBFAFE; box-shadow: var(--clay-shadow-sm); border-color: #EAE8F4; }
.cmd-todo-item { border-radius: 10px; transition: transform 0.15s, box-shadow 0.15s; }
.cmd-todo-item:not(.done):hover { transform: translateY(-1px); box-shadow: 0 3px 8px -2px rgba(17, 24, 39, 0.08); }

/* ── Heatmap ── */
.thm-cell { width: 10px; height: 10px; border-radius: 3px; }

/* ── Kalender / kanban / agenda ── */
.cal-cell { transition: background 0.15s, box-shadow 0.15s; }
.cal-chip { cursor: pointer; border-radius: 7px; }
.kanban-card {
  border-radius: var(--radius-md);
  box-shadow: var(--clay-shadow-sm);
  transition: transform 0.15s, box-shadow 0.18s;
}
.kanban-card:hover:not(.editing) { transform: translateY(-2px); box-shadow: var(--clay-shadow); }
.kanban-col { border-radius: 18px; }
.agenda-card { border-radius: var(--radius-md); }
.mission-check-item {
  border-radius: 12px;
  min-height: 40px;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.mission-check-item:active { transform: scale(0.985); }
.kbn-filter-pill, .holiday-pill { min-height: 34px; transition: all 0.15s; }
.holiday-pill:active, .kbn-filter-pill:active { transform: scale(0.96); }

/* ── Toast ── */
#toast { border-radius: var(--radius-md); box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35); }

/* ── Skeleton loading ── */
.loading { position: relative; color: var(--text-muted); }

/* Hormati pengguna: pet bounce dimatikan saat reduced-motion (sudah global di atas) */

/* ── Asisten AI (chat) ── */
.asisten-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.asisten-user {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.asisten-ai {
  background: #F3F4F6;
  color: #111827;
  border: 1px solid #E5E7EB;
  border-bottom-left-radius: 4px;
}

/* ── Modal (Ganti PIN dll) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(3px);
}
.modal-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.4);
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}
#change-pin-btn { color: #9CA3AF; display: inline-flex; }
#change-pin-btn:hover { color: var(--primary); }

/* ── Login / Register form ── */
.login-form { display: flex; flex-direction: column; }
.login-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 12px 0 5px;
  letter-spacing: 0.02em;
}
.login-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.login-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.login-input:focus { border-color: #fff; background: rgba(255, 255, 255, 0.18); }
.emoji-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.emoji-input { width: 60px; text-align: center; font-size: 1.3rem; flex-shrink: 0; }
.emoji-input-lg { text-align: center; font-size: 1.5rem; letter-spacing: 2px; }
.emoji-picks { display: flex; gap: 5px; flex-wrap: wrap; }
.emoji-pick {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.emoji-pick:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.2); }
.emoji-pick.active { background: #fff; border-color: #fff; }
.login-error {
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
  margin-top: 10px;
  border-radius: 8px;
}
.login-error:not(:empty) { padding: 8px 11px; }
.login-form .btn-primary {
  width: 100%;
  margin-top: 16px;
  background: #fff;
  color: #DB2777;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
}
.login-form .btn-primary:hover { background: #FCE7F3; color: #DB2777; }
.login-switch { text-align: center; margin-top: 14px; font-size: 0.83rem; color: rgba(255, 255, 255, 0.75); }
.login-switch button {
  color: #fff; font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px;
  background: none; border: none; cursor: pointer;
}
.login-register-link {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.login-register-link:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.pending-emoji { font-size: 2.6rem; text-align: center; margin: 6px 0 4px; }
.pending-title { text-align: center; font-weight: 800; font-size: 1.1rem; color: #fff; }
.pending-sub { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin-top: 6px; line-height: 1.5; }
