:root {
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-dark: #3730A3;
  --secondary: #7C3AED;
  --teal: #14B8A6;
  --cyan: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --pink: #EC4899;
  --info: #3B82F6;

  /* Light Theme */
  --bg-page: #F8FAFC;
  --bg-device: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-sub: #F1F5F9;
  --border-color: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --nav-bg: #FFFFFF;
  --ring-track: #E2E8F0;
}

body.dark-mode {
  --bg-page: #030712;
  --bg-device: #0B0F19;
  --bg-card: #111827;
  --bg-card-sub: #1F2937;
  --border-color: #374151;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --nav-bg: #111827;
  --ring-track: #1F2937;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ====================================================
   ATTRACTIVE MULTICOLOUR BRAND & LOGO STYLING
   ==================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.brand-text-block,
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name,
.mobile-brand-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.2px;
  background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 22%, #EC4899 48%, #F59E0B 75%, #06B6D4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandMulticolorShift 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.18));
  display: inline-block;
}

.mobile-brand-title {
  font-size: 14.5px;
}

@keyframes brandMulticolorShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.brand-sub,
.mobile-brand-sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.35px;
  background: linear-gradient(90deg, #06B6D4 0%, #3B82F6 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mobile-brand-sub {
  font-size: 9.5px;
}

/* Attractive Multicolour Glowing Logo */
.brand-logo,
.mobile-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 35%, #EC4899 70%, #06B6D4 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35), 0 2px 8px rgba(79, 70, 229, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}

.mobile-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 17px;
}

.brand:hover .brand-logo,
.mobile-header-brand:hover .mobile-logo {
  transform: rotate(18deg) scale(1.08);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5), 0 3px 10px rgba(6, 182, 212, 0.35);
}

/* Dark Mode Brand Enhancements */
body.dark-mode .brand-name,
body.dark-mode .mobile-brand-title {
  background: linear-gradient(90deg, #818CF8 0%, #C084FC 22%, #F472B6 48%, #FBBF24 75%, #22D3EE 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(192, 132, 252, 0.35));
}

body.dark-mode .brand-sub,
body.dark-mode .mobile-brand-sub {
  background: linear-gradient(90deg, #38BDF8 0%, #60A5FA 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Profile & Language Settings Enhanced Styles */
.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-sub);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.lang-card:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.lang-card.selected {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.16);
}

.lang-card.active-lang {
  border-left: 4px solid #10B981;
}

.lang-save-btn {
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.lang-save-btn:active {
  transform: translateY(0);
}

/* ====================================================
   LIFE OS METRICS KPI GRID
   ==================================================== */
.metric-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.kpi-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.kpi-val {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ====================================================
   HABIT TRACKER CARD & STREAK DOTS
   ==================================================== */
.habit-item-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.habit-item-card.completed-today {
  border-color: rgba(20, 184, 166, 0.4);
  background: rgba(20, 184, 166, 0.04);
}

.habit-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.habit-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  font-size: 11px;
  font-weight: 800;
}

.habit-dots-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

.habit-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.habit-day-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.habit-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--bg-card-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: transparent;
}

.habit-dot.active {
  background: var(--teal);
  color: white;
}

.habit-dot.today {
  border: 1.5px solid var(--primary);
}

/* ====================================================
   HABITS ANALYTICS INTERVAL NAV & CHARTS
   ==================================================== */
.habit-interval-nav {
  display: flex;
  background: var(--bg-card-sub);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  gap: 4px;
}

.habit-interval-btn {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.habit-interval-btn:hover {
  color: var(--text-primary);
  background: rgba(79, 70, 229, 0.06);
}

.habit-interval-btn.active {
  background: linear-gradient(135deg, var(--primary), #6366F1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.chart-card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.history-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.history-card-item:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.history-undo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-undo-btn:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626;
}

/* ====================================================
   TASK NUMBERING BADGE
   ==================================================== */
.task-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ====================================================
   EDIT TASK MODAL DIALOG
   ==================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
  animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ====================================================
   TOP MOBILE PUSH NOTIFICATION POP-UP
   ==================================================== */
.mobile-push-banner {
  position: fixed;
  top: -180px;
  left: 12px;
  right: 12px;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(14px);
  color: white;
  border-radius: 20px;
  padding: 14px 16px 10px 16px;
  box-shadow: 0 16px 35px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: top 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.mobile-push-banner.active, .mobile-push-banner.visible {
  top: 12px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.push-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.push-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.push-content {
  flex: 1;
  min-width: 0;
}

.push-app-title {
  font-size: 11px;
  font-weight: 800;
  color: #A5B4FC;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.push-task-title {
  font-size: 13.5px;
  font-weight: 700;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.push-task-time {
  font-size: 11.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.push-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 100000;
}

.push-countdown-badge {
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 8px;
}

.push-close-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #FFFFFF;
  font-size: 15px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  pointer-events: auto !important;
  position: relative;
  z-index: 100001;
}

.push-close-btn:hover {
  background: rgba(239,68,68,0.7);
  color: #FFFFFF;
  border-color: #EF4444;
  transform: scale(1.12);
}

.push-close-btn:active {
  transform: scale(0.92);
}

.push-close-btn i {
  pointer-events: none;
}

.push-progress-track {
  width: 100%;
  height: 3.5px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}

.push-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05);
  border-radius: 3px;
  transition: width 1s linear;
}

/* ====================================================
   GOOGLE-STYLE 4-COLOR MICROPHONE
   ==================================================== */
.google-mic-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.google-mic-btn:active {
  transform: scale(0.92);
}

.google-mic-icon {
  font-size: 22px;
  background: linear-gradient(135deg, #4285F4 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====================================================
   FREQUENCY FILTER CHIPS & TABS
   ==================================================== */
.freq-chip-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px 0;
  scrollbar-width: none;
}

.freq-chip-group::-webkit-scrollbar {
  display: none;
}

.freq-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.freq-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 700;
}

.task-tab-container {
  display: flex;
  background: var(--bg-card-sub);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.task-tab-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.task-tab-btn.active {
  background: var(--primary);
  color: white;
}

/* ====================================================
   MOBILE HEADER & BOTTOM NAV
   ==================================================== */
.mobile-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 14px;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 50;
}

.mobile-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: var(--bg-card-sub);
  color: var(--text-primary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-pro-pill {
  display: none; /* Hide on mobile to keep header clean and prevent right-edge clipping */
  padding: 4px 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border: 1px solid #F59E0B;
  font-size: 10.5px;
  font-weight: 800;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  height: 64px;
  background-color: var(--nav-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 4px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s;
  flex: 1;
}

.nav-item i {
  font-size: 18px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-fab-item {
  position: relative;
  top: -12px;
}

.nav-fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #EA4335);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(234, 67, 53, 0.35);
}

/* ====================================================
   VOICE MIC PULSE & WAVEFORM ANIMATIONS
   ==================================================== */
.mic-pulse-ring {
  position: relative;
  display: inline-block;
}

.mic-pulse-ring.active::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.35);
  animation: pulseAnimation 1.4s infinite ease-out;
  z-index: 0;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.waveform-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin: 8px 0;
}

.waveform-bar {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 4px;
  transition: height 0.15s ease;
}

.waveform-bar-container.active .waveform-bar {
  background-color: var(--danger);
  animation: waveAnimation 0.8s infinite ease-in-out alternate;
}

.waveform-bar-container.active .waveform-bar:nth-child(1) { animation-delay: 0.1s; height: 18px; }
.waveform-bar-container.active .waveform-bar:nth-child(2) { animation-delay: 0.3s; height: 26px; }
.waveform-bar-container.active .waveform-bar:nth-child(3) { animation-delay: 0.5s; height: 14px; }
.waveform-bar-container.active .waveform-bar:nth-child(4) { animation-delay: 0.2s; height: 24px; }
.waveform-bar-container.active .waveform-bar:nth-child(5) { animation-delay: 0.4s; height: 16px; }

@keyframes waveAnimation {
  0% { height: 6px; }
  100% { height: 26px; }
}

/* ====================================================
   SLIDE-OUT DRAWER MENU
   ==================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.app-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300px;
  max-width: 82vw;
  background-color: var(--bg-card);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
}

.app-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.desktop-top-bar {
  display: none;
}

.desktop-sidebar {
  display: none;
}

/* ====================================================
   VIEWPORT & CONTENT LAYOUT
   ==================================================== */
.app-layout {
  display: flex;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

.main-stage {
  flex: 1;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
}

.device-frame {
  width: 100%;
  max-width: 100%;
  height: 100%;
  background-color: var(--bg-device);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.device-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 72px 16px 84px 16px;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
}

.device-viewport::-webkit-scrollbar {
  display: none;
}

/* ====================================================
   CARD STYLES & COMPONENTS
   ==================================================== */
.ui-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ui-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 3px;
}

.ui-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.ui-section-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.sidebar-section-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 10px 12px 4px 12px;
}

.side-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.side-nav-btn i {
  font-size: 15px;
  width: 18px;
}

.side-nav-btn:hover, .side-nav-btn:active {
  background-color: var(--bg-card-sub);
  color: var(--primary);
}

.side-nav-btn.active {
  background-color: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-sub);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  background-color: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  background-color: var(--bg-card-sub);
  color: var(--text-primary);
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.gauge-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 130px;
  height: 130px;
}

.gauge-track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: 11;
}

