.app-view { display: none; padding: 16px 16px 24px; animation: fadeIn 0.25s ease forwards; }
.app-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.location-picker {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg-card); padding: 8px 14px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.loc-icon { color: var(--primary); display: flex; }
.loc-text { display: flex; flex-direction: column; }
.loc-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.loc-city { font-size: 0.82rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 4px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card);
  border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center;
  position: relative; box-shadow: var(--shadow-sm);
}
.icon-badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--accent-orange); border-radius: 50%; border: 2px solid white; }

.online-counter-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff; padding: 12px 16px; border-radius: var(--radius-md);
  margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between;
}
.counter-info { display: flex; align-items: center; gap: 10px; }
.counter-pulse-dot { width: 10px; height: 10px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; }
.counter-text { font-size: 0.8rem; font-weight: 600; }
.counter-highlight { font-size: 0.95rem; font-weight: 800; color: #38bdf8; font-family: var(--font-heading); }

.home-search-box { position: relative; margin-bottom: 20px; }
.search-input-wrapper {
  display: flex; align-items: center; background: var(--bg-card);
  border: 1.5px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 10px 16px; box-shadow: var(--shadow-sm); cursor: pointer;
}
.search-icon { color: var(--text-muted); margin-right: 12px; display: flex; }
.search-input { flex: 1; border: none; background: transparent; font-size: 0.88rem; font-weight: 500; }
.search-mic-btn { color: var(--primary); display: flex; padding: 4px; }
.quick-chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 10px; }
.chip-btn {
  white-space: nowrap; padding: 6px 12px; border-radius: var(--radius-full);
  background: var(--bg-elevated); font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); border: 1px solid var(--border-light);
}

.labor-hub-hero-card {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 60%, #9a3412 100%);
  border-radius: var(--radius-xl); padding: 20px; color: #ffffff;
  margin-bottom: 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-orange-glow); cursor: pointer;
  transition: transform 0.25s ease;
}
.labor-hub-hero-card:hover { transform: translateY(-2px); }
.hub-hero-bg-pattern { position: absolute; right: -20px; bottom: -25px; opacity: 0.18; }
.hub-hero-bg-pattern svg { width: 170px; height: 170px; }
.hub-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.22); padding: 4px 10px;
  border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700;
  margin-bottom: 10px;
}
.hub-hero-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.hub-hero-subtitle { font-size: 0.8rem; color: #ffedd5; margin-bottom: 16px; max-width: 250px; }
.hub-hero-footer { display: flex; align-items: center; justify-content: space-between; }
.hub-count-pills { display: flex; gap: 6px; }
.hub-pill { background: rgba(0, 0, 0, 0.25); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700; }
.hub-cta-btn {
  background: #ffffff; color: #c2410c; padding: 8px 16px;
  border-radius: var(--radius-full); font-weight: 800; font-size: 0.78rem;
  display: flex; align-items: center; gap: 6px;
}

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.section-link { font-size: 0.78rem; font-weight: 600; color: var(--primary); cursor: pointer; }

.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.category-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 12px 6px; display: flex;
  flex-direction: column; align-items: center; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease;
}
.category-card:hover { transform: translateY(-3px); }
.cat-icon-wrap {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; font-size: 1.4rem;
}
.cat-name { font-size: 0.72rem; font-weight: 700; color: var(--text-main); }
.cat-count { font-size: 0.64rem; color: var(--text-muted); margin-top: 2px; }

