:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 24, 43, 0.75);
  --bg-card-hover: rgba(26, 35, 62, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --accent-glow: rgba(244, 63, 94, 0.25);
  
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  
  --success: #10b981;
  --warning: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  top: -100px;
  left: -100px;
}
.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #e11d48 0%, transparent 70%);
  top: 30%;
  right: -150px;
}
.glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  bottom: -50px;
  left: 20%;
}

/* PIN Lock Screen Overlay */
.pin-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #111827 0%, #080c14 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pin-lock-card {
  background: rgba(18, 24, 43, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pin-icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(244, 63, 94, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 25px var(--primary-glow);
}
.pin-lock-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}
.pin-lock-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: var(--transition);
}
.pin-dot.filled {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.15);
}
#pin-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 280px;
  margin: 0 auto 16px;
}
.pin-key {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  height: 60px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.pin-key:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  transform: scale(1.05);
}
.pin-key:active {
  transform: scale(0.95);
}
.pin-key.pin-action {
  font-size: 16px;
  color: var(--text-muted);
}
.pin-error-msg {
  color: #fb7185;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.pin-footer-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

/* Top Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-badge {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-title span {
  color: var(--primary-light);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.quote-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 6px 14px 6px 8px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}
.avatar-ring {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981, #047857);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.profile-info {
  display: flex;
  flex-direction: column;
}
.profile-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.profile-tag {
  font-size: 11px;
  color: var(--text-muted);
}

/* Secretary Imami Hero Card */
.imami-hero-card {
  display: flex;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(244, 63, 94, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  gap: 20px;
  align-items: center;
  transition: var(--transition);
}
.imami-hero-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 35px var(--primary-glow);
}
.imami-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.imami-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  border: 2px solid #fff;
}
.imami-name-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fb7185;
  background: rgba(251, 113, 133, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
}
.imami-speech-content {
  flex-grow: 1;
}
.imami-speech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.imami-status-pill {
  font-size: 12px;
  color: #34d399;
  font-weight: 600;
}
.imami-date {
  font-size: 12px;
  color: var(--text-muted);
}
.imami-message {
  font-size: 15px;
  color: #f1f5f9;
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 500;
}
.imami-action-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.imami-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.imami-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.imami-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* Vision Banner */
.vision-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-glass);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.vision-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.vision-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(1.2);
}
.vision-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.4) 60%, transparent 100%);
}
.vision-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  width: 100%;
}
.vision-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.vision-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.vision-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.vision-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}
.v-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  max-width: 500px;
}
.v-stat-label {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
}
.v-stat-bar-box {
  flex-grow: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  overflow: hidden;
}
.v-stat-bar {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #fbbf24);
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.v-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
}
.v-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
}
.pill-label {
  font-size: 11px;
  color: var(--text-muted);
}
.pill-val {
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.25));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.tab-count {
  background: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grids & Cards */
.panel-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .panel-grid-2col {
    grid-template-columns: 1fr;
  }
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-icon {
  font-size: 20px;
}
.card-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
}

/* Badges */
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-accent {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}
.badge-subtle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.metric-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}
.m-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.m-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}
.m-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.m-unit {
  font-size: 12px;
  color: var(--text-muted);
}
.m-sub {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
  display: block;
}
.text-success { color: #34d399 !important; }
.text-warning { color: #fbbf24 !important; }

/* Forms */
.quick-input-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.input-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-group label, .form-group label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
input, select, textarea {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Buttons */
.btn {
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn-auto-height {
  height: 42px;
}

/* Weight SVG Chart */
.chart-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: var(--radius-md);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}
.chart-legend {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.target-dot { background: var(--accent-light); }
.actual-dot { background: var(--primary-light); }
.svg-chart-wrapper {
  width: 100%;
  height: 180px;
}

/* Roadmap Steps */
.roadmap-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.roadmap-step {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.roadmap-step.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}
.roadmap-step.current {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 4px 15px var(--primary-glow);
}
.step-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.roadmap-step.done .step-marker {
  background: #10b981;
  color: #fff;
}
.roadmap-step.current .step-marker {
  background: #6366f1;
  color: #fff;
}
.step-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #f1f5f9;
}
.step-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Imami Advice Box */
.imami-advice-box {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px dashed rgba(244, 63, 94, 0.3);
  padding: 14px 16px;
  border-radius: var(--radius-md);
}
.imami-mini-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fb7185;
  margin-bottom: 4px;
}
.imami-advice-box p {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Reading Tab */
.reading-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .reading-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.r-stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}
.r-stat-card.highlight {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}
.r-num {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: block;
}
.r-label {
  font-size: 11px;
  color: var(--text-muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.book-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.book-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.b-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.b-month-badge {
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: #cbd5e1;
}
.b-category {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 600;
}
.b-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
  line-height: 1.4;
}
.b-notes {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  flex-grow: 1;
}
.b-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}
.b-status {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}
.b-delete-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}
.b-delete-btn:hover {
  color: var(--accent);
}

/* G-Cert Checklist & Quiz */
.g-intro-box {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}
.g-intro-box p {
  font-size: 13px;
  color: #cbd5e1;
}
.chapter-checklist-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
}
.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.checklist-header h4 {
  font-size: 14px;
  font-weight: 700;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.check-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.check-item.completed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}