.gauge-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 105;
  transition: stroke-dashoffset 0.6s ease;
}

.gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 30px;
}

.task-item, .habit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.check-circle.done {
  background-color: var(--teal);
  border-color: var(--teal);
  color: white;
}

.task-title.done {
  text-decoration: line-through;
  color: var(--text-muted);
}

@media (min-width: 769px) {
  .mobile-app-header { display: none; }
  .mobile-bottom-nav { display: none; }
  .desktop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    z-index: 100;
  }
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 16px 12px;
    gap: 4px;
    overflow-y: auto;
    height: calc(100vh - 60px);
  }
  .main-stage {
    padding: 0;
    display: flex;
    flex: 1;
    height: calc(100vh - 60px);
    overflow: hidden;
    background-color: var(--bg-page);
    justify-content: stretch;
    align-items: stretch;
  }
  .device-frame {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background-color: var(--bg-page);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.25s ease;
  }
  .device-viewport {
    padding: 24px 36px 60px 36px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
  }

  /* Optional Phone Simulator toggle for testing */
  .device-frame.phone-preview-mode {
    max-width: 440px;
    height: 90vh;
    margin: auto;
    border-radius: 36px;
    border: 8px solid #1E293B;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    background-color: var(--bg-device);
  }
  .device-frame.phone-preview-mode .device-viewport {
    padding: 20px 16px 80px 16px;
    max-width: 100%;
  }

  .metric-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

/* Responsive Dashboard Multi-Column Layout */
.dashboard-workspace-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-col-tasks,
.dashboard-col-insights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .dashboard-workspace-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 22px;
    align-items: start;
  }
}

/* ====================================================
   🌙 SLEEP & FOCUS SCHEDULE & CHART STYLING
   ==================================================== */
.sleep-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.sleep-schedule-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

body.dark-mode .sleep-schedule-card {
  background: linear-gradient(180deg, #111827 0%, #0F172A 100%);
  border-color: #374151;
}

.sleep-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.sleep-time-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sleep-time-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sleep-time-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sleep-time-input {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 6px;
  outline: none;
}

.sleep-time-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}

.sleep-stepper-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sleep-stepper-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sleep-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 4px;
}

.sleep-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px dashed var(--border-color);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* SLEEP & FOCUS CHART */
.sleep-chart-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-tabs {
  display: flex;
  background: var(--bg-card-sub);
  border-radius: 12px;
  padding: 3px;
  border: 1px solid var(--border-color);
}

.chart-tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.sleep-svg-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-bar-hover {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chart-bar-hover:hover {
  opacity: 0.85;
}

.day-inspector-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CIRCADIAN FOCUS SLOTS */
.circadian-slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.circadian-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.15s ease;
}

.circadian-slot-item:hover {
  transform: translateX(3px);
}

/* SLEEP STAGES MULTI-PROGRESS BAR */
.sleep-stages-bar {
  display: flex;
  height: 12px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0 8px 0;
  background: var(--border-color);
}

