/* SkillWala - Service Marketplace Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  /* Off-white — default, readable */
  --bg-primary: #faf8f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f2ec;
  --bg-input: #ffffff;
  --bg-cream: #f3f0ea;
  --bg-warm: #ebe6de;
  --border: #e5e0d8;
  --border-light: #d6d0c6;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --accent-green: #0d9488;
  --accent-blue: #2563eb;
  --accent-orange: #ea580c;
  --accent-pink: #db2777;
  --accent-yellow: #ca8a04;
  --accent-purple: #7c3aed;
  --status-available: #059669;
  --status-available-bg: rgba(5, 150, 105, 0.12);
  --status-busy: #d97706;
  --status-busy-bg: rgba(217, 119, 6, 0.12);
  --error: #dc2626;
  --success: #059669;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 8px 32px rgba(28, 25, 23, 0.07);
  --shadow-sm: 0 2px 12px rgba(28, 25, 23, 0.05);
  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-brand: 'Syne', 'Outfit', sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

/* Dark mode disabled — force light site-wide */
[data-theme="dark"] {
  --bg-primary: #faf8f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f2ec;
  --bg-input: #ffffff;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --border: #e5e0d8;
  color-scheme: light;
}

[data-theme="dark"] .navbar {
  background: #ffffff !important;
}

/* Theme toggle button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-blue);
  transform: rotate(20deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(106, 176, 255, 0.2);
}

.theme-toggle-floating {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1001;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background: transparent;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.logo img,
.logo-img {
  max-width: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 11px;
  background: transparent;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.logo-fallback {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  color: #0a0a12;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Theme toggle — disabled (light only) */
.theme-toggle,
#theme-toggle {
  display: none !important;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #ffffff !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
  font-size: 1.35rem;
}

.logo-skill {
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1c1917 !important;
  -webkit-text-fill-color: #1c1917 !important;
  background: none !important;
}

.logo-waala {
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
  background: none !important;
}

.logo-suffix {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 6px;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

body.is-logged-in #nav-login,
body.is-logged-in #nav-register,
body.is-logged-in .guest-only,
body.is-logged-in .nav-links > li:has(> a[href="register.html"]) {
  display: none !important;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-cream);
}

.nav-links a.active {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-outline {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--error);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-sm { padding: 6px 16px; font-size: 0.8rem; }

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  display: none;
}

.hero-blob {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 32px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.hero h1 .highlight {
  color: var(--accent-blue);
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 900px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.role-home-panel {
  width: 100%;
  max-width: 880px;
  margin: -24px auto 48px;
  padding: 0 8px;
}

.role-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-tagline-hi {
  font-family: 'Noto Sans Devanagari', 'Outfit', 'Mangal', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: #0d9488;
  max-width: 640px;
  margin: 0 auto 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* Hero search — aligned grid */
.hero-search-box {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 56px;
  padding: 0 8px;
}

.hero-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
  align-items: stretch;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-search-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  text-align: left;
  min-width: 0;
}

.hero-search-cell:last-of-type {
  border-right: none;
}

.hero-search-action {
  border-right: none;
  padding: 10px 12px 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-search-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 4px;
  opacity: 0.85;
}

.hero-search-cell input,
.hero-search-cell select {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0;
  outline: none;
  min-width: 0;
}

.hero-search-cell select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888899'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 18px;
}

.hero-search-cell input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  width: 100%;
  margin: 0 !important;
  padding: 15px 26px !important;
  border-radius: 14px !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem !important;
}

.hero-search-arrow {
  font-size: 1.1rem;
  opacity: 0.9;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 24px;
  max-width: 560px;
  width: 100%;
  margin-bottom: 60px;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  padding: 12px 0;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar .btn { flex-shrink: 0; }

.scroll-hint {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sections */
section { padding: 80px 0; position: relative; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 560px;
}

.section-cream {
  background: var(--bg-cream);
}

.section-white {
  background: var(--bg-secondary);
}

.highlight-strip {
  padding: 56px 0;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
  color: #fff;
}

.highlight-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.highlight-strip h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.highlight-strip p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
}

.highlight-strip .btn-primary {
  background: #fff;
  color: #1c1917;
  flex-shrink: 0;
}

.highlight-strip .btn-primary:hover {
  background: #f5f2ec;
  transform: translateY(-2px);
}

/* About page */
.about-hero {
  padding: calc(var(--nav-height) + 64px) 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(13, 148, 136, 0.06) 0%, transparent 50%),
    var(--bg-primary);
  text-align: center;
}

