/* HomeCare by Kroykari — Gulf home-services marketplace */
:root {
  --ink: #0c2e33;
  --ink-soft: #1a454c;
  --muted: #5a6f74;
  --line: rgba(12, 46, 51, 0.12);
  --paper: #f3f7f6;
  --surface: #ffffff;
  --teal: #147a6e;
  --teal-deep: #0d5a52;
  --teal-soft: rgba(20, 122, 110, 0.12);
  --amber: #e07a2f;
  --amber-deep: #c45f18;
  --gold: #c9a227;
  --ok: #1f8a4c;
  --danger: #c0392b;
  --shadow: 0 18px 48px rgba(12, 46, 51, 0.1);
  --shadow-sm: 0 8px 24px rgba(12, 46, 51, 0.08);
  --radius: 18px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(20, 122, 110, 0.16), transparent 60%),
    radial-gradient(700px 420px at 92% 4%, rgba(224, 122, 47, 0.12), transparent 55%),
    linear-gradient(180deg, #eef5f3 0%, var(--paper) 38%, #f7f5f1 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hc-skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
}
.hc-skip:focus {
  left: 12px;
}

.hc-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* —— Nav —— */
.hc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 246, 0.78);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hc-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(12, 46, 51, 0.06);
}
.hc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.hc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.hc-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, var(--teal-deep), var(--teal)),
    var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(20, 122, 110, 0.35);
}
.hc-brand em {
  font-style: normal;
  color: var(--teal);
}
.hc-brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -2px;
}
.hc-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hc-nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.hc-nav-links a:hover,
.hc-nav-links a.is-active {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.hc-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hc-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.hc-nav-panel {
  display: contents;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(224, 122, 47, 0.32);
}
.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(224, 122, 47, 0.4);
}
.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 122, 110, 0.28);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hc-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 32, 36, 0.35) 0%, rgba(8, 32, 36, 0.72) 55%, rgba(8, 32, 36, 0.92) 100%),
    url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: hc-ken 18s ease-in-out infinite alternate;
}
.hc-hero-glow {
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 55%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20, 122, 110, 0.45), transparent 70%);
  animation: hc-pulse 5.5s ease-in-out infinite;
}
@keyframes hc-ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}
@keyframes hc-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-12px);
  }
}
.hc-hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
}
.hc-hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: hc-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hc-hero-brand span {
  display: block;
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.55rem;
}
.hc-hero-tag {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  opacity: 0.92;
  margin: 0 0 1.6rem;
  animation: hc-rise 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: hc-rise 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hc-hero-loc {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 600;
  animation: hc-rise 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hc-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.hc-section {
  padding: 4rem 0;
}
.hc-section-head {
  margin-bottom: 1.75rem;
}
.hc-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.hc-section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}
.hc-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 122, 110, 0.35);
}
.cat-tile:hover::after {
  transform: scaleX(1);
}
.cat-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-deep);
  margin-bottom: 0.45rem;
}
.cat-ico svg {
  width: 22px;
  height: 22px;
}
.cat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.cat-blurb {
  font-size: 0.86rem;
  color: var(--muted);
}

/* How steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.step {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(238, 245, 243, 0.9));
  border: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(13, 90, 82, 0.95), rgba(20, 122, 110, 0.88)),
    var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
}
.trust-strip h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.trust-strip p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.9rem;
}

/* Page chrome (inner pages) */
.page-hero {
  padding: 2.2rem 0 1.2rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip.is-active,
.chip:hover {
  background: var(--teal-soft);
  border-color: rgba(20, 122, 110, 0.35);
  color: var(--teal-deep);
}
.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Pro cards */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.pro-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.pro-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  font-size: 1.6rem;
}
.pro-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.pro-name-row h3 {
  margin: 0;
  font-size: 1.08rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.pro-meta,
.pro-rating {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.stars {
  color: var(--gold);
  letter-spacing: 0.04em;
}
.badge-verified {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  color: #8a6d10;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-dot {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-dot.is-online {
  background: rgba(31, 138, 76, 0.14);
  color: var(--ok);
}
.status-dot.is-offline {
  background: rgba(90, 111, 116, 0.14);
  color: var(--muted);
}
.pro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.95rem 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.pro-stats span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--paper);
}
.pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Profile */
.profile-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.profile-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.service-tags span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 650;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.price-row:last-child {
  border-bottom: 0;
}
.price-row strong {
  color: var(--teal-deep);
}
.sticky-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 122, 110, 0.15);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.photo-drop {
  border: 1.5px dashed rgba(20, 122, 110, 0.35);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(20, 122, 110, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}
.photo-drop:hover {
  background: rgba(20, 122, 110, 0.08);
}
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.photo-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.confirm-box {
  text-align: center;
  padding: 2rem 1.25rem;
}
.confirm-box .pulse-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  position: relative;
}
.confirm-box .pulse-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(20, 122, 110, 0.35);
  animation: hc-ring 1.6s ease-out infinite;
}
@keyframes hc-ring {
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Track map */
.track-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 1.1rem;
}
.map-stage {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(20, 122, 110, 0.08), transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(12, 46, 51, 0.04) 28px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 27px,
      rgba(12, 46, 51, 0.04) 28px
    ),
    #e7efed;
}
.map-route {
  position: absolute;
  left: 18%;
  top: 22%;
  width: 58%;
  height: 48%;
  border: 3px dashed rgba(20, 122, 110, 0.45);
  border-radius: 40% 60% 55% 45%;
  animation: hc-dash 12s linear infinite;
}
@keyframes hc-dash {
  to {
    stroke-dashoffset: -40;
    transform: rotate(4deg);
  }
}
.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--amber);
  box-shadow: 0 6px 16px rgba(224, 122, 47, 0.45);
}
.map-pin.is-home {
  right: 22%;
  bottom: 24%;
  background: var(--teal);
}
.map-pin.is-pro {
  left: 24%;
  top: 28%;
  animation: hc-bob 2.2s ease-in-out infinite;
}
@keyframes hc-bob {
  0%,
  100% {
    transform: rotate(-45deg) translateY(0);
  }
  50% {
    transform: rotate(-45deg) translateY(-8px);
  }
}
.map-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
}
.eta-big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  line-height: 1;
  margin: 0.35rem 0 0.75rem;
}