.stage-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.stage-deep { background: #4F46E5; }
.stage-rem { background: #8B5CF6; }
.stage-light { background: #06B6D4; }
.stage-awake { background: #F59E0B; }

.stage-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.stage-legend-item {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

/* APP TOAST NOTIFICATION */
.dayora-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #0F172A;
  color: #F8FAFC;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.15);
}

.dayora-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ====================================================
   ⏳ SCREEN & FOCUS LOCK STYLING
   ==================================================== */
.screen-lock-hero {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(79,70,229,0.06));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.screen-time-ring-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px 20px;
  margin: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.screen-time-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-time-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.screen-time-svg circle {
  fill: none;
  stroke-width: 14;
}

.screen-time-track {
  stroke: var(--ring-track);
}

.screen-time-progress {
  stroke: url(#screenGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.screen-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen-ring-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.screen-ring-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.screen-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.screen-stat-box {
  background: var(--bg-card-sub);
  padding: 10px 8px;
  border-radius: 12px;
  text-align: center;
}

.screen-stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.screen-stat-lbl {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* APP BREAKDOWN LIST */
.app-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 0 20px 16px 20px;
}

.app-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.15s ease;
}

.app-row-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.app-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.app-brand-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.app-brand-icon.tiktok {
  background: #000000;
  color: #00F2FE;
  text-shadow: 2px 2px 0px #FE0979;
}

.app-brand-icon.youtube {
  background: #FF0000;
}

.app-brand-icon.facebook {
  background: #1877F2;
}

.app-brand-icon.others {
  background: #475569;
}

.app-info-col {
  flex: 1;
  min-width: 0;
}

.app-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.app-name-text {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
}

.app-time-text {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
}

.app-micro-bar {
  height: 6px;
  width: 100%;
  background: var(--bg-card-sub);
  border-radius: 10px;
  overflow: hidden;
}

.app-micro-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

.app-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.app-status-badge.active {
  background: rgba(16,185,129,0.12);
  color: #10B981;
}

.app-status-badge.locked {
  background: rgba(239,68,68,0.12);
  color: #EF4444;
}

/* SLEEP SYNC & EMERGENCY OVERRIDE CARDS */
.sleep-sync-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 0 20px 16px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.sync-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sync-schedule-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(79,70,229,0.06);
  border: 1px dashed rgba(79,70,229,0.25);
  border-radius: 14px;
  margin-bottom: 12px;
}

.emergency-override-card {
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 20px;
  padding: 16px 20px;
  margin: 0 20px 24px 20px;
  background: linear-gradient(135deg, rgba(239,68,68,0.04), rgba(245,158,11,0.04));
}

.emergency-override-card.active-bypass {
  border-color: #EF4444;
  box-shadow: 0 0 15px rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.08);
}

.btn-emergency {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.btn-emergency:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239,68,68,0.4);
}

/* ====================================================
   👨‍👩‍👧‍👦 PARENTAL CONTROL HUB & FAMILY HIERARCHY STYLING
   ==================================================== */
.parental-hero {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(6,182,212,0.08));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.family-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 16px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.group-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.group-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

/* VISUAL FAMILY TREE LAYOUT */
.family-tree-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  margin: 0 20px 16px 20px;
  position: relative;
}

.tree-admin-node {
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(124,58,237,0.05));
  border: 1.5px solid var(--primary);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(79,70,229,0.08);
}

.tree-connector-stem {
  width: 2px;
  height: 24px;
  background: var(--border-color);
  margin: 0 auto;
  position: relative;
}

.tree-connector-bar {
  height: 2px;
  background: var(--border-color);
  width: 65%;
  margin: 0 auto;
  position: relative;
}

.tree-children-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  position: relative;
}

.child-sub-card {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.child-sub-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.child-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.child-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.child-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

body.dark-mode .child-avatar {
  background: #1E293B;
}

.child-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.child-meta-box {
  font-size: 11px;
}

.child-meta-lbl {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.child-meta-val {
  font-weight: 700;
  color: var(--text-primary);
}

/* BROWSER PILL TOGGLES */
.browser-pill-toggle {
  position: relative;
  cursor: pointer;
  display: block;
}

.browser-pill-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.browser-pill-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card-sub);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.browser-pill-toggle input:checked + .browser-pill-content {
  background: rgba(239,68,68,0.1);
  border-color: #EF4444;
  color: #DC2626;
}

/* UNLOCK REQUESTS SECTION */
.unlock-requests-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 0 20px 24px 20px;
}

.unlock-request-item {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  position: relative;
}

.unlock-reason-bubble {
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 8px 0;
  line-height: 1.4;
}

.action-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-approve {
  flex: 1;
  background: #10B981;
  color: white;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.btn-approve:hover {
  background: #059669;
}

.btn-decline {
  flex: 0.8;
  background: transparent;
  color: #EF4444;
  border: 1px solid rgba(239,68,68,0.3);
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-decline:hover {
  background: rgba(239,68,68,0.08);
}

/* ====================================================
   🎙️ GOOGLE VOICE ASSISTANT STYLING
   ==================================================== */
.google-assistant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* Google 4-Color Gradient Top Accent Bar */
.google-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4285F4 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%);
}

/* Google 4-Color Animated Dots */
.google-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 38px;
  margin: 12px 0 16px 0;
}

.google-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.google-dot.blue { background-color: #4285F4; box-shadow: 0 0 10px rgba(66, 133, 244, 0.4); }
.google-dot.red { background-color: #EA4335; box-shadow: 0 0 10px rgba(234, 67, 53, 0.4); }
.google-dot.yellow { background-color: #FBBC05; box-shadow: 0 0 10px rgba(251, 188, 5, 0.4); }
.google-dot.green { background-color: #34A853; box-shadow: 0 0 10px rgba(52, 168, 83, 0.4); }

.google-dots-container.active .google-dot {
  animation: googleDotWave 1.1s infinite ease-in-out;
}

.google-dots-container.active .google-dot:nth-child(1) { animation-delay: 0s; }
.google-dots-container.active .google-dot:nth-child(2) { animation-delay: 0.15s; }
.google-dots-container.active .google-dot:nth-child(3) { animation-delay: 0.3s; }
.google-dots-container.active .google-dot:nth-child(4) { animation-delay: 0.45s; }

@keyframes googleDotWave {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-16px) scale(1.2);
  }
}

/* Google Voice Mic Button with Aura */
.google-voice-btn-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-voice-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

body.dark-mode .google-voice-btn {
  background: #1E293B;
  border-color: #334155;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.google-voice-btn:hover {
  transform: scale(1.05);
}

.google-voice-btn:active {
  transform: scale(0.95);
}

.google-voice-btn.listening {
  background: #EA4335;
  border-color: #EA4335;
}

.google-voice-btn.listening .google-mic-icon {
  color: white;
  -webkit-text-fill-color: white;
}

.google-voice-aura {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.google-voice-aura.active {
  animation: googleAuraPulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes googleAuraPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.5), 0 0 0 0 rgba(234, 67, 53, 0.4);
    opacity: 1;
  }
  60% {
    box-shadow: 0 0 0 20px rgba(66, 133, 244, 0), 0 0 0 35px rgba(52, 168, 83, 0);
    opacity: 0.3;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0), 0 0 0 0 rgba(52, 168, 83, 0);
    opacity: 0;
  }
}

