body {
  background: #f7f7f7;
}

.hidden {
  display: none !important;
}

.boot-screen,
.legacy-auth {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(26, 187, 156, 0.18), transparent 30%),
    linear-gradient(135deg, #10232c, #1c2f39 48%, #f7f7f7 48%, #f7f7f7);
}

.boot-card,
.legacy-auth-card {
  width: min(1080px, 100%);
  max-width: 1080px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.boot-card {
  max-width: 720px;
  padding: 36px 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.boot-card h1,
.auth-hero h1 {
  margin-top: 0;
  color: #21313f;
  font-weight: 700;
}

.boot-card p,
.auth-hero p,
.login-hint {
  color: #556572;
}

.brand-mark {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1abb9c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-hero {
  padding: 16px 12px 12px 0;
}

.auth-highlights {
  margin-top: 18px;
  padding-left: 18px;
  color: #425461;
}

.auth-highlights li + li {
  margin-top: 8px;
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.login-hint {
  min-height: 24px;
  margin-top: 10px;
  padding-left: 12px;
}

.brand-title i {
  color: #1abb9c;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1abb9c, #169f85);
  color: #fff;
  font-size: 22px;
}

.profile-avatar-small {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  font-size: 12px;
}

.top-actions > li > a,
.top-actions .user-profile {
  display: flex;
  align-items: center;
}

.user-menu {
  position: relative;
}

.user-menu .dropdown-menu {
  display: none;
  right: 0;
  left: auto;
}

.user-menu.open .dropdown-menu {
  display: block;
}

.child_menu {
  display: none;
}

.menu-section-open > .child_menu {
  display: block;
}

.section-link.active-link,
.menu-direct-link.active-link {
  color: #1abb9c !important;
  font-weight: 700;
}

.right_col {
  min-height: 100vh;
  padding-bottom: 28px;
}

.section-pane {
  display: none;
}

.section-pane.active {
  display: block;
}

.legacy-range-chip {
  padding: 5px 12px;
  border: 1px solid #d7dcde;
  border-radius: 999px;
  color: #4b5a66;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}

.daily-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 10px;
  min-height: 320px;
  align-items: end;
  padding-top: 18px;
}

.daily-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.daily-bar {
  width: 100%;
  min-height: 8px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #26c6a6, #1abb9c);
}

.daily-bar-label {
  color: #425461;
  font-size: 11px;
}

.daily-bar-value {
  color: #73879c;
  font-size: 11px;
}

.legacy-note {
  margin-bottom: 16px;
  color: #73879c;
  font-size: 12px;
}

.goal-progress-shell {
  width: 100%;
  height: 14px;
  margin: 18px 0 14px;
  border-radius: 999px;
  background: #edf0f1;
  overflow: hidden;
}

.goal-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1abb9c, #16a085);
  transition: width 0.25s ease;
}

.goal-percent {
  margin-top: 18px;
  color: #425461;
  font-weight: 700;
}

.goal-link.active {
  color: #1abb9c;
  font-weight: 700;
}

.quick-grid {
  margin-top: 10px;
}

.legacy-summary-stack {
  display: grid;
  gap: 12px;
}

.summary-card {
  padding: 14px 16px;
  border: 1px solid #e6eaec;
  border-radius: 10px;
  background: #fff;
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
  color: #2a3f54;
}

.placeholder-box {
  padding: 18px;
  border: 1px dashed #b9c2c7;
  border-radius: 12px;
  background: #fbfcfc;
  color: #51606d;
}

.placeholder-demo-panel {
  margin-top: 16px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f3;
}

.legacy-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: 10px;
  border-radius: 50%;
  background: #dbe5ea;
  color: #425461;
  font-weight: 700;
}

.legacy-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.legacy-pill.ok {
  background: rgba(26, 187, 156, 0.14);
  color: #169f85;
}

.legacy-pill.warn {
  background: rgba(243, 156, 18, 0.14);
  color: #c77e0b;
}

.legacy-pill.danger {
  background: rgba(231, 76, 60, 0.14);
  color: #c0392b;
}

.legacy-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  min-width: 260px;
  max-width: 440px;
  padding: 14px 18px;
  border-radius: 10px;
  color: #fff;
  background: #2a3f54;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.legacy-toast.error {
  background: #c0392b;
}

.legacy-empty {
  padding: 18px;
  color: #73879c;
  text-align: center;
}

.legacy-action-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.legacy-action {
  color: #73879c;
  cursor: pointer;
}

.legacy-action:hover {
  color: #1abb9c;
}

.docs-actions {
  margin-bottom: 16px;
}

.docs-actions .btn {
  margin-right: 8px;
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .auth-hero {
    padding-right: 0;
  }

  .auth-actions {
    justify-content: flex-start;
  }

  .daily-bars {
    grid-template-columns: repeat(7, minmax(44px, 1fr));
  }
}
