/* Shared dashboard chrome — used by user.html and business.html */

.container { margin: 0 auto; }

/* Back bar */
.back-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  font-size: 12px;
  color: var(--ink);
  opacity: 0.6;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}

.back-link:hover { opacity: 1; }

.demo-badge {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  /* per-page sets background + color */
}

/* Personalized-intelligence + never-sold reassurance (both dashboards) */
.intel-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px; padding: 10px 14px;
  background: var(--sage-50); border: 1px solid var(--line); border-radius: 10px;
  font-size: 12px; line-height: 1.4; color: var(--sage-700);
}
.intel-bar .mark { font-family: 'Fraunces', serif; font-style: italic; color: var(--sage-500); }
.intel-bar strong { font-weight: 700; }
.intel-bar .sep { opacity: 0.35; }

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  /* per-page sets margin-bottom and (optionally) max-width */
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.2s;
  /* per-page sets padding */
}

.tab-btn:hover { opacity: 0.8; }

.tab-btn.active {
  background: var(--sage-50);
  opacity: 1;
  color: var(--sage-700);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.25s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Sections */
.section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--sage-600);
}

.section-meta {
  font-size: 11px;
  opacity: 0.5;
}
