/* ==========================================================================
   LIFE WORKBOOK - UNIFIED DESIGN SYSTEM & STYLESHEET (style.css)
   ========================================================================== */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* LIGHT MODE (IVORY & MAROON & GOLD) */
  --bg-color: #faf7f2;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-color: rgba(197, 160, 89, 0.25);
  --border-card: rgba(197, 160, 89, 0.15);
  
  --text-main: #2a050a;
  --text-muted: rgba(42, 5, 10, 0.6);
  --text-inverse: #faf7f2;
  
  --color-primary: #8a2b37;       /* Deep Maroon */
  --color-primary-rgb: 138, 43, 55;
  --color-secondary: #e28c98;     /* Lotus Pink */
  --color-gold: #c5a059;          /* Antique Gold */
  --color-gold-bright: #d4af37;   /* Bright Gold */
  --color-emerald: #10b981;       /* Auspicious Green */
  --color-amber: #f59e0b;         /* Sunrise Orange */
  
  --shadow-premium: 0 10px 30px -4px rgba(88, 17, 26, 0.05), 0 4px 12px -2px rgba(197, 160, 89, 0.1);
  --shadow-glow: 0 0 20px rgba(197, 160, 89, 0.2);
  --glass-blur: blur(15px);
  
  /* Fonts */
  --font-sacred: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-body: 'Outfit', 'Inter', system-ui, sans-serif;
  
  /* Text Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

/* DARK MODE SWAPS */
body.dark {
  --bg-color: #120e0f;
  --bg-card: #1c1617;
  --bg-glass: rgba(28, 22, 23, 0.8);
  --border-color: rgba(212, 175, 55, 0.2);
  --border-card: rgba(88, 17, 26, 0.4);
  
  --text-main: #faf7f2;
  --text-muted: rgba(250, 247, 242, 0.6);
  --text-inverse: #2a050a;
  
  --color-primary: #d4af37;       /* Gold dominates dark mode */
  --color-primary-rgb: 212, 175, 55;
  --color-secondary: #e28c98;     /* Lotus Pink */
  --color-gold: #c5a059;          /* Antique Gold */
  --color-gold-bright: #d4af37;
  
  --shadow-premium: 0 10px 30px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(88, 17, 26, 0.3);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);
}

/* FONT SIZE SCALING */
body.font-size-large {
  --text-xs: 0.85rem;
  --text-sm: 1rem;
  --text-base: 1.15rem;
  --text-lg: 1.3rem;
  --text-xl: 1.45rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.15rem;
  --text-4xl: 2.6rem;
  --text-5xl: 3.5rem;
}

