/* ─── Reset + Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

* {
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea {
  outline: none;
  user-select: none;
}

:root {
  --black:   #0E0E12;
  --orange:  #FF5E00;
  --white:   #FFFFFF;
  --gray-50: #F9F9FA;
  --gray-100:#F0F0F2;
  --gray-300:#C4C4CC;
  --gray-500:#7A7A8A;
  --gray-800:#2A2A35;
  --radius:  10px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
  --light-gray: #2A2A35;
  --border: rgba(255,255,255,0.08);
  --gray: #7A7A8A;
}

body {
  background: #0E0E12;
  color: #FFFFFF;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
}

html { font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: var(--gray-50); color: var(--black); line-height: 1.5; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-primary  { background: var(--orange); color: var(--white); }
.btn-primary:hover { opacity: 0.9; }

.btn-outline  { background: transparent; color: var(--white);
                border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); }

.btn-call {
  background: var(--orange); color: var(--white);
  padding: 10px 18px; border-radius: 8px; font-size: 0.9rem;
  white-space: nowrap;
}
.btn-call:hover { opacity: 0.9; }

.btn-search {
  width: 100%; margin-top: 16px; padding: 14px;
  font-size: 1rem; border-radius: var(--radius);
}

/* ─── Header ────────────────────────────────────── */
.header { background: var(--black); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--orange); letter-spacing: -0.5px; }

/* ─── Hero ──────────────────────────────────────── */
.hero { background: var(--black); padding: 30px 0 0px; text-align: center; }
.hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
              color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.hero-sub { font-size: 1.05rem; color: var(--gray-300); max-width: 480px; margin: 0 auto; }

/* ─── Search Panel ──────────────────────────────── */
.search-panel { padding: 0 0 24px; background: var(--black); overflow: hidden; }

.search-panel .container {
  padding: 0;
}

.search-card {
  background: var(--gray-800); border-radius: var(--radius);
  padding: 24px;
  isolation: isolate;
  outline: 2px solid #2A2A35;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 0.8rem; font-weight: 600;
                     color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.5px; }

.field-group select,
.field-group input[type="number"] {
  background: var(--black); color: var(--white);
  border: 1.5px solid #3A3A48; border-radius: 8px;
  padding: 10px 12px; font-size: 0.95rem;
  appearance: none; -webkit-appearance: none;
  outline: none; width: 100%;
}
.field-group select:focus,
.field-group input:focus { border-color: var(--orange); }

.field-group--checkbox { justify-content: flex-end; padding-bottom: 2px; }
.field-group--checkbox label {
  display: flex; align-items: center; gap: 8px;
  color: var(--gray-300); font-size: 0.9rem;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.field-group--checkbox input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--orange);
}

/* ─── Results ───────────────────────────────────── */
.results-section { padding: 5px 0 48px; }
.results-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  padding: 0 16px;
}

.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Worker Card — compact list ── */
#workers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
}

.worker-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--gray-800);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-height: 110px;
  cursor: pointer;
  opacity: 0;
}

.worker-card.card-visible {
  animation: cardSlideUp 0.35s ease both;
  transition: transform 0.2s cubic-bezier(0.25, 1.5, 0.5, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.worker-card.card-visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 94, 0, 0.5);
  border-color: rgba(255, 94, 0, 0.5);
}

.worker-card.card-visible:active {
  transform: scale(0.98);
  box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.8);
  border-color: var(--orange);
}