.check-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  transition: var(--transition);
}
.check-item.completed .check-box {
  background: #10b981;
  border-color: #10b981;
}
.check-title {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}
.check-item.completed .check-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Quiz */
.quiz-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: var(--radius-md);
}
.quiz-question-box {
  margin-bottom: 16px;
}
.quiz-q-num {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
  margin-bottom: 4px;
}
.quiz-q-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.quiz-opt-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}
.quiz-opt-btn.correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  font-weight: 700;
}
.quiz-opt-btn.wrong {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: #f43f5e !important;
  color: #fb7185 !important;
}
.quiz-feedback {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #34d399;
}
.quiz-feedback p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}
.mt-4 { margin-top: 16px; }

/* Side Hustle & Branding */
.branding-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .branding-columns {
    grid-template-columns: 1fr;
  }
}
.branding-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: var(--radius-md);
}
.b-icon {
  font-size: 24px;
  margin-bottom: 10px;
}
.branding-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.concept-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(244, 63, 94, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.concept-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.5;
}
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-list li {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.monetize-milestones {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: var(--radius-md);
}
.m-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.m-milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .m-milestone-grid {
    grid-template-columns: 1fr;
  }
}
.m-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: var(--radius-sm);
}
.m-step.done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}
.m-step.current {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.12);
}
.m-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
  margin-bottom: 4px;
}
.m-step h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.m-step p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Profile / Strengths Timeline */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.timeline-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}
.timeline-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.timeline-item.highlight-item {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(244, 63, 94, 0.12));
  border-color: rgba(99, 102, 241, 0.4);
}
.t-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.t-badge.special {
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  color: #fff;
}
.t-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.t-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.t-strength {
  font-size: 13px;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================
   ASSET & ROADSTER SIMULATOR STYLES
   ========================================================== */
.simulator-controls {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.sim-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sim-label-row label {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}
.sim-val-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
}
.sim-range {
  width: 100%;
  accent-color: #6366f1;
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
}
.mt-3 { margin-top: 14px; }

.roadster-countdown-card {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.15);
}
.rc-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.roadster-countdown-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.roadster-countdown-card p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Asset Strategy List */
.asset-strategy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.asset-strategy-item {
  display: flex;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: var(--radius-md);
}
.as-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.as-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.as-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Enhanced Mobile Tabs Scrolling */
.tabs-nav {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}
.tabs-nav::-webkit-scrollbar {
  height: 4px;
}
.tabs-nav::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}

/* ==========================================================
   FINANCIAL PLANNER MERGED STYLES
   ========================================================== */
.fp-profile-overview {
  border-left: 4px solid #38bdf8;
  padding: 18px 22px;
}
.fp-profile-header-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.fp-profile-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-p-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.fp-p-val {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}
.fp-p-val small {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: normal;
}
.highlight-amber { color: #f59e0b !important; }
.highlight-green { color: #10b981 !important; }
.highlight-cyan { color: #38bdf8 !important; }
.highlight-rose { color: #f43f5e !important; }

.fp-breakdown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fp-breakdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  color: #cbd5e1;
}
.fp-breakdown-pill strong {
  color: #fff;
}
.dot-blue { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.dot-purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.dot-green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-rose { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }

/* 45yo Goal Box */
.goal-progress-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.goal-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.sub-text {
  font-size: 11px;
  color: var(--text-muted);
}
.goal-val {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
}
.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #f59e0b);
  border-radius: 6px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.goal-tip {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid #f59e0b;
}

/* Wishlist */
.wishlist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wish-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}
.wish-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.wish-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wish-details strong {
  font-size: 13px;
  color: #fff;
}
.wish-details small {
  font-size: 11px;
  color: var(--text-dim);
}
.wish-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #38bdf8;
  font-size: 14px;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.kpi-card {
  padding: 20px;
}
.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 700;
}
.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}
.kpi-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* Chart Header & Scenarios */
.chart-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.scenario-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.scenario-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.scenario-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.scenario-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Events List */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.event-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-age-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-radius: 4px;
}
.event-cost-neg {
  color: #fb7185;
  font-weight: 700;
  font-size: 12px;
}
.event-cost-pos {
  color: #34d399;
  font-weight: 700;
  font-size: 12px;
}
.event-del-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}
.event-del-btn:hover {
  color: #fb7185;
}