/* Google Assistant Speech Box */
.google-speech-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.google-speech-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.google-speech-text.empty {
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
  font-size: 13.5px;
}

/* Google Assistant Task Created Card */
.google-task-result-card {
  background: var(--bg-card);
  border: 1.5px solid #10B981;
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
  animation: slideUpFade 0.35s ease;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.google-task-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.google-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.google-task-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.google-task-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Google Quick Suggestion Chips */
.google-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px 0;
  scrollbar-width: none;
}

.google-chips-scroll::-webkit-scrollbar {
  display: none;
}

.google-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.google-chip:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ====================================================
   🧠 CONTEXTUAL AI VOICE ASSISTANT STYLING
   ==================================================== */
.ai-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(168, 85, 247, 0.12));
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.25);
}

.ai-context-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(59, 130, 246, 0.04));
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 12px;
  animation: slideUpFade 0.35s ease;
}

.ai-context-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-brain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ai-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.ai-tag-pill.category {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.25);
}

.ai-tag-pill.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border-color: rgba(239, 68, 68, 0.25);
}

.ai-tag-pill.priority-normal {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.ai-response-bubble {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-left: 3px solid var(--primary);
  line-height: 1.4;
}

.gemini-config-box {
  background: var(--bg-card-sub);
  border: 1px dashed var(--border-color);
  border-radius: 14px;
  padding: 12px;
  margin-top: 14px;
}

/* ⚙️ CUSTOMIZE SCHEDULE FREQUENCY & DAY SELECTION */
.freq-radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.2s ease;
  user-select: none;
}
.freq-radio-card:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.03);
}
.freq-radio-card input[type="radio"]:checked + span,
.freq-radio-card.active {
  color: var(--primary);
  font-weight: 700;
}

/* Quick Day Presets */
.day-preset-btn {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.day-preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-1px);
}
.day-preset-btn.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(99, 102, 241, 0.08));
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
}

/* Day Toggle Chips (Mon-Sun) */
.custom-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 2px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.custom-day-btn .day-code {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  transition: color 0.15s ease;
}
.custom-day-btn .day-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color 0.15s ease;
}
.custom-day-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.custom-day-btn.selected {
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  border-color: #4F46E5;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}
.custom-day-btn.selected .day-code {
  color: #ffffff;
}
.custom-day-btn.selected .day-name {
  color: rgba(255, 255, 255, 0.85);
}

/* ====================================================
   VITALITY CENTER - MODERN METABOLIC & PHYSIOLOGY OS
   ==================================================== */
.vitality-hero-header {
  text-align: center;
  margin-bottom: 18px;
  padding: 6px 0 2px;
}

.vitality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.12);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.35);
  margin-bottom: 8px;
}

.vitality-badge i {
  color: #06B6D4;
}

.vitality-main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  background: linear-gradient(135deg, #06B6D4 0%, #10B981 50%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.vitality-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 5px;
}

.vitality-tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.vitality-tabs-row::-webkit-scrollbar {
  display: none;
}

.vitality-tab-btn {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vitality-tab-btn:hover {
  border-color: #06B6D4;
  color: var(--text-primary);
}

.vitality-tab-btn.active {
  background: linear-gradient(135deg, #06B6D4, #10B981);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(6, 182, 212, 0.35);
}

.vitality-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.vitality-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.vitality-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.vitality-card-title {
  font-size: 14.5px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.vitality-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--bg-card-sub);
  color: var(--text-muted);
}

.vitality-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.vitality-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vitality-input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vitality-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-sub);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.vitality-select:focus {
  border-color: #06B6D4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.vitality-save-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #06B6D4, #10B981);
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.vitality-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
}

.vitality-save-btn:active {
  transform: translateY(0);
}

.vitality-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.vitality-ribbon-tile {
  background: var(--bg-card-sub);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.vitality-ribbon-tile .label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.vitality-ribbon-tile .value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.vitality-ribbon-tile .sub {
  font-size: 9.5px;
  color: #10B981;
  font-weight: 600;
  margin-top: 1px;
}

/* Hydration Circle & Quick Buttons */
.hydration-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 6px;
}

.hydration-ring-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 12px;
}

.hydration-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hydration-ring-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hydration-current-val {
  font-size: 26px;
  font-weight: 800;
  color: #06B6D4;
  line-height: 1;
}

.hydration-target-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 3px;
}

.hydration-quick-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hydration-btn {
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-sub);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.hydration-btn:hover {
  border-color: #06B6D4;
  color: #06B6D4;
  transform: translateY(-1px);
}

/* AI Meal Scanner Styles */
.meal-scanner-dropzone {
  border: 2px dashed rgba(6, 182, 212, 0.45);
  border-radius: 18px;
  padding: 24px 16px;
  text-align: center;
  background: rgba(6, 182, 212, 0.03);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meal-scanner-dropzone:hover {
  border-color: #06B6D4;
  background: rgba(6, 182, 212, 0.06);
}

.meal-scanner-dropzone.scanning .scanner-laser {
  display: block;
}

.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #06B6D4, #10B981, transparent);
  box-shadow: 0 0 14px #06B6D4;
  animation: scanLaser 2s infinite ease-in-out;
  display: none;
  z-index: 10;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 95%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

.meal-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border-color);
}

.meal-preset-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scrollbar-width: none;
}
.meal-preset-row::-webkit-scrollbar {
  display: none;
}