body.font-size-xlarge {
  --text-xs: 1rem;
  --text-sm: 1.15rem;
  --text-base: 1.35rem;
  --text-lg: 1.55rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.1rem;
  --text-3xl: 2.55rem;
  --text-4xl: 3.1rem;
  --text-5xl: 4.2rem;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

body.dark {
  background-image: radial-gradient(circle at 50% 50%, #1e1316 0%, #120e0f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(197, 160, 89, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

body.dark::before {
  background-image: radial-gradient(rgba(197, 160, 89, 0.03) 1px, transparent 0);
}

/* Cosmic Background Stars */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.5s;
}

body.dark .cosmic-bg {
  opacity: 0.85;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 5s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* ==========================================================================
   TOP PERSISTENT FOCUS BAR
   ========================================================================== */
.focus-timer-bar {
  background: linear-gradient(90deg, #58111a 0%, #8a2b37 50%, #58111a 100%);
  color: #faf7f2;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-gold);
}

body.dark .focus-timer-bar {
  background: linear-gradient(90deg, #150f10 0%, #201315 50%, #150f10 100%);
  border-bottom: 2px solid var(--color-gold-bright);
}

.focus-content-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.focus-tag {
  background: var(--color-gold-bright);
  color: #120e0f;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
}

.focus-countdown {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-gold-bright);
}

.focus-msg {
  font-style: italic;
  opacity: 0.85;
}

.focus-actions {
  display: flex;
  gap: 10px;
}

.btn-focus-stop {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-focus-stop:hover {
  background: rgba(255,255,255,0.25);
}

/* ==========================================================================
   NAVIGATION TOPBAR & BRAND
   ========================================================================== */
.topbar {
  position: sticky;
  top: 36px; /* below focus timer bar */
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4%;
  box-shadow: var(--shadow-premium);
}

.brand {
  font-family: var(--font-sacred);
  font-weight: 800;
  color: var(--color-primary);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.brand span {
  color: var(--color-gold-bright);
}

.topbar nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar nav a {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.topbar nav a:hover,
.topbar nav a.active {
  background: rgba(var(--color-primary-rgb), 0.06);
  border-color: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary);
}

/* Topbar settings */
.nav-pref-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--border-color);
  padding-left: 10px;
  margin-left: 5px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-icon:hover {
  background: rgba(var(--color-primary-rgb), 0.15);
  transform: scale(1.05);
}

.font-size-adjuster {
  display: flex;
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2px;
  gap: 2px;
}

.font-btn {
  border: 0;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: bold;
  border-radius: 8px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.font-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ==========================================================================
   LAYOUT CONTAINERS & CARDS
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: 80vh;
}

.hero {
  padding: 40px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #58111a 0%, #8a2b37 100%);
  color: #faf7f2;
  margin-bottom: 24px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

body.dark .hero {
  background: linear-gradient(135deg, #1c1617 0%, #201315 100%);
  border-color: rgba(255,255,255,0.08);
}

.hero h1 {
  font-family: var(--font-sacred);
  font-size: 36px;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.hero p {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.glass-panel,
.card {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-premium);
  transition: all 0.3s;
}

.glass-panel:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--color-primary-rgb), 0.35);
  box-shadow: 0 12px 30px rgba(var(--color-primary-rgb), 0.08);
}

.card h2, .card h3 {
  font-family: var(--font-sacred);
  color: var(--color-primary);
  margin-bottom: 12px;
}

body.dark .card h2, body.dark .card h3 {
  color: var(--color-gold-bright);
}

.stat {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-sacred);
}

body.dark .stat {
  color: var(--color-gold-bright);
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--text-inverse);
  border: 0;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.35);
  background: #a43c49;
}

body.dark .btn {
  background: var(--color-gold-bright);
  color: #120e0f;
  box-shadow: 0 4px 12px rgba(212,175,55,0.25);
}

body.dark .btn:hover {
  background: #e6c55c;
  box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

.btn.secondary {
  background: var(--color-gold-bright);
  color: #120e0f;
}

.btn.light {
  background: rgba(var(--color-primary-rgb), 0.05);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  box-shadow: none;
}

.btn.light:hover {
  background: rgba(var(--color-primary-rgb), 0.12);
  color: var(--color-primary);
}

body.dark .btn.light {
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  border-color: rgba(255,255,255,0.12);
}

/* ==========================================================================
   PRODUCTIVITY TABS & GOALS
   ========================================================================== */
.prod-tabs {
  display: flex;
  background: rgba(var(--color-primary-rgb), 0.05);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.prod-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
}

.prod-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

body.dark .prod-tab.active {
  background: rgba(255,255,255,0.1);
}

.goals-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.goal-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.goal-timeframe-header {
  font-family: var(--font-sacred);
  font-size: 12px;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 800;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
  margin-bottom: 10px;
}

/* ==========================================================================
   NESTED HIERARCHICAL TASK TREE
   ========================================================================== */
.task-tree {
  margin-top: 15px;
}

.task-node {
  border-left: 2px solid var(--border-color);
  padding-left: 15px;
  margin: 10px 0;
  transition: all 0.3s;
}

.task-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}

.task-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-node-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.task-title {
  font-weight: 600;
  font-size: 14px;
}

.task-title.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

.task-due-chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

body.dark .task-due-chip {
  background: rgba(255,255,255,0.08);
  color: var(--color-gold-bright);
}

.task-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.priority-high { background-color: var(--color-primary); }
.priority-medium { background-color: var(--color-amber); }
.priority-low { background-color: var(--color-emerald); }

.subtasks-container {
  padding-left: 20px;
}

.btn-start-focus {
  background: var(--color-emerald);
  color: white;
  border: 0;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-start-focus:hover {
  background: #0ea5e9;
}

/* ==========================================================================
   CRM KANBAN BOARD SYSTEM
   ========================================================================== */
.kanban-board {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
  min-height: 550px;
  align-items: flex-start;
}

.kanban-column {
  flex: 0 0 290px;
  background: rgba(var(--color-primary-rgb), 0.02);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sacred);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 5px;
}

body.dark .kanban-column-header {
  color: var(--color-gold-bright);
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s;
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.customer-name {
  font-weight: 700;
  font-size: 14px;
}

.crm-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #25d366;
  color: white !important;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
}

.whatsapp-link:hover {
  background: #20ba5a;
  transform: scale(1.03);
}

.crm-status-inquiry   { border-left: 3px solid #3b82f6; }
.crm-status-quoted    { border-left: 3px solid #f59e0b; }
.crm-status-follow_up { border-left: 3px solid #8b5cf6; }
.crm-status-servicing { border-left: 3px solid var(--color-gold); }
.crm-status-released  { border-left: 3px solid #10b981; }
.crm-status-cancelled { border-left: 3px solid #ef4444; }

/* ==========================================================================
   TIMERS, SPANS & GRAPHICS
   ========================================================================== */
.breathing-visualizer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  position: relative;
}

.breathing-bubble {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-secondary) 0%, var(--color-primary) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  box-shadow: var(--shadow-glow);
  transition: transform 1s ease-in-out, background 1s;
  color: white;
  z-index: 10;
}

.timer {
  font-size: 64px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;
  margin: 20px 0;
  color: var(--color-primary);
  font-family: var(--font-sacred);
}

body.dark .timer {
  color: var(--color-gold-bright);
}

.timer-controls {
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.progressbar {
  height: 12px;
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progressbar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  transition: width 0.4s;
}

body.dark .progressbar > div {
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
}

/* Sky gradient timeline widget */
.sky-timeline {
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #020205 0%, #150d22 30%, #301b52 50%, #d97706 80%, #fbbf24 100%);
  position: relative;
  margin: 20px 0;
}

.sky-marker {
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transform: translateX(-50%);
}

.sky-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: bold;
  color: var(--text-muted);
}

/* Forms & inputs */
.form {
  max-width: 580px;
  margin: 20px auto;
}

.form label {
  display: block;
  margin: 14px 0 5px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: all 0.3s;
}

.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form textarea {
  min-height: 120px;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.mood-btn {
  background: rgba(var(--color-primary-rgb), 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 12px;
}

.mood-btn:hover,
.mood-btn.active {
  background: rgba(var(--color-primary-rgb), 0.08);
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.flash {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-emerald);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 13px;
}

.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border-color);
}

.quote {
  font-size: 16px;
  line-height: 1.6;
  border-left: 4px solid var(--color-gold);
  padding: 12px 20px;
  background: rgba(var(--color-primary-rgb), 0.02);
  border-radius: 0 12px 12px 0;
}

.center { text-align: center; }
.danger { color: #f43f5e; }
.small { font-size: 11px; }

/* ==========================================================================
   SPINNING 3D WEBGL MANDALA CANVAS
   ========================================================================== */
#mandala3dCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  border-radius: 50%;
}

/* ==========================================================================
   FLOATING AMBIENT SOUNDSCAPE MIXER
   ========================================================================== */
.soundscape-mixer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 210px;
  transition: all 0.3s;
}

.soundscape-title {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-gold);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.sound-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.sound-row input[type="range"] {
  width: 90px;
  accent-color: var(--color-primary);
}

/* ==========================================================================
   GITHUB STYLE CONSISTENCY HEATMAP
   ========================================================================== */
.heatmap-scroll-container {
  overflow-x: auto;
  padding: 10px 0;
  width: 100%;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 10px);
  grid-auto-flow: column;
  grid-auto-columns: 10px;
  gap: 3px;
  min-width: 700px;
}

.heatmap-day {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: rgba(var(--color-primary-rgb), 0.05);
  cursor: pointer;
  position: relative;
}

.heatmap-day.level-1 { background-color: rgba(197, 160, 89, 0.3); }
.heatmap-day.level-2 { background-color: rgba(197, 160, 89, 0.5); }
.heatmap-day.level-3 { background-color: rgba(197, 160, 89, 0.7); }
.heatmap-day.level-4 { background-color: var(--color-gold-bright); }

/* ==========================================================================
   9-POINT MASTER PROJECT BOARD
   ========================================================================== */
.project-planning-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.planning-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planning-box-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.dark .planning-box-title {
  color: var(--color-gold-bright);
}

.planning-box textarea {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 80px;
  font-size: 13px;
  resize: vertical;
  color: var(--text-main);
  padding: 0;
}

.planning-box textarea:focus {
  box-shadow: none;
  border: 0;
}

.project-workflow-tracker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 15px 0;
  margin: 10px 0;
}

.workflow-node {
  flex: 0 0 110px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(var(--color-primary-rgb), 0.03);
  border: 1px solid var(--border-color);
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.workflow-node.active {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

body.dark .workflow-node.active {
  background: var(--color-gold-bright);
  color: #120e0f;
  border-color: var(--color-gold-bright);
}

/* ==========================================================================
   LIVE CHAT & PRESENCE WIDGETS
   ========================================================================== */
.live-workspace {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media(max-width:800px) {
  .live-workspace {
    grid-template-columns: 1fr;
  }
}

.live-chat-area {
  display: flex;
  flex-direction: column;
  height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
}

.live-chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-bubble.incoming {
  background: rgba(var(--color-primary-rgb), 0.05);
  align-self: flex-start;
}

.chat-bubble.outgoing {
  background: var(--color-primary);
  color: var(--text-inverse);
  align-self: flex-end;
}

body.dark .chat-bubble.outgoing {
  background: var(--color-gold-bright);
  color: #120e0f;
}

.live-chat-input-bar {
  display: flex;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.live-chat-input-bar input {
  flex: 1;
  border: 0;
  padding: 15px;
  background: transparent;
  font-size: 13px;
  color: var(--text-main);
}

.live-chat-input-bar input:focus {
  outline: none;
  box-shadow: none;
}

.live-members-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS (HARI OM BLISS)
   ========================================================================== */
.toast-notification {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 250;
  background: linear-gradient(135deg, #ffe082 0%, var(--color-gold) 100%);
  color: #2a050a;
  padding: 15px 25px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in-out 5s forwards;
  border: 1px solid var(--color-gold-bright);
}

@keyframes slide-in-out {
  0% { transform: translateX(120%); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* ==========================================================================
   SANKALPA AND GAUGES
   ========================================================================== */
.sankalpa-banner {
  background: rgba(197, 160, 89, 0.05);
  border: 2px solid var(--color-gold);
  border-radius: 18px;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}

.sankalpa-title {
  font-family: var(--font-sacred);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 5px;
}

body.dark .sankalpa-title {
  color: var(--color-gold-bright);
}

.balance-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0;
}

.balance-track {
  width: 100%;
  height: 20px;
  background: #2dd4bf; /* Action (Teal) */
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.balance-fill {
  height: 100%;
  background: #db2777; /* Contemplation (Lotus pink/maroon) */
  transition: width 0.5s ease-in-out;
}

.balance-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
  font-weight: bold;
  margin-top: 4px;
}