.card-avatar {
  width: 64px;
  height: 64px;
  min-width: 56px; 
  min-height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  justify-content: space-between;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.worker-name {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}

.verified-dot {
  color: var(--orange);
  font-size: .75rem;
}

.worker-rate {
  font-weight: 700;
  color: var(--orange);
  font-size: .9rem;
  white-space: nowrap;
}

.per-hr {
  font-weight: 400;
  font-size: .75rem;
  color: var(--white);
}

.worker-category {
  font-size: .8rem;
  color: var(--gray-300);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.meta-item {
  font-size: .75rem;
  color: var(--gray-300);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.btn-call {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .82rem;
  cursor: pointer;
  white-space: nowrap;
}

/* Badges */
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.badge {
  font-size: 0.7rem; font-weight: 700; padding: 3px 7px;
  border-radius: 20px; white-space: nowrap;
}
.badge--verified    { background: #E6F4EA; color: #1B7A35; }
.badge--top-rated   { background: #FFF8E1; color: #C17C00; }
.badge--experienced { background: #EEF0FF; color: #3A4FD0; }
.badge--recommended { background: #FCEAF4; color: #B52672; }
.badge--fast        { background: #FFF3E0; color: #E65100; }

/* Rating */
.card-rating { display: flex; align-items: center; gap: 4px; }
.rating-new { font-size: 0.8rem; color: var(--gray-500); font-style: italic; }
.rating-stars .star { font-size: 0.9rem; }
.star.full  { color: #F59E0B; }
.star.half  { color: #F59E0B; opacity: 0.6; }
.star.empty { color: var(--gray-300); }
.rating-avg { font-weight: 700; font-size: 0.95rem; }
.rating-count { font-size: 0.8rem; color: var(--gray-500); }

/* Meta */
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-item { font-size: 0.82rem; color: var(--gray-500); }

/* Footer row */
.card-footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.worker-rate { font-size: 1.2rem; font-weight: 800; color: var(--black); }
.worker-rate span { font-size: 0.8rem; font-weight: 400; color: var(--gray-500); }

/* ─── Empty / Loading ───────────────────────────── */
.empty-state { text-align: center; padding: 48px; color: var(--gray-500); }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.state-text {
  font-size: 0.95rem;
  color: var(--gray-300);
  transition: opacity 0.2s ease;
  margin-top: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── How It Works ──────────────────────────────── */
.how-it-works { background: var(--white); padding: 56px 0; border-top: 1px solid var(--gray-100); }
.how-it-works h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--gray-500); }

/* ─── Footer ────────────────────────────────────── */
.footer { background: var(--black); color: var(--gray-300); padding: 32px 0; text-align: center; }
.footer p { font-size: 0.9rem; margin-bottom: 6px; }
.footer a { color: var(--orange); }

/* ─── Default avatar SVG fallback ──────────────── */
/* (place a default-avatar.svg in /assets/images/) */

/* ─── Mobile ────────────────────────────────────── */
@media (max-width: 600px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .workers-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.7rem; }
}

.custom-select {
  position: relative;
  width: 100%; 
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: #1a1a1a;
  border: 1px solid rgba(255, 94, 0, 0.35);
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  user-select: none;
  white-space: nowrap;
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 94, 0, 0.35);
  border-radius: 8px;
  z-index: 100;
  overflow: visible;
  margin-top: 4px;
}

#ww-category-dropdown {
  border: 1px solid rgba(255, 94, 0, 0.35);
}
.custom-select-options {
  max-height: 285px;
  overflow-y: auto;
}

/* ─── DASHBOARD ─────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}

.dash-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px;
}

.dash-header p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

/* ─── SUB BANNER ────────────────────────────────────────────── */
.sub-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.sub-info label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sub-info p {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 4px 0 0;
}

.sub-badge {
  background: rgba(255,94,0,0.15);
  border: 1px solid rgba(255,94,0,0.4);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.points-card,
.referral-card,
.history-card {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.points-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 8px;
}

.points-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  text-align: center;
  line-height: 1;
  margin-bottom: 8px;
}

.points-sub {
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  margin-bottom: 20px;
}

.redeem-btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* ─── REFERRAL CARD ─────────────────────────────────────────── */
.referral-card h3,
.history-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 6px;
}

.referral-card p {
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 16px;
}

.referral-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px dashed rgba(255,94,0,0.4);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.referral-code-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 1px;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.whatsapp-btn {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ─── POINTS HISTORY ────────────────────────────────────────── */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.history-reason {
  font-size: 14px;
  color: var(--white);
  margin-bottom: 2px;
}

.history-date {
  font-size: 12px;
  color: var(--gray);
}

.history-amount {
  font-size: 15px;
  font-weight: 700;
}

.history-amount.positive { color: #4CAF50; }
.history-amount.negative { color: #f44336; }

.empty-history {
  font-size: 14px;
  color: var(--gray);
  text-align: center;
  padding: 20px 0;
}

/* ── Review Modal ── */
.star-picker { display:flex; gap:8px; justify-content:center; margin:16px 0; }
.star-pick   { font-size:2rem; cursor:pointer; color:#ccc; transition:color .15s; }
.star-pick.selected, .star-pick.hovered { color:#f5a623; }

/* ── Hired Section ── */
.hired-section  { margin:24px 0; }
.hired-title    { font-size:1.1rem; font-weight:600; margin-bottom:12px; }
.hired-card     { display:flex; align-items:center; gap:12px; padding:10px 14px;
                  background:#f9f9f9; border-radius:8px; margin-bottom:8px; }
.hired-name     { flex:1; font-weight:500; }
.hired-status   { font-size:.85rem; }
.hired-status.confirmed { color:#2e7d32; }
.hired-status.pending   { color:#e65100; }
.rated-label    { font-size:.85rem; color:#888; }

/* ── Reminder Banner ── */
.rating-reminder-banner { background:#fff8e1; border-left:4px solid #f5a623;
  padding:10px 16px; font-size:.9rem; }
.rating-reminder-banner a { color:#e65100; font-weight:600; text-decoration:none; }

/* ── Toast ── */
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%);
  background:#323232; color:#fff; padding:10px 20px; border-radius:8px;
  font-size:.9rem; z-index:9999; }
  
  /* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: var(--gray-800);
  border-top: 1px solid var(--border);
  z-index: 1000; height: 60px;
}
.bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: none; border: none; color: var(--gray-500);
  cursor: pointer; gap: 2px; transition: color .2s;
}
.bottom-nav-btn.active { color: var(--orange); }
.nav-icon  { font-size: 1.3rem; }
.nav-label { font-size: .7rem; }

/* ── Hire Prompt Toast ── */
.hire-prompt {
  position: fixed; bottom: 70px; left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  width: min(360px, 92vw); z-index: 1100;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  0%   { transform: translateX(-50%) translateY(40px); opacity: 0; }
  60%  { transform: translateX(-50%) translateY(-6px); opacity: 1; }
  80%  { transform: translateX(-50%) translateY(3px); }
  100% { transform: translateX(-50%) translateY(0); }
}
.hire-prompt {
  animation: slideUp 0.45s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}
.hire-prompt-q    { font-weight: 600; margin-bottom: 12px; text-align: center; }
.hire-prompt-btns { display: flex; gap: 10px; justify-content: center; }
.hire-btn-no  {
  background: transparent; border: 1px solid var(--gray-500);
  color: var(--white); padding: 8px 24px; border-radius: var(--radius);
}
.hire-btn-yes {
  background: var(--orange); border: none;
  color: var(--white); padding: 8px 24px; border-radius: var(--radius);
}
.hire-prompt-hint {
  font-size: .78rem; color: var(--gray-500);
  text-align: center; margin-top: 10px;
}

/* ── History Panel ── */
.history-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1200;
}
.history-panel {
  position: fixed; bottom: 60px; left: 0; right: 0;
  max-height: 70vh; background: var(--gray-800);
  border-radius: 16px 16px 0 0; z-index: 1300;
  overflow-y: auto; padding: 0 0 16px;
  animation: slideUp .3s ease;
}
.history-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--gray-800);
}
.history-panel-header h3 { font-size: 1rem; }
.history-close {
  background: none; border: none; color: var(--white);
  font-size: 1.1rem; cursor: pointer;
}
.history-list   { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.history-empty  { color: var(--gray-500); text-align: center; padding: 24px 0; }
.history-card {
  background: var(--black); border-radius: var(--radius);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px;
}
.history-card-name   { 
  flex: 1; font-weight: 500;
  color: var(--white); 
}

.history-card-status { font-size: .8rem; color: var(--gray-300); }
.history-card-status.confirmed { color: #4caf50; }
.history-card-status.pending   { color: var(--orange); }
.rated-label { font-size: .8rem; color: var(--gray-500); }

/* Add bottom padding to page so content isn't hidden behind nav */
body { padding-bottom: 70px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 80px; left: 50%; 
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-800); color: var(--white);
  padding: 10px 20px; border-radius: 8px;
  font-size: .9rem; z-index: 9999;
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.history-avatar {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
}
.history-card-cat {
  font-size: .78rem; color: var(--gray-300); margin-bottom: 2px;
} 

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Loading / Empty / Error states ── */
#loading-state, #empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 48px 16px;
  color: var(--gray-500);
}
.state-icon { font-size: 2rem; }
.state-text { font-size: .9rem; text-align: center; line-height: 1.5; color: var(--gray-300); }

/* ── Hire Requests ── */
.hire-requests-card {
  background: var(--gray-800);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 16px;
}
.hire-requests-card h3 { font-size: 1rem; margin-bottom: 12px; display:flex; align-items:center; gap:8px; }
.hire-badge {
  background: var(--orange); color: var(--white);
  font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
}
.hire-request-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--black); border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px;
}
.hire-request-info { flex:1; }
.hire-request-name { font-weight: 600; color: var(--white); font-size: .9rem; }
.hire-request-phone { font-size: .78rem; color: var(--gray-300); margin-top: 2px; }
.hire-request-time  { font-size: .72rem; color: var(--gray-500); margin-top: 2px; }
.hire-request-actions { display:flex; gap:8px; }
.btn-accept {
  background: var(--orange); color: var(--white);
  border: none; padding: 6px 14px;
  border-radius: var(--radius); font-size: .82rem; cursor: pointer;
}
.btn-decline {
  background: transparent; color: var(--gray-300);
  border: 1px solid var(--border); padding: 6px 14px;
  border-radius: var(--radius); font-size: .82rem; cursor: pointer;
}
.hire-confirmed-label { font-size: .8rem; color: #4caf50; white-space: nowrap; }
.hire-declined-label  { font-size: .8rem; color: var(--gray-500); white-space: nowrap; }

.hire-history-divider {
  font-size: .75rem; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 0 6px; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.btn-call-again {
  background: transparent; border: 1px solid var(--border);
  color: var(--white); padding: 4px 10px;
  border-radius: var(--radius); cursor: pointer; font-size: .85rem;
}

/* ── Scrollable hire history on worker dashboard ── */
#hire-requests-list {
  max-height: 340px;
  overflow-y: auto;
}

/* ── Scrollable hiring history panel on customer side ── */
#history-list {
  max-height: 380px;
  overflow-y: auto;
}

/* ── Worker Detail Sheet ── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1400;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.sheet-overlay.active { opacity: 1; pointer-events: all; }

.worker-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-height: 90vh;
  background: var(--gray-800);
  border-radius: 20px 20px 0 0;
  z-index: 1500;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s ease;
  padding: 0 16px 80px;
  overscroll-behavior: contain;
  padding-top: 0;
  will-change: transform;
  background-clip: padding-box;
}
.sheet-overlay.active::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--gray-800);
  z-index: 1499;
}
.worker-sheet.active { transform: translateY(0); }

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

.sheet-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 16px 12px;
}
.sheet-avatar {
  width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
}
.sheet-name { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.sheet-category { font-size: .85rem; color: var(--gray-300); margin-top: 2px; }
.sheet-rate {
  font-size: 1.1rem; font-weight: 700;
  color: var(--orange); margin-left: auto;
}

.sheet-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 16px 16px;
}
.sheet-meta-item {
  font-size: .82rem; color: var(--gray-300);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--border);
}

.sheet-call-btn {
  display: block; width: calc(100% - 32px);
  margin: 0 16px 20px;
  background: var(--orange); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: 14px; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-align: center;
}

.sheet-divider {
  height: 1px; background: var(--border);
  margin: 0 16px 16px;
}

.sheet-section-title {
  font-size: .8rem; font-weight: 600;
  color: var(--gray-500); text-transform: uppercase;
  letter-spacing: .08em; padding: 0 16px 12px;
}

/* Reviews */
.sheet-reviews { padding: 0 16px; }

.review-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }

.review-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 4px;
}
.review-stars { color: var(--orange); font-size: .9rem; }
.review-date { font-size: .75rem; color: var(--gray-500); }
.review-comment { font-size: .88rem; color: var(--gray-300); line-height: 1.5; }
.review-empty {
  text-align: center; color: var(--gray-500);
  font-size: .88rem; padding: 24px 0;
}

/* Rate button inside sheet */
.sheet-rate-btn {
  display: block; width: calc(100% - 32px);
  margin: 16px 16px 0;
  background: transparent; color: var(--orange);
  border: 1px solid var(--orange); border-radius: var(--radius);
  padding: 12px; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-align: center;
}

/* Rating modal */
.rating-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex; align-items: flex-end;
}
@keyframes sheetSpring {
  0%   { transform: translateY(100%); }
  65%  { transform: translateY(-8px); }
  82%  { transform: translateY(4px); }
  100% { transform: translateY(0); }
}
.rating-modal {
  background: var(--gray-800);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  width: 100%;
  border-top: 1px solid var(--border);
  animation: sheetSpring 0.45s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}
.rating-modal h3 {
  color: var(--white); font-size: 1rem;
  margin: 0 0 20px; text-align: center;
}
.star-picker {
  display: flex; justify-content: center;
  gap: 12px; margin-bottom: 16px;
}
.star-picker span {
  font-size: 2rem; cursor: pointer;
  color: var(--gray-500); transition: color .15s, transform .15s;
}
.star-picker span.selected { color: var(--orange); transform: scale(1.2); }

.comment-box {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white); font-size: .9rem;
  padding: 10px 12px; resize: none;
  margin-bottom: 6px;
  display: none; /* shown when rating ≤ 3 */
}
.comment-box.required { display: block; border-color: var(--orange); }
.comment-box.optional { display: block; }

.char-counter {
  font-size: .75rem; color: var(--gray-500);
  text-align: right; margin-bottom: 12px;
  display: none;
}
.char-counter.visible { display: block; }
.char-counter.warn { color: var(--orange); }

.comment-hint {
  font-size: .78rem; color: var(--orange);
  margin-bottom: 10px; display: none;
}
.comment-hint.visible { display: block; }

.rating-submit-btn {
  width: 100%; background: var(--orange);
  color: var(--white); border: none;
  border-radius: var(--radius); padding: 13px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
}
.rating-submit-btn:disabled {
  opacity: .4; cursor: not-allowed;
}

/* ── MAIN TABS ───────────────────────────────── */
.main-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.main-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 2px solid #FF5E00;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.main-tab.active {
  background: #FF5E00;
  color: #fff;
}

.main-tab:not(.active):hover {
  background: rgba(255,94,0,0.15);
}

/* ── WANTED CARDS ────────────────────────────── */
.wanted-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.wanted-card {
  background: #1a1a22;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid #2a2a35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0.75rem;
}

.wanted-card.fulfilled {
  opacity: 0.5;
}

.wanted-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.wanted-category-badge {
  background: #FF5E00;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.fulfilled-badge {
  background: #444;
  color: #aaa;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.wanted-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #fff;
}

.wanted-desc {
  font-size: 0.875rem;
  color: #aaa;
  margin: 0 0 0.5rem;
}

.wanted-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.wanted-contact {
  margin-top: 0.5rem;
}

.wanted-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.wanted-filters select,
.wanted-filters input {
  flex: 1;
  min-width: 140px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #2a2a35;
  background: #1a1a22;
  color: #fff;
  font-size: 0.9rem;
}

.wanted-post-form {
  background: #1a1a22;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #2a2a35;
  margin-bottom: 1.5rem;
}

.wanted-post-form h3 {
  margin: 0 0 1rem;
  color: #fff;
}

.btn-danger {
  background: transparent;
  border: 1px solid #ff4444;
  color: #ff4444;
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.btn-small {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
}

.form-msg {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.loading-text, .empty-text, .error-text {
  color: #888;
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ── INTENT CARDS (worker wizard step 0) ── */
.intent-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.intent-card {
  background: #1a1a22;
  border: 2px solid #2a2a35;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}

.intent-card:hover {
  border-color: #FF5E00;
  background: rgba(255,94,0,0.07);
}

.intent-icon {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.intent-label {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.intent-desc {
  font-size: 0.825rem;
  color: #888;
}

.wanted-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

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

.custom-select {
  position: relative;
}

.hero .container {
  text-align: center;
}

.main-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.main-tab {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-tab.active {
  color: #fff;
}

.tab-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: #FF5E00;
  border-radius: 999px;
  z-index: 1;
  transition:
    left 0.42s cubic-bezier(0.25, 1.5, 0.5, 1),
    width 0.42s cubic-bezier(0.25, 1.5, 0.5, 1);
  pointer-events: none;
}

#maxRate::placeholder { color: #888; opacity: 1; }

.panel-slide {
  animation: slideInRight 0.32s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}

.panel-slide-left {
  animation: slideInLeft 0.32s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-group label {
  color: var(--white);
}

.nav-btn {
  color: var(--white);
  text-decoration: none;
  border: 0.01px solid var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

#svc-step-3 input[type="range"]::-webkit-slider-thumb,
#edit-svc-step-3 input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #24ACF0;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,191,165,0.4);
}

.edit-zone-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #24ACF0 !important;
  cursor: pointer !important;
  box-shadow: 0 0 6px rgba(0,191,165,0.4) !important;
}

.edit-zone-slider::-webkit-slider-thumb,
#add-zone-radius::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #24ACF0;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,191,165,0.4);
}

input[type="range"][id$="-pending-slider"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #24ACF0;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,191,165,0.4);
}

/* ── Button press feedback ── */
.btn-call,
.sheet-call-btn,
.rating-submit-btn,
.redeem-btn,
.whatsapp-btn,
.btn-search,
.btn-primary {
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn-call:active,
.sheet-call-btn:active,
.rating-submit-btn:active,
.redeem-btn:active,
.whatsapp-btn:active,
.btn-search:active,
.btn-primary:active {
  transform: scale(0.96);
  opacity: 0.88;
}

/* ── Input focus glow ── */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.15);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ── Card entrance animation ── */
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.worker-card.card-visible {
  animation: cardSlideUp 0.35s ease both;
}

/* ── Results count pop ── */
@keyframes countPop {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

#resultsCount {
  min-height: 1.4em;
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  animation: countPop 0.5s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}

/* ── Sheet overlay transition already exists, enhance it ── */
.worker-sheet {
  transition: transform 0.35s cubic-bezier(0.25, 1.4, 0.5, 1);
}

/* ── Dropdown fade in ── */
@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
#category-dropdown,
.custom-select-dropdown {
  animation: dropFade 0.18s ease both;
}

/* ── Star picker tap bounce ── */
.star-picker span {
  transition: transform 0.15s cubic-bezier(0.25, 1.5, 0.5, 1), color 0.15s ease;
}
.star-picker span:active {
  transform: scale(1.4);
}

/* ── Skeleton shimmer ── */
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line {
  border-radius: 6px;
  background: linear-gradient(90deg, #2a2a35 25%, #3a3a45 50%, #2a2a35 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
}

.skeleton-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--gray-800);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
  min-height: 110px;
}

.skeleton-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
}

.skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.skeleton-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

#loading-state {
  padding: 0 16px;
  display: block !important;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#login-modal > div {
  animation: modalSlideUp 0.35s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}

@keyframes btnRipple {
  0%   { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(255, 94, 0, 0); }
}

.btn-search:active {
  animation: btnRipple 0.4s ease-out forwards;
}

.btn-ripple-trigger {
  animation: btnRipple 0.5s ease-out forwards;
}

.sheet-handle-wrap {
  width: 100%;
  padding: 12px 0 8px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  animation: handlePulse 2s ease-in-out infinite;
}

@keyframes handlePulse {
  0%, 100% { background: rgba(255,255,255,0.15); width: 36px; }
  50%       { background: rgba(255,255,255,0.4);  width: 48px; }
}

@keyframes rowDrop {
  0%   { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

#category-options > div,
#sub-options > div {
  animation: rowDrop 0.2s ease both;
}

.post-ads-btn {
  background: #FF5E00;
  border-radius: 14px;
  padding: 6px 24px;
  text-decoration: none;
  color: #fff !important;
  width: fit-content;
  margin: 0 auto;
  flex: 0.3 !important;
}
.post-ads-btn .nav-label {
  color: #fff;
}

/* Wanted form — permanent subtle orange border (all inputs) */
#ww-title,
#ww-description,
#ww-budget,
#ww-listing-type,
#ww-location {
  border-color: rgba(255, 94, 0, 0.35) !important;
  background: #0E0E12 !important;
}

/* Category trigger — separate so it wins */
#ww-category-trigger {
  border: 1px solid rgba(255, 94, 0, 0.35) !important;
  background: #0E0E12 !important;
}

/* Focus states */
#ww-category-trigger:focus-within,
#ww-category-trigger.focused {
  border-color: #FF5E00 !important;
}

#ww-title:focus,
#ww-description:focus,
#ww-budget:focus,
#ww-listing-type:focus,
#ww-location:focus {
  border-color: #FF5E00 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.15);
}

#add-category-dropdown {
  border: 1px solid rgba(255, 94, 0, 0.35);
}

#ww-category-trigger {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateX(-50%) translateY(10px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0); }
}

#svc-step-0w button[onclick="window.submitWorkerWanted()"] {
  transition: transform 0.1s ease, opacity 0.1s ease;
}
#svc-step-0w button[onclick="window.submitWorkerWanted()"]:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.pagination-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
}

.pagination-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  min-width: 120px;
  text-align: center;
}

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

.prev-btn {
  background: #1a1a1a;
  color: #ffffff;
}

.next-btn {
  background: #FF5E00;
  color: #ffffff;
}

.prev-btn:not([disabled]):hover {
  background: #2e2e2e;
}

.next-btn:not([disabled]):hover {
  background: #e05400;
}

.pagination-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--color-text-secondary, black);
  font-weight: 500;
  white-space: nowrap;
}

/* ── GPU acceleration — only where it matters ── */
.worker-sheet {
  will-change: transform;
}

.sheet-overlay {
  will-change: opacity;
}

.spinner {
  will-change: transform;
}

.hire-prompt {
  will-change: transform, opacity;
}

html {
  overflow-x: hidden;
  scrollbar-gutter: stable;
}