.about-hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--text-primary);
}

.about-hero .hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.about-stat {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
}

.about-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.about-stat span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-mission-visual {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  font-size: 4rem;
  box-shadow: var(--shadow-sm);
}

.about-mission h2 {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

.about-mission p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-value-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: rgba(37, 99, 235, 0.08);
}

.about-value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-timeline {
  max-width: 640px;
  margin: 0 auto;
}

.about-timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.about-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.about-timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.about-timeline-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.about-timeline-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.about-cta {
  text-align: center;
  padding: 64px 40px;
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.about-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 900px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-mission { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .highlight-strip-inner { text-align: center; justify-content: center; }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-value.blue { color: var(--accent-blue); }
.stat-value.green { color: var(--accent-green); }
.stat-value.orange { color: var(--accent-orange); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Worker cards */
.workers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.worker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.worker-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.worker-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.worker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.worker-info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.worker-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.worker-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.stars { color: var(--accent-orange); letter-spacing: 1px; }

.rating-text { color: var(--text-secondary); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-available {
  background: var(--status-available-bg);
  color: var(--status-available);
}

.status-busy {
  background: var(--status-busy-bg);
  color: var(--status-busy);
}

.worker-rate {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 12px 0 16px;
}

.worker-rate span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(106, 176, 255, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Forms */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.profile-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.form-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.form-card-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

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

.error-message {
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.error-message.visible { display: block; }

.form-success {
  background: rgba(125, 255, 179, 0.1);
  border: 1px solid rgba(125, 255, 179, 0.3);
  color: var(--success);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
  font-size: 0.9rem;
}

.form-success.visible { display: block; }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 40px;
  background: var(--bg-primary);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
}

.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-blue);
  font-weight: 600;
}

.account-email-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: -8px 0 20px;
  text-align: center;
}

.password-strength-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.password-strength-list li {
  padding: 3px 0;
}

.password-strength-list li.met {
  color: var(--accent-green);
}

.role-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.role-toggle button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.role-toggle button.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(106, 176, 255, 0.08);
}

/* Page layouts */
.page-header {
  padding: calc(var(--nav-height) + 56px) 0 48px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 10px;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-content {
  padding: 48px 0 80px;
  background: var(--bg-primary);
}

/* Profile page */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.profile-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.profile-meta-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-meta-item strong {
  color: var(--text-primary);
  display: block;
}

.reviews-list { margin-top: 24px; }

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author { font-weight: 600; font-size: 0.9rem; }

.review-date { font-size: 0.8rem; color: var(--text-muted); }

.review-text { font-size: 0.9rem; color: var(--text-secondary); }

/* Booking & Payment */
.booking-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.booking-step {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.booking-step.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(106, 176, 255, 0.08);
}

.booking-step.done {
  border-color: var(--success);
  color: var(--success);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-input);
}

.payment-method:hover,
.payment-method.selected {
  border-color: var(--accent-blue);
  background: rgba(106, 176, 255, 0.08);
}

.payment-method .icon { font-size: 1.5rem; margin-bottom: 8px; }

.payment-method .label { font-size: 0.85rem; }

.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.order-summary h3 { margin-bottom: 16px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Admin dashboard */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: 240px;
  overflow-y: auto;
}

.admin-sidebar h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 0 12px;
}

.admin-nav {
  list-style: none;
}