/* ==========================================================
   10-METRIC BODY COMPOSITION STYLES
   ========================================================== */
.body-10kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .body-10kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.body-kpi-tile {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.body-kpi-tile:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.body-kpi-tile.highlight-kpi {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(99, 102, 241, 0.12));
  border-color: rgba(244, 63, 94, 0.4);
}
.body-kpi-tile.highlight-age-kpi {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.12));
  border-color: rgba(16, 185, 129, 0.4);
}
.bk-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.bk-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.bk-val {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.bk-unit {
  font-size: 11px;
  color: var(--text-muted);
}
.bk-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

/* Chart Toggles */
.body-chart-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.b-toggle-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.b-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.b-toggle-btn.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary-light);
  color: #c7d2fe;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* History Table */
.body-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  min-width: 700px;
}
.body-history-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.body-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}
.body-history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================
   HOME WORKOUT & REHAB STUDIO STYLES
   ========================================================== */
.workout-progress-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
}
.wp-label {
  font-size: 11px;
  color: var(--text-muted);
}
.wp-val {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.workout-studio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .workout-studio-grid {
    grid-template-columns: 1fr;
  }
}
.routine-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #c7d2fe;
  margin-bottom: 10px;
}
.workout-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.workout-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.workout-check-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}
.workout-check-item.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.workout-check-item.completed strong {
  text-decoration: line-through;
  color: #94a3b8;
}
.w-check {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #10b981;
  cursor: pointer;
}
.w-check-info strong {
  font-size: 13px;
  color: #fff;
  display: block;
}
.w-check-info p {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  line-height: 1.4;
}

/* AI Trainer Card */
.ai-trainer-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}
.ai-trainer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-trainer-avatar {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}
.ai-trainer-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fbcfe8;
}
.trainer-sub {
  font-size: 10px;
  color: #94a3b8;
}
.ai-coach-message {
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #ec4899;
}

.workout-notes-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: var(--radius-md);
}

/* Public Mode Masking styles */
.public-masked {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}
.public-masked-text {
  color: transparent !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  user-select: none;
  transition: all 0.3s ease;
}
.public-hidden {
  display: none !important;
}

/* Blog Section styles */
.blog-section {
  margin-top: 24px;
}
.blog-container-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  .blog-container-grid {
    grid-template-columns: 350px 1fr;
  }
}
.blog-list-card {
  max-height: 650px;
  overflow-y: auto;
}
.blog-post-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  text-align: left;
}
.blog-post-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.blog-post-item.active {
  border-left: 4px solid var(--primary);
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
}
.blog-post-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.4;
}
.blog-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.blog-tag-pill {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Blog Content styles (Markdown rendering) */
.blog-viewer-card {
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 400px;
}
.blog-post-content {
  color: #e2e8f0;
  line-height: 1.8;
  font-size: 15px;
  text-align: left;
}
.blog-post-content h1, .blog-post-content h2, .blog-post-content h3 {
  color: #fff;
  margin: 24px 0 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
.blog-post-content h1 {
  font-size: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
  margin-top: 0;
}
.blog-post-content h2 {
  font-size: 19px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  background: rgba(99, 102, 241, 0.03);
  padding-top: 4px;
  padding-bottom: 4px;
}
.blog-post-content h3 {
  font-size: 16px;
  margin-top: 18px;
}
.blog-post-content p {
  margin-bottom: 16px;
  text-align: justify;
}
.blog-post-content ul, .blog-post-content ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
.blog-post-content li {
  margin-bottom: 6px;
}
.blog-post-content blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(244, 63, 94, 0.06);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  color: #f1f5f9;
}
.blog-post-content blockquote p {
  margin-bottom: 0;
}
.blog-post-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: var(--accent-light);
}
.blog-post-content pre {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 20px;
}
.blog-post-content pre code {
  background: transparent;
  padding: 0;
  color: #f8fafc;
}
.blog-post-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.blog-post-content hr {
  border: none;
  border-top: 1px solid var(--border-glass);
  margin: 24px 0;
}
.blog-post-content strong {
  color: #fff;
  font-weight: 700;
}




