@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; }

/* ── Self Concept — Affirmations ────────────────────────────── */

/* My Affirmations top bar */
.sc-aff-subtitle { font-size: 13px; color: #94a3b8; margin-bottom: 4px; }
.sc-aff-count-badge { font-size: 12px; font-weight: 700; color: #a78bfa; }
.sc-aff-lang-label { font-size: 12px; color: #94a3b8; font-weight: 500; white-space: nowrap; }
.sc-aff-clear-btn {
  font-size: 12px; font-weight: 600; color: #f87171;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px; padding: 7px 14px; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.15s; white-space: nowrap;
}
.sc-aff-clear-btn:hover { background: rgba(239,68,68,0.22); }

/* My Affirmations — elite blue cards */
.sc-aff-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1a3a6e 0%, #0f2347 60%, #0a1628 100%);
  border: 1px solid rgba(99,149,255,0.25);
  border-radius: 18px;
  padding: 22px 22px;
  min-height: 110px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 1px 0 rgba(99,149,255,0.15) inset;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.sc-aff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150,190,255,0.4), transparent);
  pointer-events: none;
}
.sc-aff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,149,255,0.35) inset;
  border-color: rgba(99,149,255,0.5);
}
.sc-aff-number {
  font-size: 22px;
  font-weight: 900;
  color: rgba(150,190,255,0.35);
  min-width: 34px;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  align-self: flex-start;
  padding-top: 4px;
}
.sc-aff-texts {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  text-align: left;
}
.sc-aff-tamil {
  font-size: 17px;
  color: #ffffff;
  line-height: 1.75;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.015em;
}
.sc-aff-remove {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  align-self: flex-start;
}
.sc-aff-remove:hover { background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.5); color: #fca5a5; }

/* Language selector */
.sc-lang-select {
  background: #0d4a00;
  color: #ffd700;
  border: 2px solid #0d4a00;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
}
.sc-lang-select option { background: #0f172a; color: #f1f5f9; font-weight: 600; }

/* 16-box grid */
.sc-lib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1200px) { .sc-lib-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .sc-lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .sc-lib-grid { grid-template-columns: 1fr; } }

/* Each category box */
.sc-lib-box {
  border: 2px solid #0d4a00;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 340px;
  background: #ffffff;
}

/* Box header — dark green bg, yellow text, centered */
.sc-lib-box-header {
  background: #0d4a00;
  padding: 14px 12px 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}
.sc-lib-box-icon {
  font-size: 26px;
  line-height: 1;
}
.sc-lib-box-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffd700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