.admin-nav li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.admin-nav li a:hover,
.admin-nav li a.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.admin-main {
  margin-left: 240px;
  padding: 32px;
  flex: 1;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.admin-stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-stat .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-table-header h3 { font-size: 1.1rem; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 24px;
  text-align: left;
  font-size: 0.85rem;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

td { border-bottom: 1px solid var(--border); }

tr:last-child td { border-bottom: none; }

.table-actions {
  display: flex;
  gap: 8px;
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}

.toast.success { border-color: rgba(125, 255, 179, 0.4); }
.toast.error { border-color: rgba(255, 107, 107, 0.4); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Star rating input */
.star-rating {
  display: flex;
  gap: 4px;
  font-size: 1.5rem;
  cursor: pointer;
}

.star-rating .star {
  color: var(--border-light);
  transition: color 0.15s;
}

.star-rating .star.active,
.star-rating .star.hover { color: var(--accent-orange); }

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 12px 40px rgba(106, 176, 255, 0.1);
}

.blog-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.blog-category {
  color: var(--accent-blue);
  background: rgba(106, 176, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.blog-date {
  color: var(--text-muted);
}

.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  background: rgba(106, 176, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-info-item a,
.contact-info-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-info-item a:hover { color: var(--accent-blue); }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .workers-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-search-query {
    grid-column: 1 / -1;
  }

  .hero-search-action {
    grid-column: 1 / -1;
    padding: 8px 12px 12px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .mobile-menu-btn { display: block; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .workers-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .forms-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; padding: 16px; border-radius: var(--radius); }
  .search-bar .btn { width: 100%; }

  .hero-search-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .hero-search-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }

  .hero-search-action {
    border-bottom: none;
    padding: 4px 12px 12px;
  }

  .hero-search-btn {
    width: 100%;
    justify-content: center;
    margin: 0 !important;
  }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-main { margin-left: 0; }
  .payment-methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* ── Enhanced features ── */
.worker-location {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.status-pending {
  background: rgba(255, 180, 77, 0.15);
  color: #ffb84d;
}

.status-completed {
  background: rgba(125, 255, 179, 0.12);
  color: var(--accent-green);
}

.workers-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: stretch;
  flex-wrap: wrap;
}

.location-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  min-width: 160px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-stars {
  color: #ffb84d;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-author {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  color: var(--text-secondary);
  padding-bottom: 16px;
  line-height: 1.6;
}

.bookings-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.bookings-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.bookings-stat-card .value {
  font-size: 1.8rem;
  font-weight: 700;
}

.bookings-stat-card .value.orange { color: #ffb84d; }
.bookings-stat-card .value.green { color: var(--accent-green); }
.bookings-stat-card .value.blue { color: var(--accent-blue); }

.bookings-stat-card .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.bookings-list {
  display: grid;
  gap: 20px;
}

.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.booking-card-header h3 {
  font-size: 1.1rem;
}

.booking-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.booking-card-body {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.booking-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}

.booking-row span:first-child {
  color: var(--text-secondary);
}

.booking-row.total {
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.service-groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.service-group-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.service-group-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow);
}

.service-group-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-group-card.active-group {
  border-color: var(--accent-green);
}

.service-group-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-group-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.service-group-count {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--accent-blue);
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin: -8px 0 28px;
}

.pincode-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pincode-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 110px;
  font-size: 0.95rem;
}

.worker-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.booking-card.compact {
  padding: 16px;
  margin-bottom: 12px;
}

.demo-badge {
  font-size: 0.78rem;
  color: #ffb84d;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 184, 77, 0.1);
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .service-groups-grid { grid-template-columns: repeat(2, 1fr); }
  .worker-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .service-groups-grid { grid-template-columns: 1fr; }
}

/* Legal, PWA, photos, maps, verification */
.legal-page { padding-top: calc(var(--nav-height) + 24px); }
.legal-content { max-width: 720px; margin: 0 auto; padding-bottom: 48px; }
.legal-content h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-content h2 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--accent-blue); }
.legal-content p, .legal-content li { color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.legal-updated { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 32px; }

.legal-links { margin-left: 16px; font-size: 0.85rem; }
.legal-links a { color: var(--text-secondary); margin: 0 4px; }
.legal-links a:hover { color: var(--accent-blue); }

.worker-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.worker-photo.profile-avatar-lg,
.worker-photo.dashboard-photo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
}

.profile-hero .worker-photo.profile-avatar-lg {
  width: 96px;
  height: 96px;
}

.verified-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(125, 255, 179, 0.15);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

.profile-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.profile-map-iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.profile-map-fallback {
  padding: 32px;
  text-align: center;
}

.photo-upload-wrap {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.photo-upload-label { cursor: pointer; display: inline-block; margin-top: 12px; }

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

.checkbox-group { margin: 16px 0; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input { margin-top: 3px; }
.checkbox-label a { color: var(--accent-blue); }

#aadhaar-panel { max-width: 100%; }

/* ── Social media ── */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--social-color, var(--accent-blue));
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-2px);
  border-color: var(--social-color, var(--accent-blue));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: var(--social-color, var(--accent-blue));
}

.social-icon--sm { width: 38px; height: 38px; }
.social-icon--md { width: 44px; height: 44px; }
.social-icon--lg { width: 50px; height: 50px; }

.social-svg { display: block; }

