/* Dashboard UX extras — sidebar, jobs grid, chat dark mode, tour */

.wa-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.wa-notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.wa-notify-bell svg {
  width: 20px;
  height: 20px;
}

.wa-notify-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-orange, #f97316);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-header-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.wa-header-profile-btn img,
#wa-header-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wa-sidebar {
  display: flex;
  flex-direction: column;
  padding: 0.75rem !important;
}

.wa-dashboard:has(.wa-sidebar-collapsed) {
  grid-template-columns: 58px 1fr;
}

.wa-sidebar-collapsed .wa-nav-group {
  padding: 0.25rem 0;
}

.wa-sidebar-user {
  border-bottom: none !important;
  margin-bottom: 0.5rem !important;
}

.wa-sidebar-toggle {
  align-self: flex-end;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  padding: 0;
}

.wa-sidebar-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.wa-sidebar-collapsed .wa-sidebar-toggle svg {
  transform: rotate(180deg);
}

.wa-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.wa-sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wa-sidebar-user-text {
  min-width: 0;
}

.wa-sidebar-user-text strong {
  display: block;
  font-size: 0.92rem;
}

.wa-sidebar-user-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.wa-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.wa-nav-support {
  text-decoration: none;
  color: inherit;
}

.wa-sidebar-collapsed .wa-sidebar-user-text,
.wa-sidebar-collapsed .wa-nav-label,
.wa-sidebar-collapsed .wa-nav-item span,
.wa-sidebar-collapsed .wa-nav-highlight,
.wa-sidebar-collapsed .wa-sidebar-foot span {
  display: none;
}

.wa-sidebar-collapsed .wa-nav-item,
.wa-sidebar-collapsed .wa-nav-support,
.wa-sidebar-collapsed .wa-sidebar-user {
  justify-content: center;
}

.wa-sidebar-collapsed .wa-sidebar-user {
  padding: 0.5rem;
  justify-content: center;
  overflow: hidden;
}

.wa-sidebar-collapsed .wa-sidebar-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.wa-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.wa-page-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wa-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.wa-toolbar-split {
  justify-content: space-between;
}

.wa-search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.wa-search-field input {
  border: none;
  background: transparent;
  flex: 1;
  font: inherit;
  color: var(--text);
  min-width: 0;
}

.wa-search-icon {
  color: var(--muted);
  font-size: 0.9rem;
}

.wa-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.wa-select-wrap select {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.wa-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.wa-job-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.wa-job-card:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 35%, var(--border));
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  background: color-mix(in srgb, var(--brand-blue) 4%, var(--surface));
}

.wa-job-card-emergency {
  border-color: color-mix(in srgb, #ef4444 40%, var(--border));
}

.wa-job-card-media {
  position: relative;
  overflow: visible;
}

.wa-job-card-unsaved {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.wa-job-card-unsaved .wa-job-heart-btn {
  pointer-events: auto;
  opacity: 1;
}

.wa-job-card-img {
  aspect-ratio: 16 / 7;
  max-height: 140px;
  background: color-mix(in srgb, var(--bg) 70%, var(--border));
  overflow: hidden;
}

.wa-job-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.wa-job-card-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--muted);
}

.wa-job-card-body {
  padding: 1rem;
}

.wa-job-card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.35rem 0 0.65rem;
  line-height: 1.45;
}

.wa-job-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 1rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.wa-job-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.wa-job-heart-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  transform: translate(15%, -15%);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.wa-job-heart-btn:hover {
  transform: translate(15%, -15%) scale(1.06);
  background: #fff;
}

.wa-job-heart-btn.saved {
  color: #ef4444;
  background: rgba(255, 255, 255, 0.98);
}

.wa-job-heart-btn.wa-job-save-detail {
  position: static;
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  gap: 0.35rem;
}

.wa-emergency-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.wa-emergency-badge-lg {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.wa-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--bg) 60%, var(--border));
  color: var(--text);
}

.wa-tag-cat {
  font-weight: 600;
}