/* Scrollable body */
.sc-lib-box-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #0d4a00 #f0f0f0;
}
.sc-lib-box-body::-webkit-scrollbar { width: 4px; }
.sc-lib-box-body::-webkit-scrollbar-thumb { background: #0d4a00; border-radius: 4px; }
.sc-lib-box-body::-webkit-scrollbar-track { background: #f0f0f0; }

/* Each affirmation row inside box */
.sc-lib-box-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #e8f5e0;
  transition: background 0.15s;
}
.sc-lib-box-item:last-child { border-bottom: none; }
.sc-lib-box-item:hover { background: #f0faf0; }
.sc-lib-box-item.sc-lib-box-selected { background: #e6f9ee; }

.sc-lib-box-item-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.sc-lib-box-num-small {
  font-size: 11px;
  font-weight: 700;
  color: #0d4a00;
  min-width: 18px;
  flex-shrink: 0;
  padding-top: 1px;
}
.sc-lib-box-text {
  font-size: 13px;
  color: #1a1a2e;
  line-height: 1.65;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sc-lib-box-selected .sc-lib-box-text {
  color: #0d4a00;
  font-weight: 700;
}

.sc-lib-box-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.sc-lib-box-btn-add { background: #e8f5e0; color: #0d4a00; }
.sc-lib-box-btn-add:hover { background: #0d4a00; color: #ffd700; }
.sc-lib-box-btn-done { background: #0d4a00; color: #ffd700; }
.sc-lib-box-btn-done:hover { background: #ef4444; color: #fff; }

.sc-lib-coming-soon {
  font-size: 11px;
  color: #6b7280;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 10px;
  line-height: 1.5;
}

/* Night mode: boxes keep white bg for readability, just adjust border */
body:not(.day-mode) .sc-lib-box { background: #f8fdf8; border-color: #0d4a00; }
body:not(.day-mode) .sc-lib-box-body { background: #f8fdf8; }
body:not(.day-mode) .sc-lib-box-item:hover { background: #edfaed; }
body:not(.day-mode) .sc-lib-box-item.sc-lib-box-selected { background: #dcfce7; }

/* Day mode */
body.day-mode .sc-lang-select { background: #0d4a00; color: #ffd700; border-color: #0d4a00; }

.sc-lib-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.sc-lib-btn-add {
  background: #8b5cf620;
  color: #a78bfa;
  border: 1px solid #8b5cf640;
}
.sc-lib-btn-add:hover { background: #8b5cf6; color: #fff; }
.sc-lib-btn-remove {
  background: #22c55e20;
  color: #4ade80;
  border: 1px solid #22c55e40;
}
.sc-lib-btn-remove:hover { background: #ef444420; color: #f87171; border-color: #ef444440; }

/* Day mode — keep elite blue look */
body.day-mode .sc-aff-card { background: linear-gradient(135deg, #1e4080 0%, #122860 60%, #0c1f4a 100%); border-color: rgba(100,150,255,0.3); }
body.day-mode .sc-aff-tamil { color: #ffffff; }
body.day-mode .sc-aff-text { color: rgba(180,210,255,0.75); }
body.day-mode .sc-aff-subtitle { color: #4a6a2a; }
body.day-mode .sc-aff-count-badge { color: #7c3aed; }
body.day-mode .sc-aff-lang-label { color: #4a6a2a; }
body.day-mode .sc-aff-clear-btn { color: #dc2626; background: rgba(239,68,68,0.08); }
body.day-mode .sc-lib-item { background: #f5f0e8; border-color: #d8d0b0; }
body.day-mode .sc-lib-item:hover { background: #ede8d4; border-color: #c0b890; }
body.day-mode .sc-lib-item.sc-lib-selected { background: #8b5cf615; border-color: #8b5cf640; }
body.day-mode .sc-lib-tamil { color: #1a3a0a; }
body.day-mode .sc-lib-english { color: #6a7a5a; }

/* ── How To Use Drawer ───────────────────────────────────────── */
#htu-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0a3d1e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 20px rgba(10,61,30,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}
#htu-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(10,61,30,0.6), inset 0 1px 0 rgba(255,255,255,0.22); }
.htu-fab-label { white-space: nowrap; }

#htu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
}
#htu-backdrop.open { display: block; }

#htu-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  max-width: 95vw;
  height: 100vh;
  background: #1e293b;
  border-left: 1px solid #334155;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
#htu-drawer.open { right: 0; }

.htu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #0a3d1e, #16a34a);
  border-bottom: none;
  flex-shrink: 0;
}
.htu-title { font-size: 16px; font-weight: 800; color: #ffffff; }
.htu-subtitle { font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 2px; text-transform: capitalize; }
.htu-header button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.htu-header button:hover { background: rgba(255,255,255,0.3); color: #ffffff; }

.htu-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.htu-section { display: flex; flex-direction: column; gap: 10px; }
.htu-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
}

/* Video */
.htu-video-wrap {
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.htu-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 13px;
}
.htu-iframe { width: 100%; height: 100%; border: none; }

.htu-video-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.htu-video-input-row .htu-input { flex: 1; }

/* PDF */
.htu-pdf-display {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.htu-pdf-name {
  font-size: 13px;
  color: #94a3b8;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.htu-pdf-actions { display: flex; gap: 8px; flex-shrink: 0; }
.htu-pdf-empty { display: flex; flex-direction: column; gap: 8px; }
.htu-pdf-hint { font-size: 11px; color: #64748b; }

/* Read-only (USER) view */
.htu-admin-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; vertical-align: middle;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px;
  color: #052e16; background: linear-gradient(90deg,#5eead4,#14b8a6);
}
.htu-ro-notes {
  white-space: pre-wrap; word-break: break-word;
  background: #0f172a; border: 1px solid #334155; border-radius: 12px;
  padding: 14px; color: #e2e8f0; font-size: 13.5px; line-height: 1.65;
}
body.day-mode .htu-ro-notes { background: #f5f0e0; border-color: #d8d0b0; color: #1a3a0a; }
.htu-empty {
  text-align: center; padding: 40px 20px; color: #94a3b8;
}
body.day-mode .htu-empty { color: #5a5232; }

/* Notes */
.htu-textarea {
  width: 100%;
  min-height: 160px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  color: #e2e8f0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.htu-textarea:focus { border-color: #16a34a; }
.htu-notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.htu-saved { font-size: 12px; color: #22c55e; font-weight: 600; }

/* Shared input/button styles */
.htu-input {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px 12px;
  color: #e2e8f0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.htu-input:focus { border-color: #16a34a; }
.htu-btn-primary {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.htu-btn-primary:hover { background: #0a7a52; }
.htu-btn-ghost {
  background: #334155;
  color: #94a3b8;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.htu-btn-ghost:hover { background: #475569; color: #f1f5f9; }

/* Day mode overrides */
body.day-mode #htu-drawer {
  background: #f5f0e8;
  border-left-color: #c8b890;
}
/* Header stays a green band in both themes */
body.day-mode .htu-title { color: #ffffff; }
body.day-mode .htu-subtitle { color: rgba(255,255,255,0.85); }
body.day-mode .htu-header button { color: #ffffff; background: rgba(255,255,255,0.18); }
body.day-mode .htu-header button:hover { background: rgba(255,255,255,0.32); }
body.day-mode .htu-section-label { color: #15803d; }
body.day-mode .htu-textarea,
body.day-mode .htu-input,
body.day-mode .htu-video-wrap,
body.day-mode .htu-pdf-display { background: #ede8d4; border-color: #c8b890; color: #1a3a0a; }
body.day-mode .htu-textarea { color: #1a3a0a; }
body.day-mode .htu-pdf-name { color: #4a6a2a; }
body.day-mode .htu-btn-ghost { background: #d8d0b0; color: #2a3a1a; }
body.day-mode .htu-btn-ghost:hover { background: #c8c0a0; }
body.day-mode #htu-backdrop { background: rgba(0,0,0,0.3); }

/* Mobile */
@media (max-width: 768px) {
  #htu-fab .htu-fab-label { display: none; }
  #htu-fab { padding: 12px; border-radius: 50%; }
  #htu-drawer { width: 100%; right: -100%; }
}

body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #f1f5f9;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

#app { display: flex; height: 100vh; }

#sidebar {
  width: 14rem;
  min-width: 14rem;
  background: #1e293b;
  border-right: 1px solid #334155;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease, min-width 0.2s ease;
  overflow: hidden;
}

#main-content {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Nav active state */
.nav-link.active-nav { background: rgba(99,102,241,0.15); color: white; }

/* ── Mobile / PWA ─────────────────────────────────────────── */
#mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}
#mobile-topbar button { background: none; border: none; color: #94a3b8; cursor: pointer; padding: 6px; }
#mobile-topbar span { font-size: 1.1rem; }

#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 149;
}
#sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
  #mobile-topbar { display: flex; }

  #app { flex-direction: column; }

  #sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 14rem !important;
    min-width: 14rem !important;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  #sidebar.mobile-open { transform: translateX(0); }

  #main-content {
    margin-top: 52px;
    height: calc(100vh - 52px);
  }
}

/* Day mode mobile topbar */
body.day-mode #mobile-topbar {
  background: #f5f0e8;
  border-bottom-color: #c8b890;
}
body.day-mode #mobile-topbar button { color: #2d5a1b; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.25s ease forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 0.8s linear infinite; }

/* Tag input */
.tag-input-container {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: #334155; border: 1px solid #475569; border-radius: 12px;
  padding: 8px 10px; min-height: 44px; cursor: text;
}
.tag-input-container input {
  background: transparent; border: none; outline: none; color: #f1f5f9;
  font-size: 13px; flex: 1; min-width: 80px;
}

/* IKIGAI Venn */
.venn-circle { transition: fill-opacity 0.3s ease; }
.venn-circle:hover { fill-opacity: 0.35 !important; }

/* Vision Board grid */
.vision-cell {
  background-size: cover; background-position: center;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vision-cell:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

/* Timeline */
.timeline-block {
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.timeline-block:hover { filter: brightness(1.15); }

/* Heatmap */
.heatmap-cell {
  width: 14px; height: 14px; border-radius: 3px;
  transition: transform 0.1s ease;
}
.heatmap-cell:hover { transform: scale(1.3); }

/* Progress bar */
.progress-fill { transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* Star rating */
.star-btn { cursor: pointer; transition: transform 0.1s ease; }
.star-btn:hover { transform: scale(1.2); }

/* Print styles */
@media print {
  #sidebar, .no-print { display: none !important; }
  #main-content { height: auto; overflow: visible; }
  body { background: white; color: black; }
}

/* Hover bg for slate-750 */
.hover\:bg-slate-750:hover { background-color: #243040; }

/* Custom checkbox */
input[type="checkbox"].custom-check {
  appearance: none; width: 18px; height: 18px; border: 2px solid #475569;
  border-radius: 5px; cursor: pointer; transition: all 0.15s ease;
  background: transparent; vertical-align: middle; position: relative;
}
input[type="checkbox"].custom-check:checked {
  background: #10b981; border-color: #10b981;
}
input[type="checkbox"].custom-check:checked::after {
  content: ''; position: absolute; left: 3px; top: 0px;
  width: 8px; height: 12px; border: 2px solid white;
  border-top: none; border-left: none; transform: rotate(45deg);
}

/* ═══════════════════════════════════════════
   DAY MODE — Warm Cream + Dark Green theme
═══════════════════════════════════════════ */

/* Theme toggle button */
#theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
  background: rgba(255,255,255,0.08); color: #94a3b8;
}
#theme-toggle:hover { background: rgba(255,255,255,0.15); transform: scale(1.1); }

/* ── Structural ── */
body.day-mode { background: #f2edd8 !important; color: #1a1a00 !important; }
body.day-mode #sidebar { background: #0d4a00 !important; border-color: #1a6600 !important; }
body.day-mode #main-content { background: #f2edd8 !important; }
body.day-mode ::-webkit-scrollbar-thumb { background: #b8b070 !important; }

/* ── Sidebar nav links ── */
body.day-mode .nav-link {
  color: #0d4a00 !important;
  background: rgba(255,255,255,0.13) !important;
  border-radius: 12px;
}
body.day-mode .nav-link .nav-label { color: #0d4a00 !important; font-weight: 600; }
body.day-mode .nav-link .nav-icon  { filter: saturate(1.4) brightness(0.8); }
body.day-mode .nav-link:hover {
  background: rgba(255,255,255,0.30) !important;
  color: #0d3000 !important;
}
body.day-mode .nav-link:hover .nav-label { color: #0d3000 !important; }
/* Active nav — bright white card */
body.day-mode .nav-link.bg-slate-700\/80 {
  background: rgba(255,255,255,0.95) !important;
  color: #0d4a00 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18) !important;
}
body.day-mode .nav-link.bg-slate-700\/80 .nav-label { color: #0d4a00 !important; font-weight: 700 !important; }
body.day-mode .nav-link.bg-slate-700\/80 .nav-icon  { filter: saturate(1.5) brightness(0.75); }

/* LifeOS logo gradient text — keep gradient in night, plain in day */
body.day-mode #app-title span { background: none !important; -webkit-text-fill-color: #d4f0a0 !important; }

/* Sidebar controls */
body.day-mode #sidebar .text-slate-600 { color: #90c870 !important; }
body.day-mode #sidebar-toggle { color: #a8d890 !important; }
body.day-mode #sidebar-toggle:hover { background: rgba(255,255,255,0.15) !important; color: #fff !important; }
body.day-mode #theme-toggle { background: rgba(255,255,255,0.12) !important; color: #d4f0a0 !important; }
body.day-mode #theme-toggle:hover { background: rgba(255,255,255,0.22) !important; }
body.day-mode #sidebar .border-slate-700 { border-color: rgba(255,255,255,0.12) !important; }

/* ── Backgrounds ── */
body.day-mode [class*="bg-slate-900"] { background-color: #f2edd8 !important; }
body.day-mode [class*="bg-slate-800"] { background-color: #ffffff !important; }
body.day-mode [class*="bg-slate-750"] { background-color: #f5f0e0 !important; }
body.day-mode [class*="bg-slate-700"] { background-color: #ede8d4 !important; }
body.day-mode [class*="bg-slate-600"] { background-color: #ddd8c0 !important; }
body.day-mode [class*="hover\\:bg-slate-700"]:hover { background-color: #e8e0c8 !important; }
body.day-mode [class*="hover\\:bg-slate-600"]:hover { background-color: #ddd5b5 !important; }
body.day-mode [class*="from-slate-900"] { --tw-gradient-from: #f2edd8 !important; }
body.day-mode [class*="from-slate-800"] { --tw-gradient-from: #ffffff !important; }

/* ── Text ── */
body.day-mode [class*="text-slate-100"] { color: #1a1a00 !important; }
body.day-mode [class*="text-slate-200"] { color: #2a2a10 !important; }
body.day-mode [class*="text-slate-300"] { color: #3a3a1a !important; }
body.day-mode [class*="text-slate-400"] { color: #5a5232 !important; }
body.day-mode [class*="text-slate-500"] { color: #7a7248 !important; }
body.day-mode [class*="text-slate-600"] { color: #9a9258 !important; }

/* ── Borders — dark green ── */
body.day-mode [class*="border-slate-700"] { border-color: #0d4a00 !important; }
body.day-mode [class*="border-slate-600"] { border-color: #1a6600 !important; }
body.day-mode [class*="border-slate-500"] { border-color: #247a00 !important; }
body.day-mode [class*="divide-slate-700"] > * { border-color: #0d4a00 !important; }
body.day-mode [class*="ring-1"] { --tw-ring-color: #0d4a00 !important; }

/* ── Headings (on cream bg) ── */
body.day-mode h1 { color: #0d4a00 !important; }
body.day-mode h2 { color: #0d5500 !important; }
body.day-mode [class*="uppercase"][class*="tracking-wider"],
body.day-mode [class*="uppercase"][class*="tracking-widest"],
body.day-mode [class*="uppercase"][class*="text-xs"] { color: #0d5500 !important; }

/* ── Active tab ── */
body.day-mode [class*="border-cyan-400"] { color: #0d4a00 !important; border-color: #0d4a00 !important; }

/* ── Cyan → dark green ── */
body.day-mode [class*="text-cyan-400"],
body.day-mode [class*="text-cyan-300"] { color: #0d7a00 !important; }
body.day-mode [class*="bg-cyan-700"],
body.day-mode [class*="bg-cyan-600"] { background-color: #0d4a00 !important; }
body.day-mode [class*="border-cyan-700"],
body.day-mode [class*="border-cyan-500"] { border-color: #1a7000 !important; }
body.day-mode [class*="ring-cyan-500"] { --tw-ring-color: #1a7000 !important; }

/* ── Inputs / selects ── */
body.day-mode select, body.day-mode select option {
  background-color: #f8f4e0 !important; color: #1a1a00 !important;
}
body.day-mode input, body.day-mode textarea {
  color: #1a1a00 !important;
}
body.day-mode input::placeholder, body.day-mode textarea::placeholder { color: #9a9258 !important; }
body.day-mode [class*="bg-transparent"] { color: #1a1a00 !important; }

/* ── Today Plan specific ── */
body.day-mode .box-title { color: #0d4a00 !important; font-weight: 700 !important; }
body.day-mode .box-note { background-color: #f5f0e0 !important; color: #3a3a1a !important; border-color: #c8c088 !important; }
body.day-mode .box-add-row { border-color: #0d7a00 !important; color: #0d6600 !important; }
body.day-mode .box-add-row:hover { border-color: #0d4a00 !important; background: rgba(13,74,0,0.05) !important; }
body.day-mode .box-total { background: rgba(13,74,0,0.08) !important; border-color: rgba(13,74,0,0.25) !important; color: #0d4a00 !important; }
body.day-mode #tp-avail-time { color: #0d4a00 !important; font-weight: 800 !important; }
body.day-mode [data-nav] { background: #ede8d4 !important; color: #0d4a00 !important; }
body.day-mode [data-nav]:hover { background: #ddd5b5 !important; }
body.day-mode [data-nav="today"] { background: #0d4a00 !important; color: #ffffff !important; }

/* ── Analyser Tab — Daily Routine ── */
/* Progress bar tracks — need contrast on white card */
body.day-mode #an-body [class*="bg-slate-700"] { background-color: #d8d0b0 !important; }
/* Donut center text */
body.day-mode #an-donut-center { color: #0d4a00 !important; }
/* "/ totalTasks" muted text in hero card */
body.day-mode #an-body .text-slate-500 { color: #4a4020 !important; font-weight: 600; }
/* "Days Planned" big number */
body.day-mode #an-body .text-white { color: #0d4a00 !important; }
/* Daily trend empty bar color & date labels */
body.day-mode #an-body [style*="#1e293b22"] { background: #c8c0a0 !important; }
body.day-mode #an-body span[style*="color:#475569"] { color: #5a5232 !important; }
/* Period selector pills */
body.day-mode .an-period:not([class*="bg-cyan"]) { background: #e8e0c8 !important; color: #2a2a10 !important; border: 1px solid #c8c088 !important; }
/* Insight cards text */
body.day-mode #an-body .text-red-300 { color: #b91c1c !important; }
body.day-mode #an-body .text-red-400 { color: #991b1b !important; }

/* ── Analyser Tab — Food Habits ── */
/* Donut center pct & label */
body.day-mode #an-donut-pct  { color: #0d4a00 !important; }
body.day-mode #pane-analytics .text-slate-100 { color: #0d4a00 !important; }
/* Donut legend count numbers */
body.day-mode #an-donut-legend .text-slate-300 { color: #2a2a10 !important; font-weight: 700; }
/* Score by Meal — bar tracks */
body.day-mode #an-meal-bars [class*="bg-slate-700"] { background-color: #c8c0a0 !important; }
/* Meal name (text-slate-300) */
body.day-mode #an-meal-bars .text-slate-300 { color: #1a2a00 !important; font-weight: 700; }
/* "0 right / 0 wrong / 0 over" count text */
body.day-mode #an-meal-bars .text-slate-500 { color: #3a3010 !important; font-weight: 600; }
/* Score cards */
body.day-mode #an-score-cards .text-slate-400 { color: #3a3a1a !important; font-weight: 600; }
body.day-mode #an-score-cards .text-slate-300 { color: #1a2a00 !important; font-weight: 700; }
/* Insight card body text */
body.day-mode #an-insights .text-slate-400 { color: #3a3010 !important; }

/* ── Action Plan ── */
body.day-mode .ms-block { background: rgba(99,102,241,0.05) !important; border-color: rgba(99,102,241,0.25) !important; }
body.day-mode .ms-block .text-slate-200 { color: #0d2a60 !important; font-weight: 600; }
body.day-mode .ms-block .text-slate-300 { color: #1a2a10 !important; }
body.day-mode .ms-block .text-slate-400 { color: #3a3a20 !important; }
body.day-mode .ms-block .text-slate-500 { color: #5a5230 !important; }
body.day-mode .ms-block .text-slate-600 { color: #7a7248 !important; }
body.day-mode .ms-block [class*="bg-slate-700"] { background: #ddd8c0 !important; }
body.day-mode .ms-block [class*="bg-slate-800"] { background: #f5f0e0 !important; }
body.day-mode .ap-quick-task { color: #1a1a00 !important; border-color: #b0a870 !important; }
body.day-mode .ap-quick-task::placeholder { color: #8a8248 !important; }
body.day-mode .ap-quick-task:focus { border-color: #6366f1 !important; }
body.day-mode .ap-quick-prio { background: #f0ead8 !important; color: #1a1a00 !important; border-color: #b0a870 !important; }
body.day-mode .ap-suggest-ms { color: #b45309 !important; }
body.day-mode .ap-suggest-ms:hover { background: rgba(180,83,9,0.08) !important; }
/* Goal cards */
body.day-mode #ap-goals > div[data-goal-id] { background: #ffffff !important; border-color: #c8c088 !important; }
body.day-mode #ap-goals .text-slate-100 { color: #0d2a00 !important; font-weight: 700; }
body.day-mode #ap-goals .text-slate-400 { color: #3a3a20 !important; }
body.day-mode #ap-goals .text-slate-500 { color: #5a5230 !important; }
body.day-mode #ap-goals [class*="bg-slate-700"] { background: #ddd8c0 !important; }
body.day-mode .ap-add-ms { color: #4338ca !important; }
body.day-mode .ap-add-ms:hover { background: rgba(99,102,241,0.08) !important; }
/* Filter dropdown now uses the global polished select style */

/* ── Bucket List — Inspire tab ── */
/* Category section headers */
body.day-mode #bl-inspire-items .text-slate-300 { color: #0d4a00 !important; font-weight: 700; }
/* Separator line */
body.day-mode #bl-inspire-items [class*="bg-slate-700"] { background-color: #b0a870 !important; }
/* Category tab buttons (inactive) */
body.day-mode .bl-icat:not([style*="background:#"]):not([class*="bg-amber"]) {
  background: #e8e0c8 !important;
  color: #1a2a00 !important;
  border-color: #b0a860 !important;
}
body.day-mode .bl-icat:not([style*="background:#"]):not([class*="bg-amber"]):hover {
  background: #ddd5b0 !important;
}
/* "X added" badge inside category tabs — keep white text on colored bg */
body.day-mode .bl-icat span { color: #ffffff !important; }
/* Bucket list item cards */
body.day-mode #bl-list .text-slate-100 { color: #0d4a00 !important; font-weight: 600; }
body.day-mode #bl-list .text-slate-400 { color: #3a3a1a !important; }
body.day-mode #bl-list .text-slate-500 { color: #4a4020 !important; }
/* Edit / delete icon buttons on cards */
body.day-mode .bl-edit { color: #3a6020 !important; }
body.day-mode .bl-edit:hover { color: #0d4a00 !important; }
body.day-mode .bl-del { color: #7a5030 !important; }
body.day-mode .bl-del:hover { color: #b91c1c !important; }
/* Star ratings */
body.day-mode #bl-list .text-amber-400 { color: #b45309 !important; }
/* Target year tag */
body.day-mode #bl-list [class*="bg-slate-700"] { background: #e0d8b8 !important; color: #2a2a10 !important; }
/* Completed item strikethrough */
body.day-mode .line-through { color: #7a7248 !important; }
/* Trend chart section heading */
body.day-mode #pane-analytics .text-slate-300 { color: #1a2a00 !important; font-weight: 600; }
body.day-mode #pane-analytics .text-slate-500 { color: #4a4020 !important; }
/* Period buttons in food analytics */
body.day-mode .fh-period:not([class*="bg-green"]) { background: #e8e0c8 !important; color: #2a2a10 !important; border: 1px solid #c8c088 !important; }
/* Streak & consistency numbers */
body.day-mode #an-streak { color: #0d7a00 !important; }
body.day-mode #an-consistency { color: #3b37c0 !important; }
/* Day-of-week labels */
body.day-mode #an-dow-labels div { color: #3a3010 !important; font-weight: 600; }
/* "Right food choices per day" subtitle */
body.day-mode #pane-analytics p.text-slate-500 { color: #4a4020 !important; }

/* ── Data Tab (Categories & Tasks) — Redesigned Cards ── */
#tp-data-list { display: flex; flex-direction: column; gap: 14px; }

.cat-item {
  border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--cc) 30%, #334155);
  background: color-mix(in srgb, var(--cc) 6%, #1e293b);
  box-shadow: 0 3px 14px rgba(0,0,0,0.25);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.cat-item:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.35); transform: translateY(-1px); }

/* Header row */
.cat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--cc) 22%, #334155);
  background: color-mix(in srgb, var(--cc) 12%, #1e293b);
}
.drag-handle {
  color: #475569; cursor: grab; font-size: 16px; flex-shrink: 0;
  transition: color 0.15s;
}
.drag-handle:hover { color: #94a3b8; }
.cat-color-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cc); flex-shrink: 0;
  box-shadow: 0 0 6px var(--cc);
}
.cat-name-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 14px; font-weight: 800; letter-spacing: 0.06em;
  color: #f1f5f9; text-transform: uppercase; min-width: 0;
}
.cat-name-input:focus { color: var(--cc); }
.cat-name-save {
  font-size: 11px; font-weight: 700; color: #22c55e;
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
  border-radius: 8px; padding: 3px 10px; cursor: pointer; transition: all 0.15s;
}
.cat-task-count {
  font-size: 11px; font-weight: 700;
  color: color-mix(in srgb, var(--cc) 80%, #94a3b8);
  background: color-mix(in srgb, var(--cc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--cc) 30%, transparent);
  border-radius: 100px; padding: 2px 10px; flex-shrink: 0;
}
.cat-del {
  background: none; border: none; cursor: pointer;
  color: #475569; flex-shrink: 0; display: flex; align-items: center;
  padding: 4px; border-radius: 8px; transition: all 0.15s;
}
.cat-del:hover { color: #f87171; background: rgba(239,68,68,0.12); }

/* Tasks area */
.cat-tasks-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; padding: 12px 16px;
}
.cat-task-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 100px;
  background: color-mix(in srgb, var(--cc) 18%, transparent);
  color: var(--cc);
  border: 1.5px solid color-mix(in srgb, var(--cc) 40%, transparent);
  text-transform: capitalize; transition: all 0.15s;
}
.cat-task-chip:hover { background: color-mix(in srgb, var(--cc) 28%, transparent); }
.task-del {
  background: none; border: none; font-size: 14px; line-height: 1;
  cursor: pointer; color: inherit; opacity: 0;
  transition: opacity 0.15s; padding: 0; margin-left: 1px;
}
.cat-task-chip:hover .task-del { opacity: 0.7; }
.task-del:hover { opacity: 1 !important; color: #f87171; }
.cat-no-tasks {
  font-size: 12px; color: #475569; font-style: italic;
}

/* Add row */
.cat-add-row { display: inline-flex; align-items: center; gap: 6px; }
.task-input {
  background: rgba(255,255,255,0.06); border: 1.5px solid #334155;
  border-radius: 10px; padding: 5px 12px;
  font-size: 12px; color: #e2e8f0;
  outline: none; width: 130px; transition: border-color 0.15s;
}
.task-input:focus { border-color: var(--cc, #06b6d4); }
.task-input::placeholder { color: #475569; }
.task-add {
  background: color-mix(in srgb, var(--cc) 80%, #000);
  color: #fff; border: none; border-radius: 10px;
  padding: 5px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.task-add:hover { filter: brightness(1.15); }

/* ── Data Tab (Categories & Tasks) — Day mode ── */
/* "5 tasks" count */
body.day-mode .cat-item .text-slate-500 { color: #3a4a20 !important; font-weight: 600; }
/* Drag handle */
body.day-mode .cat-item { background: color-mix(in srgb, var(--cc) 8%, #f8f4e6) !important; border-color: color-mix(in srgb, var(--cc) 35%, #c8c088) !important; }
body.day-mode .cat-header { background: color-mix(in srgb, var(--cc) 14%, #f0ead8) !important; border-color: color-mix(in srgb, var(--cc) 22%, #c8c088) !important; }
body.day-mode .cat-name-input { color: #1a1a00 !important; }
body.day-mode .drag-handle { color: #5a6e30 !important; }
body.day-mode .drag-handle:hover { color: #0d4a00 !important; }
body.day-mode .cat-del { color: #7a5a30 !important; }
body.day-mode .cat-del:hover { color: #b91c1c !important; }
body.day-mode .cat-no-tasks { color: #7a7248 !important; }
body.day-mode .task-add { color: #ffffff !important; }
body.day-mode .task-input {
  background-color: #f8f4e6 !important;
  color: #1a1a00 !important;
  border-color: #c0b878 !important;
}
body.day-mode .task-input::placeholder { color: #6a6a3a !important; }
/* Category name input */
body.day-mode .cat-name-input { color: #0d4a00 !important; font-weight: 700 !important; }
/* Save name button */
body.day-mode .cat-name-save { color: #0d5500 !important; font-weight: 700 !important; }
body.day-mode .cat-name-save:hover { color: #0d4a00 !important; }
/* Task pill × delete button — show clearly */
body.day-mode [class*="group"] .task-del {
  color: #7a3020 !important;
  opacity: 0 !important;
}
body.day-mode [class*="group"]:hover .task-del { opacity: 1 !important; }
/* "Add Category" button text */
body.day-mode #tp-add-cat { color: #ffffff !important; }

/* ── Modal ── */
body.day-mode #modal-overlay > div { background: #ffffff !important; border-color: #b8b070 !important; box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important; }
body.day-mode #modal-overlay h3 { color: #0d4a00 !important; font-weight: 800; }
body.day-mode #modal-overlay .border-slate-700 { border-color: #c8c088 !important; }
body.day-mode #modal-close-btn { color: #5a6e30 !important; }
body.day-mode #modal-close-btn:hover { background: #e8e0c8 !important; color: #0d4a00 !important; }
/* Form labels inside modal */
body.day-mode #modal-body label { color: #0d4a00 !important; font-weight: 600; }
/* Inputs / selects / textareas inside modal */
body.day-mode #modal-body input,
body.day-mode #modal-body select,
body.day-mode #modal-body textarea {
  background: #f8f4e6 !important;
  border-color: #c0b878 !important;
  color: #1a1a00 !important;
}
body.day-mode #modal-body input::placeholder,
body.day-mode #modal-body textarea::placeholder { color: #6a6040 !important; }
body.day-mode #modal-body select option { background: #f8f4e6 !important; color: #1a1a00 !important; }
/* Cancel button — give it a visible style */
body.day-mode #modal-footer button:not([class*="bg-indigo"]):not([class*="bg-red"]):not([class*="bg-emerald"]) {
  background: #e0d8b8 !important;
  color: #1a2a00 !important;
  border: 1px solid #b8b070 !important;
}
body.day-mode #modal-footer button:not([class*="bg-indigo"]):not([class*="bg-red"]):not([class*="bg-emerald"]):hover {
  background: #ccc8a0 !important;
}
/* Confirm dialog text */
body.day-mode #modal-body .text-slate-300 { color: #1a2a00 !important; }
/* Scrollbar inside modal */
body.day-mode #modal-body::-webkit-scrollbar-thumb { background: #b8b070 !important; }

/* ── Tag input ── */
body.day-mode .tag-input-container { background: #f0ead0 !important; border-color: #c8c088 !important; }
body.day-mode .tag-input-container input { color: #1a1a00 !important; }

/* ══════════════════════════════════════════
   ALL MODULE COLOR FIXES — Day Mode
   Light bg needs dark readable text
══════════════════════════════════════════ */

/* ── White text on CARDS → dark (NOT on colored buttons) ── */
/* Only override white text that sits on slate-card backgrounds */
body.day-mode .bg-slate-800 [class*="text-white"],
body.day-mode .bg-slate-700 [class*="text-white"],
body.day-mode .bg-slate-900 [class*="text-white"] { color: #1a1a00 !important; }

/* Buttons with colored backgrounds KEEP white text — descendant AND same-element */
body.day-mode [class*="bg-cyan-"] [class*="text-white"],   body.day-mode [class*="bg-cyan-"][class*="text-white"],
body.day-mode [class*="bg-emerald-"] [class*="text-white"],body.day-mode [class*="bg-emerald-"][class*="text-white"],
body.day-mode [class*="bg-indigo-"] [class*="text-white"], body.day-mode [class*="bg-indigo-"][class*="text-white"],
body.day-mode [class*="bg-red-"] [class*="text-white"],    body.day-mode [class*="bg-red-"][class*="text-white"],
body.day-mode [class*="bg-blue-"] [class*="text-white"],   body.day-mode [class*="bg-blue-"][class*="text-white"],
body.day-mode [class*="bg-orange-"] [class*="text-white"], body.day-mode [class*="bg-orange-"][class*="text-white"],
body.day-mode [class*="bg-amber-"] [class*="text-white"],  body.day-mode [class*="bg-amber-"][class*="text-white"],
body.day-mode [class*="bg-purple-"] [class*="text-white"], body.day-mode [class*="bg-purple-"][class*="text-white"],
body.day-mode [class*="bg-green-"] [class*="text-white"],  body.day-mode [class*="bg-green-"][class*="text-white"],
body.day-mode [class*="bg-pink-"] [class*="text-white"],   body.day-mode [class*="bg-pink-"][class*="text-white"],
body.day-mode [class*="bg-violet-"] [class*="text-white"], body.day-mode [class*="bg-violet-"][class*="text-white"] { color: #ffffff !important; }

/* Inline-style gradient cards (Money Mindset banner etc.) */
body.day-mode [style*="linear-gradient"] { background: rgba(13,74,0,0.06) !important; border-color: #0d4a0044 !important; }

/* Force IKIGAI hero to keep its elite pink gradient in day mode */
body.day-mode .ik-hero {
  background: linear-gradient(135deg, #4a0020 0%, #831843 30%, #9d174d 55%, #be185d 75%, #4a0020 100%) !important;
  border-color: rgba(251,113,133,0.5) !important;
}
body.day-mode .ik-hero-title  { color: #ffffff !important; }
body.day-mode .ik-hero-pretitle { color: #fce7f3 !important; }
body.day-mode .ik-hero-sub    { color: #fce7f3 !important; }
body.day-mode .ik-hero-badge  { color: #fda4af !important; background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.25) !important; }

/* Force Inspire banner to keep its elite purple in day mode */
body.day-mode .bl-inspire-banner { background: linear-gradient(135deg,#1a0533 0%,#2d0a5e 50%,#1a0533 100%) !important; border-color: rgba(168,85,247,0.55) !important; }

/* Force Brand Hero to keep its elite green in day mode */
body.day-mode .dash-brand-hero {
  background: linear-gradient(135deg, #052e16 0%, #14532d 40%, #166534 70%, #052e16 100%) !important;
  border-color: rgba(74,222,128,0.35) !important;
}
body.day-mode .dash-brand-hero-tag { color: #86efac !important; }
body.day-mode .dash-brand-hero-name { color: #ffffff !important; -webkit-text-fill-color: transparent !important; }
body.day-mode .dash-brand-hero .dash-greeting { color: #f0fdf4 !important; }
body.day-mode .dash-brand-hero .dash-date { color: rgba(134,239,172,0.7) !important; }

/* ── Emerald / Green ── */
body.day-mode [class*="text-emerald-300"] { color: #166534 !important; }
body.day-mode [class*="text-emerald-400"] { color: #15803d !important; }
body.day-mode [class*="text-emerald-500"] { color: #166534 !important; }
body.day-mode [class*="text-green-300"]   { color: #166534 !important; }
body.day-mode [class*="text-green-400"]   { color: #15803d !important; }
body.day-mode [class*="text-green-500"]   { color: #166534 !important; }
body.day-mode [class*="bg-emerald-900"]   { background-color: rgba(21,128,61,0.07) !important; }
body.day-mode [class*="bg-emerald-700"],
body.day-mode [class*="bg-emerald-600"]   { background-color: #15803d !important; }
body.day-mode [class*="border-emerald-700"] { border-color: #15803d !important; }
body.day-mode [class*="from-emerald-900"] { --tw-gradient-from: rgba(21,128,61,0.07) !important; }
body.day-mode [class*="to-teal-900"]      { --tw-gradient-to: rgba(15,118,110,0.05) !important; }

/* ── Orange / Amber / Yellow ── */
body.day-mode [class*="text-orange-300"]  { color: #c2410c !important; }
body.day-mode [class*="text-orange-400"]  { color: #c2410c !important; }
body.day-mode [class*="text-orange-500"]  { color: #9a3412 !important; }
body.day-mode [class*="text-amber-300"]   { color: #b45309 !important; }
body.day-mode [class*="text-amber-400"]   { color: #b45309 !important; }
body.day-mode [class*="text-amber-500"]   { color: #92400e !important; }
body.day-mode [class*="text-yellow-300"]  { color: #a16207 !important; }
body.day-mode [class*="text-yellow-400"]  { color: #a16207 !important; }
body.day-mode [class*="text-yellow-500"]  { color: #854d0e !important; }
body.day-mode [class*="text-lime-300"]    { color: #3f6212 !important; }
body.day-mode [class*="text-lime-400"]    { color: #3f6212 !important; }
body.day-mode [class*="bg-orange-900"]    { background-color: rgba(194,65,12,0.07) !important; }
body.day-mode [class*="bg-amber-900"]     { background-color: rgba(180,83,9,0.07) !important; }
body.day-mode [class*="bg-yellow-900"]    { background-color: rgba(161,98,7,0.07) !important; }
body.day-mode [class*="border-orange-600"],
body.day-mode [class*="border-orange-700"] { border-color: #c2410c !important; }
body.day-mode [class*="border-amber-500"],
body.day-mode [class*="border-amber-700"] { border-color: #b45309 !important; }
body.day-mode [class*="from-orange-900"]  { --tw-gradient-from: rgba(194,65,12,0.07) !important; }
body.day-mode [class*="to-amber-900"]     { --tw-gradient-to: rgba(180,83,9,0.05) !important; }

/* ── Red / Rose ── */
body.day-mode [class*="text-red-300"]     { color: #b91c1c !important; }
body.day-mode [class*="text-red-400"]     { color: #b91c1c !important; }
body.day-mode [class*="text-red-500"]     { color: #991b1b !important; }
body.day-mode [class*="text-rose-400"]    { color: #be123c !important; }
body.day-mode [class*="bg-red-900"]       { background-color: rgba(185,28,28,0.07) !important; }
body.day-mode [class*="bg-rose-900"]      { background-color: rgba(190,18,60,0.07) !important; }
body.day-mode [class*="border-red-700"]   { border-color: #b91c1c !important; }
body.day-mode [class*="border-red-500"]   { border-color: #dc2626 !important; }
body.day-mode [class*="from-red-900"]     { --tw-gradient-from: rgba(185,28,28,0.07) !important; }

/* ── Blue / Indigo / Sky ── */
body.day-mode [class*="text-blue-300"]    { color: #1d4ed8 !important; }
body.day-mode [class*="text-blue-400"]    { color: #1d4ed8 !important; }
body.day-mode [class*="text-blue-500"]    { color: #1e40af !important; }
body.day-mode [class*="text-indigo-300"]  { color: #4338ca !important; }
body.day-mode [class*="text-indigo-400"]  { color: #4338ca !important; }
body.day-mode [class*="text-sky-400"]     { color: #0369a1 !important; }
body.day-mode [class*="bg-blue-900"]      { background-color: rgba(29,78,216,0.07) !important; }
body.day-mode [class*="bg-indigo-900"]    { background-color: rgba(67,56,202,0.07) !important; }
body.day-mode [class*="bg-indigo-700"],
body.day-mode [class*="bg-indigo-600"]    { background-color: #4338ca !important; }
body.day-mode [class*="border-blue-700"]  { border-color: #1d4ed8 !important; }
body.day-mode [class*="border-indigo-700"] { border-color: #4338ca !important; }
body.day-mode [class*="from-indigo-900"]  { --tw-gradient-from: rgba(67,56,202,0.07) !important; }

/* ── Purple / Violet / Pink ── */
body.day-mode [class*="text-purple-300"]  { color: #7e22ce !important; }
body.day-mode [class*="text-purple-400"]  { color: #7e22ce !important; }
body.day-mode [class*="text-violet-400"]  { color: #6d28d9 !important; }
body.day-mode [class*="text-pink-400"]    { color: #be185d !important; }
body.day-mode [class*="text-fuchsia-400"] { color: #a21caf !important; }
body.day-mode [class*="bg-purple-900"]    { background-color: rgba(126,34,206,0.07) !important; }
body.day-mode [class*="bg-pink-900"]      { background-color: rgba(190,24,93,0.07) !important; }
body.day-mode [class*="border-purple-700"] { border-color: #7e22ce !important; }
body.day-mode [class*="border-pink-700"]   { border-color: #be185d !important; }
body.day-mode [class*="from-purple-900"]  { --tw-gradient-from: rgba(126,34,206,0.07) !important; }

/* ── Teal / Cyan already handled above, extra shades ── */
body.day-mode [class*="text-teal-400"]    { color: #0f766e !important; }
body.day-mode [class*="text-teal-300"]    { color: #0f766e !important; }

/* ── Gradient backgrounds — all dark variants → subtle tint ── */
body.day-mode [class*="from-slate-700"],
body.day-mode [class*="from-slate-800"],
body.day-mode [class*="from-slate-900"]   { --tw-gradient-from: #f2edd8 !important; }
body.day-mode [class*="to-slate-700"],
body.day-mode [class*="to-slate-800"],
body.day-mode [class*="to-slate-900"]     { --tw-gradient-to: #ede8d4 !important; }

/* ── Strikethrough / muted ── */
body.day-mode [class*="line-through"]     { color: #9a9258 !important; }

/* ── Star ratings ── */
body.day-mode .star-btn                   { color: #b45309 !important; }

/* ── Progress bars — keep colored fills ── */
body.day-mode .progress-fill              { opacity: 0.9; }

/* ═══════════════════════════════════════════
   DASHBOARD — NEW DESIGN
═══════════════════════════════════════════ */
.dash-root { padding: 28px 28px 40px; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

/* Header */
/* ── Elite Brand Hero ── */
.dash-brand-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #052e16 0%, #14532d 40%, #166534 70%, #052e16 100%);
  border: 1.5px solid rgba(74,222,128,0.35);
  border-radius: 24px;
  padding: 24px 28px 22px;
  box-shadow: 0 8px 40px rgba(34,197,94,0.18), 0 2px 0 rgba(134,239,172,0.15) inset;
}
.dash-brand-hero-glow {
  position: absolute; top: -60px; right: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(ellipse, rgba(74,222,128,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.dash-brand-hero-inner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.dash-brand-logo {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(74,222,128,0.5), 0 0 0 3px rgba(74,222,128,0.2);
}
.dash-brand-hero-text { flex: 1; min-width: 0; }
.dash-brand-hero-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: #86efac;
  opacity: 0.8; margin-bottom: 3px;
}
.dash-brand-hero-name {
  font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -1.5px;
  background: linear-gradient(90deg, #ffffff 0%, #86efac 50%, #4ade80 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.dash-brand-hero-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: #4ade80; background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 100px; padding: 4px 12px; align-self: flex-start;
}
.dash-brand-hero-bottom {
  border-top: 1px solid rgba(74,222,128,0.15);
  padding-top: 14px;
}
.dash-brand-hero .dash-greeting {
  font-size: 22px !important; font-weight: 700 !important;
  color: #f0fdf4 !important; margin-bottom: 2px !important;
}
.dash-brand-hero .dash-date {
  color: rgba(134,239,172,0.7) !important; font-size: 13px !important;
}
.dash-greeting { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.dash-date { font-size: 15px; color: #64748b; font-weight: 500; }
body:not(.day-mode) .dash-greeting { color: #f1f5f9; }
body:not(.day-mode) .dash-date { color: #94a3b8; }

/* Phones: shrink the big brand-hero name so "NalamOS" never clips (even on 360px) */
@media (max-width: 480px) {
  .dash-brand-hero-name { font-size: 24px; letter-spacing: -1px; }
  .dash-brand-hero .dash-greeting { font-size: 19px !important; }
}

/* Food List columns: full-height columns only on desktop (4-across); on
   mobile/tablet they stack and size to their content (no forced 70vh gaps). */
.fl-col { min-height: auto; }
@media (min-width: 1024px) { .fl-col { min-height: 70vh; } }

/* Stat cards grid */
.dash-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 700px) { .dash-cards-grid { grid-template-columns: repeat(2,1fr); } }

.dash-card {
  display: block; text-decoration: none;
  background: #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--dc) 22%, #e2e8f0);
  border-radius: 20px; padding: 22px 22px 18px;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--dc) 20%, rgba(0,0,0,0.1));
}
body:not(.day-mode) .dash-card {
  background: #1e293b;
  border-color: color-mix(in srgb, var(--dc) 30%, #334155);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.dash-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.dash-card-badge {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--dc) 40%, transparent);
}
.dash-card-watermark {
  position: absolute; right: 12px; bottom: 12px;
  width: 80px; height: 80px;
  pointer-events: none;
}
.dash-card-watermark svg { width: 100%; height: 100%; }
.dash-card-value {
  font-size: 36px; font-weight: 900; color: #0f172a;
  line-height: 1; margin-bottom: 6px; letter-spacing: -1px;
}
body:not(.day-mode) .dash-card-value { color: #f1f5f9; }
.dash-card-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 3px;
}
.dash-card-sub { font-size: 13px; color: #64748b; font-weight: 500; }
body:not(.day-mode) .dash-card-sub { color: #94a3b8; }

/* Section wrapper */
.dash-section {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 24px 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
body:not(.day-mode) .dash-section { background: #1e293b; border-color: #334155; box-shadow: none; }
.dash-section-title {
  font-size: 18px; font-weight: 800; color: #0f172a;
  margin-bottom: 4px;
}
body:not(.day-mode) .dash-section-title { color: #f1f5f9; }
.dash-section-title::after {
  content: ''; display: block; width: 32px; height: 3px;
  background: #f59e0b; border-radius: 2px; margin-top: 6px; margin-bottom: 16px;
}

/* Quick action pills */
.dash-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 12px; text-decoration: none;
  background: #f8fafc;
  border: 1.5px solid color-mix(in srgb, var(--pc) 30%, #e2e8f0);
  transition: all 0.15s;
}
.dash-pill:hover {
  background: color-mix(in srgb, var(--pc) 8%, #ffffff);
  border-color: color-mix(in srgb, var(--pc) 60%, transparent);
  transform: translateY(-2px);
}
body:not(.day-mode) .dash-pill { background: #0f172a; border-color: color-mix(in srgb, var(--pc) 35%, #334155); }
body:not(.day-mode) .dash-pill:hover { background: color-mix(in srgb, var(--pc) 12%, #0f172a); }
.dash-pill-icon { display: flex; align-items: center; flex-shrink: 0; }
.dash-pill-label { font-size: 13px; font-weight: 600; color: #334155; white-space: nowrap; }
body:not(.day-mode) .dash-pill-label { color: #cbd5e1; }

/* Backup section */
.dash-backup { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dash-backup-left { flex: 1; }
.dash-backup-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.dash-btn-export {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; border: none; cursor: pointer;
  background: #6366f1; color: #ffffff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dash-btn-export:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,0.45); }
.dash-btn-import {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px;
  background: #22c55e; color: #ffffff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(34,197,94,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dash-btn-import:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,197,94,0.45); }
.dash-backup-art { flex-shrink: 0; opacity: 0.9; }

/* ═══════════════════════════════════════════════
   BUCKET LIST CARDS
═══════════════════════════════════════════════ */
/* ── Bucket List — Two Big Boxes ── */
#bl-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
/* Phones: stack the two goal boxes so titles aren't crushed into narrow columns */
@media (max-width: 640px) {
  #bl-list { grid-template-columns: 1fr !important; }
}

/* The two big container boxes */
.bl-big-box {
  background: linear-gradient(160deg, #0a2e1a 0%, #0d3d20 60%, #0a2e1a 100%);
  border: 2px solid rgba(34,197,94,0.38);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* Box header */
.bl-box-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1.5px solid rgba(34,197,94,0.25);
  background: rgba(0,0,0,0.18);
}
.bl-box-icon { font-size: 20px; line-height: 1; }
.bl-box-title {
  flex: 1; font-size: 14px; font-weight: 900;
  color: #ffd700 !important; letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(255,215,0,0.3);
}
.bl-box-count {
  font-size: 11px; font-weight: 700;
  color: rgba(34,197,94,0.7);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px; padding: 2px 10px;
}

/* List of items inside the box */
.bl-box-list { padding: 8px 0; }
.bl-box-empty {
  padding: 20px; text-align: center;
  font-size: 13px; color: #475569;
}

/* Each item row */
.bl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(34,197,94,0.1);
  transition: background 0.15s;
  position: relative;
}
.bl-item:last-child { border-bottom: none; }
.bl-item:hover { background: rgba(34,197,94,0.06); }
.bl-item-done { opacity: 0.55; }

.bl-item-num {
  font-size: 13px; font-weight: 800; color: #ffd700;
  min-width: 22px; flex-shrink: 0;
}
.bl-item-mid { flex: 1; min-width: 0; }
.bl-item-title-row {
  display: flex; align-items: center; gap: 7px; margin-bottom: 4px;
}
.bl-item-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.bl-item-text {
  font-size: 14px; font-weight: 700;
  color: #e2fce8 !important; line-height: 1.3;
  text-transform: capitalize;
}
.bl-item-text-done { text-decoration: line-through; color: #6b7280 !important; }

.bl-item-sub {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.bl-item-actions {
  display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s;
}
.bl-item:hover .bl-item-actions { opacity: 1; }

/* Circular checkbox */
.bl-check-wrap { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.bl-check-real { display: none; }
.bl-check-circle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2); transition: all 0.15s; flex-shrink: 0;
}
.bl-check-circle-done { background: #22c55e !important; border-color: #22c55e !important; }
.bl-item:hover .bl-check-circle { border-color: #22c55e; }

/* Add photo / thumb */
.bl-add-photo-link {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: rgba(34,197,94,0.4);
  letter-spacing: 0.04em; cursor: pointer; transition: color 0.15s;
}
.bl-img-upload-row { cursor: pointer; }
.bl-img-upload-row:hover .bl-add-photo-link { color: rgba(34,197,94,0.85); }
.bl-img-thumb-wrap { position: relative; display: inline-flex; }
.bl-img-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.bl-img-remove {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0,0,0,0.75); color: #fff;
  border: none; cursor: pointer; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
}

/* keep action buttons */
.bl-action-btn {
  width: 26px; height: 26px; border-radius: 7px; border: none; cursor: pointer;
  background: #334155; color: #94a3b8;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.bl-action-btn:hover { background: #475569; color: #f1f5f9; }
.bl-del-btn:hover { background: rgba(239,68,68,0.2) !important; color: #f87171 !important; }

/* legacy stubs */
.bl-card { display: none; }
.bl-check-box { display: none; }
.bl-card-title-done { text-decoration: line-through; color: #6b7280 !important; }
.bl-check-wrap { display: flex; align-items: center; cursor: pointer; }
.bl-check-real { display: none; }
.bl-check-box {
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid #475569;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.bl-check-done {
  background: #22c55e !important;
  border-color: #22c55e !important;
}
.bl-card:hover .bl-check-box { border-color: var(--cc); }
.bl-card-actions { display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
.bl-card:hover .bl-card-actions { opacity: 1; }
.bl-action-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none; cursor: pointer;
  background: #334155; color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.bl-action-btn:hover { background: #475569; color: #f1f5f9; }
.bl-del-btn:hover { background: rgba(239,68,68,0.2) !important; color: #f87171 !important; }
.bl-card-title { display: none; } /* title now shown via bl-card-cat-name */
.bl-card-title-done { text-decoration: line-through; color: #6b7280 !important; }
.bl-card-footer {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 6px; padding: 0 12px 12px;
  flex-wrap: wrap;
}
.bl-footer-left { display: flex; align-items: center; gap: 6px; }
.bl-cat-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; border: 1px solid;
  letter-spacing: 0.02em; white-space: nowrap;
}
.bl-stars { display: flex; align-items: center; gap: 1px; }
.bl-year {
  font-size: 11px; font-weight: 600; color: #64748b;
  background: #0f172a; border: 1px solid #1e293b;
  border-radius: 100px; padding: 2px 8px;
}
.bl-done-tag {
  font-size: 11px; font-weight: 700; color: #22c55e;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px; padding: 2px 8px;
}
.bl-card-notes {
  font-size: 12px; color: #64748b; font-style: italic;
  margin-top: 8px; line-height: 1.4;
}

/* ── Inspire Me Banner ── */
.bl-inspire-banner {
  background: linear-gradient(135deg, #1a0533 0%, #2d0a5e 50%, #1a0533 100%) !important;
  border: 1.5px solid rgba(168,85,247,0.55) !important;
  border-radius: 18px !important;
  padding: 18px 22px !important;
  display: flex !important; align-items: center !important; gap: 16px !important;
  box-shadow: 0 4px 24px rgba(168,85,247,0.28) !important;
}
.bl-inspire-banner-icon { font-size: 38px; line-height: 1; flex-shrink: 0; }
.bl-inspire-banner-body { flex: 1; }
.bl-inspire-banner-title {
  font-size: 18px !important; font-weight: 900 !important;
  color: #ffd700 !important;
  letter-spacing: 0.03em; margin: 0 0 5px !important;
  text-shadow: 0 1px 8px rgba(255,215,0,0.35);
}
.bl-inspire-banner-sub {
  font-size: 13px !important; color: #ddc4ff !important;
  font-weight: 500 !important; margin: 0 !important;
}
.bl-inspire-banner-count { text-align: right; flex-shrink: 0; }
.bl-inspire-banner-num {
  font-size: 30px !important; font-weight: 900 !important;
  color: #ffd700 !important; line-height: 1;
}
.bl-inspire-banner-label {
  font-size: 10px !important; color: #a78bfa !important;
  font-weight: 700 !important; letter-spacing: 0.06em; margin-top: 3px;
}

/* ── Dream Gallery Tab ── */
.bl-gallery-hint {
  display: flex; align-items: center; gap-10px; gap: 10px;
  font-size: 13px; color: #64748b; font-weight: 500;
  padding: 12px 16px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 14px; margin-bottom: 18px;
}
#bl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.bl-gallery-cell {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--cc, rgba(34,197,94,0.35));
  background: linear-gradient(135deg, #0a2e1a, #0d3d20);
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bl-gallery-cell:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 2px var(--cc);
}
.bl-gallery-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bl-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 10px;
  opacity: 0; transition: opacity 0.2s;
}
.bl-gallery-cell:hover .bl-gallery-overlay { opacity: 1; }
.bl-gallery-label {
  font-size: 11px; font-weight: 700; color: #ffd700;
  line-height: 1.3; text-transform: capitalize;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.bl-gallery-remove {
  position: absolute; top: 7px; right: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #fff;
  border: none; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.bl-gallery-cell:hover .bl-gallery-remove { opacity: 1; }
.bl-gallery-upload {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.bl-gallery-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 10px; text-align: center;
  color: rgba(34,197,94,0.45);
}
.bl-gallery-goal-name {
  font-size: 11px; font-weight: 700; color: #ffd700 !important;
  line-height: 1.3; text-transform: capitalize;
  display: block;
}
.bl-gallery-tap {
  font-size: 9px; font-weight: 600; color: rgba(34,197,94,0.45);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   IKIGAI INTRO SCREEN
═══════════════════════════════════════════════ */
.ik-intro { display: flex; flex-direction: column; gap: 20px; }

/* Hero */
.ik-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4a0020 0%, #831843 30%, #9d174d 55%, #be185d 75%, #4a0020 100%);
  border: 1px solid rgba(251,113,133,0.5);
  border-radius: 20px; padding: 16px 24px;
  display: flex; align-items: center; gap: 20px;
}
.ik-hero-glow {
  position: absolute; top: -40px; right: -40px;
  width: 320px; height: 200px;
  background: radial-gradient(ellipse, rgba(251,113,133,0.35) 0%, transparent 65%);
  pointer-events: none;
}
.ik-hero-icons-row { display: none; }
.ik-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px; width: 100%;
}
.ik-hero-left { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.ik-hero-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: #fda4af; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 100px;
  padding: 3px 12px; width: fit-content; text-transform: none;
}
.ik-hero-pretitle {
  font-size: 12px; font-weight: 700; color: #fce7f3 !important;
  letter-spacing: 0.04em; opacity: 0.8; margin: 0;
}
.ik-hero-title {
  font-size: 48px; font-weight: 900; color: #ffffff !important;
  letter-spacing: -2px; line-height: 1; margin: 0;
  text-shadow: 0 0 40px rgba(255,255,255,0.25), 0 2px 10px rgba(0,0,0,0.5);
}
.ik-hero-divider {
  width: 1px; height: 56px; background: rgba(255,255,255,0.18); flex-shrink: 0;
}
.ik-hero-sub {
  font-size: 13px; color: #fce7f3 !important; font-weight: 500;
  line-height: 1.6; opacity: 0.88; margin: 0; flex: 1;
}
.ik-hero-bottom-icons { display: none; }

/* 4 Circles */
.ik-circles-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
@media (max-width: 700px) { .ik-circles-grid { grid-template-columns: repeat(2,1fr); } }
.ik-circle-card {
  background: #111827 !important;
  border: 2px solid color-mix(in srgb, var(--cc) 50%, transparent);
  border-top: 3px solid var(--cc);
  border-radius: 20px; padding: 28px 18px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 0 transparent;
}
.ik-circle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--cc) 35%, rgba(0,0,0,0.5));
}
.ik-circle-icon { font-size: 44px; }
.ik-circle-label {
  font-size: 15px; font-weight: 900; color: var(--cc) !important;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ik-circle-q {
  font-size: 14px; color: #e2e8f0 !important; line-height: 1.6; font-weight: 600;
}
.ik-circle-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.15em;
  color: var(--cc) !important;
  background: color-mix(in srgb, var(--cc) 12%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent);
  border-radius: 100px; padding: 4px 14px; text-transform: uppercase;
}

/* Venn + Intersections Row */
.ik-venn-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start;
}
@media (max-width: 700px) { .ik-venn-row { grid-template-columns: 1fr; } }
.ik-venn-box {
  background: #0f172a; border: 1px solid #1e293b; border-radius: 20px; padding: 16px;
}
.ik-venn-svg { width: 100%; display: block; }

.ik-intersections-col { display: flex; flex-direction: column; gap: 10px; }
.ik-inter-title {
  font-size: 11px; font-weight: 900; letter-spacing: 0.18em;
  color: #475569 !important; text-transform: uppercase; margin-bottom: 4px;
}
.ik-inter-card {
  display: flex; align-items: center; gap: 14px;
  background: #0f172a; border: 1px solid #1e293b;
  border-left: 3px solid var(--ic);
  border-radius: 14px; padding: 14px 18px;
  transition: transform 0.15s;
}
.ik-inter-card:hover { transform: translateX(4px); }
.ik-inter-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ic); flex-shrink: 0;
  box-shadow: 0 0 8px var(--ic);
}
.ik-inter-name {
  font-size: 14px; font-weight: 900; color: #f1f5f9 !important;
  letter-spacing: 0.05em;
}
.ik-inter-desc { font-size: 12px; color: #94a3b8 !important; margin-top: 3px; font-weight: 500; }

/* How bar */
.ik-how-bar {
  display: flex; align-items: center; gap: 14px;
  background: #111827; border: 1px solid #1f2d3d; border-radius: 16px;
  padding: 18px 22px;
}
.ik-how-icon { font-size: 26px; flex-shrink: 0; }
.ik-how-text { font-size: 15px; color: #94a3b8 !important; line-height: 1.55; font-weight: 500; }
.ik-how-text strong { color: #e2e8f0 !important; font-weight: 700; }

/* Saved notice */
.ik-saved-notice {
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.35);
  border-radius: 14px; padding: 14px 20px;
  font-size: 14px; color: #34d399 !important; font-weight: 600; text-align: center;
}

/* CTA */
.ik-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding-bottom: 8px; }
.ik-cta-btn {
  padding: 18px 44px; font-size: 18px; font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #9333ea);
  color: #fff !important; border: none; border-radius: 18px; cursor: pointer;
  box-shadow: 0 8px 32px rgba(139,92,246,0.5);
  transition: transform 0.2s, box-shadow 0.2s; letter-spacing: 0.02em;
}
.ik-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(139,92,246,0.65);
}
.ik-cta-secondary {
  padding: 18px 32px; font-size: 16px; font-weight: 700;
  background: #1e293b; color: #cbd5e1 !important;
  border: 1px solid #334155; border-radius: 18px; cursor: pointer;
  transition: background 0.2s;
}
.ik-cta-secondary:hover { background: #273548; }

/* ── Self Concept Infographic ─────────────────────────────── */
.sc-infographic { display: flex; flex-direction: column; gap: 28px; padding-bottom: 32px; }

/* ── Hero — Advanced ── */
.sc-info-hero {
  position: relative;
  background: linear-gradient(135deg, #0d0a2e 0%, #1a1060 40%, #2d1b6e 70%, #0d0a2e 100%);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 28px;
  padding: 60px 40px 50px;
  text-align: center;
  overflow: hidden;
}
.sc-hero-bg-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.sc-hero-content { position: relative; z-index: 1; }
.sc-hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.22em;
  color: #c4b5fd !important; background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.5);
  border-radius: 100px; padding: 6px 20px; margin-bottom: 22px;
  text-transform: uppercase;
}
.sc-info-hero-title,
body.day-mode .sc-info-hero-title {
  font-size: 52px; font-weight: 900; color: #ffd700 !important;
  letter-spacing: -2px; line-height: 1.05; margin-bottom: 18px;
  text-shadow: 0 0 60px rgba(255,215,0,0.4), 0 2px 8px rgba(0,0,0,0.6);
}
.sc-info-hero-sub {
  font-size: 20px; color: #c4b5fd !important; font-weight: 500;
  max-width: 600px; margin: 0 auto 36px; line-height: 1.6;
}
.sc-hero-pillars {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.sc-hero-pillar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid var(--pc);
  border-radius: 18px; padding: 22px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 110px;
  transition: transform 0.2s;
}
.sc-hero-pillar:hover { transform: translateY(-5px); }
.sc-hero-pillar-icon { font-size: 42px; }
.sc-hero-pillar-label { font-size: 15px; font-weight: 900; color: var(--pc) !important; letter-spacing: 0.1em; text-transform: uppercase; }
.sc-hero-pillar-arrow { font-size: 28px; color: rgba(255,255,255,0.3); flex-shrink: 0; }

/* Section wrapper */
.sc-info-section {
  background: #111827 !important;
  border: 1px solid #1f2d3d !important;
  border-radius: 22px;
  padding: 28px 24px;
}
.sc-info-label {
  font-size: 12px; font-weight: 900; letter-spacing: 0.18em;
  color: #475569 !important; text-transform: uppercase; margin-bottom: 22px;
}

/* ── Iceberg — Pyramid ── */
.sc-pyramid {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sc-pyramid-row {
  width: var(--w);
  background: var(--bg);
  border: 1.5px solid var(--bc);
  border-radius: 14px;
  padding: 18px 22px;
  position: relative;
  box-shadow: 0 0 20px var(--glow), 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sc-pyramid-row:hover {
  transform: scaleX(1.015);
  box-shadow: 0 0 32px var(--glow), 0 8px 20px rgba(0,0,0,0.5);
}
.sc-pyramid-root {
  border-width: 2px;
  padding: 22px 26px;
}
.sc-pyramid-block {
  display: flex; align-items: center; gap: 16px;
}
.sc-pyramid-icon { font-size: 32px; flex-shrink: 0; }
.sc-pyramid-title {
  font-size: 15px; font-weight: 900; color: #ffffff !important;
  letter-spacing: 0.05em; line-height: 1.2;
}
.sc-pyramid-root .sc-pyramid-title {
  font-size: 17px; color: #ffd700 !important;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.sc-pyramid-sub {
  font-size: 12px; color: #c4b5fd !important;
  margin-top: 5px; font-weight: 500; line-height: 1.4;
}
.sc-pyramid-root .sc-pyramid-sub { color: #e9d5ff !important; font-size: 13px; }
.sc-pyramid-tag {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  color: #818cf8 !important; background: #111827;
  border: 1px solid rgba(99,102,241,0.35);
  padding: 3px 14px; border-radius: 100px; white-space: nowrap;
}
.sc-pyramid-waterline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: #4f46e5 !important; text-align: center;
  padding: 6px 0; width: 100%;
  border-top: 1.5px dashed rgba(99,102,241,0.5);
  border-bottom: 1.5px dashed rgba(99,102,241,0.5);
  margin: 4px 0;
}

/* Steps */
.sc-steps-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.sc-step {
  flex: 1; min-width: 140px; max-width: 200px;
  background: #0f172a; border: 1px solid #334155; border-radius: 18px;
  padding: 22px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sc-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 900; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sc-step-icon { font-size: 32px; }
.sc-step-title { font-size: 13px; font-weight: 800; color: #f1f5f9; letter-spacing: 0.08em; }
.sc-step-desc { font-size: 12px; color: #94a3b8; line-height: 1.5; text-align: center; }
.sc-step-arrow { font-size: 24px; color: #475569; flex-shrink: 0; }

/* Stats */
.sc-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
@media (max-width: 700px) { .sc-stats-row { grid-template-columns: repeat(2,1fr); } }
.sc-stat-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 12%, #0f172a), #0f172a);
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
  border-radius: 16px; padding: 20px 14px; text-align: center;
}
.sc-stat-num { font-size: 36px; font-weight: 900; color: var(--ac); line-height: 1; }
.sc-stat-unit { font-size: 11px; font-weight: 800; color: var(--ac); opacity: 0.7; letter-spacing: 0.1em; margin: 4px 0; }
.sc-stat-desc { font-size: 12px; color: #94a3b8; line-height: 1.4; }

/* Practice */
.sc-practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .sc-practice-grid { grid-template-columns: 1fr; } }
.sc-practice-card {
  background: #0f172a; border-radius: 16px;
  border-left: 4px solid var(--bc);
  border-top: 1px solid #1e293b; border-right: 1px solid #1e293b; border-bottom: 1px solid #1e293b;
  padding: 20px 18px;
}
.sc-practice-time { font-size: 13px; font-weight: 800; color: var(--bc); letter-spacing: 0.08em; margin-bottom: 12px; }
.sc-practice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-practice-list li { font-size: 13px; color: #cbd5e1; padding-left: 18px; position: relative; line-height: 1.5; }
.sc-practice-list li::before { content: '✓'; position: absolute; left: 0; color: var(--bc); font-weight: 700; }

/* CTA bar */
.sc-info-cta {
  background: linear-gradient(135deg, #1e3a1e, #0f2a0f);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 16px; padding: 18px 24px;
  display: flex; align-items: center; gap: 14px;
}
.sc-info-cta-icon { font-size: 24px; }
.sc-info-cta-text { font-size: 14px; color: #86efac; font-weight: 500; }
.sc-info-cta-text strong { color: #4ade80; font-weight: 800; }

/* ── Heatmap cells — keep colored ── */
body.day-mode .heatmap-cell[style*="background:#22c55e"] { opacity: 0.85; }
body.day-mode .heatmap-cell[style*="background:#ef4444"] { opacity: 0.85; }

/* ═══════════════════════════════════════════════
   DAILY ROUTINE — ANALYSER INFOGRAPHIC
═══════════════════════════════════════════════ */

/* Stat cards grid */
.an-stat-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px;
}
@media (max-width: 700px) { .an-stat-grid { grid-template-columns: repeat(2,1fr); } }

.an-stat-card {
  background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 10%, #1e293b), #1e293b);
  border: 1.5px solid color-mix(in srgb, var(--ac) 30%, #334155);
  border-top: 3px solid var(--ac);
  border-radius: 18px; padding: 18px 14px 14px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.an-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--ac) 15%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.an-stat-icon { font-size: 22px; margin-bottom: 8px; line-height: 1; }
.an-stat-val {
  font-size: 38px; font-weight: 900; line-height: 1; margin-bottom: 6px; letter-spacing: -1px;
}
.an-stat-of { font-size: 18px; font-weight: 600; color: #475569; }
.an-stat-label { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; margin-bottom: 10px; }
.an-stat-bar {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}
.an-stat-bar > div { height: 100%; border-radius: 2px; transition: width 0.6s ease; }

/* Charts row: 2 columns */
.an-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 700px) { .an-charts-row { grid-template-columns: 1fr; } }

/* Generic panel */
.an-panel {
  background: #1e293b; border: 1.5px solid #334155;
  border-radius: 20px; padding: 18px 18px 16px;
}
.an-full { display: block; }
.an-panel-title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #64748b; margin-bottom: 14px;
}

/* Donut */
.an-donut-wrap { display: flex; align-items: center; gap: 16px; }
.an-donut-canvas-wrap { position: relative; flex-shrink: 0; }
.an-donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.an-donut-total { font-size: 15px; font-weight: 900; color: #f1f5f9; line-height: 1; }
.an-donut-sub { font-size: 10px; color: #64748b; margin-top: 2px; }
.an-donut-legend { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.an-legend-row { display: flex; align-items: center; gap: 7px; }
.an-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.an-legend-name { font-size: 11px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-legend-val { font-size: 11px; font-weight: 800; color: #94a3b8; flex-shrink: 0; }
.an-empty-hint { font-size: 12px; color: #475569; text-align: center; padding: 20px 0; }

/* Category completion bars */
.an-cat-bars { display: flex; flex-direction: column; gap: 11px; }
.an-cat-bar-item { }
.an-cat-bar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; gap: 6px; }
.an-cat-bar-name { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; overflow: hidden; }
.an-cat-bar-name span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-cat-bar-pct { font-size: 12px; font-weight: 900; flex-shrink: 0; }
.an-bar-track { height: 10px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; }
.an-bar-fill { height: 100%; border-radius: 100px; transition: width 0.6s ease; }
.an-cat-bar-sub { font-size: 10px; color: #475569; margin-top: 3px; }

/* Stacked time allocation bar */
.an-stacked-bar {
  display: flex; height: 28px; border-radius: 12px; overflow: hidden;
  gap: 2px; margin-bottom: 16px;
}
.an-stack-seg { height: 100%; transition: width 0.5s ease; flex-shrink: 0; }
.an-time-rows { display: flex; flex-direction: column; gap: 9px; }
.an-time-row { display: flex; align-items: center; gap: 10px; }
.an-time-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.an-time-name {
  font-size: 12px; font-weight: 700; width: 110px; flex-shrink: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.an-time-bar-wrap { flex: 1; height: 10px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; }
.an-time-bar { height: 100%; border-radius: 100px; transition: width 0.5s ease; opacity: 0.85; }
.an-time-mins { font-size: 11px; font-weight: 700; color: #94a3b8; width: 50px; text-align: right; flex-shrink: 0; }
.an-time-pct { font-size: 11px; font-weight: 800; width: 32px; text-align: right; flex-shrink: 0; }

/* Daily trend bars */
.an-trend-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 90px; padding-bottom: 4px;
}
.an-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; justify-content: flex-end; }
.an-trend-bar { width: 100%; border-radius: 4px 4px 0 0; transition: all 0.3s; }
.an-trend-bar:hover { filter: brightness(1.3); }
.an-trend-date { font-size: 9px; color: #475569; }
.an-trend-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.an-trend-legend span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #64748b; }
.an-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

/* Insights row */
.an-insights-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 700px) { .an-insights-row { grid-template-columns: repeat(2,1fr); } }

.an-insight-card {
  background: color-mix(in srgb, var(--ic) 8%, #1e293b);
  border: 1.5px solid color-mix(in srgb, var(--ic) 30%, #334155);
  border-top: 3px solid var(--ic);
  border-radius: 18px; padding: 16px 14px; text-align: center;
}
.an-insight-emoji { font-size: 28px; margin-bottom: 6px; }
.an-insight-tag { font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; margin-bottom: 6px; }
.an-insight-name {
  font-size: 13px; font-weight: 900; color: #f1f5f9; line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.an-insight-sub { font-size: 11px; color: #64748b; font-weight: 600; }

/* ═══════════════════════════════════════════════
   ANALYSER v2 — RING + HEATMAP + SPOTLIGHT
═══════════════════════════════════════════════ */

/* Hero */
.an2-hero {
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  border: 1.5px solid #334155; border-radius: 22px;
  padding: 24px 28px; margin-bottom: 20px;
}
@media(max-width:600px){.an2-hero{flex-direction:column;text-align:center}}
.an2-hero-ring-wrap { position:relative; flex-shrink:0; width:160px; height:160px; }
.an2-hero-ring-center {
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.an2-hero-pct { font-size:40px; font-weight:900; line-height:1; }
.an2-hero-pct-label { font-size:11px; color:#64748b; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; margin-top:2px; }
.an2-hero-facts { flex:1; min-width:0; }
.an2-hero-title { font-size:20px; font-weight:900; color:#f1f5f9; margin-bottom:18px; }
.an2-kpi-row { display:flex; align-items:center; gap:0; margin-bottom:18px; }
.an2-kpi { text-align:center; padding:0 20px; }
.an2-kpi-val { font-size:36px; font-weight:900; line-height:1; }
.an2-kpi-of { font-size:18px; color:#475569; font-weight:600; }
.an2-kpi-label { font-size:10px; color:#64748b; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; margin-top:4px; }
.an2-kpi-div { width:1px; height:44px; background:#334155; flex-shrink:0; }
.an2-best-day-pill {
  display:inline-block; font-size:12px; color:#94a3b8; font-weight:600;
  background:rgba(255,255,255,0.05); border:1px solid #334155;
  border-radius:100px; padding:6px 16px;
}
.an2-best-day-pill strong { color:#ffd700; }

/* Section label */
.an2-section-label {
  font-size:11px; font-weight:800; letter-spacing:0.15em;
  text-transform:uppercase; color:#64748b;
  margin-bottom:12px; margin-top:4px;
}

/* Category rings grid */
.an2-rings-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:12px; margin-bottom:20px;
}
.an2-cat-ring-card {
  background:color-mix(in srgb, var(--cc) 6%, #1e293b);
  border:1.5px solid color-mix(in srgb, var(--cc) 25%, #334155);
  border-radius:16px; padding:14px 10px 12px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  transition:transform 0.2s;
}
.an2-cat-ring-card:hover { transform:translateY(-4px); }
.an2-ring-wrap { position:relative; width:70px; height:70px; }
.an2-ring-pct {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:900;
}
.an2-cat-name {
  font-size:11px; font-weight:800; color:#e2e8f0;
  text-align:center; line-height:1.3;
  max-width:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.an2-cat-tasks { font-size:10px; color:#64748b; font-weight:600; }

/* Heatmap */
.an2-heatmap {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(38px,1fr));
  gap:6px; margin-bottom:8px;
}
.an2-hm-cell {
  aspect-ratio:1/1; border-radius:8px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor:default; transition:transform 0.15s;
  position:relative;
}
.an2-hm-cell:hover { transform:scale(1.15); z-index:2; }
.an2-hm-num { font-size:11px; font-weight:800; color:rgba(255,255,255,0.9); line-height:1; }
.an2-hm-pct { font-size:9px; font-weight:700; color:rgba(255,255,255,0.75); }
.an2-hm-legend {
  display:flex; align-items:center; gap:5px; flex-wrap:wrap;
  font-size:10px; color:#475569; margin-bottom:20px; padding-left:2px;
}
.an2-hm-sq { width:14px; height:14px; border-radius:3px; display:inline-block; }

/* Time block */
.an2-time-block {
  display:flex; gap:20px; align-items:flex-start;
  background:#1e293b; border:1.5px solid #334155;
  border-radius:20px; padding:18px; margin-bottom:16px;
}
@media(max-width:600px){.an2-time-block{flex-direction:column;align-items:center}}
.an2-donut-side { position:relative; flex-shrink:0; }
.an2-donut-center {
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  pointer-events:none;
}
.an2-time-breakdown { flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; justify-content:center; }
.an2-tb-row { display:flex; align-items:center; gap:10px; }
.an2-tb-left { display:flex; align-items:center; gap:7px; width:130px; flex-shrink:0; min-width:0; }
.an2-tb-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.an2-tb-name { font-size:12px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.an2-tb-right { flex:1; display:flex; align-items:center; gap:8px; min-width:0; }
.an2-tb-track { flex:1; height:8px; background:rgba(255,255,255,0.07); border-radius:100px; overflow:hidden; }
.an2-tb-fill { height:100%; border-radius:100px; }
.an2-tb-time { font-size:11px; color:#94a3b8; font-weight:600; white-space:nowrap; width:42px; text-align:right; }
.an2-tb-pct { font-size:11px; font-weight:800; width:30px; text-align:right; flex-shrink:0; }

/* Spotlight banners */
.an2-spotlights { display:flex; flex-direction:column; gap:10px; }
.an2-spot {
  display:flex; align-items:center; gap:16px;
  background:color-mix(in srgb, var(--sc) 8%, #1e293b);
  border:1.5px solid color-mix(in srgb, var(--sc) 30%, #334155);
  border-left:4px solid var(--sc);
  border-radius:16px; padding:14px 18px;
  transition:transform 0.15s;
}
.an2-spot:hover { transform:translateX(4px); }
.an2-spot-icon { font-size:28px; flex-shrink:0; }
.an2-spot-body { flex:1; min-width:0; }
.an2-spot-tag { font-size:10px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; color:#64748b; margin-bottom:3px; }
.an2-spot-name { font-size:15px; font-weight:900; color:#f1f5f9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.an2-spot-sub { font-size:12px; color:#64748b; margin-top:2px; }
.an2-spot-badge { font-size:28px; font-weight:900; flex-shrink:0; }

/* ═══════════════════════════════════════════════
   ANALYSER v3 — WARM DARK + INSIGHT DASHBOARD
═══════════════════════════════════════════════ */
.an3-root { display:flex; flex-direction:column; gap:16px; }

/* Creamy green elite card base */
.an3-card {
  background: linear-gradient(145deg, #f0fdf4, #f6fef9);
  border:1.5px solid #bbf7d0;
  border-radius:20px; padding:20px 22px;
  box-shadow:0 2px 16px rgba(34,197,94,0.08);
}
.an3-card.an3-full { width:100%; }
.an3-card-head {
  font-size:12px; font-weight:800; letter-spacing:0.14em;
  text-transform:uppercase; color:#0a0a0a; margin-bottom:16px;
}

/* ── Banner ── */
.an3-banner {
  display:flex; align-items:center; gap:24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
  border:1.5px solid #86efac;
  border-radius:22px; padding:22px 28px;
  box-shadow:0 4px 24px rgba(34,197,94,0.12);
}
@media(max-width:600px){.an3-banner{flex-direction:column;text-align:center}}
.an3-banner-score { display:flex; flex-direction:column; align-items:center; gap:6px; flex-shrink:0; }
.an3-score-ring { position:relative; width:130px; height:130px; }
.an3-score-center { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center; }
.an3-score-num { font-size:36px; font-weight:900; line-height:1; }
.an3-score-unit { font-size:13px; color:#222222; font-weight:700; }
.an3-score-label { font-size:10px; font-weight:800; letter-spacing:0.14em; text-transform:uppercase; color:#444444; }
.an3-banner-divider { width:1px; height:100px; background:#86efac; flex-shrink:0; }
.an3-banner-meta { flex:1; min-width:0; }
.an3-meta-title { font-size:22px; font-weight:900; color:#0a0a0a; margin-bottom:14px; }
.an3-meta-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.an3-chip {
  font-size:12px; font-weight:700;
  background:color-mix(in srgb, var(--chc) 10%, #f0fdf4);
  border:1px solid color-mix(in srgb, var(--chc) 35%, #bbf7d0);
  color:color-mix(in srgb, var(--chc) 85%, #14532d); border-radius:100px; padding:5px 14px;
}
.an3-best-pill { font-size:12px; color:#111111; background:#dcfce7; border:1px solid #86efac; border-radius:100px; padding:6px 16px; display:inline-block; }
.an3-best-pill b { color:#0a0a0a; }

/* ── 2-col row ── */
.an3-row2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:650px){.an3-row2{grid-template-columns:1fr}}

/* ── Radar ── */
.an3-radar-wrap { display:flex; justify-content:center; margin-bottom:8px; }
.an3-radar-note { font-size:10px; color:#333333; text-align:center; }
.an3-empty { font-size:12px; color:#555555; text-align:center; padding:20px; }

/* ── Day-of-week bars ── */
.an3-dow-bars { display:flex; align-items:flex-end; gap:6px; height:90px; margin-bottom:10px; }
.an3-dow-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; height:100%; justify-content:flex-end; }
.an3-dow-bar-wrap { flex:1; display:flex; align-items:flex-end; width:100%; }
.an3-dow-bar { width:100%; border-radius:5px 5px 0 0; transition:height 0.4s; min-height:3px; }
.an3-dow-lbl { font-size:10px; font-weight:700; color:#111111; }
.an3-dow-val { font-size:9px; font-weight:800; color:#0a0a0a; }
.an3-dow-best .an3-dow-bar { border-radius:6px 6px 0 0; }
.an3-dow-note { font-size:11px; color:#1a1a1a; text-align:center; }
.an3-dow-note b { font-weight:800; color:#0a0a0a; }

/* ── Leaderboard ── */
.an3-leaderboard { display:flex; flex-direction:column; gap:10px; }
.an3-lb-row {
  display:grid;
  grid-template-columns:28px minmax(80px,140px) 1fr 50px 40px 44px;
  align-items:center; gap:10px; overflow:hidden;
  background:color-mix(in srgb, var(--lbc) 6%, #f0fdf4);
  border:1px solid color-mix(in srgb, var(--lbc) 20%, #bbf7d0);
  border-left:4px solid var(--lbc);
  border-radius:12px; padding:10px 14px;
}
.an3-lb-medal { font-size:18px; text-align:center; }
.an3-rank { font-size:13px; font-weight:900; color:#333333; }
.an3-lb-name { font-size:13px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#0a0a0a; }
.an3-lb-bar-wrap { flex:1; height:8px; background:#bbf7d0; border-radius:100px; overflow:hidden; }
.an3-lb-bar { height:100%; border-radius:100px; }
.an3-lb-grade { font-size:10px; font-weight:800; letter-spacing:0.08em; width:38px; text-align:right; flex-shrink:0; }
.an3-lb-pct { font-size:13px; font-weight:900; width:36px; text-align:right; flex-shrink:0; color:#0a0a0a; }
.an3-lb-tasks { font-size:10px; color:#444444; width:36px; text-align:right; flex-shrink:0; }
.an3-lb-unused { opacity:1; }
.an3-lb-unused-label { font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#555555; padding:8px 2px 4px; }

/* ── Time layout ── */
.an3-time-layout { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.an3-time-pills { display:flex; flex-direction:column; gap:8px; flex:1; min-width:0; justify-content:center; }
.an3-time-pill {
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto auto;
  align-items:center; gap:10px;
  background:color-mix(in srgb, var(--tc) 8%, #f0fdf4);
  border:1px solid color-mix(in srgb, var(--tc) 25%, #bbf7d0);
  border-radius:10px; padding:10px 14px; overflow:hidden;
}
.an3-time-pill-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.an3-time-pill-name { font-size:12px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#0a0a0a; }
.an3-time-pill-time { font-size:11px; color:#1a1a1a; white-space:nowrap; text-align:right; }
.an3-time-pill-pct { font-size:12px; font-weight:900; width:34px; text-align:right; white-space:nowrap; color:#0a0a0a; }

/* ── Pulse grid ── */
.an3-pulse-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(42px,1fr)); gap:6px; margin-bottom:10px; }
.an3-pulse-cell {
  aspect-ratio:1/1; border-radius:10px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor:default; transition:transform 0.15s; border:1px solid rgba(0,0,0,0.06);
}
.an3-pulse-cell:hover { transform:scale(1.15); z-index:2; }
.an3-pulse-day { font-size:12px; font-weight:800; color:rgba(255,255,255,0.95); line-height:1; }
.an3-pulse-pct { font-size:9px; font-weight:700; color:rgba(255,255,255,0.85); }
.an3-pulse-legend { display:flex; gap:14px; flex-wrap:wrap; }
.an3-pl-item { display:flex; align-items:center; gap:5px; font-size:10px; color:#1a1a1a; }
.an3-pl-sq { width:12px; height:12px; border-radius:3px; flex-shrink:0; }

/* ── Insight cards ── */
.an3-insights { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.an3-insight-card {
  background:color-mix(in srgb, var(--ic) 6%, #f0fdf4);
  border:1.5px solid color-mix(in srgb, var(--ic) 25%, #bbf7d0);
  border-top:3px solid var(--ic);
  border-radius:16px; padding:16px 16px 14px; text-align:center;
}
.an3-insight-ico { font-size:26px; margin-bottom:6px; }
.an3-insight-label { font-size:9px; font-weight:800; letter-spacing:0.14em; text-transform:uppercase; color:#444444; margin-bottom:6px; }
.an3-insight-val { font-size:26px; font-weight:900; line-height:1; margin-bottom:6px; color:#0a0a0a; }
.an3-insight-desc { font-size:11px; color:#1a1a1a; line-height:1.5; }

/* ════════════════════════════════════════════════════════════
   MY FINANCE MODULE
   ════════════════════════════════════════════════════════════ */
.fin-tabs { gap: 4px; }
.fin-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: #94a3b8;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s;
  border-top-left-radius: 8px; border-top-right-radius: 8px;
}
.fin-tab:hover { color: #e2e8f0; background: rgba(148,163,184,0.08); }
.fin-tab.active { color: #10b981; border-bottom-color: #10b981; background: rgba(16,185,129,0.08); }

.fin-card {
  background: #1e293b; border: 1px solid #334155; border-radius: 16px; padding: 20px;
}
.fin-lbl { display:block; font-size: 12px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.fin-input {
  background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 9px 12px;
  font-size: 14px; color: #e2e8f0; outline: none; transition: border-color .2s; width: 100%;
}
.fin-input:focus { border-color: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,.25); }
.fin-btn-ghost {
  background: #334155; color: #cbd5e1; border-radius: 10px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; transition: background .2s;
}
.fin-btn-ghost:hover { background: #475569; }
.fin-btn-add {
  width: 100%; background: var(--sc, #10b981); color: #fff; border-radius: 12px;
  padding: 11px; font-size: 14px; font-weight: 700; transition: filter .2s;
}
.fin-btn-add:hover { filter: brightness(1.1); }

/* Hero stat cards */
.fin-hero {
  background: #1e293b; border: 1px solid #334155; border-left: 4px solid var(--hc, #10b981);
  border-radius: 16px; padding: 18px 20px;
}
.fin-hero-label { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.fin-hero-value { font-size: 28px; font-weight: 900; line-height: 1.2; margin: 6px 0 2px; }
.fin-hero-sub { font-size: 11px; color: #64748b; }

/* Bars */
.fin-bar-track { width: 100%; height: 8px; background: #0f172a; border-radius: 99px; overflow: hidden; }
.fin-bar-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }

/* Category mini-stats */
.fin-cat-stat {
  background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden;
}
.fin-cat-stat::before { content:''; position:absolute; inset:0 auto 0 0; width:3px; background: var(--cc); }
.fin-cat-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.fin-cat-name { font-size: 12px; font-weight: 600; color: #94a3b8; }
.fin-cat-amt { font-size: 18px; font-weight: 800; color: #e2e8f0; }
/* Clickable category card → opens its transaction detail */
.fin-cat-click { cursor: pointer; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.fin-cat-click:hover { transform: translateY(-2px); border-color: var(--cc); box-shadow: 0 8px 22px -12px var(--cc); }
.fin-cat-view { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--cc); opacity: .8; margin-top: 2px; }
.fin-cat-click:hover .fin-cat-view { opacity: 1; }

/* Segmented toggle */
.fin-seg { display: inline-flex; background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 4px; gap: 4px; }
.fin-seg-btn {
  padding: 9px 22px; font-size: 14px; font-weight: 700; color: #94a3b8;
  border-radius: 9px; transition: all .2s;
}
.fin-seg-btn.active { background: var(--sc); color: #fff; }

/* Table */
.fin-table-wrap { overflow-x: auto; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fin-table th {
  text-align: left; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase;
  letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid #334155;
}
.fin-table td { padding: 10px; border-bottom: 1px solid #1e293b; vertical-align: top; }
.fin-table tbody tr:hover { background: rgba(148,163,184,0.04); }
.fin-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.fin-icon-btn { padding: 4px 6px; border-radius: 8px; font-size: 14px; transition: background .2s; }
.fin-icon-btn:hover { background: rgba(239,68,68,0.15); }

/* Category tags */
.fin-tag-chip {
  display: inline-flex; align-items: center; gap: 4px; background: #0f172a; border: 1px solid #334155;
  color: #cbd5e1; font-size: 12px; padding: 3px 8px; border-radius: 8px;
}
.fin-tag-chip .tag-del { color: #64748b; font-weight: 700; line-height: 1; padding: 0 2px; transition: color .2s; }
.fin-tag-chip .tag-del:hover { color: #ef4444; }

/* ── Day mode overrides ── */
body.day-mode .fin-card,
body.day-mode .fin-hero,
body.day-mode .fin-cat-stat { background: #fffdf7; border-color: #e0d8c0; }
body.day-mode .fin-tab { color: #6b5d3a; }
body.day-mode .fin-tab:hover { color: #1a1a1a; background: rgba(16,185,129,0.1); }
body.day-mode .fin-tab.active { color: #0a7a52; background: rgba(16,185,129,0.12); }
body.day-mode .fin-input { background: #fff; border-color: #d8d0b0; color: #1a1a1a; }
body.day-mode .fin-lbl { color: #6b5d3a; }
body.day-mode .fin-btn-ghost { background: #ede8d4; color: #4a4020; }
body.day-mode .fin-btn-ghost:hover { background: #e0d8c0; }
body.day-mode .fin-hero-label { color: #6b5d3a; }
body.day-mode .fin-hero-sub, body.day-mode .fin-cat-name { color: #7a6d4a; }
body.day-mode .fin-cat-amt { color: #1a1a1a; }
body.day-mode .fin-bar-track { background: #ede8d4; }
body.day-mode .fin-seg { background: #fffdf7; border-color: #e0d8c0; }
body.day-mode .fin-seg-btn:not(.active) { color: #6b5d3a; }
.fin-seg-btn.active, body.day-mode .fin-seg-btn.active { color: #ffffff; }
body.day-mode .fin-table th { color: #7a6d4a; border-bottom-color: #e0d8c0; }
body.day-mode .fin-table td { border-bottom-color: #f0ead8; }
body.day-mode .fin-table tbody tr:hover { background: rgba(16,185,129,0.05); }
body.day-mode .fin-tag-chip { background: #f5f0e8; border-color: #d8d0b0; color: #4a4020; }

/* ── Global Back button ── */
#global-back-bar { padding-top: 20px; }
.global-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1;
  color: #cbd5e1; background: #1e293b; border: 1px solid #334155;
  cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.global-back svg { width: 15px; height: 15px; transition: transform .2s; }
.global-back:hover { background: #334155; color: #ffffff; border-color: #475569; }
.global-back:hover svg { transform: translateX(-2px); }
body.day-mode .global-back {
  background: #ffffff; border-color: #d8d0b0; color: #5a4f2a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
body.day-mode .global-back:hover { background: #f5f0e0; color: #1a1a00; border-color: #c8b890; }

/* ── Reference Point cards ── */
.ref-card { border: 1px solid #334155; }
.ref-card:hover { border-color: #475569; }
body.day-mode .ref-card { border-color: #e6dec4; }
body.day-mode .ref-card:hover { border-color: #d8cfa8; }

/* ════════════════════════════════════════════════════════════
   ELITE GRADIENT BUTTONS — premium sheen on all primary action
   buttons across every module (works on any base color & theme)
   ════════════════════════════════════════════════════════════ */
button[class~="bg-indigo-600"], button[class~="bg-violet-600"], button[class~="bg-purple-600"],
button[class~="bg-blue-600"],   button[class~="bg-sky-600"],    button[class~="bg-cyan-600"],
button[class~="bg-teal-600"],   button[class~="bg-emerald-600"],button[class~="bg-green-600"],
button[class~="bg-lime-600"],   button[class~="bg-yellow-600"], button[class~="bg-amber-600"],
button[class~="bg-orange-600"], button[class~="bg-red-600"],    button[class~="bg-rose-600"],
button[class~="bg-pink-600"],   button[class~="bg-fuchsia-600"],
.fin-btn-add, .fin-seg-btn.active {
  background-image: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.05) 42%, rgba(0,0,0,0.22) 100%) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  border-color: transparent !important;
  transition: box-shadow .2s, filter .2s, background-color .2s !important;
}
button[class~="bg-indigo-600"]:hover, button[class~="bg-violet-600"]:hover, button[class~="bg-purple-600"]:hover,
button[class~="bg-blue-600"]:hover,   button[class~="bg-sky-600"]:hover,    button[class~="bg-cyan-600"]:hover,
button[class~="bg-teal-600"]:hover,   button[class~="bg-emerald-600"]:hover,button[class~="bg-green-600"]:hover,
button[class~="bg-lime-600"]:hover,   button[class~="bg-yellow-600"]:hover, button[class~="bg-amber-600"]:hover,
button[class~="bg-orange-600"]:hover, button[class~="bg-red-600"]:hover,    button[class~="bg-rose-600"]:hover,
button[class~="bg-pink-600"]:hover,   button[class~="bg-fuchsia-600"]:hover,
.fin-btn-add:hover, .fin-seg-btn.active:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.30) !important;
  filter: brightness(1.06) saturate(1.05);
}

/* ════════════════════════════════════════════════════════════
   POLISHED SELECT DROPDOWNS — consistent across all modules
   ════════════════════════════════════════════════════════════ */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  cursor: pointer;
}
body.day-mode select[class] {
  background-color: #ffffff !important;
  color: #1a1a00 !important;
  border-color: #d8d0b0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6d4a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}
body.day-mode select[class]:focus { border-color: #b8a860 !important; }
body.day-mode select option { background-color: #ffffff !important; color: #1a1a00 !important; }

/* ════════════════════════════════════════════════════════════
   ELITE SIDEBAR NAV — grouped sections, depth & active accent
   ════════════════════════════════════════════════════════════ */
.nav-section {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 12px 5px; color: #64748b; user-select: none;
}
#sidebar-nav .nav-link { position: relative; will-change: transform; }
#sidebar-nav .nav-link:hover { transform: translateX(3px); }
/* active item (night) */
#sidebar-nav .nav-link.bg-slate-700\/80 {
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 var(--navc), 0 4px 16px rgba(0,0,0,0.35);
}
#sidebar-nav .nav-link.bg-slate-700\/80 .nav-icon { transform: scale(1.12); filter: drop-shadow(0 0 6px var(--navc)); }

/* ── Day mode: elevated tan pills with depth ── */
body.day-mode #sidebar-nav .nav-link { box-shadow: 0 1px 3px rgba(0,0,0,0.14); }
body.day-mode #sidebar-nav .nav-link:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.20); }
body.day-mode #sidebar-nav .nav-link.bg-slate-700\/80 {
  box-shadow: inset 3px 0 0 var(--navc), 0 4px 14px rgba(0,0,0,0.22) !important;
}
body.day-mode .nav-section { color: #a9d6a0; }

/* ── Shared Undo / Redo / Reset buttons ── */
.hist-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1;
  background: #334155; color: #cbd5e1; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.hist-btn:hover { background: #475569; color: #fff; }
.hist-btn:disabled { opacity: .4; cursor: not-allowed; }
.hist-btn.hist-reset { background: rgba(220,38,38,0.16); color: #f87171; border-color: rgba(220,38,38,0.35); }
.hist-btn.hist-reset:hover { background: #dc2626; color: #fff; }
body.day-mode .hist-btn { background: #ede8d4; color: #4a4020; }
body.day-mode .hist-btn:hover { background: #ddd5b5; color: #1a1a00; }
body.day-mode .hist-btn.hist-reset { background: rgba(220,38,38,0.12); color: #b91c1c; border-color: rgba(220,38,38,0.30); }
body.day-mode .hist-btn.hist-reset:hover { background: #dc2626; color: #fff; }

/* ── Dashboard "How to Use" banner ── */
.dash-howto {
  display: flex; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #0a3d1e, #16a34a);
  color: #fff; border-radius: 22px; padding: 26px 30px;
  box-shadow: 0 8px 30px rgba(10,61,30,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative; overflow: hidden;
}
.dash-howto::after { content:''; position:absolute; right:-70px; top:-70px; width:230px; height:230px; background:rgba(255,255,255,0.07); border-radius:50%; }
.dash-howto-icon { font-size: 58px; flex-shrink: 0; line-height: 1; }
.dash-howto-text { position: relative; z-index: 1; }
.dash-howto-text h2 { font-size: 22px; font-weight: 800; margin-bottom: 7px; }
.dash-howto-text p { font-size: 14.5px; line-height: 1.6; opacity: .95; max-width: 720px; }
.dash-howto-text p strong { font-weight: 800; }
.dash-howto-btn {
  margin-top: 16px; background: #fff; color: #0a3d1e; border: none; border-radius: 12px;
  padding: 11px 22px; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.20); transition: transform .15s, box-shadow .15s;
}
.dash-howto-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
/* Keep the how-to banner heading white in both themes */
.dash-howto-text h2, body.day-mode .dash-howto-text h2 { color: #ffffff !important; }

/* ════════════════════════════════════════════════════════════
   LOGIN / AUTH SCREEN
   ════════════════════════════════════════════════════════════ */
#auth-screen {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(150deg, #04230f, #0a3d1e 45%, #16a34a);
}
#auth-screen::before { content:''; position:absolute; right:-120px; top:-120px; width:420px; height:420px; background:rgba(255,255,255,0.05); border-radius:50%; }
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: #ffffff; border-radius: 24px; padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.login-logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: #0a3d1e; }
.login-logo-mark { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #16a34a, #0a3d1e); box-shadow: 0 3px 10px rgba(22,163,74,0.4); }
.login-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #16a34a; margin: 4px 0 0 44px; }
.login-title { font-size: 30px; font-weight: 800; color: #0f172a; margin-top: 22px; }
.login-sub { font-size: 14px; color: #64748b; margin-top: 6px; margin-bottom: 22px; }
.login-label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.login-phone-row { display: flex; align-items: stretch; gap: 8px; }
.login-cc { display: flex; align-items: center; padding: 0 14px; background: #f1f5f9; border: 2px solid #e2e8f0; border-radius: 12px; font-weight: 700; color: #334155; font-size: 16px; }
.login-input {
  flex: 1; width: 100%; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px;
  padding: 13px 16px; font-size: 17px; font-weight: 600; color: #0f172a; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.login-otp { letter-spacing: 8px; text-align: center; font-size: 22px; }
.login-btn {
  width: 100%; margin-top: 18px; background: linear-gradient(135deg, #16a34a, #0a3d1e); color: #fff;
  border: none; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 18px rgba(10,61,30,0.35), inset 0 1px 0 rgba(255,255,255,0.2); transition: filter .15s, transform .15s;
}
.login-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.login-link { width: 100%; margin-top: 12px; background: none; border: none; color: #64748b; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.login-link:hover { color: #0f172a; }
.login-hint { font-size: 12.5px; color: #16a34a; font-weight: 700; margin-top: 8px; background: #f0fdf4; border: 1px dashed #86efac; border-radius: 8px; padding: 7px 10px; }
.login-error { font-size: 13px; color: #dc2626; font-weight: 600; margin-top: 12px; min-height: 18px; }
.login-foot { font-size: 11.5px; color: #94a3b8; text-align: center; margin-top: 18px; }

/* Google sign-in button (login screen) */
.login-google-btn {
  width: 100%; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #ffffff; color: #1f2937; border: 2px solid #e2e8f0; border-radius: 12px;
  padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.login-google-btn:hover { background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-1px); }

/* Compact time selects (Daily Routine hour/min/ampm) — override the global select padding */
.tp-hr, .tp-min, .tp-ampm { padding-right: 22px !important; background-position: right 6px center !important; background-size: 12px !important; }

/* Sidebar marker: module hidden from users (admin-only indicator) */
.nav-hidden-mark { margin-left: auto; font-size: 12px; opacity: .7; flex-shrink: 0; }

/* IKIGAI progress bar — teal→amber (class gradient survives day-mode strip) */
.ik-progbar, body.day-mode .ik-progbar { background:linear-gradient(90deg,#0f766e,#14b8a6,#fbbf24) !important; }

/* ═══════════════════════════════════════════════════════════
   IKIGAI — ELITE INFOGRAPHIC RESULTS (identical rich look in
   both Day & Night mode; custom classes dodge day-mode wash-out)
   ═══════════════════════════════════════════════════════════ */
.ik-elite { display:flex; flex-direction:column; gap:24px; }
.ik-elite, body.day-mode .ik-elite { color:#e5e7eb; }

/* Section titles */
.ik-elite .ik-sec-title {
  display:flex; align-items:center; gap:11px; margin:0 0 15px;
  font-size:13px; font-weight:800; letter-spacing:.14em; color:#5eead4 !important;
}
/* Day mode: cream page background needs a dark teal for the section title */
body.day-mode .ik-elite .ik-sec-title { color:#0f766e !important; }
.ik-elite .ik-sec-title .bar { width:5px; height:20px; border-radius:3px;
  background:linear-gradient(#5eead4,#0f766e); box-shadow:0 0 12px rgba(20,184,166,.6); }
.ik-elite .ik-sec-title .bar-g { background:linear-gradient(#4ade80,#16a34a); box-shadow:0 0 12px rgba(34,197,94,.6); }
.ik-elite .ik-sec-title .bar-b { background:linear-gradient(#60a5fa,#2563eb); box-shadow:0 0 12px rgba(59,130,246,.6); }
.ik-elite .ik-sec-title .bar-a { background:linear-gradient(#fbbf24,#d97706); box-shadow:0 0 12px rgba(245,158,11,.6); }

/* ─── HERO: the found IKIGAI (ike- prefix avoids collision with intro .ik-hero) ─── */
.ik-elite .ike-hero, body.day-mode .ik-elite .ike-hero {
  display:block; position:relative; overflow:hidden; text-align:center; border-radius:28px; padding:38px 26px 30px;
  background:
    radial-gradient(130% 120% at 50% -10%, rgba(20,184,166,.50), transparent 55%),
    radial-gradient(90% 120% at 106% 116%, rgba(245,158,11,.36), transparent 50%),
    radial-gradient(90% 120% at -6% 116%, rgba(16,185,129,.28), transparent 50%),
    linear-gradient(160deg,#042f2e 0%,#0f3d3a 55%,#134e4a 100%);
  border:1px solid rgba(45,212,191,.45) !important;
  box-shadow:0 24px 70px -24px rgba(13,148,136,.65), inset 0 1px 0 rgba(255,255,255,.12);
}
.ik-elite .ike-hero-kicker, body.day-mode .ik-elite .ike-hero-kicker { font-size:11px; font-weight:800; letter-spacing:.32em; color:#99f6e4 !important; }
.ik-elite .ike-hero-icon {
  width:88px; height:88px; margin:16px auto 10px; border-radius:26px;
  display:flex; align-items:center; justify-content:center; font-size:46px;
  background:linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.3);
  box-shadow:0 0 34px -6px rgba(251,191,36,.65), inset 0 1px 0 rgba(255,255,255,.4);
}
.ik-elite .ike-hero-title, body.day-mode .ik-elite .ike-hero-title { font-size:30px; font-weight:900; color:#fff !important; line-height:1.08; letter-spacing:-.02em; text-shadow:0 2px 22px rgba(0,0,0,.4); }
.ik-elite .ike-hero-theme, body.day-mode .ik-elite .ike-hero-theme { margin-top:6px; font-size:14px; font-weight:700; color:#5eead4 !important; }
.ik-elite .ik-stars { margin-top:12px; font-size:22px; letter-spacing:3px; }
.ik-elite .ik-stars .on { color:#fcd34d; text-shadow:0 0 10px rgba(252,211,77,.6); }
.ik-elite .ik-stars .off { color:rgba(255,255,255,.22); }
.ik-elite .ike-hero-quote, body.day-mode .ik-elite .ike-hero-quote {
  max-width:640px; margin:18px auto 0; padding:16px 22px; border-radius:18px;
  font-size:15px; font-style:italic; line-height:1.65; color:#f5f3ff !important;
  background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.16);
}
.ik-elite .ik-align { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:16px; }
.ik-elite .ik-align .p { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:800; padding:5px 11px; border-radius:999px; border:1px solid; color:#fff !important; }
.ik-align .p.on-lv { background:rgba(20,184,166,.4); border-color:rgba(94,234,212,.75); }
.ik-align .p.on-gd { background:rgba(59,130,246,.4); border-color:rgba(147,197,253,.7); }
.ik-align .p.on-wd { background:rgba(34,197,94,.4); border-color:rgba(134,239,172,.7); }
.ik-align .p.on-pd { background:rgba(245,158,11,.4); border-color:rgba(253,224,71,.7); }
.ik-align .p.off { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18); color:rgba(255,255,255,.55) !important; }
.ik-elite .ike-hero-badge { display:inline-block; margin-top:16px; padding:8px 18px; border-radius:999px; font-size:12.5px; font-weight:800; }
.ik-elite .ike-hero-badge.ok { color:#052e16; background:linear-gradient(90deg,#4ade80,#22c55e); box-shadow:0 8px 24px -8px rgba(34,197,94,.8); }
.ik-elite .ike-hero-badge.partial { color:#fff7ed; background:linear-gradient(90deg,#f59e0b,#ea580c); box-shadow:0 8px 24px -8px rgba(234,88,12,.7); }

/* ─── 4 FORCES ─── */
.ik-elite .ik-forces { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:760px){ .ik-elite .ik-forces { grid-template-columns:repeat(2,1fr); } }
.ik-elite .ik-force { position:relative; overflow:hidden; border-radius:20px; padding:16px 15px 15px; color:#fff !important; border:1px solid rgba(255,255,255,.18); box-shadow:0 14px 34px -16px rgba(0,0,0,.7); }
.ik-force.lv { background:linear-gradient(155deg,#0f766e,#14b8a6); }
.ik-force.gd { background:linear-gradient(155deg,#1d4ed8,#3b82f6); }
.ik-force.wd { background:linear-gradient(155deg,#15803d,#22c55e); }
.ik-force.pd { background:linear-gradient(155deg,#b45309,#f59e0b); }
.ik-elite .ik-force .ic { font-size:26px; filter:drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.ik-elite .ik-force .lbl { margin-top:8px; font-weight:800; font-size:13px; color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.35); line-height:1.25; }
.ik-elite .ik-force .cnt { position:absolute; top:13px; right:13px; background:rgba(255,255,255,.25); border-radius:999px; padding:2px 9px; font-size:11px; font-weight:800; color:#fff !important; }
.ik-elite .ik-force .chips { margin-top:10px; display:flex; flex-wrap:wrap; gap:5px; }
.ik-elite .ik-force .chip { background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.28); border-radius:9px; padding:3px 8px; font-size:11px; font-weight:600; color:#fff !important; }
.ik-elite .ik-force .empty { font-size:12px; font-style:italic; color:rgba(255,255,255,.78) !important; margin-top:8px; }

/* ─── 4 INTERSECTIONS ─── */
.ik-elite .ik-inters { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (max-width:680px){ .ik-elite .ik-inters { grid-template-columns:1fr; } }
.ik-elite .ik-inter, body.day-mode .ik-elite .ik-inter { position:relative; overflow:hidden; border-radius:18px; padding:16px 18px 16px 22px; border:1px solid; background-color:#161b2e !important; }
.ik-elite .ik-inter::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; }
.ik-elite .ik-inter.passion { border-color:rgba(45,212,191,.5) !important; background-image:linear-gradient(135deg, rgba(20,184,166,.30), rgba(20,184,166,0) 62%) !important; } .ik-inter.passion::before { background:#2dd4bf; }
.ik-elite .ik-inter.mission { border-color:rgba(52,211,153,.5) !important; background-image:linear-gradient(135deg, rgba(52,211,153,.28), rgba(52,211,153,0) 62%) !important; } .ik-inter.mission::before { background:#34d399; }
.ik-elite .ik-inter.profession { border-color:rgba(96,165,250,.5) !important; background-image:linear-gradient(135deg, rgba(96,165,250,.28), rgba(96,165,250,0) 62%) !important; } .ik-inter.profession::before { background:#60a5fa; }
.ik-elite .ik-inter.vocation { border-color:rgba(251,191,36,.5) !important; background-image:linear-gradient(135deg, rgba(251,191,36,.28), rgba(251,191,36,0) 62%) !important; } .ik-inter.vocation::before { background:#fbbf24; }
.ik-elite .ik-inter .nm { font-size:15px; font-weight:900; letter-spacing:.03em; }
.ik-inter.passion .nm{color:#5eead4!important}.ik-inter.mission .nm{color:#6ee7b7!important}.ik-inter.profession .nm{color:#93c5fd!important}.ik-inter.vocation .nm{color:#fcd34d!important}
.ik-elite .ik-inter .fm { font-size:11px; font-weight:700; color:#94a3b8 !important; margin-left:8px; }
.ik-elite .ik-inter .nt { margin-top:7px; font-size:12.5px; line-height:1.5; color:#cbd5e1 !important; }
.ik-elite .ik-inter .ovs { margin-top:9px; display:flex; flex-wrap:wrap; gap:5px; }
.ik-elite .ik-inter .ov { font-size:11px; font-weight:600; padding:3px 9px; border-radius:8px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); color:#e2e8f0 !important; }
.ik-elite .ik-inter .none { margin-top:8px; font-size:11.5px; font-style:italic; color:#94a3b8 !important; }

/* ─── OTHER MATCHES ─── */
.ik-elite .ik-others { display:flex; flex-direction:column; gap:10px; }
.ik-elite .ik-match { display:flex; align-items:center; gap:13px; border-radius:16px; padding:13px 16px; background:linear-gradient(135deg,#0f2b2a,#0c1a24); border:1px solid rgba(45,212,191,.2); }
.ik-elite .ik-match.best { border-color:rgba(45,212,191,.55); background:linear-gradient(135deg,#0f3d3a,#0c2b2a); box-shadow:0 0 0 1px rgba(45,212,191,.25), 0 12px 30px -14px rgba(13,148,136,.7); }
.ik-elite .ik-match .rank { flex-shrink:0; width:28px; height:28px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:800; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); color:#e2e8f0 !important; }
.ik-elite .ik-match .rank.r4 { font-size:12px; color:#94a3b8 !important; }
.ik-elite .ik-match .mi { width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:24px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); flex-shrink:0; }
.ik-elite .ik-match .mt { min-width:0; }
.ik-elite .ik-match .t { font-weight:800; font-size:14px; color:#f1f5f9 !important; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ik-elite .ik-match .t .tag { font-size:10px; font-weight:800; letter-spacing:.03em; padding:2px 8px; border-radius:999px; color:#042f2e !important; background:linear-gradient(90deg,#5eead4,#14b8a6); }
.ik-elite .ik-match .t .tag.ok { color:#052e16 !important; background:linear-gradient(90deg,#4ade80,#22c55e); }
.ik-elite .ik-match .s { font-size:12px; color:#99f6e4 !important; margin-top:2px; }
.ik-elite .ik-match .ml { font-size:12.5px; font-style:italic; line-height:1.5; color:#d1fae5 !important; margin-top:8px; padding-top:8px; border-top:1px solid rgba(255,255,255,.1); }
.ik-elite .ik-match .mstars { font-size:13px; letter-spacing:1px; color:#fcd34d !important; flex-shrink:0; margin-left:auto; }
.ik-elite .ik-match .mstars .off { color:rgba(255,255,255,.22) !important; }

/* ─── VENN PANEL ─── */
.ik-elite .ik-venn-panel, body.day-mode .ik-elite .ik-venn-panel {
  border-radius:24px; padding:22px;
  background:radial-gradient(120% 100% at 50% 0%, rgba(45,212,191,.18), transparent 60%), linear-gradient(160deg,#0f172a,#0f3d3a);
  border:1px solid rgba(45,212,191,.3) !important;
}

/* ─── STATEMENT PANEL ─── */
.ik-elite .ik-stmt-panel, body.day-mode .ik-elite .ik-stmt-panel {
  border-radius:22px; padding:22px;
  background:linear-gradient(160deg,#04302e,#0b3f3b); border:1px solid rgba(45,212,191,.35) !important;
}
.ik-elite .ik-stmt-sub { font-size:12px; color:#99f6e4 !important; margin-bottom:12px; }
.ik-elite .ik-stmt { display:flex; gap:12px; align-items:flex-start; border-radius:14px; padding:13px 15px; cursor:pointer; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); transition:all .15s; }
.ik-elite .ik-stmt:hover { background:rgba(20,184,166,.18); border-color:rgba(94,234,212,.5); transform:translateY(-1px); }
.ik-elite .ik-stmt.sel { background:rgba(20,184,166,.28); border-color:#2dd4bf; }
.ik-elite .ik-stmt .n { flex-shrink:0; width:24px; height:24px; border-radius:8px; background:linear-gradient(135deg,#14b8a6,#0f766e); color:#fff !important; font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center; }
.ik-elite .ik-stmt p { font-size:13.5px; line-height:1.55; color:#d1fae5 !important; margin:0; }
.ik-elite .ik-stmt-write { margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,.12); }
.ik-elite .ik-stmt-write label { display:block; font-size:13px; font-weight:700; color:#99f6e4 !important; margin-bottom:8px; }
.ik-elite .ik-stmt-write textarea, body.day-mode .ik-elite .ik-stmt-write textarea {
  width:100%; background:rgba(0,0,0,.25) !important; border:1px solid rgba(255,255,255,.18) !important;
  border-radius:14px; padding:12px 14px; font-size:14px; color:#f5f3ff !important; resize:none;
}
.ik-elite .ik-stmt-write textarea::placeholder { color:#5eead4 !important; }
.ik-elite .ik-save-btn { margin-top:12px; padding:10px 22px; border-radius:12px; font-size:14px; font-weight:800; color:#fff !important; background:linear-gradient(90deg,#14b8a6,#0f766e); box-shadow:0 10px 26px -10px rgba(13,148,136,.8); border:none; cursor:pointer; }
.ik-elite .ik-save-btn:hover { filter:brightness(1.08); }
.ik-elite .ik-edit-btn { padding:10px 22px; border-radius:12px; font-size:13px; font-weight:700; color:#99f6e4 !important; background:rgba(20,184,166,.12); border:1px solid rgba(94,234,212,.35); cursor:pointer; }
.ik-elite .ik-edit-btn:hover { background:rgba(20,184,166,.22); }

/* Inline block time pickers (Daily Routine planning boxes) — only ~28px wide,
   no room for the global chevron/36px padding, which was hiding the value entirely */
select[class*="box-start-"], select[class*="box-end-"],
body.day-mode select[class*="box-start-"], body.day-mode select[class*="box-end-"] {
  background-image: none !important;
  background-color: transparent !important;
  padding: 4px 2px !important;
  text-align: center;
  text-align-last: center;
}
/* Keep the values readable on the light container in Day mode */
body.day-mode select[class*="box-start-"] { color: #0e7490 !important; }
body.day-mode select[class*="box-end-"]   { color: #4338ca !important; }
body.day-mode select[class*="box-start-"] option,
body.day-mode select[class*="box-end-"]   option { color: #1a1a00 !important; }