.meal-preset-chip {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.meal-preset-chip:hover {
  border-color: #10B981;
  color: #10B981;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.macro-box {
  background: var(--bg-card-sub);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.macro-box .title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.macro-box .value {
  font-size: 15px;
  font-weight: 800;
  margin-top: 3px;
}

/* Physiological Body Impact */
.body-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.body-impact-card {
  background: var(--bg-card-sub);
  border-radius: 14px;
  padding: 12px;
  border-left: 3.5px solid #06B6D4;
}

.body-impact-card.spike-low {
  border-left-color: #10B981;
}
.body-impact-card.spike-mid {
  border-left-color: #F59E0B;
}
.body-impact-card.spike-high {
  border-left-color: #EF4444;
}

.body-impact-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.body-impact-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Smartwatch Telemetry */
.smartwatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.smartwatch-tile {
  background: var(--bg-card-sub);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smartwatch-tile .tile-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.smartwatch-tile .tile-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.smartwatch-tile .tile-sub {
  font-size: 10px;
  font-weight: 600;
  color: #10B981;
}

.heart-pulse {
  display: inline-block;
  color: #EF4444;
  animation: pulseHeart 1.2s infinite ease-in-out;
}

@keyframes pulseHeart {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  70% { transform: scale(1); }
}

.watch-sync-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.watch-sync-btn:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* Medical & Nutrition Advisory Panel */
.advisory-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.advisory-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.advisory-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card-sub);
  margin-bottom: 8px;
  border-left: 3px solid #10B981;
}

.advisory-item-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.advisory-item-body {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.app-benchmark-box {
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(6,182,212,0.06));
  border: 1px dashed var(--border-color);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.app-benchmark-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-benchmark-list {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ====================================================
   LIVE MOBILE CAMERA MODAL & VIEW FINDER HUD
   ==================================================== */
.camera-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.camera-modal-backdrop.active {
  display: flex;
}

.camera-modal-card {
  width: 100%;
  max-width: 420px;
  background: #0B0F19;
  border: 1.5px solid rgba(6, 182, 212, 0.45);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  position: relative;
  display: flex;
  flex-direction: column;
}

.camera-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.camera-modal-header .title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.camera-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94A3B8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.camera-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.camera-viewfinder-container {
  position: relative;
  width: 100%;
  height: 340px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-viewfinder-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-hud-corners {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3.5px solid #06B6D4;
  pointer-events: none;
  z-index: 10;
}

.camera-hud-tl { top: 16px; left: 16px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.camera-hud-tr { top: 16px; right: 16px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.camera-hud-bl { bottom: 16px; left: 16px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.camera-hud-br { bottom: 16px; right: 16px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.camera-hud-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 1.5px dashed rgba(6, 182, 212, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.camera-hud-prompt {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  text-align: center;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 10;
}

.camera-controls-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 18px 22px;
  background: #0B0F19;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.camera-shutter-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 5px solid #06B6D4;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-shutter-btn:active {
  transform: scale(0.92);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
}

.camera-shutter-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #06B6D4;
  transition: background 0.15s ease;
}

.camera-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s ease;
}

.camera-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ====================================================
   WORLDWIDE DEMOGRAPHIC PROFILE STYLES
   ==================================================== */
.demographic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.demographic-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

/* ====================================================
   30-DAY (1 MONTH) CALORIE INTAKE CHART STYLES
   ==================================================== */
.monthly-chart-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
}

.monthly-chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.month-day-inspect-box {
  background: var(--bg-card-sub);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
  border-left: 3.5px solid #06B6D4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.month-day-inspect-box .title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.month-day-inspect-box .sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.month-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.month-kpi-tile {
  background: var(--bg-card-sub);
  border-radius: 14px;
  padding: 12px;
}

.month-kpi-tile .label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.month-kpi-tile .value {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}

.month-kpi-tile .sub {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

/* ====================================================
   ✨ JUST COMPLETED TASK HIGHLIGHT & ANIMATION
   ==================================================== */
@keyframes completedGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6);
    border-color: #14B8A6;
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(20, 184, 166, 0.35);
    border-color: #0D9488;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    border-color: rgba(20, 184, 166, 0.4);
  }
}

.task-item.just-completed {
  animation: completedGlowPulse 2s ease-in-out 2;
  border: 2px solid var(--teal) !important;
  background: rgba(20, 184, 166, 0.08) !important;
}

.just-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #0D9488;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ====================================================
   🎮 1. RPG LEVELING & XP DOPAMINE BAR
   ==================================================== */
.rpg-hero-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(236, 72, 153, 0.08) 50%, rgba(245, 158, 11, 0.1) 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -6px rgba(79, 70, 229, 0.15);
  position: relative;
  overflow: hidden;
}

.rpg-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  transform: rotate(25deg);
}

.rpg-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rpg-avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rpg-level-gem {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F59E0B, #EC4899, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: levelGemFloat 3s ease-in-out infinite;
}

@keyframes levelGemFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
}

.rpg-title-wrap .title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rpg-title-wrap .sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.streak-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #D97706;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.streak-shield-badge:hover {
  transform: scale(1.05);
}

.rpg-xp-track {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.dark-mode .rpg-xp-track {
  background: rgba(255, 255, 255, 0.1);
}

.rpg-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #EC4899 50%, #8B5CF6 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
  position: relative;
}

.rpg-xp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
}

.rpg-xp-meta .xp-text {
  color: var(--primary);
}

.rpg-xp-meta .bonus-text {
  color: #059669;
}

/* Floating XP Text Animation */
@keyframes floatUpFadeOut {
  0% { opacity: 0; transform: translateY(0) scale(0.8); }
  20% { opacity: 1; transform: translateY(-10px) scale(1.15); }
  80% { opacity: 1; transform: translateY(-35px) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(0.9); }
}

.xp-floating-pill {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  color: white;
  font-weight: 900;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  animation: floatUpFadeOut 1.8s ease-out forwards;
}

/* ====================================================
   🌳 2. LIVING BONSAI / LIFE TREE MASCOT
   ==================================================== */
.bonsai-hero-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.06) 50%, rgba(79, 70, 229, 0.08) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.bonsai-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bonsai-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonsai-visual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  position: relative;
}

.bonsai-art-svg {
  width: 130px;
  height: 120px;
  filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.25));
  transition: all 0.5s ease;
}

