:root {
  --bg: #FAFAF7;
  --ink: #15211B;
  --ink-2: #4A5A51;
  --muted: #84948A;
  --line: #E5E9E4;
  --card: #FFFFFF;
  --brand: #0B7A43;
  --brand-dark: #095F34;
  --brand-soft: #E5F4EC;
  --gold: #E8C05F;
  --danger: #C0392B;
  --danger-soft: #FBEAE8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(21, 33, 27, .05), 0 8px 24px rgba(21, 33, 27, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Layout */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.1rem;
  background: rgba(250, 250, 247, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.logo .dot { color: var(--brand); }
.logo.small { font-size: 1.05rem; }
.topnav { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topnav a, .topnav button.linklike {
  color: var(--ink); font-weight: 600; font-size: .92rem;
  padding: .42rem .7rem; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
}
.topnav a:hover, .topnav button.linklike:hover { background: var(--brand-soft); }
.view { max-width: 760px; margin: 0 auto; padding: 1.2rem 1.1rem 3rem; min-height: 62vh; }
.footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-inner { max-width: 760px; margin: 0 auto; padding: 1.1rem; display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }

/* Hero */
.hero { padding: 1.6rem 0 .6rem; }
.hero h1 { font-size: 2.3rem; max-width: 22ch; }
.hero p { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.hero .cta-row { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 1rem 0 .2rem; color: var(--ink-2); font-size: .9rem; }
.trust-strip b { color: var(--ink); }

/* Cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; display: block; color: var(--ink); box-shadow: var(--shadow);
}
.cat-card:hover { border-color: var(--brand); }
.cat-card .icon { font-size: 1.5rem; display: block; margin-bottom: .45rem; }
.cat-card .name { font-weight: 700; }
.cat-card .sub { color: var(--muted); font-size: .85rem; }

.tasker-card {
  display: flex; gap: .9rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem; box-shadow: var(--shadow);
  color: var(--ink);
}
.tasker-card:hover { border-color: var(--brand); }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 1.7rem; }
.tasker-main { flex: 1; min-width: 0; }
.tasker-main .row1 { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.tasker-main .name { font-weight: 700; font-size: 1.05rem; }
.rate { font-weight: 800; white-space: nowrap; }
.rate .per { color: var(--muted); font-weight: 500; font-size: .82rem; }
.bio { color: var(--ink-2); font-size: .92rem; margin: .25rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta-row { display: flex; gap: .9rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-size: .72rem; font-weight: 700; padding: .14rem .5rem; border-radius: 999px; vertical-align: 2px; margin-left: .4rem; }

/* Buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  font-weight: 700; padding: .68rem 1.15rem; border-radius: 999px; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn.danger { background: #fff; color: var(--danger); border-color: #EFC9C4; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .68rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.error-box { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: .7rem .9rem; font-size: .92rem; margin-bottom: .9rem; }

/* Booking */
.date-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .6rem; }
.date-chip {
  flex: none; width: 62px; text-align: center; padding: .55rem 0; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
.date-chip .dow { font-size: .72rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.date-chip .dom { font-size: 1.1rem; font-weight: 800; }
.date-chip.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.date-chip.sel .dow { color: #CDEBDA; }
.slot-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot {
  padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 600;
}
.slot.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.slot.off { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.price-box { background: var(--brand-soft); border-radius: 12px; padding: .9rem 1rem; margin: 1rem 0; }
.price-box .line { display: flex; justify-content: space-between; font-size: .95rem; padding: .12rem 0; }
.price-box .total { border-top: 1px solid #CBE5D5; margin-top: .45rem; padding-top: .5rem; font-weight: 800; }

/* Tasks */
.task-row {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1rem; margin-bottom: .7rem; color: var(--ink); box-shadow: var(--shadow);
}
.task-row .row1 { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.status { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; }
.status.pending_tasker { background: #FBF0D3; color: #7A5B00; }
.status.scheduled { background: #E2ECFB; color: #1D4E9E; }
.status.en_route, .status.in_progress { background: #E5F4EC; color: var(--brand-dark); }
.status.completed { background: #E8E8E8; color: #444; }
.status.cancelled, .status.declined, .status.expired { background: var(--danger-soft); color: var(--danger); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: .3rem .8rem; font-size: .95rem; margin: .8rem 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1rem 0; }

/* Chat */
.chat { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; height: 380px; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.msg { max-width: 78%; padding: .55rem .8rem; border-radius: 16px; font-size: .94rem; white-space: pre-wrap; word-break: break-word; }
.msg.them { background: #F0F2EF; align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg .when { display: block; font-size: .68rem; opacity: .65; margin-top: .2rem; }
.chat-form { display: flex; gap: .5rem; border-top: 1px solid var(--line); padding: .6rem; }
.chat-form input { flex: 1; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 999px; }
.chat-closed { padding: .8rem; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

/* Misc */
.section { margin: 1.6rem 0; }
.empty { text-align: center; color: var(--muted); padding: 2.2rem 1rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.skel { color: var(--muted); padding: 1.4rem 0; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; box-shadow: var(--shadow); z-index: 50; max-width: 92vw; text-align: center;
}
.checks { display: flex; flex-wrap: wrap; gap: .45rem; }
.check-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .75rem; cursor: pointer; font-weight: 600; }
.check-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.skill-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.skill-row select, .skill-row input { padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 560px) {
  .hero h1 { font-size: 1.85rem; }
  .view { padding: 1rem .9rem 2.4rem; }
  .kv { grid-template-columns: 105px 1fr; }
}

/* ---------- homepage v2 (TaskRabbit-level structure, own brand) ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 2.6rem 1.2rem 2.2rem;
  background:
    radial-gradient(420px 220px at 8% -40px, #bfe8cf 0%, transparent 60%),
    radial-gradient(520px 260px at 105% 0%, #d7f0df 0%, transparent 55%),
    linear-gradient(180deg, #eef8f1, #ffffff);
  border: 1px solid var(--line); border-radius: 20px;
}
.hero h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); letter-spacing: -0.02em; }
.hero-sub { max-width: 620px; margin: 0.6rem auto 0; color: var(--muted); font-size: 1.05rem; }
.metro-pills { display: flex; gap: 0.45rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.metro-pill {
  border: 1.5px solid #BFE3CD; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 0.35rem 0.85rem; font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.metro-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.search-wrap {
  position: relative; display: flex; gap: 0.5rem; max-width: 640px; margin: 1.4rem auto 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.35rem;
  box-shadow: 0 10px 30px rgba(11, 122, 67, 0.12);
}
.search-wrap input { flex: 1; border: none; outline: none; padding: 0.55rem 1rem; font-size: 1rem; background: transparent; min-width: 0; }
.search-wrap .btn { border-radius: 999px; padding: 0.55rem 1.4rem; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(16, 24, 20, 0.16); text-align: left;
}
.sr-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; color: var(--ink); }
a.sr-item:hover { background: var(--brand-soft); text-decoration: none; }
.chips { display: flex; gap: 0.45rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.chip {
  background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 999px;
  padding: 0.32rem 0.8rem; font-size: 0.88rem; font-weight: 600;
}
.chip:hover { border-color: var(--brand); text-decoration: none; }
.hero .trust-strip { margin-top: 1.6rem; }

.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pop-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pop-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 24, 20, 0.12); }
.pop-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.pop-body { display: block; padding: 0.85rem 1rem 1rem; }
.pop-name { display: block; font-weight: 800; font-size: 1.02rem; }
.pop-blurb { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; min-height: 2.2em; }
.pop-price { display: block; margin-top: 0.5rem; color: var(--brand); font-weight: 700; font-size: 0.92rem; }
.pop-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.pop-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 1rem; color: var(--ink); font-weight: 600;
}
.pop-row .pop-price { margin-top: 0; }
.pop-row:hover { border-color: var(--brand); text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.1rem 1rem; }
.step h3 { margin: 0.4rem 0 0.3rem; font-size: 1.02rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.93rem; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
}
.guarantee {
  background: #0d3b22; color: #eaf5ee; border-radius: 20px; padding: 1.8rem 1.4rem; margin-top: 2.2rem;
}
.guarantee h2 { color: #fff; margin-top: 0; }
.guarantee .step { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.guarantee .step h3 { color: #fff; margin-top: 0; }
.guarantee .step p { color: #c4dccb; }
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand), #0a5c31); color: #fff;
  border-radius: 20px; padding: 1.6rem 1.4rem; margin-top: 1.2rem;
}
.cta-band h2 { color: #fff; margin: 0 0 0.3rem; }
.cta-band p { margin: 0; color: #d9efe0; }
