/* QuickGigs — shared feature UI (P1/P2): search, share, report, trust badges, discovery cards */

:root {
  --qg-trust-green: #4ade80;
  --qg-trust-amber: #fbbf24;
  --qg-trust-blue: #60a5fa;
}

body.light {
  --qg-trust-green: #16a34a;
  --qg-trust-amber: #d97706;
  --qg-trust-blue: #2563eb;
}

/* ── Trust badges (profiles, worker cards) ── */
.qg-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 4px;
}

.qg-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  border: 0.5px solid rgba(200, 168, 233, 0.22);
  background: rgba(107, 63, 160, 0.12);
  color: var(--lavender, #c8a8e9);
}

body.light .qg-trust-badge {
  background: #f5f0ff;
  border-color: #e8e2ff;
  color: #6b3fa0;
}

.qg-trust-badge.is-green {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
  color: var(--qg-trust-green);
}

.qg-trust-badge.is-amber {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
  color: var(--qg-trust-amber);
}

/* ── Action chip row (share / report) ── */
.qg-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.qg-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0.5px solid var(--border, rgba(200, 168, 233, 0.2));
  background: var(--surface, rgba(255, 255, 255, 0.04));
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.qg-chip-btn:hover {
  transform: translateY(-1px);
  border-color: var(--purple-light, #9b6fc4);
  color: var(--lavender, #c8a8e9);
}

.qg-chip-btn.is-danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
}

body.light .qg-chip-btn {
  background: #f8f7ff;
  border-color: #e8e2ff;
}

.qg-save-trigger.is-saved {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}

body.light .qg-save-trigger.is-saved {
  color: #d97706;
  background: #fffbeb;
  border-color: #fcd34d;
}

/* ── Report / dispute sheet (Profile Studio style) ── */
.qg-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(5, 0, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.qg-report-overlay.open {
  display: flex;
  animation: qgReportFadeIn 0.28s ease;
}

@keyframes qgReportFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes qgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qg-report-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0a38 0%, #120628 38%, #0e021f 100%);
  border: 0.5px solid rgba(200, 168, 233, 0.2);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  animation: qgSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body.light .qg-report-sheet {
  background: linear-gradient(180deg, #fff 0%, #faf8ff 45%, #f5f0ff 100%);
  border-color: #e8e2ff;
  box-shadow: 0 -16px 48px rgba(107, 63, 160, 0.12);
}

.qg-report-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(200, 168, 233, 0.35);
  margin: 10px auto 0;
  flex-shrink: 0;
}

.qg-report-header {
  position: relative;
  padding: 8px 22px 16px;
  text-align: center;
  flex-shrink: 0;
}

.qg-report-header-glow {
  position: absolute;
  inset: -40px 20% auto;
  height: 120px;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.22), transparent 70%);
  pointer-events: none;
}

.qg-dispute-overlay .qg-report-header-glow {
  background: radial-gradient(circle, rgba(155, 111, 196, 0.35), transparent 70%);
}

.qg-report-close {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0.5px solid rgba(200, 168, 233, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.qg-report-close:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

body.light .qg-report-close {
  background: #f8f7ff;
  border-color: #e8e2ff;
  color: #6b7280;
}

.qg-report-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f87171;
  margin-bottom: 4px;
}

.qg-dispute-overlay .qg-report-kicker {
  color: var(--lavender, #c8a8e9);
}

body.light .qg-report-kicker {
  color: #dc2626;
}

body.light .qg-dispute-overlay .qg-report-kicker {
  color: var(--purple, #6b3fa0);
}

.qg-report-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 8px;
  color: var(--text, #fff);
  line-height: 1.2;
}

.qg-report-sub {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
  margin: 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.qg-report-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 12px;
  -webkit-overflow-scrolling: touch;
}

.qg-report-body::-webkit-scrollbar {
  width: 4px;
}

.qg-report-body::-webkit-scrollbar-thumb {
  background: rgba(200, 168, 233, 0.25);
  border-radius: 4px;
}

.qg-report-target {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 113, 113, 0.1);
  border: 0.5px solid rgba(248, 113, 113, 0.22);
  margin-bottom: 16px;
}

body.light .qg-report-target {
  background: #fef2f2;
  border-color: #fecaca;
}

.qg-report-target-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.qg-report-target-text {
  min-width: 0;
  text-align: left;
}

.qg-report-target-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint, rgba(255, 255, 255, 0.62));
  margin-bottom: 2px;
}