.bonsai-leaf {
  transform-origin: center bottom;
  animation: leafSway 4s ease-in-out infinite alternate;
}

@keyframes leafSway {
  0% { transform: rotate(-2deg); }
  100% { transform: rotate(3deg); }
}

.bonsai-flower {
  animation: blossomGlow 2.5s ease-in-out infinite alternate;
}

@keyframes blossomGlow {
  0% { filter: brightness(1) drop-shadow(0 0 2px #EC4899); }
  100% { filter: brightness(1.25) drop-shadow(0 0 8px #F472B6); }
}

.bonsai-firefly {
  animation: fireflyFloat 3s infinite ease-in-out;
}

@keyframes fireflyFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(6px, -8px); opacity: 1; }
}

.bonsai-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}

.bonsai-nurture-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.bonsai-nurture-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.bonsai-health-pill {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ====================================================
   🎧 3. DEEP FOCUS ROOM (POMODORO & BINAURAL AUDIO)
   ==================================================== */
.focus-room-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.focus-hero-panel {
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 60%, #172554 100%);
  border-radius: 26px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
}

.focus-modes-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.focus-mode-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.focus-mode-chip.active {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.focus-timer-ring-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-timer-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.focus-timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 10;
}

.focus-timer-circle-fg {
  fill: none;
  stroke: url(#focusGradient);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.focus-time-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.focus-time-digits {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.focus-time-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.focus-timer-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.focus-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.focus-play-btn:hover {
  transform: scale(1.08);
}

.focus-play-btn.pause {
  background: linear-gradient(135deg, #F59E0B, #EA4335);
}

.focus-reset-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.focus-reset-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Ambient Sound Grid */
.sound-selector-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.sound-tile {
  background: var(--bg-card-sub);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.sound-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.sound-tile.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.1));
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.sound-tile .icon {
  font-size: 22px;
}

.sound-tile .meta .title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.sound-tile .meta .desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* Sound Wave Equalizer Bars */
.sound-wave-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-wave-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: eqBar 1s ease-in-out infinite alternate;
}

.sound-wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-wave-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.sound-wave-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.sound-wave-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes eqBar {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* ====================================================
   🎙️ 4. 30-SECOND AI AUDIO BRIEFING BAR
   ==================================================== */
.ai-briefing-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.06) 50%, rgba(236, 72, 153, 0.07) 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.briefing-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.briefing-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.briefing-play-btn:hover {
  transform: scale(1.06);
}

.briefing-play-btn.playing {
  background: linear-gradient(135deg, #EC4899, #F59E0B);
  animation: pulseGlow 1.5s infinite alternate;
}

.briefing-text .title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.briefing-text .desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ====================================================
   📈 5. LIFE ROI & SUNDAY LIFE WRAPPED
   ==================================================== */
.life-roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}

.life-roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.roi-tile {
  background: var(--bg-card-sub);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.roi-tile .val {
  font-size: 16px;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 2px;
}

.roi-tile .label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.wrapped-trigger-banner {
  background: linear-gradient(135deg, #4F46E5 0%, #EC4899 50%, #F59E0B 100%);
  border-radius: 16px;
  padding: 12px 16px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3);
  transition: transform 0.2s ease;
}

.wrapped-trigger-banner:hover {
  transform: translateY(-2px);
}

/* Story Modal for Sunday Wrapped */
.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.story-modal-backdrop.active {
  display: flex;
}

.story-slide-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, #1E1B4B 0%, #311042 50%, #0F172A 100%);
  border-radius: 24px;
  border: 1.5px solid rgba(236, 72, 153, 0.4);
  padding: 24px 20px;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: slideUpFade 0.3s ease;
}

.story-progress-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}

.story-progress-dot {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.story-progress-dot.active {
  background: #fff;
}

/* ====================================================
   ⚡ 6. MICRO MOOD & ENERGY CHECK-IN
   ==================================================== */
.mood-energy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}

.mood-emojis-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.mood-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-card-sub);
  border: 1.5px solid var(--border-color);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mood-btn:hover {
  transform: scale(1.1);
}

.mood-btn.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(236, 72, 153, 0.15));
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  transform: scale(1.12);
}

.energy-slider-wrap {
  margin-top: 10px;
}

.energy-slider-input {
  width: 100%;
  accent-color: #10B981;
  cursor: pointer;
}

.ai-correlation-bubble {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ====================================================
   👥 7. ACCOUNTABILITY CIRCLES & DUELS
   ==================================================== */
.accountability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}

.community-pulse-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.buddies-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.buddy-chip {
  flex-shrink: 0;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
  text-align: center;
}

.buddy-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.buddy-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.buddy-streak {
  font-size: 10px;
  color: #D97706;
  font-weight: 800;
}

.high-five-btn {
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #D97706;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.high-five-btn:hover {
  transform: scale(1.1);
}

/* ====================================================
   👥 ACCOUNTABILITY CIRCLE & BUDDY MANAGEMENT STYLES
   ==================================================== */
.create-circle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #DB2777;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-circle-btn:hover {
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

.add-buddy-chip {
  cursor: pointer;
  border: 1.5px dashed rgba(236, 72, 153, 0.45) !important;
  background: rgba(236, 72, 153, 0.05) !important;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.add-buddy-chip:hover {
  border-color: #EC4899 !important;
  background: rgba(236, 72, 153, 0.14) !important;
  transform: translateY(-2px);
}

.circle-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: var(--bg-card-sub);
  padding: 4px;
  border-radius: 12px;
}

.circle-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.circle-tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.circle-hero-banner {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.circle-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px dashed rgba(236, 72, 153, 0.5);
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.circle-action-small-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.circle-action-small-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.circle-action-small-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.circle-action-small-btn.whatsapp:hover {
  background: #128C7E;
}

.circle-leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.circle-leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  transition: transform 0.15s ease;
}

.circle-leaderboard-row.user-row {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
  border: 1.5px solid rgba(79, 70, 229, 0.4);
}

.circle-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: var(--bg-card);
  color: var(--text-muted);
}

.circle-rank-badge.rank-1 {
  background: #FEF3C7;
  color: #D97706;
}

.circle-rank-badge.rank-2 {
  background: #F1F5F9;
  color: #64748B;
}

.circle-rank-badge.rank-3 {
  background: #FFEDD5;
  color: #C2410C;
}

