/* ═══════════════════════════════════════════════════════════════
   PC WEBSITE LAYOUT (Ren 2026-11-06, Sample 1 "Shopee-style").
   Everything is scoped to body.dx, which deskx.js sets only when the
   window is wider than 900px. Phones never see these rules.
   ═══════════════════════════════════════════════════════════════ */
#dxTop, #dxHome { display: none; }

body.dx {
  --dx-g: #1E7A33; --dx-g2: #2ea84a; --dx-dk: #0d2817; --dx-ink: #16261c; --dx-mut: #5b6b60;
  --dx-line: #e3ebe5; --dx-bg: #f2f4f2; --dx-card: #fff;
}
body.dx.dark-mode {
  --dx-ink: #e6efe8; --dx-mut: #9fb2a5; --dx-line: #26332a; --dx-bg: #0e1511; --dx-card: #151f18;
}

/* the new header replaces the old desktop header everywhere it showed */
body.dx > .nav-container { display: none !important; }
body.dx #dxTop { display: block; flex: 0 0 auto; position: relative; z-index: 120; font-family: Inter, sans-serif; }
body.dx.profile-active #dxTop, body.dx.wallet-active #dxTop { display: none; }

/* page frame: header on top, the active view fills the rest */
body.dx.home-page { display: flex; flex-direction: column; }
body.dx.home-page > .app-wrapper,
body.dx.home-page > #providerView.active,
body.dx.home-page > #taskFeedView { height: auto; flex: 1 1 auto; min-height: 0; }

