/* ============================================================
   EXPERTIA.IN — Design System
   India's marketplace for consultants & independent directors
   Phase 4 · css/app.css
   ============================================================ */

/* --- IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&display=swap');

/* --- BASE RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--brand-text);
  background-color: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
  min-height: 100dvh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); }
ul, ol { list-style: none; }
input, button, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  line-height: 1.2;
  color: var(--brand-text);
  font-weight: 700;
}

/* --- TYPOGRAPHY --- */
.t-hero    { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.t-h1      { font-size: 1.375rem; font-weight: 700; }
.t-h2      { font-size: 1.125rem; font-weight: 700; }
.t-h3      { font-size: 1rem; font-weight: 600; }
.t-body    { font-size: 0.9375rem; }
.t-small   { font-size: 0.8125rem; }
.t-caption { font-size: 0.75rem; color: var(--brand-text-secondary); }
.t-overline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text-secondary);
}

/* --- LAYOUT --- */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}
.page--wide {
  max-width: 640px;
}
.section {
  padding: 24px 0;
}
.section + .section {
  border-top: 1px solid var(--brand-border);
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; align-items: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full { width: 100%; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:active::after { opacity: 1; }

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(24,95,165,0.25);
}
.btn--primary:hover {
  background: var(--brand-primary-dark);
  box-shadow: 0 4px 16px rgba(24,95,165,0.35);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}
.btn--secondary:hover {
  background: #d6e4fa;
}

.btn--outline {
  border: 1.5px solid var(--brand-border);
  color: var(--brand-text);
  background: #fff;
}
.btn--outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn--ghost {
  color: var(--brand-primary);
  padding: 8px 16px;
}

.btn--danger {
  background: var(--brand-error);
  color: #fff;
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: 8px;
  min-height: 36px;
}

.btn--block {
  width: 100%;
}

.btn:disabled, .btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn--loading {
  color: transparent !important;
  pointer-events: none;
}
.btn--loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn--secondary.btn--loading::before {
  border-color: rgba(24,95,165,0.2);
  border-top-color: var(--brand-primary);
}

/* --- INPUTS --- */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-text);
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--brand-border);
  border-radius: 10px;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
}
.input--error {
  border-color: var(--brand-error);
}
.input--error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.input-error-text {
  font-size: 0.75rem;
  color: var(--brand-error);
}

textarea.input {
  min-height: 100px;
  resize: vertical;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* --- CARDS --- */
.card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  padding: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.card--elevated {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: none;
}
.card--clickable {
  cursor: pointer;
}
.card--clickable:active {
  transform: scale(0.985);
}

/* --- EXPERT CARD (Search Results) --- */
.expert-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.expert-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.expert-card:active {
  transform: scale(0.985);
}
.expert-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  overflow: hidden;
}
.expert-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-card__body {
  flex: 1;
  min-width: 0;
}
.expert-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.expert-card__headline {
  font-size: 0.8125rem;
  color: var(--brand-text-secondary);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.expert-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--brand-text-secondary);
}
.expert-card__fee {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 8px;
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge--verified {
  background: #d1fae5;
  color: #065f46;
}
.badge--iica {
  background: #fef3c7;
  color: #92400e;
}
.badge--sector {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}
.badge--status-open {
  background: #d1fae5;
  color: #065f46;
}
.badge--status-closed {
  background: #fee2e2;
  color: #991b1b;
}
.badge--status-pending {
  background: #fef3c7;
  color: #92400e;
}
.badge--status-accepted {
  background: #d1fae5;
  color: #065f46;
}
.badge--status-declined {
  background: #fee2e2;
  color: #991b1b;
}

/* --- CHIPS / TAGS --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  border: 1.5px solid var(--brand-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand-primary); }
.chip--active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.chip-scroll::-webkit-scrollbar { display: none; }

/* --- AVATAR --- */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 36px; height: 36px; font-size: 0.8125rem; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 2rem; }