/* ====================================================
   🎉 8. CELEBRATION CONFETTI CANVAS OVERLAY
   ==================================================== */
#celebrationCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

/* ====================================================
   🚀 9. NEW USER ONBOARDING & EMAIL VERIFICATION STYLES
   ==================================================== */
.onboard-step-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.onboard-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-card-sub);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.onboard-step-pill .step-num {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
}

.onboard-step-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.onboard-step-pill.active .step-num {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

.onboard-step-pill.completed {
  background: #D1FAE5;
  color: #047857;
  border-color: #10B981;
}

.onboard-step-line {
  width: 22px;
  height: 2px;
  background: var(--border-color);
  transition: background 0.2s ease;
}

.onboard-step-line.active {
  background: var(--primary);
}

.onboard-focus-chip {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-sub);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.onboard-focus-chip:hover {
  border-color: var(--primary);
}

.onboard-focus-chip.active {
  border-color: var(--primary);
  background: rgba(79,70,229,0.08);
  color: var(--primary);
  font-weight: 700;
}

.onboard-goal-chip {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-sub);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.onboard-goal-chip:hover {
  border-color: var(--primary);
}

.onboard-goal-chip.active {
  border-color: var(--primary);
  background: rgba(79,70,229,0.08);
  color: var(--primary);
  font-weight: 700;
}

/* 6-box OTP digits */
.otp-inputs-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 6px;
}

.otp-digit-input {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  font-family: monospace;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-card-sub);
  color: var(--text-primary);
  outline: none;
  transition: all 0.18s ease;
}

.otp-digit-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
  transform: translateY(-2px);
}

.otp-digit-input.filled {
  border-color: #10B981;
  background: rgba(16,185,129,0.04);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #047857;
  background: #D1FAE5;
  border: 1px solid #10B981;
  padding: 2px 7px;
  border-radius: 6px;
}

.pending-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #D97706;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
}

/* Account Switcher Items */
.account-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.18s ease;
}

.account-switch-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.account-switch-item.active {
  border-color: var(--primary);
  background: rgba(79,70,229,0.06);
}

/* ====================================================
   📁 SIDEBAR SUB-NAVIGATION (PROFILE & LANGUAGE SUBSECTIONS)
   ==================================================== */
.sidebar-sub-nav {
  margin-left: 20px;
  padding-left: 10px;
  border-left: 2px solid rgba(99, 102, 241, 0.35);
  margin-top: 1px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-nav-sub-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
}

.side-nav-sub-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-hover, #4338ca);
  transform: translateX(2px);
}

.side-nav-sub-btn i {
  font-size: 12px;
  width: 15px;
}

/* ====================================================
   🇬 GOOGLE / GMAIL ACCOUNT CREATION FORM STYLES
   ==================================================== */
.google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Google Sans', 'Poppins', Roboto, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.google-auth-btn:hover {
  background: var(--bg-card-sub);
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.18);
  transform: translateY(-1px);
}

.google-auth-btn svg {
  flex-shrink: 0;
}

.google-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.google-divider::before,
.google-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.google-divider span {
  padding: 0 10px;
}

.google-form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.google-form-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.google-username-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.google-username-box:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.google-username-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.google-username-suffix {
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-sub);
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border-color);
  user-select: none;
}

.google-caption {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.google-blue-link {
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.google-blue-link:hover {
  text-decoration: underline;
  color: #1557d0;
}

.google-next-btn {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Google Sans', 'Poppins', Roboto, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
}

.google-next-btn:hover {
  background: #1557d0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
  transform: translateY(-1px);
}

.google-account-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.18s ease;
}

.google-account-tile:hover {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.04);
  transform: translateY(-1px);
}

.google-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* ====================================================
   🗺️ FEATURE ROADMAP & BUG REPORTING STYLES
   ==================================================== */
.feedback-type-toggle {
  display: flex;
  background: var(--bg-card-sub);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  gap: 4px;
}

.fb-type-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.fb-type-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.char-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: monospace;
}

.char-counter.warning {
  color: #F59E0B;
}

.char-counter.limit {
  color: #EF4444;
}

.screenshot-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: var(--bg-card-sub);
  cursor: pointer;
  transition: all 0.2s ease;
}

.screenshot-dropzone:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}

/* Roadmap Pipeline Stepper */
.roadmap-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 14px 0 10px;
}

.roadmap-pipeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.roadmap-pipeline-fill {
  position: absolute;
  top: 14px;
  left: 10px;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #10B981);
  z-index: 2;
  transition: width 0.3s ease;
}

.roadmap-stage-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stage-node-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.2s ease;
}

.stage-node-circle.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.stage-node-circle.completed {
  border-color: #10B981;
  background: #10B981;
  color: #ffffff;
}

.stage-node-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.stage-node-label.active {
  color: var(--primary);
  font-weight: 700;
}

/* Roadmap Item Card */
.roadmap-item-card {
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.roadmap-item-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.roadmap-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.roadmap-filter-tabs::-webkit-scrollbar {
  display: none;
}

.roadmap-filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.roadmap-filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.admin-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-mode-pill.active {
  background: #D97706;
  color: #ffffff;
  border-color: #D97706;
}

.upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-sub);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.upvote-btn:hover, .upvote-btn.voted {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  border-color: var(--primary);
}

/* ====================================================
   💡 REFERENCE FEATURE ROADMAP UI (User Mockup Match)
   ==================================================== */
.submit-idea-header-btn {
  background: #5B54D6;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91, 84, 214, 0.25);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.submit-idea-header-btn:hover {
  background: #4C44CE;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 84, 214, 0.35);
}

.roadmap-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  margin-top: 18px;
}

.roadmap-section-pill {
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 14px;
  padding: 4px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.roadmap-section-pill.planned {
  color: #D946EF;
  background: #FDF2F8;
}

.roadmap-section-pill.in-progress {
  color: #2563EB;
  background: #EFF6FF;
}

.roadmap-section-pill.completed {
  color: #16A34A;
  background: #F0FDF4;
}

.roadmap-section-pill.review {
  color: #D97706;
  background: #FEF3C7;
}

.roadmap-count-badge {
  background: #DBEAFE;
  color: #3B82F6;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 14px;
}

.roadmap-card-v2 {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.18s ease;
}

.roadmap-card-v2:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.roadmap-card-v2.in-progress-border {
  border-left: 4.5px solid #2563EB !important;
}

.roadmap-card-v2-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #0F172A;
}