.wa-tag-custom {
  border: 1px dashed var(--border);
}

.wa-job-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wa-btn-danger-text {
  color: #dc2626 !important;
}

.wa-chat-list-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.wa-chat-list-row .wa-list-item {
  flex: 1;
}

.wa-chat-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding-right: 0.25rem;
}

.wa-chat-job-ref {
  font-size: 0.78rem;
  color: var(--brand-navy);
  margin: 0.15rem 0;
}

.wa-chat-job-banner {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand-navy) 8%, var(--surface));
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.wa-chat-header {
  justify-content: space-between;
}

.wa-chat-header-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.wa-chat-header-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.wa-msg.theirs {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

[data-theme="dark"] .wa-msg.theirs,
html.dark .wa-msg.theirs {
  background: color-mix(in srgb, var(--surface) 90%, #fff 10%);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .wa-chat-compose input[type="text"],
html.dark .wa-chat-compose input[type="text"] {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.wa-profile-views {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.5rem 0 1rem;
}

.wa-preview-banner {
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-orange, #f97316) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-orange, #f97316) 35%, var(--border));
  font-size: 0.9rem;
}

.wa-review-author {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.wa-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.wa-form-sections .wa-form-section {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.wa-form-sections .wa-form-section h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.wa-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .wa-field-row {
    grid-template-columns: 1fr;
  }
}

.wa-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.wa-tour-card {
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.wa-tour-step {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.wa-tour-dots {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0;
}

.wa-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.wa-tour-dot.active {
  background: var(--brand-navy);
}

.wa-tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.about-copy-only {
  max-width: 720px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--brand-tagline) 10%, var(--surface));
  border-color: var(--border);
}

/* Role accents */
body.wa-role-customer .wa-nav-item.active {
  background: color-mix(in srgb, var(--brand-navy) 12%, var(--surface));
  color: var(--brand-navy);
}

body.wa-role-provider .wa-nav-item.active {
  background: color-mix(in srgb, var(--brand-orange, #f97316) 14%, var(--surface));
  color: var(--brand-navy);
}

body.wa-role-customer .btn-primary {
  background: var(--brand-navy);
}

body.wa-role-provider .btn-primary {
  background: var(--brand-orange, #f97316);
  color: #fff;
}

.wa-role-pick .wa-role-customer.selected {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 1px var(--brand-navy);
}

.wa-role-pick .wa-role-provider.selected {
  border-color: var(--brand-orange, #f97316);
  box-shadow: 0 0 0 1px var(--brand-orange, #f97316);
}

.footer-mail-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.wa-job-views {
  color: var(--muted);
  font-size: 0.82rem;
}

.wa-premium-banner {
  margin: -0.5rem 0 1rem;
}

.wa-success {
  color: #15803d;
  background: color-mix(in srgb, #22c55e 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #22c55e 35%, var(--border));
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 0.75rem 0;
}

/* Notification popup */
.wa-notify-panel[hidden] {
  display: none !important;
}

.wa-notify-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  justify-content: flex-end;
  padding: 4.5rem 1rem 1rem;
}

.wa-notify-panel-inner {
  width: min(380px, 100%);
  max-height: calc(100vh - 6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wa-notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.wa-notify-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.wa-notify-panel-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.wa-notify-panel-body {
  overflow-y: auto;
  padding: 0.5rem;
}

.wa-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wa-notify-item {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.wa-notify-item:hover {
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
}

.wa-notify-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.wa-notify-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.wa-notify-item time {
  font-size: 0.75rem;
  color: var(--muted);
}

.wa-notify-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  color: var(--brand-navy);
}

.wa-notify-empty,
.wa-notify-loading {
  padding: 1.25rem;
  text-align: center;
}

/* Support form */
.wa-support-form {
  max-width: 100%;
  margin: 0 auto 1rem;
  padding: 1.25rem;
  border: 2px solid color-mix(in srgb, var(--brand-orange, #f97316) 45%, var(--border));
  border-radius: 14px;
  background: var(--surface);
}

.wa-support-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.wa-support-privacy {
  margin-top: 1rem;
  max-width: 100%;
}

/* Stats dashboard */
.wa-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.wa-stat-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.wa-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.wa-stat-value {
  font-size: 1.6rem;
  color: var(--brand-navy);
}

.wa-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wa-stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.wa-stats-locked {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
}

/* Job detail */
.wa-job-detail {
  margin-bottom: 1.25rem;
}

.wa-job-detail-hero {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  max-height: 360px;
  cursor: zoom-in;
}

.wa-job-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wa-job-detail-head h1 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.65rem;
}

.wa-job-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.wa-job-detail-loc {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.wa-job-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

.wa-bid-panel {
  width: 100%;
  margin-top: 0;
}

.wa-bid-panel .wa-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wa-bid-panel .wa-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.wa-bid-panel .btn-lg {
  width: 100%;
  justify-content: center;
}

.wa-bid-sent-card {
  width: 100%;
}

.wa-market-filters {
  align-items: center;
}

.wa-filter-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  min-width: 0;
}

@media (max-width: 720px) {
  .wa-market-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .wa-filter-select {
    width: 100%;
  }
  .wa-bid-panel .wa-field-row {
    grid-template-columns: 1fr;
  }
}

.wa-sidebar {
  padding: 0.5rem !important;
}

.wa-nav-item {
  padding: 0.5rem 0.65rem;
  font-size: 0.86rem;
}

.wa-nav-item svg {
  width: 18px;
  height: 18px;
}

.wa-sidebar-avatar {
  width: 32px;
  height: 32px;
}

/* Support page centered */
.wa-support-page {
  max-width: 640px;
  margin: 0 auto;
}

.wa-support-contact-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.wa-support-privacy .wa-card-body {
  text-align: left;
}

/* Status filter tabs */
.wa-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.wa-filter-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.wa-filter-tab.active {
  border-color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 10%, var(--surface));
  color: var(--brand-navy);
  font-weight: 600;
}

/* Job cards — no underline, light hover */
.wa-job-card-link,
.wa-job-card-link:hover,
.wa-job-card-link * {
  text-decoration: none !important;
}

.wa-job-card-link:hover {
  color: inherit;
}

.wa-job-detail-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.wa-job-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.wa-job-detail-topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.wa-price-lg {
  font-size: 1.25rem;
  font-weight: 800;
}

.wa-job-detail-thumb {
  margin: 0.75rem 0;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.wa-job-detail-thumb img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.wa-job-detail-emergency {
  border-color: color-mix(in srgb, #ef4444 35%, var(--border));
}

.wa-job-docs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wa-hours-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.wa-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.wa-hours-list li.wa-hours-closed {
  color: var(--muted);
}

.wa-hours-block .wa-avail-badge {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.wa-help-center {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.wa-help-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.wa-help-footer {
  margin-top: 0.5rem;
}

.wa-photo-thumb-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: color-mix(in srgb, var(--bg) 80%, var(--border));
}

.wa-doc-icon {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--brand-navy);
}

.wa-doc-name {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  padding: 0 0.25rem;
  word-break: break-all;
}

/* Char hints */
.wa-char-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  text-align: right;
}

.wa-char-bad { color: #dc2626; }
.wa-char-ok { color: #16a34a; font-weight: 600; }

/* Photo upload grid */
.wa-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.wa-photo-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.wa-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wa-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
}

.wa-photo-add {
  width: 88px;
  height: 88px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.75rem;
}

.wa-photo-count {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Back button */
.wa-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.wa-back:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 35%, var(--border));
  color: var(--brand-blue);
}

/* Chat menu + read receipts */
.wa-menu-wrap {
  position: relative;
}

.wa-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--brand-navy);
}

.wa-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 20;
  overflow: hidden;
}

.wa-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.wa-dropdown-menu button:hover {
  background: color-mix(in srgb, var(--brand-blue) 6%, var(--surface));
}

.wa-menu-danger {
  color: #dc2626;
}

.wa-msg-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  opacity: 0.85;
}

.wa-msg-ticks {
  letter-spacing: -0.15em;
  font-size: 0.85rem;
}

.wa-msg-ticks.read {
  color: #3b82f6;
}

.wa-nav-support svg {
  flex-shrink: 0;
}

.wa-sidebar-foot {
  padding-bottom: 0.35rem;
}

.wa-sidebar-foot .wa-nav-support {
  min-height: 40px;
}

/* Job detail polish */
.wa-job-detail {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.wa-job-detail-desc {
  margin-top: 1rem;
}

/* Header user menu */
.wa-header-user {
  position: relative;
}

.wa-header-user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  padding: 0.65rem;
  z-index: 12000;
}

.wa-header-user-menu[hidden] {
  display: none !important;
}

.wa-header-user-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.35rem 0.35rem 0.65rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.wa-header-user-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-header-user-head span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.wa-header-user-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.35rem 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wa-header-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.wa-header-menu-item:hover {
  background: color-mix(in srgb, var(--brand-blue) 8%, var(--surface));
}

.wa-header-menu-logout {
  color: #dc2626;
  font-weight: 600;
}

.wa-header-theme {
  margin-bottom: 0.35rem;
}

/* Availability badge */
.wa-avail-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.wa-avail-open {
  background: color-mix(in srgb, #16a34a 14%, var(--surface));
  color: #16a34a;
}

.wa-avail-closed {
  background: color-mix(in srgb, #dc2626 12%, var(--surface));
  color: #dc2626;
}

/* Follow list */
.wa-follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.wa-follow-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}

.wa-follow-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wa-follow-item:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 35%, var(--border));
}

/* Job detail header */
.wa-job-detail-head-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.wa-job-save-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.wa-job-save-btn.saved {
  border-color: color-mix(in srgb, var(--brand-orange, #f97316) 50%, var(--border));
  color: var(--brand-orange, #f97316);
}

.wa-bid-panel {
  margin-top: 0;
}

.wa-settings-section-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wa-settings-theme-card {
  margin-top: 1rem;
}

/* Profile hours — compact */
.wa-profile-hours {
  margin-top: 0.35rem;
}

.wa-profile-hours .wa-hours-compact {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.wa-hours-now {
  color: #16a34a;
  font-weight: 600;
}

.wa-hours-now-closed {
  color: var(--muted);
  font-weight: 500;
}

/* Workity+ status on own profile */
.wa-premium-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.wa-premium-status-active {
  background: color-mix(in srgb, #f59e0b 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--border));
}

.wa-premium-status-inactive {
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--muted);
}

/* Bid sent panel */
.wa-bid-sent-panel {
  border: 1px solid color-mix(in srgb, var(--brand-blue) 35%, var(--border));
  background: color-mix(in srgb, var(--brand-blue) 6%, var(--surface));
}

.wa-bid-sent-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wa-bid-sent-head h2 {
  margin: 0 0 0.15rem;
}

.wa-bid-sent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, #16a34a 18%, var(--surface));
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}

.wa-bid-sent-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.wa-bid-sent-msg {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--brand-blue);
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}

/* Job detail title + map presence */
.wa-job-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.wa-job-detail-title-row h1 {
  margin: 0;
  flex: 1;
}

.wa-job-map-presence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.75rem;
}

.wa-tag-muted {
  background: color-mix(in srgb, var(--bg) 70%, var(--border));
  color: var(--muted);
}

/* Notifications dismiss */
.wa-notify-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
}

.wa-notify-row .wa-notify-item {
  flex: 1;
  border-radius: 0;
}

.wa-notify-dismiss {
  flex-shrink: 0;
  width: 2.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.wa-notify-row:hover .wa-notify-dismiss,
.wa-notify-dismiss:focus-visible {
  opacity: 1;
}

.wa-notify-dismiss:hover {
  background: color-mix(in srgb, #ef4444 12%, var(--surface));
  color: #ef4444;
}