/* --- SKELETON LOADING --- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton--circle { border-radius: 50%; }
.skeleton--text { height: 14px; margin-bottom: 8px; }
.skeleton--text:last-child { width: 60%; }
.skeleton--heading { height: 20px; width: 70%; margin-bottom: 12px; }

/* --- DIVIDER --- */
.divider {
  height: 1px;
  background: var(--brand-border);
  margin: 16px 0;
}
.divider--with-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-text-secondary);
  font-size: 0.8125rem;
}
.divider--with-text::before,
.divider--with-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brand-border);
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--brand-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-state__icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
}
.empty-state__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-state__text {
  font-size: 0.875rem;
  color: var(--brand-text-secondary);
  max-width: 280px;
  margin: 0 auto 20px;
}

/* --- STAR RATING --- */
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg {
  width: 16px;
  height: 16px;
}
.stars svg.filled { color: #f59e0b; }
.stars svg.empty  { color: #d1d5db; }

/* --- PROGRESS BAR --- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--brand-border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* --- WIZARD STEPS --- */
.wizard-steps {
  display: flex;
  gap: 4px;
  padding: 16px 0;
}
.wizard-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-border);
  transition: background 0.3s;
}
.wizard-step--active {
  background: var(--brand-primary);
}
.wizard-step--done {
  background: var(--brand-success);
}

/* --- STAT CARD --- */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--brand-border);
  text-align: center;
}
.stat-card__value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
}
.stat-card__label {
  font-size: 0.75rem;
  color: var(--brand-text-secondary);
  margin-top: 2px;
}

/* --- FILTER BAR --- */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brand-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-border);
}
.filter-bar__search {
  position: relative;
}
.filter-bar__search .input {
  padding-left: 40px;
}
.filter-bar__search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--brand-text-secondary);
}

/* --- TABS --- */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--brand-border);
  gap: 0;
}
.tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab--active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* --- TOAST / SNACKBAR --- */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brand-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast--success { background: var(--brand-success); }
.toast--error   { background: var(--brand-error); }

/* --- MODAL / OVERLAY --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 16px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.modal-overlay--visible .modal {
  transform: translateY(0);
}
.modal__handle {
  width: 36px;
  height: 4px;
  background: var(--brand-border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* --- ENQUIRY ITEM --- */
.enquiry-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--brand-border);
}
.enquiry-item:last-child { border-bottom: none; }
.enquiry-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.enquiry-item__name {
  font-weight: 600;
  font-size: 0.9375rem;
}
.enquiry-item__sub {
  font-size: 0.8125rem;
  color: var(--brand-text-secondary);
  margin-top: 2px;
}
.enquiry-item__msg {
  font-size: 0.875rem;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--brand-bg);
  border-radius: 8px;
}
.enquiry-item__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* --- REQUIREMENT CARD --- */
.req-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  padding: 16px;
  margin-bottom: 12px;
}
.req-card__title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}
.req-card__meta {
  font-size: 0.8125rem;
  color: var(--brand-text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.req-card__budget {
  font-weight: 600;
  color: var(--brand-primary);
}

/* --- REVIEW ITEM --- */
.review-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--brand-border);
}
.review-item:last-child { border-bottom: none; }
.review-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-item__name {
  font-weight: 600;
  font-size: 0.875rem;
}
.review-item__date {
  font-size: 0.75rem;
  color: var(--brand-text-secondary);
}
.review-item__comment {
  font-size: 0.875rem;
  margin-top: 6px;
  color: var(--brand-text);
  line-height: 1.5;
}

/* --- STICKY BOTTOM BAR --- */
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--brand-border);
  padding: 12px 16px calc(12px + var(--safe-bottom));
  z-index: 30;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
