/* ═══════════════════════════════════════════════════════════
   WORKINDEX v2.0 - COMPLETE CSS
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent; 
}

html, body { 
  height: 100%; 
  overscroll-behavior: none; 
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

/* ─── CSS VARIABLES ─── */
:root {
  /* Core Colors */
  --primary: #FC8019;
  --primary-dark: #E67417;
  --bg: #FFFFFF;
  --bg-gray: #F9FAFB;
  --border: #E9E9EB;
  --text: #3D4152;
  --text-light: #686B78;
  --text-muted: #93959F;
  
  /* Status Colors */
  --green: #48C479;
  --red: #E74C3C;
  --yellow: #F5C518;
  --blue: #4A90E2;
  --purple: #9B59B6;
  --success: #48C479;
  --danger: #E74C3C;
  --warning: #F5C518;
  --info: #3498DB;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  
  /* Safe Areas */
  --safe-top: env(safe-area-inset-top, 44px);
  --safe-bot: env(safe-area-inset-bottom, 34px);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ─── DARK MODE ─── */
body.dark-mode {
  --bg: #1A1A1A;
  --bg-gray: #2A2A2A;
  --border: #3A3A3A;
  --text: #FFFFFF;
  --text-light: #B0B0B0;
  --text-muted: #808080;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* ─── PAGES ─── */
.page { 
  display: none; 
  min-height: 100vh; 
  animation: fadeIn .3s ease; 
}

.page.active { 
  display: block; 
}

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

/* ─── LOGO ─── */
.logo { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.logo-icon { 
  width: 36px; 
  height: 36px; 
  background: var(--primary); 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 800; 
  font-size: 18px; 
  color: #fff; 
}

.logo-text { 
  font-size: 20px; 
  font-weight: 800; 
  color: var(--text); 
}

/* ─── BUTTONS ─── */
.btn-primary { 
  padding: 12px 24px; 
  border: none; 
  border-radius: 10px; 
  background: var(--primary); 
  color: #fff; 
  font-size: 15px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all .2s;
  font-family: inherit;
}

.btn-primary:hover { 
  background: var(--primary-dark); 
}

.btn-primary:active { 
  transform: scale(0.98); 
}

.btn-outline { 
  padding: 12px 24px; 
  border: 1.5px solid var(--border); 
  border-radius: 10px; 
  background: transparent; 
  color: var(--text); 
  font-size: 15px; 
  font-weight: 600; 
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.btn-outline:hover { 
  border-color: var(--primary); 
  color: var(--primary); 
}

/* ─── LANDING PAGE ─── */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s;
}

.nav-link:hover { 
  color: var(--primary); 
}

.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF4ED;
  border: 1px solid #FFDCC7;
  border-radius: 24px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px; 
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.hero .highlight { 
  color: var(--primary); 
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s;
  border: none;
  font-family: inherit;
}

.hero-btn:active { 
  transform: scale(0.97); 
}

.hero-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(252, 128, 25, 0.3);
}

.hero-btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}

/* ─── FEATURES ─── */
.features-section {
  padding: 80px 20px;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── STEPS ─── */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.price-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
  position: relative;
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(252, 128, 25, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.price-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0;
}

.price-amount span {
  font-size: 20px;
  color: var(--text-light);
}

.price-per-credit {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-savings {
  display: inline-block;
  background: #E8F5E9;
  color: var(--green);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ─── AUTH ─── */
.auth-toggle {
  display: flex;
  gap: 8px;
  background: var(--bg-gray);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.auth-toggle button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.auth-toggle button.active {
  background: var(--primary);
  color: #fff;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
}

.role-pick {
  display: flex;
  gap: 12px;
}

.role-card {
  flex: 1;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}

.role-card:hover {
  border-color: var(--primary);
}

.role-card.active {
  border-color: var(--primary);
  background: rgba(252, 128, 25, 0.05);
}

.r-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.r-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ─── DASHBOARD ─── */
.dash-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-tab:hover {
  color: var(--primary);
}

.dash-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: 20px;
}

/* ─── AVATAR ─── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

.avatar-xl {
  width: 120px;
  height: 120px;
  font-size: 48px;
}

/* ─── DOCUMENTS ─── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-gray);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
}

.upload-area:hover {
  border-color: var(--primary);
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ─── RATINGS ─── */
.rating-stars {
  display: flex;
  gap: 4px;
}

.star {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--border);
}

.star.filled {
  color: var(--yellow);
}

.star.large {
  width: 32px;
  height: 32px;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-end;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

/* ─── SETTINGS ─── */
.settings-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.settings-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.settings-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.settings-option:last-child {
  border-bottom: none;
}

.settings-option-label h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.settings-option-label p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── TOGGLE SWITCH ─── */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  border-radius: 28px;
  transition: var(--transition);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* ─── EXPERT GRID ─── */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.expert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
}

.expert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary { background: #FFF4ED; color: var(--primary); }
.badge-success { background: #E8F5E9; color: var(--success); }
.badge-warning { background: #FFF9E5; color: var(--warning); }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  opacity: 0.5;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}

.empty-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── SPINNER ─── */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  animation: toastIn 0.3s ease;
}

.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ─── PROGRESS BAR ─── */
.progress-bar {
  height: 8px;
  background: var(--bg-gray);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .expert-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ─── REQUEST GRID — 2 col on desktop, 1 col on mobile ─── */
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .req-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ─── EXPERT GRID — 2 col on desktop, 1 col on mobile ─── */
#expertGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  #expertGrid { grid-template-columns: 1fr; gap: 10px; }
}

/* ─── CLIENT EXPLORE GRID — 2 col on desktop ─── */
.client-expert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .client-expert-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ─── EXPERT STAT HERO CARDS ─── */
#expertStatHero > div:nth-child(1) {
  background: linear-gradient(135deg,#fff8f3,#fff3e8) !important;
  border-color: rgba(252,128,25,0.25) !important;
}
#expertStatHero > div:nth-child(2) {
  background: linear-gradient(135deg,#f0f7ff,#e8f2ff) !important;
  border-color: rgba(59,130,246,0.25) !important;
}
#expertStatHero > div:nth-child(3) {
  background: linear-gradient(135deg,#fffbeb,#fff8d6) !important;
  border-color: rgba(245,158,11,0.25) !important;
}
body.dark-mode #expertStatHero > div:nth-child(1) {
  background: linear-gradient(135deg,rgba(252,128,25,0.12),rgba(252,128,25,0.06)) !important;
  border-color: rgba(252,128,25,0.3) !important;
}
body.dark-mode #expertStatHero > div:nth-child(2) {
  background: linear-gradient(135deg,rgba(59,130,246,0.12),rgba(59,130,246,0.06)) !important;
  border-color: rgba(59,130,246,0.3) !important;
}
body.dark-mode #expertStatHero > div:nth-child(3) {
  background: linear-gradient(135deg,rgba(245,158,11,0.12),rgba(245,158,11,0.06)) !important;
  border-color: rgba(245,158,11,0.3) !important;
}

/* ─── DASHBOARD TAB BAR ─── */
.dash-tab {
  min-width: 64px;
  padding: 10px 14px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.dash-tab span:first-child { font-size: 20px; margin-bottom: 2px; }
.dash-tab.active {
  color: var(--primary);
  border-bottom: 2.5px solid var(--primary);
}

/* ─── SEARCH BAR ─── */
#browseSearchInput {
  border-radius: 12px !important;
  border: 1.5px solid var(--border) !important;
  font-size: 14px;
  transition: border-color 0.2s;
}
#browseSearchInput:focus {
  border-color: var(--primary) !important;
  outline: none;
}

/* ─── CREDITS NAV BADGE ─── */
#expertDash > div:first-child > div:last-child > div:first-child {
  background: linear-gradient(135deg,#FC8019,#e87010) !important;
  box-shadow: 0 2px 10px rgba(252,128,25,0.35);
}

/* Questionnaire clickability fix */
#questionnaire [onclick] {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
}

