/* BioStack Mobile App Shell */
:root {
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 767px) {
  body.app-shell { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px); }
  .desktop-nav-links { display: none !important; }
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--tab-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226,232,240,0.9);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-bottom-nav a.active { color: #1d4ed8; }
  .mobile-bottom-nav a svg { width: 22px; height: 22px; }
  .top-nav-compact .nav-extra { display: none; }
  main.app-main { padding-top: 1rem; padding-bottom: 1rem; }
}

@media (min-width: 768px) {
  .mobile-bottom-nav { display: none !important; }
}

/* iOS install hint */
.ios-install-hint {
  position: fixed;
  bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
  left: 12px;
  right: 12px;
  z-index: 95;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
@media (min-width: 768px) {
  .ios-install-hint { bottom: 16px; max-width: 360px; left: auto; right: 16px; }
}
.ios-install-hint strong { color: #fff; }

/* Timeline stack */
.timeline-slot { position: relative; padding-left: 2rem; }
.timeline-slot::before {
  content: '';
  position: absolute;
  left: 11px; top: 2rem; bottom: -1rem;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, #10b981);
  opacity: 0.25;
}
.timeline-slot:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0; top: 1.25rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #3b82f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  z-index: 1;
}
.intake-card.taken { opacity: 0.75; }
.intake-card.taken .take-btn { background: #d1fae5; color: #047857; }

/* Knowledge base modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-backdrop.open { display: flex; }
@media (min-width: 768px) {
  .modal-backdrop { align-items: center; padding: 1rem; }
}
.modal-sheet {
  background: white;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 1.25rem 1.25rem 0 0;
  animation: slideUp 0.3s ease;
}
@media (min-width: 768px) {
  .modal-sheet { border-radius: 1.25rem; max-height: 85vh; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.video-placeholder {
  aspect-ratio: 9/16;
  max-height: 320px;
  background: linear-gradient(135deg, #1e293b 0%, #312e81 50%, #0f766e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
}
.filter-chip {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip.active {
  background: #1d4ed8;
  color: white;
  border-color: #1d4ed8;
}
.streak-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.camera-btn {
  background: linear-gradient(135deg, #1d4ed8, #10b981);
  color: white;
  border: none;
  border-radius: 1rem;
  padding: 1rem;
  width: 100%;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Dashboard day calendar (07:00–22:00) */
.day-calendar {
  display: flex;
  gap: 12px;
  min-height: 540px;
}
.day-calendar-labels {
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  color: #94a3b8;
  padding: 4px 0;
}
.day-calendar-track {
  position: relative;
  flex: 1;
  min-height: 540px;
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  overflow: visible;
}
.day-calendar-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(100% / 15 - 1px),
    rgba(148, 163, 184, 0.15) calc(100% / 15 - 1px),
    rgba(148, 163, 184, 0.15) calc(100% / 15)
  );
  pointer-events: none;
  border-radius: 1rem;
}
.day-calendar-item {
  position: absolute;
  left: 8px;
  right: 8px;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #3b82f6;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 2;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.day-calendar-item:active,
.day-calendar-item.is-dragging {
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  z-index: 10;
}
.day-calendar-item.is-taken {
  border-left-color: #10b981;
  opacity: 0.85;
}
.day-calendar-item-time {
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #1d4ed8;
  margin-bottom: 2px;
}
.day-calendar-item.is-taken .day-calendar-item-time { color: #059669; }
.day-calendar-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}
.day-calendar-item-dose {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.day-calendar-item-check {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #d1fae5;
  color: #047857;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.day-calendar-item.is-saving { opacity: 0.6; pointer-events: none; }

/* XP toast notification */
.xp-toast {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06) inset;
  min-width: 220px;
  max-width: min(92vw, 380px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  pointer-events: none;
}
.xp-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.xp-toast-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.xp-toast-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.xp-toast-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; line-height: 1.35; }
.xp-toast-ach {
  font-size: 12px;
  color: #a5f3fc;
  margin-top: 4px;
  line-height: 1.4;
}
.xp-toast-ach span { color: #6ee7b7; font-weight: 600; }
@media (min-width: 1024px) {
  .xp-toast { top: 72px; left: auto; right: 28px; transform: translateY(-120%); }
  .xp-toast.show { transform: translateY(0); }
}

/* Weekly quests */
.weekly-quests-panel {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.quest-card {
  background: rgba(255,255,255,0.06);
  border-radius: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.quest-card.is-done { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
.quest-icon { font-size: 1.25rem; line-height: 1; }
.quest-title { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.quest-desc { font-size: 11px; color: #94a3b8; margin-top: 2px; line-height: 1.35; }
.quest-progress-label { font-size: 11px; font-weight: 700; color: #a5b4fc; }
.quest-done-badge { color: #34d399; font-weight: 700; }
.quest-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.quest-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #34d399);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.quest-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Week series — крупный бар */
.week-series-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 88px;
  padding: 8px 4px 0;
}
.week-series-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 6px 4px 4px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.week-series-day.is-today {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.25);
}
.week-series-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(59,130,246,0.5), rgba(16,185,129,0.65));
  border-radius: 0 0 8px 8px;
  transition: height 0.5s ease;
  min-height: 4px;
}
.week-series-day[data-level="0"] .week-series-fill { background: rgba(255,255,255,0.04); }
.week-series-day[data-level="1"] .week-series-fill { background: linear-gradient(180deg, rgba(59,130,246,0.35), rgba(59,130,246,0.5)); }
.week-series-day[data-level="2"] .week-series-fill { background: linear-gradient(180deg, rgba(59,130,246,0.5), rgba(59,130,246,0.65)); }
.week-series-day[data-level="3"] .week-series-fill { background: linear-gradient(180deg, rgba(16,185,129,0.45), rgba(16,185,129,0.6)); }
.week-series-day[data-level="4"] .week-series-fill { background: linear-gradient(180deg, #34d399, #10b981); }
.week-series-pct {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  margin-bottom: 2px;
}
.week-series-label {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Reminder prefs */
.reminder-prefs-panel {
  background: linear-gradient(145deg, #0c4a6e 0%, #164e63 100%);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.reminder-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 10px;
  cursor: pointer;
}
.reminder-toggle input {
  width: 18px; height: 18px;
  accent-color: #22d3ee;
}
.reminder-enable-btn {
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(34,211,238,0.2);
  border: 1px solid rgba(34,211,238,0.35);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 600;
}
.reminder-enable-btn:hover { background: rgba(34,211,238,0.3); }

/* Health index chart */
.health-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding-top: 8px;
}
.health-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.health-chart-bar-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.health-chart-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
  transition: height 0.4s ease;
}
.health-chart-val {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  margin-top: 4px;
}
.health-chart-label {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.analysis-reminder-banner {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px -4px rgba(180,83,9,0.35);
}

.seasonal-banner {
  background: linear-gradient(135deg, #047857 0%, #059669 45%, #10b981 100%);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px -4px rgba(4,120,87,0.35);
}

.stack-conflict-item { line-height: 1.45; }
.stack-optimize-btn { width: 100%; justify-content: center; }
@media (min-width: 640px) {
  .stack-optimize-btn { width: auto; }
}

/* Online consultant */
.consultant-page { min-height: 60vh; }
.consultant-chat { min-height: 420px; max-height: 70vh; }
.consultant-messages { min-height: 280px; max-height: 50vh; }
.consultant-msg { display: flex; gap: 10px; align-items: flex-start; }
.consultant-msg-user { flex-direction: row-reverse; }
.consultant-msg-user .consultant-bubble {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.consultant-avatar { font-size: 1.25rem; flex-shrink: 0; }
.consultant-bubble {
  background: #f1f5f9;
  color: #1e293b;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
  white-space: pre-wrap;
}
.consultant-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.consultant-chip:hover { border-color: #0d9488; color: #0f766e; background: #f0fdfa; }
.consultant-chip-link { text-decoration: none; display: inline-flex; align-items: center; }

/* Advisor — умный подбор */
.advisor-page { padding-bottom: 6rem; }
.advisor-zyvo-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 0.75rem;
  font-size: 13px; font-weight: 500; color: #475569;
  background: #fff; border: 1px solid #e2e8f0;
  text-decoration: none; transition: all 0.15s;
}
.advisor-zyvo-link:hover { border-color: #a78bfa; color: #6d28d9; }

.advisor-layer-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; border-radius: 1rem;
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border: 1px solid #e0e7ff;
}
.advisor-layer-card.advisor-layer-muted {
  background: #f8fafc; border-color: #e2e8f0;
}
.advisor-layer-num {
  width: 1.75rem; height: 1.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-size: 12px; font-weight: 800;
  background: #7c3aed; color: #fff;
}
.advisor-layer-muted .advisor-layer-num { background: #cbd5e1; color: #64748b; }

.advisor-category-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9;
  gap: 0.75rem;
}
.advisor-cat-blue { background: linear-gradient(90deg, #eff6ff, #fff); }
.advisor-cat-rose { background: linear-gradient(90deg, #fff1f2, #fff); }
.advisor-cat-emerald { background: linear-gradient(90deg, #ecfdf5, #fff); }
.advisor-cat-amber { background: linear-gradient(90deg, #fffbeb, #fff); }
.advisor-cat-violet { background: linear-gradient(90deg, #f5f3ff, #fff); }
.advisor-cat-slate { background: linear-gradient(90deg, #f8fafc, #fff); }

.advisor-chip {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 0.85rem;
  border: 1.5px solid #e2e8f0; background: #fff;
  cursor: pointer; transition: all 0.15s; position: relative;
}
.advisor-chip:hover { border-color: #c4b5fd; background: #faf5ff; }
.advisor-chip.is-checked {
  border-color: #7c3aed; background: #f5f3ff;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}
.advisor-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.advisor-chip-icon { font-size: 1.25rem; flex-shrink: 0; }
.advisor-chip-text { font-size: 13px; font-weight: 500; color: #334155; flex: 1; line-height: 1.35; }
.advisor-chip-check {
  width: 1.25rem; height: 1.25rem; border-radius: 9999px;
  border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: transparent; flex-shrink: 0; transition: all 0.15s;
}
.advisor-chip.is-checked .advisor-chip-check {
  background: #7c3aed; border-color: #7c3aed; color: #fff;
}

.advisor-sticky-bar {
  position: fixed; bottom: calc(var(--tab-h, 64px) + env(safe-area-inset-bottom, 0px) + 8px);
  left: 0; right: 0; z-index: 40; padding: 0 1rem; pointer-events: none;
}
@media (min-width: 1024px) {
  .advisor-sticky-bar {
    left: var(--sidebar-w, 260px);
    bottom: 1rem;
  }
}
.advisor-sticky-inner {
  max-width: 48rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 1.25rem;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0; box-shadow: 0 8px 32px -8px rgba(15,23,42,0.2);
  pointer-events: auto;
}
.advisor-submit-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.85rem;
  font-size: 14px; font-weight: 600; color: #fff; border: none;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.45);
  cursor: pointer; transition: all 0.15s;
}
.advisor-submit-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.advisor-submit-btn:disabled {
  background: #cbd5e1; box-shadow: none; cursor: not-allowed;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11px;
}
.comparison-row.is-better { background: #ecfdf5; border-color: #a7f3d0; }
.comparison-row.is-worse { background: #fef2f2; border-color: #fecaca; }
.comparison-name { font-weight: 600; color: #334155; }
.comparison-values { color: #64748b; }
.comparison-before { text-decoration: line-through; opacity: 0.7; }
.comparison-arrow { margin: 0 4px; color: #94a3b8; }
.comparison-after { font-weight: 700; color: #0f172a; }

/* Symptom tracker */
.symptom-form { display: flex; flex-direction: column; gap: 20px; }
.symptom-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.symptom-label { font-size: 14px; font-weight: 600; color: #334155; }
.symptom-scale-wrap { width: 100%; }
.symptom-scale-hint {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 6px;
  padding: 0 2px;
}
.symptom-scale {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: 100%;
  direction: ltr;
}
.symptom-btn {
  flex: 1;
  max-width: 52px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  color: #64748b;
  transition: all 0.2s;
  cursor: pointer;
}
.symptom-btn:hover { border-color: #a78bfa; color: #7c3aed; }
.symptom-btn.is-active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,92,246,0.35);
}
.symptom-save-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}
.symptom-save-btn:disabled { opacity: 0.7; }
.symptom-mini-chart {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  height: 48px;
  align-items: flex-end;
}
.symptom-mini-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.symptom-mini-bar {
  width: 100%;
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.symptom-mini-day span {
  font-size: 8px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Bionu currency */
.bionu-coin { color: #fbbf24; font-weight: 800; }
.bionu-coin-sm { color: #fbbf24; font-weight: 700; }
.bionu-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24) !important; }

.bionu-teaser {
  background: linear-gradient(135deg, #1e1b4b 0%, #422006 100%);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bionu-teaser:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
}

.bionu-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #422006 50%, #1e3a5f 100%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fff;
}
.bionu-hero-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-end; }
.bionu-hero-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #fcd34d; }
.bionu-hero-balance { font-size: 2.25rem; font-weight: 800; line-height: 1.1; margin-top: 0.25rem; display: flex; align-items: baseline; gap: 0.35rem; }
.bionu-hero-unit { font-size: 1rem; font-weight: 600; color: #fcd34d; }
.bionu-hero-sub { font-size: 0.8rem; color: #94a3b8; margin-top: 0.35rem; }
.bionu-level-progress { min-width: 200px; flex: 1; max-width: 280px; }

.rewards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .rewards-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.rewards-section-title { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin-bottom: 1rem; }

.bionu-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .bionu-shop-grid { grid-template-columns: 1fr 1fr; }
}
.bionu-shop-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bionu-shop-icon { font-size: 1.5rem; }
.bionu-shop-title { font-weight: 700; font-size: 0.9rem; color: #0f172a; }
.bionu-shop-desc { font-size: 0.75rem; color: #64748b; flex: 1; line-height: 1.4; }
.bionu-shop-meta { font-size: 0.7rem; color: #94a3b8; }
.bionu-shop-form { margin-top: 0.5rem; }
.bionu-shop-btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.bionu-shop-btn:hover:not(:disabled) { opacity: 0.92; }
.bionu-shop-btn.is-disabled, .bionu-shop-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.bionu-toast {
  background: linear-gradient(135deg, #422006, #1e1b4b);
  border-color: rgba(251, 191, 36, 0.35);
}
.bionu-toast .xp-toast-title { color: #fcd34d; }