body:not(.hide-nav) .sticky-bottom {
  bottom: var(--nav-height);
}

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 40px 8px 32px;
  position: relative;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.hero__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero__title span {
  color: var(--brand-primary);
}
.hero__subtitle {
  font-size: 0.9375rem;
  color: var(--brand-text-secondary);
  max-width: 320px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

/* --- TRUST BAR --- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}
.trust-item {
  text-align: center;
}
.trust-item__value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
}
.trust-item__label {
  font-size: 0.6875rem;
  color: var(--brand-text-secondary);
  margin-top: 2px;
}

/* --- SECTOR GRID --- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sector-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sector-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 12px rgba(24,95,165,0.08);
}
.sector-card:active {
  transform: scale(0.97);
}
.sector-card__icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.sector-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* --- LOGIN / AUTH --- */
.auth-header {
  text-align: center;
  padding: 40px 0 24px;
}
.auth-header__logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.auth-header__subtitle {
  font-size: 0.875rem;
  color: var(--brand-text-secondary);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--brand-border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}
.oauth-btn:hover {
  border-color: var(--brand-text-secondary);
  background: #fafafa;
}
.oauth-btn svg, .oauth-btn img {
  width: 20px;
  height: 20px;
}

/* --- TYPE SELECTOR (Expert / Seeker) --- */
.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.type-option {
  border: 2px solid var(--brand-border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.type-option--active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
}
.type-option__icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.type-option__title {
  font-size: 0.875rem;
  font-weight: 700;
}
.type-option__desc {
  font-size: 0.6875rem;
  color: var(--brand-text-secondary);
  margin-top: 4px;
}

/* --- PROFILE PAGE --- */
.profile-header {
  text-align: center;
  padding: 24px 0 16px;
}
.profile-header__avatar {
  margin: 0 auto 12px;
}
.profile-header__name {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-header__headline {
  font-size: 0.9375rem;
  color: var(--brand-text-secondary);
  margin-top: 4px;
}
.profile-header__location {
  font-size: 0.8125rem;
  color: var(--brand-text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.profile-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.profile-section {
  padding: 20px 0;
}
.profile-section__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- ONBOARDING WIZARD --- */
.onboarding-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.onboarding-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.onboarding-header__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}
.onboarding-header__back:hover { background: var(--brand-bg); }
.onboarding-header__step {
  font-size: 0.8125rem;
  color: var(--brand-text-secondary);
  font-weight: 500;
}
.onboarding-body {
  flex: 1;
  padding: 0 16px 24px;
}
.onboarding-body__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.onboarding-body__subtitle {
  font-size: 0.875rem;
  color: var(--brand-text-secondary);
  margin-bottom: 24px;
}
.onboarding-footer {
  padding: 16px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  gap: 10px;
}
.onboarding-footer .btn { flex: 1; }

/* --- DASHBOARD --- */
.dash-greeting {
  padding: 20px 0 8px;
}
.dash-greeting__name {
  font-size: 1.25rem;
  font-weight: 700;
}
.dash-greeting__sub {
  font-size: 0.875rem;
  color: var(--brand-text-secondary);
  margin-top: 2px;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.dash-completion {
  background: var(--brand-primary-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.dash-completion__text {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

/* --- ANIMATIONS --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.fade-in {
  animation: fadeIn 0.35s ease both;
}
.fade-in-up {
  animation: fadeInUp 0.4s ease both;
}
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* --- UTILITIES --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-primary   { color: var(--brand-primary); }
.text-secondary { color: var(--brand-text-secondary); }
.text-success   { color: var(--brand-success); }
.text-error     { color: var(--brand-error); }
.text-accent    { color: var(--brand-accent); }
.bg-white { background: #fff; }
.rounded-full { border-radius: 9999px; }
.hidden { display: none !important; }

/* --- RESPONSIVE (tablet+) --- */
@media (min-width: 640px) {
  .page { padding: 0 24px; }
  .hero__title { font-size: 2.25rem; }
  .hero__actions { flex-direction: row; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-stats { grid-template-columns: repeat(4, 1fr); }
}