.cat-mason .cat-icon-wrap { background: #fee2e2; color: #dc2626; }
.cat-painter .cat-icon-wrap { background: #e0e7ff; color: #4338ca; }
.cat-carpenter .cat-icon-wrap { background: #fef3c7; color: #d97706; }
.cat-electrician .cat-icon-wrap { background: #fef9c3; color: #ca8a04; }
.cat-plumber .cat-icon-wrap { background: #e0f2fe; color: #0284c7; }
.cat-welder .cat-icon-wrap { background: #f1f5f9; color: #475569; }
.cat-tile .cat-icon-wrap { background: #f3e8ff; color: #7e22ce; }
.cat-helper .cat-icon-wrap { background: #dcfce7; color: #16a34a; }

.workers-scroll-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 12px; margin-bottom: 24px; }
.worker-preview-card {
  min-width: 220px; max-width: 230px; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.worker-top-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.worker-avatar-wrap { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; }
.worker-avatar { width: 100%; height: 100%; object-fit: cover; }
.worker-online-status { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; background: var(--success); border: 2px solid white; border-radius: 50%; }
.worker-meta-info { display: flex; flex-direction: column; }
.worker-name { font-size: 0.88rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 4px; }
.worker-trade { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.worker-rating-row { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; margin-bottom: 10px; }
.rating-stars { color: var(--accent-gold); font-weight: 700; }
.worker-tags-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.worker-tag-pill { font-size: 0.65rem; background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; color: var(--text-muted); }
.worker-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-subtle); padding-top: 10px; margin-top: auto; }
.price-val { font-size: 0.92rem; font-weight: 800; color: var(--text-main); font-family: var(--font-heading); }
.price-sub { font-size: 0.62rem; color: var(--text-muted); }
.btn-book-sm { background: var(--primary); color: white; padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }

.trust-banner { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-lg); padding: 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.trust-icon { width: 36px; height: 36px; background: #22c55e; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-text { font-size: 0.75rem; color: #166534; line-height: 1.4; }

.search-header-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.btn-back { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; }
.search-field-active { flex: 1; display: flex; align-items: center; background: var(--bg-card); border: 1.5px solid var(--primary); border-radius: var(--radius-lg); padding: 8px 14px; gap: 8px; }
.search-field-active input { flex: 1; border: none; font-size: 0.85rem; }
.btn-filter-toggle { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; position: relative; }
.filter-badge-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }
.search-filters-bar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.filter-chip { white-space: nowrap; padding: 5px 12px; border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--border-light); font-size: 0.72rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.filter-chip.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.search-results-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 0.78rem; color: var(--text-muted); }
.sort-dropdown { background: transparent; border: none; font-size: 0.76rem; font-weight: 700; color: var(--primary); cursor: pointer; }

.workers-list-vertical { display: flex; flex-direction: column; gap: 12px; }
.worker-list-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.worker-card-header { display: flex; gap: 12px; }
.worker-card-details { flex: 1; min-width: 0; }
.worker-distance-pill { font-size: 0.68rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.worker-action-buttons { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.btn-secondary { flex: 1; padding: 8px; border-radius: var(--radius-md); border: 1px solid var(--border-light); background: var(--bg-elevated); font-size: 0.75rem; font-weight: 600; text-align: center; }
.btn-primary-action { flex: 1; padding: 8px; border-radius: var(--radius-md); background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; text-align: center; }

.profile-hero { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); padding: 24px 16px 20px; border-radius: var(--radius-xl); color: white; margin-bottom: 20px; }
.profile-avatar-large { width: 72px; height: 72px; border-radius: 50%; border: 3px solid white; margin-bottom: 12px; object-fit: cover; }
.profile-badges-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 12px; margin-bottom: 20px; text-align: center; }
.stat-value { font-size: 1.1rem; font-weight: 800; color: var(--text-main); font-family: var(--font-heading); }
.stat-label { font-size: 0.68rem; color: var(--text-muted); }
.profile-section-block { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; }
.block-title { font-size: 0.88rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.work-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.work-gallery-item { height: 75px; border-radius: var(--radius-md); overflow: hidden; background: #cbd5e1; }
.work-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.verif-checklist { display: flex; flex-direction: column; gap: 8px; }
.verif-item { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; }
.verif-icon-ok { color: var(--success); display: flex; }
.fixed-bottom-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; z-index: 60; }

.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.65); z-index: 80; display: none; align-items: flex-end; }
.modal-overlay.active { display: flex; }
.modal-bottom-sheet { width: 100%; max-height: 85%; background: var(--bg-card); border-radius: 28px 28px 0 0; padding: 20px 20px 30px; overflow-y: auto; }
.modal-drag-pill { width: 44px; height: 5px; background: #cbd5e1; border-radius: 4px; margin: 0 auto 16px; }
.modal-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 1.1rem; font-weight: 800; }
.btn-close-modal { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