#qContent > div > div[onclick] {
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: all 0.2s ease;
}

#qContent > div > div[onclick]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#questionnaire input,
#questionnaire textarea,
#questionnaire select {
  cursor: pointer !important;
  pointer-events: auto !important;
}
/* Fix star clickability */
.rating-stars {
  display: flex;
  gap: 8px;
  pointer-events: auto !important;
  align-items: center;
  line-height: 1;
}

.rating-stars .star {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  pointer-events: auto !important;
  display: inline-block;  /* removes position:relative/z-index */
}

.rating-stars .star.large {
  font-size: 48px;
}

.rating-stars .star.filled {
  color: #f39c12;
  transform: scale(1.1);
}

.rating-stars .star:hover {
  color: #f39c12;
  transform: scale(1.15);
}
/* Fix star positioning in review cards */
.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.review-header .avatar {
  flex-shrink: 0;
}

.review-author {
  flex: 1;
  min-width: 0;
}

.review-header .rating-stars {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}

.review-text {
  margin-top: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-light);
}

/* Fix top rating display alignment */
#ratingsTab .settings-section .rating-stars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 4px;
   position: relative;
  z-index: 0;
  clear: both;
}

#ratingsTab .settings-section .review-count {
  display: block;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

<!-- Terms CSS — add inside your <style> or styles.css -->
<style>
.terms-section {
  margin-bottom: 24px;
}
.terms-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.terms-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terms-list li {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.terms-list li strong {
  color: var(--text);
}
/* Pointer cursor on all clickable nav elements */
.logo { cursor: pointer; }
.nav-link { cursor: pointer; }
.filter-chip { cursor: pointer; }
.dash-tab { cursor: pointer; }
.role-card { cursor: pointer; }
.feature-card { cursor: pointer; }

</style>
/* ── HOW IT WORKS ── */
.hiw-hero { text-align:center; padding:56px 24px 36px; background:var(--bg-gray); position:relative; overflow:hidden; }
.hiw-hero::before { content:''; position:absolute; top:-80px; right:-80px; width:300px; height:300px; border-radius:50%; background:radial-gradient(circle,rgba(252,128,25,0.1),transparent 70%); pointer-events:none; }
.hiw-eyebrow { display:inline-block; font-size:11px; font-weight:700; letter-spacing:2px; color:var(--primary); text-transform:uppercase; background:rgba(252,128,25,0.1); padding:5px 14px; border-radius:20px; margin-bottom:14px; }
.hiw-title { font-size:34px; font-weight:900; color:var(--text); line-height:1.15; margin-bottom:12px; }
.hiw-title em { font-style:italic; color:var(--primary); }
.hiw-subtitle { font-size:15px; color:var(--text-muted); max-width:340px; margin:0 auto 28px; line-height:1.6; }
.hiw-toggle { display:inline-flex; background:#fff; border:1.5px solid var(--border); border-radius:14px; padding:4px; gap:4px; }
.hiw-toggle button { padding:10px 22px; border:none; border-radius:10px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.25s; background:transparent; color:var(--text-muted); font-family:inherit; }
.hiw-toggle button.active { background:var(--primary); color:#fff; box-shadow:0 4px 14px rgba(252,128,25,0.35); }
.hiw-steps-wrap { padding:36px 20px 20px; max-width:540px; margin:0 auto; }
.hiw-step { display:flex; gap:0; margin-bottom:8px; opacity:0; transform:translateY(20px); animation:hiwUp 0.5s forwards; }
.hiw-step:nth-child(1){animation-delay:0.05s}
.hiw-step:nth-child(2){animation-delay:0.15s}
.hiw-step:nth-child(3){animation-delay:0.25s}
.hiw-step:nth-child(4){animation-delay:0.35s}
@keyframes hiwUp { to { opacity:1; transform:translateY(0); } }
.hiw-step-left { display:flex; flex-direction:column; align-items:center; width:44px; flex-shrink:0; padding-top:2px; }
.hiw-step-num { width:38px; height:38px; border-radius:50%; background:var(--primary); color:#fff; font-size:17px; font-weight:900; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(252,128,25,0.4); z-index:1; flex-shrink:0; }
.hiw-step-line { width:2px; flex:1; min-height:16px; background:linear-gradient(to bottom,rgba(252,128,25,0.35),rgba(252,128,25,0.03)); margin:5px 0; }
.hiw-step:last-child .hiw-step-line { display:none; }
.hiw-step-card { flex:1; margin-left:14px; margin-bottom:24px; border-radius:18px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.1); transition:transform 0.2s,box-shadow 0.2s; }
.hiw-step-card:hover { transform:translateY(-3px); box-shadow:0 12px 32px rgba(0,0,0,0.15); }
.hiw-photo-strip { position:relative; height:320px; overflow:hidden; border-radius:18px; }
.hiw-photo-strip img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.hiw-photo-strip::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,0.82) 0%,rgba(0,0,0,0.35) 50%,rgba(0,0,0,0.05) 100%); pointer-events:none; }
.hiw-photo-badge { position:absolute; top:12px; left:12px; background:rgba(255,255,255,0.92); border-radius:20px; padding:5px 11px; font-size:11px; font-weight:700; color:var(--text); box-shadow:0 2px 8px rgba(0,0,0,0.12); display:flex; align-items:center; gap:5px; backdrop-filter:blur(4px); z-index:2; }
.hiw-photo-badge-dot { width:7px; height:7px; border-radius:50%; }
.hiw-people-row { position:absolute; top:12px; right:12px; display:flex; z-index:2; }
.hiw-people-row img { width:28px; height:28px; border-radius:50%; border:2px solid #fff; object-fit:cover; margin-left:-7px; box-shadow:0 2px 6px rgba(0,0,0,0.2); }
.hiw-people-row img:first-child { margin-left:0; }
.hiw-people-count { width:28px; height:28px; border-radius:50%; border:2px solid #fff; background:var(--primary); color:#fff; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-left:-7px; box-shadow:0 2px 6px rgba(0,0,0,0.2); }
.hiw-overlay-text { position:absolute; bottom:0; left:0; right:0; padding:20px 18px 20px; z-index:2; }
.hiw-step-tag { font-size:10px; font-weight:700; letter-spacing:1.8px; text-transform:uppercase; color:rgba(255,255,255,0.7); margin-bottom:5px; }
.hiw-step-title { font-size:19px; font-weight:800; color:#fff; margin-bottom:7px; line-height:1.2; text-shadow:0 1px 6px rgba(0,0,0,0.3); }
.hiw-step-desc { font-size:13px; color:rgba(255,255,255,0.88); line-height:1.6; }
.hiw-step-pills { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.hiw-pill { font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px; background:rgba(255,255,255,0.18); color:#fff; backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,0.2); }
.hiw-pill.accent { background:rgba(252,128,25,0.85); color:#fff; border-color:transparent; }
.hiw-cta { text-align:center; padding:16px 24px 60px; background:var(--bg-gray); }
.hiw-cta-inner { max-width:420px; margin:0 auto; background:var(--text); border-radius:22px; padding:32px 28px; position:relative; overflow:hidden; }
.hiw-cta-inner::before { content:''; position:absolute; top:-40px; right:-40px; width:140px; height:140px; border-radius:50%; background:rgba(252,128,25,0.18); pointer-events:none; }
.hiw-cta-faces { display:flex; justify-content:center; margin-bottom:16px; }
.hiw-cta-faces img { width:44px; height:44px; border-radius:50%; border:3px solid #2a2018; object-fit:cover; margin-left:-10px; }
.hiw-cta-faces img:first-child { margin-left:0; }
.hiw-cta-title { font-size:26px; font-weight:900; color:#fff; margin-bottom:8px; line-height:1.2; position:relative; }
.hiw-cta-title em { font-style:italic; color:var(--primary); }
.hiw-cta-sub { font-size:13.5px; color:rgba(255,255,255,0.6); margin-bottom:22px; line-height:1.5; position:relative; }
.hiw-cta-btn { width:100%; padding:15px; background:var(--primary); color:#fff; border:none; border-radius:12px; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; box-shadow:0 6px 20px rgba(252,128,25,0.45); transition:transform 0.15s,box-shadow 0.15s; position:relative; }
.hiw-cta-btn:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(252,128,25,0.55); }
.hiw-trust { display:flex; justify-content:center; gap:16px; margin-top:14px; flex-wrap:wrap; }
.hiw-trust-item { font-size:11.5px; color:rgba(255,255,255,0.45); }