.qg-report-target-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.light .qg-report-target-text strong {
  color: #2d1b4e;
}

.qg-report-field {
  margin-bottom: 16px;
}

.qg-report-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint, rgba(255, 255, 255, 0.62));
  margin-bottom: 10px;
}

.qg-report-optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  opacity: 0.75;
}

.qg-report-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 380px) {
  .qg-report-reasons {
    grid-template-columns: 1fr;
  }
}

.qg-report-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 0.5px solid rgba(200, 168, 233, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}

.qg-report-reason:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 168, 233, 0.35);
}

.qg-report-reason.is-selected {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

body.light .qg-report-reason {
  background: #fff;
  border-color: #e8e2ff;
  color: #5a5a72;
}

body.light .qg-report-reason.is-selected {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.qg-dispute-overlay .qg-report-reason.is-selected {
  border-color: rgba(155, 111, 196, 0.5);
  background: rgba(107, 63, 160, 0.18);
  color: var(--lavender, #c8a8e9);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.12);
}

body.light .qg-dispute-overlay .qg-report-reason.is-selected {
  background: #ede9ff;
  border-color: #9b6fc4;
  color: #6b3fa0;
}

.qg-report-reason-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.qg-report-reason-label {
  line-height: 1.35;
}

.qg-report-textarea-wrap {
  position: relative;
}

.qg-report-select,
.qg-report-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 14px 14px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  border: 0.5px solid rgba(200, 168, 233, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text, #fff);
  outline: none;
  resize: none;
  min-height: 112px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.qg-report-textarea:focus {
  border-color: var(--purple-light, #9b6fc4);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}

body.light .qg-report-select,
body.light .qg-report-textarea {
  background: #f8f7ff;
  border-color: #e8e2ff;
  color: #2d1b4e;
}

.qg-report-char {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 10px;
  color: var(--text-faint, rgba(255, 255, 255, 0.62));
  pointer-events: none;
}

.qg-report-char.is-near {
  color: #fbbf24;
}

.qg-report-char.is-over {
  color: #f87171;
}

.qg-report-footer,
.qg-report-actions {
  display: flex;
  gap: 10px;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  border-top: 0.5px solid rgba(200, 168, 233, 0.12);
  background: rgba(0, 0, 0, 0.15);
}

body.light .qg-report-footer,
body.light .qg-report-actions {
  background: rgba(255, 255, 255, 0.65);
  border-top-color: #ece8ff;
}

.qg-report-cancel {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 0.5px solid rgba(200, 168, 233, 0.25);
  background: transparent;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.qg-report-cancel:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 168, 233, 0.4);
}

body.light .qg-report-cancel {
  background: #fff;
  border-color: #e8e2ff;
  color: #6b7280;
}

.qg-report-submit {
  flex: 2;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.qg-dispute-overlay .qg-report-submit {
  background: linear-gradient(135deg, #6b3fa0, #9b6fc4);
  box-shadow: 0 8px 24px rgba(107, 63, 160, 0.35);
}

.qg-report-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.qg-report-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 640px) {
  .qg-report-overlay {
    align-items: center;
    padding: 24px;
  }

  .qg-report-sheet {
    border-radius: 26px;
    border-bottom: 0.5px solid rgba(200, 168, 233, 0.2);
    max-height: min(88vh, 720px);
  }

  body.light .qg-report-sheet {
    border-bottom-color: #e8e2ff;
  }
}

/* ── PWA install banner ── */
.qg-pwa-banner {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0 20px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.25), rgba(155, 111, 196, 0.12));
  border: 0.5px solid rgba(200, 168, 233, 0.28);
  animation: qgSlideUp 0.4s ease;
}

.qg-pwa-banner.show {
  display: flex;
}

.qg-pwa-banner-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text, #fff);
}

.qg-pwa-banner-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.qg-pwa-install {
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: #9b6fc4;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.qg-pwa-dismiss {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ── Discovery / category grid ── */
.qg-page-hero {
  padding: 20px 20px 8px;
}

.qg-page-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lavender, #c8a8e9);
  margin-bottom: 6px;
}

.qg-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 8px;
}

.qg-page-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}

.qg-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px 24px;
}