.roadmap-card-v2-title.completed {
  text-decoration: line-through;
  color: #5B54D6;
  opacity: 0.88;
}

.roadmap-upvote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.roadmap-upvote-pill:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.roadmap-upvote-pill.voted {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: #2563EB;
}

.roadmap-admin-queue-card {
  border: 2px solid #F59E0B;
  background: rgba(245, 158, 11, 0.04);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

/* ====================================================
   🔄 CONSOLIDATED FEATURE SUITE TABS (Focus, Health, Planner)
   ==================================================== */
.focus-suite-tabs,
.insights-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card-sub);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.focus-suite-tabs::-webkit-scrollbar,
.insights-tabs::-webkit-scrollbar {
  display: none;
}

.focus-suite-tab,
.insights-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.focus-suite-tab.active,
.insights-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.planner-task-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(79, 70, 229, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
}

.nav-fab-btn {
  background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%) !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45) !important;
}

/* ====================================================
   SHARED GOALS & GROUP CIRCLES ENGINE
==================================================== */
.group-type-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--bg-card-sub);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.group-type-choice:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.group-type-choice.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.shared-group-pills-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.shared-group-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-card-sub);
  border: 1.5px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.shared-group-pill:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.shared-group-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.shared-group-pill.btn-add {
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px dashed #10B981;
  color: #10B981;
}

.shared-group-hero {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.shared-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.shared-member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
}

.privacy-shield-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.challenge-filter-pill {
  flex: 1;
  text-align: center;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.challenge-filter-pill.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.shared-challenge-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.shared-challenge-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.challenge-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.challenge-status-badge.in_progress {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}

.challenge-status-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.challenge-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-card-sub);
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0 6px 0;
  border: 1px solid var(--border-color);
}

.challenge-progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #6366F1, #EC4899);
  transition: width 0.4s ease;
}

.challenge-progress-bar-fill.completed {
  background: linear-gradient(90deg, #10B981, #059669);
}

.contact-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 4px;
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.contact-picker-item:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.contact-picker-item.selected {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10B981;
}

/* ====================================================
   SHARED GOALS & CHALLENGES: 3 MODES, EMOTIONS & AI
==================================================== */
.circle-mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.circle-mode-tab {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.circle-mode-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.circle-mode-tab:hover {
  color: var(--text-primary);
}

.circle-mode-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.circle-mode-tab.btn-create {
  flex: 0 0 34px;
  width: 34px;
  padding: 7px 0;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px dashed rgba(16, 185, 129, 0.4);
  justify-content: center;
}

.circle-mode-tab.btn-create:hover {
  background: #10B981;
  color: white;
  border-style: solid;
}

/* AI Circle Coach Widget */
.ai-circle-coach-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.05);
}

/* Accountability Nudge Box */
.accountability-nudge-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Emotional Reactions Row */
.reaction-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 6px;
}

.reaction-pills-row::-webkit-scrollbar {
  display: none;
}

.reaction-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 18px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.reaction-pill-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-1px) scale(1.02);
}

.reaction-pill-btn:active {
  transform: scale(0.96);
}

/* Dashboard Shared Challenges Widget */
.dashboard-shared-widget {
  background: var(--bg-card);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.05);
}

/* ====================================================
   ❤️ WELLNESS TODAY & UNIFIED LIFE SCORE STYLING
==================================================== */
.wellness-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.wellness-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wellness-tab:hover {
  color: var(--text-primary);
}

.wellness-tab.active {
  background: var(--bg-card);
  color: #EC4899;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Unified Life/Wellness Score Card */
.wellness-score-hero {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%);
  border: 1.5px solid rgba(236, 72, 153, 0.25);
  border-radius: 20px;
  padding: 18px 16px;
  margin-bottom: 14px;
  text-align: center;
}

.wellness-score-dial-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wellness-score-svg {
  width: 104px;
  height: 104px;
  transform: rotate(-90deg);
}

.wellness-score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--text-primary);
  line-height: 1;
}

/* 5 Dimensions Grid */
.wellness-dimensions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  text-align: left;
}

.wellness-dim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.wellness-dim-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 90px;
}

.wellness-dim-bar-wrap {
  flex: 1;
  margin: 0 10px;
  height: 6px;
  background: var(--bg-card-sub);
  border-radius: 6px;
  overflow: hidden;
}

.wellness-dim-bar-fill {
  height: 100%;
  border-radius: 6px;
}

.wellness-dim-pct {
  font-weight: 800;
  font-size: 11.5px;
  min-width: 32px;
  text-align: right;
}

/* Nutrition Card Styling */
.nutrition-macro-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0;
}

.nutrition-macro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.nutrition-macro-row .macro-name {
  font-weight: 600;
  color: var(--text-secondary);
  width: 60px;
}

.nutrition-macro-row .macro-track {
  flex: 1;
  height: 6px;
  background: var(--bg-card-sub);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 10px;
}

.nutrition-macro-row .macro-fill {
  height: 100%;
  border-radius: 6px;
}

.nutrition-macro-row .macro-val {
  font-weight: 800;
  font-size: 11.5px;
  width: 35px;
  text-align: right;
}

/* Recovery Card Grid */
.recovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.recovery-grid-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.recovery-grid-box .val {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.recovery-grid-box .lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* DAYORA Insight Card */
.dayora-action-insight-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

/* Meal Scanner Modal Items */
.meal-ingredient-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.meal-ingredient-chip i {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  transition: color 0.15s;
}

.meal-ingredient-chip i:hover {
  color: #EF4444;
}

.editable-nutrient-input {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  padding: 2px;
  outline: none;
}

.dayora-recommendation-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
}








/* ====================================================
   🗄️ CENTRALIZED CUSTOMER DATABASE & ADMIN VIEWER
   ==================================================== */
.admin-db-modal-card {
  background: var(--bg-card);
  border-radius: 20px;
  width: 95%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card-sub);
  border-bottom: 1px solid var(--border-color);
}

.admin-stat-mini-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
}

.admin-stat-mini-box .lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-stat-mini-box .val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.customer-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: transform 0.15s, border-color 0.15s;
}

.customer-card-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.customer-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-card-sub);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