.social-cta-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-cream));
}

.social-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.social-cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 8px 0 12px;
}

.social-cta-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 480px;
}

.social-cta-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.social-section {
  margin-bottom: 56px;
}

.social-section-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.social-section-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
  max-width: 640px;
}

.social-section-desc code {
  font-size: 0.82rem;
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent-green);
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--social-color, var(--accent-blue));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.social-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--social-color) 18%, transparent);
  color: var(--social-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.social-card-body strong { font-size: 1rem; }
.social-card-handle { font-size: 0.82rem; color: var(--accent-blue); }
.social-card-desc { font-size: 0.8rem; color: var(--text-secondary); }
.social-card-arrow { color: var(--text-muted); font-size: 1.1rem; }

.share-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.share-panel-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.share-panel-url span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.02em;
}

.share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.share-btn:hover {
  border-color: var(--social-color);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.share-btn .social-svg { color: var(--social-color); }

.hashtag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hashtag-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(106, 176, 255, 0.1);
  border: 1px solid rgba(106, 176, 255, 0.25);
  font-size: 0.82rem;
  color: var(--accent-blue);
}

.ad-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ad-copy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ad-copy-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(106, 176, 255, 0.15);
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.ad-copy-badge.worker {
  background: rgba(127, 255, 204, 0.12);
  color: var(--accent-green);
}

.ad-copy-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  min-height: 4.5em;
}

.social-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(106, 176, 255, 0.12), rgba(127, 255, 204, 0.08));
  border: 1px solid rgba(106, 176, 255, 0.25);
  margin-bottom: 48px;
}

.social-cta-banner h3 { margin-bottom: 6px; }
.social-cta-banner p { color: var(--text-secondary); font-size: 0.92rem; }

@media (max-width: 768px) {
  .social-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .social-cta-text p { margin-left: auto; margin-right: auto; }
  .share-panel-url { flex-direction: column; align-items: stretch; }
  .share-panel-url .btn { width: 100%; }
}

/* Trust points (marketplace idea) */
.why-section { padding: 48px 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.why-card-icon { font-size: 1.75rem; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Business model page */
.bm-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.bm-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.bm-summary-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.bm-summary-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.bm-summary-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }

.bm-problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bm-ps-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.bm-ps-solution {
  border-color: rgba(13, 148, 136, 0.25);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(37, 99, 235, 0.04));
}

.bm-ps-block h3 { font-size: 1.15rem; margin-bottom: 16px; }

.bm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bm-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.bm-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

.bm-value-tag {
  margin-top: 12px !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  color: var(--accent-blue) !important;
}

.bm-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bm-category-chip {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bm-category-chip span:first-child { font-size: 1.75rem; flex-shrink: 0; }
.bm-category-chip strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.bm-category-chip p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.bm-revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bm-revenue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-revenue-primary {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), var(--bg-card));
}

.bm-revenue-pct {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.2;
}

.bm-revenue-card h3 { font-size: 1rem; }
.bm-revenue-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; flex: 1; }

.bm-revenue-phase {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-green);
  margin-top: 4px;
}

.bm-canvas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bm-canvas-cell {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bm-canvas-wide { grid-column: span 3; }

.bm-canvas-cell h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.bm-canvas-cell ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bm-canvas-cell li,
.bm-canvas-cell p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bm-economics {
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bm-econ-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.bm-econ-row span { color: var(--text-secondary); }
.bm-econ-deduct strong { color: var(--error); }
.bm-econ-total { background: var(--bg-cream); }
.bm-econ-total strong { color: var(--text-primary); font-size: 1.1rem; }
.bm-econ-highlight { background: rgba(13, 148, 136, 0.08); border-bottom: none; }
.bm-econ-highlight strong { color: var(--accent-green); font-size: 1.15rem; }

.bm-econ-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.bm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bm-metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.bm-metric strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--accent-blue);
}

.bm-metric span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .bm-summary-grid,
  .bm-revenue-grid,
  .bm-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-problem-solution { grid-template-columns: 1fr; }
  .bm-canvas { grid-template-columns: 1fr 1fr; }
  .bm-canvas-wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .bm-summary-grid,
  .bm-revenue-grid,
  .bm-metrics-grid,
  .bm-category-grid { grid-template-columns: 1fr; }
  .bm-canvas,
  .bm-canvas-wide { grid-template-columns: 1fr; grid-column: span 1; }
}