@media (min-width: 540px) {
  .qg-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.qg-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 0.5px solid var(--border, rgba(200, 168, 233, 0.15));
  background: var(--card-bg, rgba(255, 255, 255, 0.04));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.qg-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple-light, #9b6fc4);
  box-shadow: 0 12px 32px rgba(107, 63, 160, 0.18);
}

body.light .qg-cat-card {
  box-shadow: 0 2px 8px rgba(107, 63, 160, 0.06);
}

.qg-cat-icon {
  font-size: 28px;
  line-height: 1;
}

.qg-cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.qg-cat-count {
  font-size: 11px;
  color: var(--text-faint);
}

/* ── Worker discovery cards ── */
.qg-worker-list {
  padding: 8px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qg-worker-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 0.5px solid var(--border);
  background: var(--card-bg);
  transition: transform 0.2s, border-color 0.2s;
}

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

.qg-worker-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6b3fa0, #c8a8e9);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.qg-worker-avatar.has-photo {
  color: transparent;
}

.qg-worker-body {
  flex: 1;
  min-width: 0;
}

.qg-worker-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.qg-worker-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.qg-worker-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qg-worker-skill {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(107, 63, 160, 0.15);
  color: var(--lavender);
}

body.light .qg-worker-skill {
  background: #ede9ff;
  color: #6b3fa0;
}

.qg-search-hero {
  padding: 0 20px 12px;
}

.qg-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 0.5px solid var(--border);
  background: var(--input-bg, rgba(255, 255, 255, 0.06));
}

.qg-search-box:focus-within {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}

.qg-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
}

.qg-search-box input::placeholder {
  color: var(--text-faint);
}

.qg-empty-discovery {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.qg-empty-discovery span {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Verified tasker badge */
.qg-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.14);
  border: 0.5px solid rgba(74, 222, 128, 0.35);
  color: var(--qg-trust-green, #4ade80);
  vertical-align: middle;
}

body.light .qg-verified-badge {
  color: #16a34a;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.qg-dispute-overlay .qg-report-target {
  background: rgba(107, 63, 160, 0.14);
  border-color: rgba(155, 111, 196, 0.28);
}

body.light .qg-dispute-overlay .qg-report-target {
  background: #f5f0ff;
  border-color: #ddd6fe;
}

/* Dispute modal steps */
.qg-dispute-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(200, 168, 233, 0.14);
}

body.light .qg-dispute-steps {
  background: #fff;
  border-color: #ece8ff;
}

.qg-dispute-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
}

.qg-dispute-step strong {
  display: block;
  color: var(--text, #fff);
  font-size: 13px;
  margin-bottom: 2px;
}

.qg-dispute-step p {
  margin: 0;
}

.qg-dispute-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: rgba(107, 63, 160, 0.25);
  color: var(--lavender, #c8a8e9);
}

.qg-dispute-note {
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-faint, rgba(255, 255, 255, 0.62));
  margin: 0 0 12px;
}

body.light .qg-dispute-step strong { color: #2d1b4e; }

/* Dashboard contextual hero */
.dash-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 0.5px solid var(--border, rgba(200, 168, 233, 0.2));
  background: var(--card-bg, rgba(255, 255, 255, 0.04));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dash-hero:hover {
  transform: translateY(-2px);
  border-color: var(--purple-light, #9b6fc4);
  box-shadow: 0 12px 32px rgba(107, 63, 160, 0.15);
}

.dash-hero-primary {
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.35), rgba(155, 111, 196, 0.18));
  border-color: rgba(200, 168, 233, 0.35);
}

body.light .dash-hero-primary {
  background: linear-gradient(135deg, #ede9ff, #faf8ff);
}

.dash-hero-pulse {
  animation: dashHeroPulse 2.4s ease-in-out infinite;
}

@keyframes dashHeroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 63, 160, 0); }
  50% { box-shadow: 0 0 0 4px rgba(107, 63, 160, 0.12); }
}