/* Stars rating UI */
.rate-stars {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin: 1rem 0;
}
.rate-stars button {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  color: #d0d7d6;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.rate-stars button.is-on,
.rate-stars button:hover {
  color: var(--gold);
  transform: scale(1.08);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Footer */
.hc-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.hc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.hc-footer a {
  font-weight: 650;
  color: var(--teal-deep);
}

/* Toast */
.hc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  max-width: calc(100% - 2rem);
}
.hc-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.admin-list li {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 650;
}

/* Mobile */
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps,
  .trust-strip,
  .pro-grid,
  .profile-layout,
  .track-layout {
    grid-template-columns: 1fr;
  }
  .hc-nav-toggle {
    display: inline-grid;
    place-items: center;
  }
  .hc-nav-panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-sm);
  }
  .hc-nav-panel.is-open {
    display: block;
  }
  .hc-nav-links {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.75rem;
  }
  .hc-nav-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hc-hero {
    min-height: 78vh;
  }
}

@media (max-width: 520px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .pro-card-top {
    grid-template-columns: auto 1fr;
  }
  .status-dot {
    grid-column: 2;
  }
}

/* —— Extended UI (v2) —— */
.badge-featured {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(224, 122, 47, 0.16);
  color: var(--amber-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.12);
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 800;
}
.badge-fav {
  color: var(--danger);
  font-size: 1.1rem;
  align-self: center;
}
.hc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.filters-bar label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.filters-bar select,
.filters-bar input[type="number"] {
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: 0.86rem;
  cursor: pointer;
}
.quote-box {
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 122, 110, 0.08), rgba(224, 122, 47, 0.06));
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}
.quote-box .quote-total {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal-deep);
}
.match-queue {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.match-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  animation: hc-rise 0.5s ease both;
}
.match-item.is-accepted {
  border-color: rgba(31, 138, 76, 0.35);
  background: rgba(31, 138, 76, 0.08);
}
.pay-methods {
  display: grid;
  gap: 0.55rem;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 650;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pay-method:hover,
.pay-method.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.pay-method input {
  accent-color: var(--teal);
}
.chat-panel {
  display: flex;
  flex-direction: column;
  height: min(420px, 60vh);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--paper);
}
.chat-bubble {
  max-width: 78%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.chat-bubble.is-me {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.is-them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}
.chat-compose input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.hc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 36, 0.55);
  display: grid;
  place-items: center;
  z-index: 300;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.hc-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.hc-modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 20px;
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  animation: hc-rise 0.35s ease both;
}
.hc-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--paper);
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.video-stub-screen {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #0c2e33, #147a6e);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.video-pulse {
  position: absolute;
  inset: 30% 35%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: hc-ring 1.8s ease-out infinite;
}
.lifecycle-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0;
}
.lifecycle-steps span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.lifecycle-steps span.is-done {
  background: rgba(31, 138, 76, 0.14);
  color: var(--ok);
}
.lifecycle-steps span.is-current {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.stat-card {
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 650;
}
.table-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-list th,
.table-list td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-list th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.admin-side {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}
.admin-side a {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.admin-side a:hover,
.admin-side a.is-active {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.heatmap {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, rgba(224, 122, 47, 0.45), transparent 28%),
    radial-gradient(circle at 62% 55%, rgba(20, 122, 110, 0.5), transparent 32%),
    radial-gradient(circle at 48% 28%, rgba(192, 57, 43, 0.35), transparent 22%),
    radial-gradient(circle at 75% 35%, rgba(20, 122, 110, 0.3), transparent 25%),
    linear-gradient(135deg, #d8e8e4, #eef2f0);
  border: 1px solid var(--line);
}
.heatmap-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(224, 122, 47, 0.85);
  box-shadow: 0 0 0 8px rgba(224, 122, 47, 0.2);
  animation: hc-pulse 2.8s ease-in-out infinite;
}
.invoice-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.invoice-sheet .inv-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
}
.online-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--ok);
}
.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.wizard-steps span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--paper);
  color: var(--muted);
}
.wizard-steps span.is-on {
  background: var(--teal);
  color: #fff;
}
.map-pin.is-pro.is-animating {
  transition: left 0.4s linear, top 0.4s linear;
}
body.is-rtl .hc-nav-links,
body.is-rtl .hc-footer-links,
body.is-rtl .chip-row,
body.is-rtl .pro-actions {
  direction: rtl;
}
@media print {
  .hc-nav,
  .hc-footer,
  .hc-nav-cta,
  .no-print {
    display: none !important;
  }
  .invoice-sheet {
    border: 0;
    box-shadow: none;
  }
  body {
    background: #fff;
  }
}
@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: static;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    display: grid;
  }
}