.dx-ic { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
body.dx .dx-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── utility bar ── */
.dx-util { background: var(--dx-dk); color: #cfe3d5; font-size: 13px; }
.dx-util .dx-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.dx-util a { color: #cfe3d5; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.dx-util a:hover { color: #fff; }
.dx-util-l, .dx-util-r { display: flex; align-items: center; gap: 18px; }
.dx-mode { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 2px; }
.dx-mode a { padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.dx-mode a.on { background: #fff; color: var(--dx-g); }
.dx-me { font-weight: 600; }
.dx-badge { position: absolute; top: -7px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dx-badge[hidden] { display: none; }

/* ── green header ── */
.dx-hdr { background: linear-gradient(180deg, #17532b, #1E7A33); padding: 16px 0 12px; }
.dx-hdr .dx-in { display: flex; align-items: center; gap: 28px; }
.dx-wm { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font: 800 23px Outfit, Inter, sans-serif; letter-spacing: -.4px; white-space: nowrap; }
.dx-wm b { color: #9be3ad; font-weight: 800; }
.dx-logo { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--dx-g); display: inline-flex; align-items: center; justify-content: center; }
.dx-sb { flex: 1; min-width: 0; margin: 0; }
.dx-sbox { background: #fff; border-radius: 8px; display: flex; padding: 4px; }
.dx-sbox input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: 15px Inter, sans-serif; outline: 0; background: transparent; color: #16261c; }
.dx-sbox input::-webkit-search-cancel-button { cursor: pointer; }
.dx-sbox button { background: var(--dx-g2); color: #fff; border: 0; border-radius: 6px; padding: 0 26px; cursor: pointer; }
.dx-sbox button:hover { background: #27943f; }
.dx-sugg { display: flex; gap: 14px; margin-top: 7px; font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.dx-sugg a { color: #d6eedd; text-decoration: none; }
.dx-sugg a:hover { color: #fff; text-decoration: underline; }
.dx-hicons { display: flex; align-items: center; gap: 18px; color: #fff; }
.dx-hi { color: #fff; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.dx-hi small { font-size: 11px; opacity: .85; }
.dx-hi .dx-badge { top: -6px; right: -8px; }
.dx-wal { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.15; }
.dx-wal b { display: block; font-size: 15px; }
.dx-post { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--dx-g); border: 0; border-radius: 10px; padding: 11px 16px; font: 800 14px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.dx-post:hover { background: #effaf2; }

/* ── client home replaces the old Service Hub ── */
body.dx .app-wrapper { display: flex; flex-direction: column; }
body.dx #clientView { flex: 1 1 auto; min-height: 0; }
body.dx.dx-client #clientView > #ServiceHub,
body.dx.dx-client #clientView > .tab-content.active-tab { display: none !important; }
body.dx.dx-client #dxHome { display: block; height: 100%; overflow-y: auto; background: var(--dx-bg); color: var(--dx-ink); font-family: Inter, sans-serif; padding-bottom: 10px; }
body.dx.dx-client #chatFab { display: none !important; }
#dxHome button { font-family: inherit; cursor: pointer; }

.dx-banners { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 20px; }
.dx-bn { border: 0; border-radius: 8px; padding: 28px 30px; color: #fff; position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.dx-bn1 { background: linear-gradient(120deg, #0f3d22, #1E7A33 60%, #2ea84a); min-height: 250px; }
.dx-bn1 h2 { font: 800 33px/1.15 Outfit, Inter, sans-serif; margin: 8px 0; max-width: 470px; color: #fff; }
.dx-bn1 p { margin: 0 0 18px; opacity: .88; max-width: 470px; font-size: 15px; }
.dx-k { font-size: 12px; font-weight: 800; color: #ffd166; letter-spacing: .06em; text-transform: uppercase; }
.dx-bn-btn { background: #fff; color: var(--dx-g); border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 800; font-size: 14px; position: relative; z-index: 1; }
.dx-art { position: absolute; right: 34px; top: 34px; display: grid; grid-template-columns: repeat(3, 62px); gap: 12px; }
.dx-art i { width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #fff; }
.dx-ph { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; background: center / cover no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 22%, #000 45%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 22%, #000 45%); }
.dx-bn1.dx-has-art > *:not(.dx-ph):not(.dx-dots) { position: relative; z-index: 1; }
.dx-bn1.dx-has-art h2, .dx-bn1.dx-has-art p { max-width: 48%; min-width: 280px; }
.dx-dots { position: absolute; z-index: 2; bottom: 14px; left: 30px; display: flex; gap: 6px; }
.dx-dots i { width: 8px; height: 8px; border-radius: 9px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .2s; }
.dx-dots i.on { width: 22px; background: #fff; }
.dx-bside { display: grid; gap: 8px; }
.dx-bn2, .dx-bn3 { padding: 20px 22px; gap: 4px; }
.dx-bn2 { background: linear-gradient(120deg, #fdf0e1, #ffe1bd); color: #7a3f05; }
.dx-bn3 { background: linear-gradient(120deg, #e6f0fc, #cfe2fb); color: #16427c; }
.dx-bn2 .dx-k { color: #c46a0c; } .dx-bn3 .dx-k { color: #1f6fd1; }
.dx-bn2 b, .dx-bn3 b { font: 800 20px Outfit, Inter, sans-serif; }
.dx-bn2 small, .dx-bn3 small { font-size: 13px; opacity: .85; }
.dx-bn:hover { filter: brightness(1.03); }

.dx-quick { background: var(--dx-card); display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 8px; padding: 14px 0; border-radius: 8px; }
.dx-q { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dx-ink); }
.dx-q span { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.dx-q:hover span { transform: translateY(-2px); }
.dx-q0 span { background: #e6f0fc; color: #1f6fd1; } .dx-q1 span { background: #fdf0e1; color: #c46a0c; }
.dx-q2 span { background: #e5f5e8; color: #2b8a3e; } .dx-q3 span { background: #1E7A33; color: #fff; }
.dx-q4 span { background: #efeafd; color: #6a4bd1; } .dx-q5 span { background: #f5ece2; color: #8a5a2b; }

.dx-sec { background: var(--dx-card); margin-top: 18px; border-radius: 8px; overflow: hidden; }
.dx-sec h4 { margin: 0; padding: 15px 20px; font-size: 15px; color: var(--dx-mut); letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--dx-line); display: flex; justify-content: space-between; align-items: center; }
.dx-sec h4 a { color: var(--dx-g2); text-transform: none; letter-spacing: 0; font-size: 14px; text-decoration: none; }
.dx-cats { display: grid; grid-template-columns: repeat(9, 1fr); }
.dx-cat { background: none; border: 0; border-right: 1px solid var(--dx-line); padding: 18px 8px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--dx-ink); gap: 3px; }
.dx-cat:last-child { border-right: 0; }
.dx-cat small { font-weight: 400; color: var(--dx-mut); font-size: 11px; line-height: 1.3; }
.dx-cat span { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: var(--dx-cbg); color: var(--dx-cfg); transition: transform .15s; }
.dx-cat:hover span { transform: scale(1.06); }
.dx-cat.on { box-shadow: inset 0 -3px 0 var(--dx-cfg); background: var(--dx-cbg); }

.dx-c-home      { --dx-cfg: #0f8a7a; --dx-cbg: #e2f5f1; }
.dx-c-civil     { --dx-cfg: #1f6fd1; --dx-cbg: #e6f0fc; }
.dx-c-domestic  { --dx-cfg: #2b8a3e; --dx-cbg: #e5f5e8; }
.dx-c-medical   { --dx-cfg: #d0436b; --dx-cbg: #fde8ee; }
.dx-c-tech      { --dx-cfg: #6a4bd1; --dx-cbg: #efeafd; }
.dx-c-transport { --dx-cfg: #c46a0c; --dx-cbg: #fdf0e1; }
.dx-c-legal     { --dx-cfg: #8a5a2b; --dx-cbg: #f5ece2; }
.dx-c-education { --dx-cfg: #a3427a; --dx-cbg: #f8e8f1; }
.dx-c-general   { --dx-cfg: #4b5d52; --dx-cbg: #eaefec; }

.dx-now h4 > span { color: var(--dx-g2); display: flex; align-items: center; gap: 8px; }
.dx-now h4 em { font-style: normal; background: #16261c; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; letter-spacing: .03em; }
.dx-strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.dx-mini { background: none; border: 0; border-right: 1px solid var(--dx-line); padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--dx-ink); }
.dx-mini:last-child { border-right: 0; }
.dx-mini b { color: var(--dx-g); font-size: 16px; margin-top: 8px; }
.dx-mini small { color: var(--dx-mut); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dx-bar { width: 100%; border-radius: 9px; background: #e5f5e8; margin-top: 8px; font-size: 10.5px; font-weight: 800; color: var(--dx-g); line-height: 18px; }
.dx-mini:hover b { text-decoration: underline; }

.dx-av { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; background: var(--dx-cbg, #e5f5e8) center / cover no-repeat; color: var(--dx-cfg, #1E7A33); }
.dx-mini .dx-av { width: 62px; height: 62px; font-size: 22px; }
.dx-av-xs { width: 20px; height: 20px; font-size: 9px; background-color: #fff; color: var(--dx-g); }
.dx-av-lg { width: 84px; height: 84px; font-size: 30px; background-color: #fff; }

.dx-disc { margin-top: 18px; background: var(--dx-card); text-align: center; border-bottom: 4px solid var(--dx-g2); padding: 14px; font-weight: 800; color: var(--dx-g); letter-spacing: .06em; text-transform: uppercase; border-radius: 8px 8px 0 0; scroll-margin-top: 10px; }
.dx-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dx-fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--dx-card); border: 1px solid var(--dx-g2); color: var(--dx-g); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.dx-fclear { background: none; border: 0; color: var(--dx-mut); font-weight: 600; font-size: 13px; text-decoration: underline; }
.dx-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.dx-card { background: var(--dx-card); border: 1px solid var(--dx-line); border-radius: 8px; overflow: hidden; padding: 0; text-align: left; display: flex; flex-direction: column; color: var(--dx-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.dx-card:hover { border-color: var(--dx-g2); box-shadow: 0 6px 18px rgba(20,60,35,.10); transform: translateY(-2px); }
.dx-card-top { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--dx-cbg); }
.dx-card-top .dx-chip { position: absolute; top: 8px; left: 8px; }
.dx-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.dx-chip-id { background: #fff; color: #1f6fd1; }
.dx-card-bd { padding: 10px 12px 12px; display: flex; flex-direction: column; }
.dx-nm { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-sk { font-size: 12.5px; color: var(--dx-mut); margin: 2px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-pr { color: var(--dx-g); font-weight: 800; font-size: 16px; }
.dx-pr.dx-ask { color: var(--dx-mut); font-size: 14px; }
.dx-mt { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--dx-mut); margin-top: 6px; white-space: nowrap; }
.dx-mt > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.dx-stars { color: #b7791f; font-weight: 700; }
.dx-on { color: #2b8a3e; font-weight: 700; }
.dx-empty { grid-column: 1 / -1; background: var(--dx-card); border: 1px dashed var(--dx-line); border-radius: 8px; padding: 28px; text-align: center; color: var(--dx-mut); font-size: 14px; }
.dx-empty a { color: var(--dx-g2); font-weight: 700; }
.dx-more { display: block; width: 380px; margin: 20px auto 10px; background: var(--dx-card); border: 1px solid var(--dx-line); padding: 12px; font-weight: 600; font-size: 14px; color: var(--dx-ink); border-radius: 6px; }
.dx-more:hover { border-color: var(--dx-g2); }
.dx-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; padding: 26px 0 20px; border-top: 4px solid var(--dx-g); font-size: 13px; color: var(--dx-mut); }
.dx-foot b { display: block; color: var(--dx-ink); margin-bottom: 8px; }
.dx-foot a, .dx-foot span { display: block; color: var(--dx-mut); text-decoration: none; margin-bottom: 5px; }
.dx-foot a:hover { color: var(--dx-g2); }

/* narrower laptops */
@media (max-width: 1180px) {
  .dx-grid { grid-template-columns: repeat(4, 1fr); }
  .dx-cats { grid-template-columns: repeat(5, 1fr); }
  .dx-cat:nth-child(5n) { border-right: 0; }
  .dx-cat { border-bottom: 1px solid var(--dx-line); }
  .dx-strip { grid-template-columns: repeat(3, 1fr); }
  .dx-art { display: none; } .dx-ph { width: 48%; }
  .dx-bn1.dx-has-art h2, .dx-bn1.dx-has-art p { max-width: 56%; }
  .dx-sugg a:nth-child(n+5) { display: none; }
  .dx-hi small { display: none; }
}
@media (max-width: 1000px) {
  .dx-grid { grid-template-columns: repeat(3, 1fr); }
  .dx-wal span { display: none; }
  .dx-banners { grid-template-columns: 1fr; }
  .dx-bside { grid-template-columns: 1fr 1fr; }
}

/* header line-up (Ren 2026-11-08, "wala sa hulog"): logo, Map, Chat, Wallet
   and Post a task were centred on the search box PLUS the links under it, so
   they sat lower than the search box. Now they all centre on the search box. */
.dx-hdr .dx-in { align-items: flex-start; }
.dx-hdr .dx-wm, .dx-hdr .dx-hicons, .dx-hdr .dx-post { height: 46px; box-sizing: border-box; }
.dx-hdr .dx-sbox { height: 46px; box-sizing: border-box; }
.dx-hdr .dx-hicons { align-items: center; }
.dx-hdr .dx-hi { justify-content: center; height: 46px; }
.dx-hdr .dx-hi svg, .dx-hdr .dx-wal svg { display: block; }
.dx-hdr .dx-wal { height: 46px; align-items: center; }
.dx-hdr .dx-post { padding: 0 18px; align-items: center; }
/* Map, Chat and Wallet the same way (Ren 2026-11-08): icon on the left,
   word on the right, every icon 22px on the same middle line. */
.dx-hdr .dx-hicons { gap: 22px; }
.dx-hdr .dx-hi { flex-direction: row; gap: 7px; }
.dx-hdr .dx-hi small { font-size: 13px; font-weight: 600; opacity: .92; line-height: 1; }
.dx-hdr .dx-hi svg, .dx-hdr .dx-wal svg { width: 22px; height: 22px; flex: 0 0 auto; }
.dx-hdr .dx-hi .dx-badge { top: 5px; left: 14px; right: auto; }