.dash-hero-emoji {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.dash-hero-body {
  flex: 1;
  min-width: 0;
}

.dash-hero-body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #fff);
  margin-bottom: 3px;
}

.dash-hero-body span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
}

.dash-hero-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--lavender, #c8a8e9);
}

.dash-hero-switch {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-faint, rgba(255, 255, 255, 0.62));
  line-height: 1.5;
}

.dash-hero-switch a,
.dash-hero-switch-btn {
  color: var(--purple-light, #9b6fc4);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.dash-hero-switch a:hover,
.dash-hero-switch-btn:hover {
  text-decoration: underline;
}

/* Profile role flip */
.qg-role-flip {
  margin: 0 20px 16px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 0.5px solid var(--border, rgba(200, 168, 233, 0.18));
  background: var(--card-bg, rgba(255, 255, 255, 0.04));
}

body.light .qg-role-flip {
  background: #fff;
  box-shadow: 0 2px 8px rgba(107, 63, 160, 0.06);
}

.qg-role-flip-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lavender, #c8a8e9);
  margin-bottom: 12px;
  text-align: center;
}

.qg-role-flip-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 0.5px solid rgba(200, 168, 233, 0.12);
}

body.light .qg-role-flip-track {
  background: #f0eeff;
  border-color: #e8e2ff;
}

.qg-role-flip-opt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
  transition: color 0.25s, transform 0.2s;
}

.qg-role-flip-opt:hover {
  transform: translateY(-1px);
}

.qg-role-flip-opt.active {
  color: var(--text, #fff);
}

body.light .qg-role-flip-opt.active {
  color: #2d1b4e;
}

.qg-role-flip-icon {
  font-size: 22px;
  line-height: 1;
}

.qg-role-flip-label {
  font-size: 12px;
  font-weight: 600;
}

.qg-role-flip-desc {
  font-size: 10px;
  opacity: 0.75;
}

.qg-role-flip-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 12px;
  background: linear-gradient(135deg, #6b3fa0, #9b6fc4);
  box-shadow: 0 4px 16px rgba(107, 63, 160, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.qg-role-flip-track.is-worker .qg-role-flip-slider {
  transform: translateX(calc(100% + 6px));
}

.qg-role-flip-note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-faint, rgba(255, 255, 255, 0.62));
}

/* Payment history */
.pay-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 0.5px solid var(--border, rgba(200, 168, 233, 0.1));
}
.pay-history-row:last-child { border-bottom: none; }
.pay-history-row:hover { opacity: 0.85; }
.pay-history-main { flex: 1; min-width: 0; }
.pay-history-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-history-meta { font-size: 11px; color: var(--text-faint, rgba(255,255,255,0.62)); margin-top: 3px; }
.pay-history-right { text-align: right; flex-shrink: 0; }
.pay-history-amt { font-size: 15px; font-weight: 600; color: var(--text, #fff); }
.pay-history-st {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}
.pay-st-held { background: rgba(251,191,36,0.15); color: #fbbf24; }
.pay-st-paid { background: rgba(74,222,128,0.12); color: #4ade80; }
.pay-st-pending { background: rgba(155,111,196,0.15); color: #c8a8e9; }
.pay-st-refunded { background: rgba(239,68,68,0.12); color: #f87171; }
.pay-history-empty {
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  color: var(--text-muted, rgba(255,255,255,0.68));
  line-height: 1.55;
  border: 0.5px dashed var(--border, rgba(200,168,233,0.15));
  border-radius: 14px;
}
.payout-box-connected { border-color: rgba(74,222,128,0.35) !important; background: rgba(74,222,128,0.08) !important; }
.payout-box-pending { border-color: rgba(251,191,36,0.35) !important; background: rgba(251,191,36,0.08) !important; }
#dashConnectBanner {
  margin: 0 20px 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(107,63,160,0.14);
  border: 0.5px solid rgba(200,168,233,0.2);
  font-size: 13px;
  line-height: 1.55;
}
#dashConnectBanner a { color: var(--purple-light, #9b6fc4); font-weight: 500; }
