/* =====================================================================
   askJBoss 2.96 — inner pages in the homepage look:
   Jobs, Businesses, Prices, Pay & top-up, Ask, Music, Movies, posts and profiles.
   Loaded after askjboss-brand.css. Uses its colour tokens, so night mode follows.
   ===================================================================== */

/* ---------- Dark banner at the top of a page (".intro.pg-hero") ---------- */
.intro.pg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0, #1b4c47 0, #12403c 35%, #0a2522 100%);
  color: #fdfcfa; border-radius: 18px; padding: 28px 30px 26px; margin-bottom: 16px; border: 0;
}
.intro.pg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.intro.pg-hero h1 { color: #fdfcfa; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.08; margin: 6px 0 8px; }
.intro.pg-hero > p, .intro.pg-hero div > p { color: #cfe0da; max-width: 600px; margin: 0 0 4px; font-size: 15px; }
.intro.pg-hero .pg-eyebrow { color: #f4b942; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; margin: 0; }
.intro.pg-hero .btn-soft, .intro.pg-hero .btn-ghost { background: transparent; color: #fdfcfa; border: 1px solid rgba(255,255,255,.35); }
.intro.pg-hero .btn-soft:hover, .intro.pg-hero .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fdfcfa; }
.intro.pg-hero .btn-dark, .intro.pg-hero .btn-primary { background: #f4b942; color: #12403c; }
.intro.pg-hero .btn-dark:hover, .intro.pg-hero .btn-primary:hover { background: #f7c766; color: #12403c; }
.intro.pg-hero .pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* search/filter bars inside the banner: white pill */
.intro.pg-hero .filter-bar, .pg-search {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #fff; border-radius: 999px; padding: 6px; margin-top: 18px; max-width: 680px;
}
.intro.pg-hero .filter-bar .input, .intro.pg-hero .filter-bar .select { border: 0; background: transparent; color: #0f1f1c; box-shadow: none; min-width: 0; flex: 2 1 200px; height: 40px; }
.intro.pg-hero .filter-bar .select { flex: 0 1 170px; border-left: 1px solid #e3dccb; border-radius: 0; }
.intro.pg-hero .filter-bar .btn { flex: none; }
.pg-search label { display: flex; align-items: center; gap: 8px; color: #4c5f5b; padding: 0 10px; min-width: 0; }
.pg-search-q { flex: 1 1 200px; }
.pg-search-where { border-left: 1px solid #e3dccb; flex: 0 1 190px; }
.pg-search input, .pg-search select { border: 0; outline: 0; background: transparent; font: inherit; color: #0f1f1c; height: 40px; width: 100%; min-width: 0; }
.pg-search .btn { flex: none; }
@media (max-width: 640px) {
  .intro.pg-hero { padding: 22px 18px; border-radius: 16px; }
  .pg-search, .intro.pg-hero .filter-bar { border-radius: 16px; }
  .pg-search-where { border-left: 0; border-top: 1px solid #e3dccb; flex-basis: 100%; }
  .pg-search .btn, .intro.pg-hero .filter-bar .btn { width: 100%; }
  .intro.pg-hero .filter-bar .select { border-left: 0; flex-basis: 100%; border-top: 1px solid #e3dccb; }
}
/* little stat boxes inside the banner (prices, wallet) */
.pg-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: stretch; }
.pg-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 9px 15px; color: #fdfcfa; text-decoration: none; min-width: 110px; }
.pg-stat small { display: block; color: #cfe0da; font-size: 12px; }
.pg-stat b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
a.pg-stat:hover { background: rgba(255,255,255,.13); color: #fdfcfa; }
.pg-chips { margin: 4px 0 16px; }

/* ---------- Small shared bits ---------- */
.pg-tag { display: inline-block; font-size: 10.5px; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--hub-tint); color: var(--green-text); vertical-align: middle; }
.pg-tag.gold { background: var(--hub-gold-soft); color: var(--hub-gold-text); }
.pg-safety { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 11px 15px; border-radius: 12px; background: var(--hub-tint); color: var(--green-text); font-size: 13.5px; font-weight: 600; }
.pg-side-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.pg-side-card h2 { font-size: 16px; margin: 0; }
.pg-side-card p { margin: 0; }
.pg-side-card .btn { width: 100%; justify-content: center; }
.pg-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 12px; gap: 10px; }
.pg-head h2 { font-size: 20px; margin: 0; }
.pg-head a { color: var(--hub-gold-text); font-weight: 600; font-size: 13px; text-decoration: none; }

/* ---------- Jobs list ---------- */
.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.job-row.is-featured { border-color: #f4b942; box-shadow: 0 0 0 3px var(--hub-gold-soft); }
.job-row.is-closed { opacity: .66; }
.job-logo { width: 52px; height: 52px; border-radius: 12px; flex: none; background: #12403c; color: #f4b942; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; text-decoration: none; overflow: hidden; }
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-main { flex: 1; min-width: 0; }
.job-main h2 { font-size: 16.5px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -.01em; }
.job-main h2 a { color: var(--ink); text-decoration: none; }
.job-main h2 a:hover { text-decoration: underline; }
.job-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.job-ok { color: #1d7a46; font-weight: 600; }
html[data-theme="dark"] .job-ok { color: #7fd1a1; }
.job-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 9px 0 0; }
.job-pay { color: var(--green-text); }
html[data-theme="dark"] .job-pay { color: #f4b942; }
.job-apply { flex: none; }
@media (max-width: 560px) {
  .job-row { flex-wrap: wrap; align-items: flex-start; }
  .job-main { flex-basis: calc(100% - 70px); }
  .job-apply { width: 100%; justify-content: center; }
}

/* ---------- Businesses: category tiles + cards ---------- */
.pg-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 6px; }
.pg-cat { display: flex; align-items: center; gap: 10px; padding: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.pg-cat:hover, .pg-cat.on { border-color: var(--green); }
.pg-cat.on { background: var(--hub-tint); }
.pg-cat i { width: 38px; height: 38px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--hub-tint); color: var(--green-text); font-style: normal; font-size: 18px; }
.pg-cat b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-cat small { color: var(--muted); font-size: 12px; }
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.biz-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.biz-card:hover { border-color: var(--green); }
.biz-cover { height: 132px; background: linear-gradient(135deg, #1b4c47, #7fa89b); position: relative; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-logo { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--card); background: #12403c; color: #f4b942; display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-body { padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.biz-body b { font-size: 15.5px; display: flex; align-items: center; gap: 5px; }
.biz-body .small { color: var(--muted); }
.biz-desc { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.biz-foot { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
@media (max-width: 980px) { .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .biz-grid { grid-template-columns: 1fr; } }

/* ---------- Prices: cards with a 7-day line ---------- */
.price-card { position: relative; }
.pc-spark { grid-column: 1 / -1; display: block; width: 100%; height: 34px; margin-top: 6px; }
.pc-spark polyline { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pc-spark.up polyline { stroke: #b3261e; } .pc-spark.down polyline { stroke: #1d7a46; } .pc-spark.flat polyline { stroke: var(--muted); }
html[data-theme="dark"] .pc-spark.up polyline { stroke: #ff8a80; } html[data-theme="dark"] .pc-spark.down polyline { stroke: #7fd1a1; }
.price-card .pc-price { font-size: 20px; letter-spacing: -.01em; }
.pg-compare { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pg-compare a { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; text-decoration: none; color: var(--ink); }
.pg-compare small { display: block; color: var(--muted); font-size: 12px; }
.pg-compare b { font-size: 18px; }
.pg-compare em { display: block; font-style: normal; font-size: 12px; font-weight: 700; }
.pg-compare em.hi { color: #b3261e; } .pg-compare em.lo { color: #1d7a46; }
html[data-theme="dark"] .pg-compare em.hi { color: #ff8a80; } html[data-theme="dark"] .pg-compare em.lo { color: #7fd1a1; }
@media (max-width: 760px) { .pg-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pay & top-up: wallet banner ---------- */
.pg-wallet { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.intro.pg-hero .pg-wallet .pg-wallet-n { font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -.02em; color: #fdfcfa; line-height: 1.1; margin: 4px 0; }
.pg-wallet > div:first-child { flex: 1; min-width: 200px; }
.pg-wallet .btn-gold { background: #f4b942; color: #12403c; }

/* ---------- Ask: question cards ---------- */
.q-bar { border-radius: 12px; }
.pg-ask { display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 8px; margin-top: 18px; max-width: 680px; align-items: center; }
.pg-ask { text-decoration: none; }
.pg-ask span:first-child { flex: 1; color: #4c5f5b; padding: 0 10px; }
.pg-ask .btn { flex: none; }

/* ---------- Music & movies ---------- */
.album-card, .movie-card { border-radius: 14px; }
.album-cover, .movie-poster { border-radius: 12px; overflow: hidden; }
.movie-poster .price-chip.free { background: #f4b942; color: #12403c; }

/* ---------- Posts (feed cards) ---------- */
.post-actions { gap: 6px; margin: 4px 0 0; flex-wrap: wrap; }
.post-actions .act { background: var(--soft-2); color: var(--muted); height: 34px; padding: 0 13px; }
.post-actions .act:hover { background: var(--soft); color: var(--ink); }
html[data-theme="dark"] .post-actions .act { background: rgba(255,255,255,.05); }
.post-tags a { color: var(--hub-gold-text); font-weight: 600; }
.comment-bubble { border-radius: 16px; }
.comment-reply .comment-bubble { background: var(--soft-2); }

/* ---------- Profiles ---------- */
.pf-tabs a.on, .pf-tabs button.on, .pf-tabs .on { border-bottom-color: #f4b942 !important; color: var(--ink); }
.pf-stats > * { border-radius: 12px; }

/* prices: state picker + chips row under the banner */
.pg-filter { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.pg-filter .chips { flex: 1; min-width: 0; margin: 0; }
.pg-state label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 0 6px 0 12px; color: var(--muted); }
.pg-state .select { border: 0; background: transparent; height: 38px; padding-left: 0; font-weight: 600; color: var(--ink); }

/* pay & top-up: service tabs as tiles */
.svc-page .svc-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 0 0 16px; }
.svc-page .svc-tab { flex-direction: column; justify-content: center; height: auto; min-height: 92px; padding: 14px 8px; border-radius: 14px; text-align: center; gap: 8px; font-size: 13.5px; }
.svc-page .svc-tab span { width: 42px; height: 42px; border-radius: 12px; background: var(--hub-tint); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.svc-page .svc-tab.on { background: var(--hub-tint); border: 2px solid var(--green); color: var(--ink); }
.svc-page .svc-tab.on span { background: #12403c; }
html[data-theme="dark"] .svc-page .svc-tab.on { color: var(--ink); border-color: #f4b942; }
.svc-page .svc-card { border-radius: 16px; }

/* the white search pill keeps dark text in night mode */
html[data-theme="dark"] .pg-search input, html[data-theme="dark"] .pg-search select,
html[data-theme="dark"] .intro.pg-hero .filter-bar .input, html[data-theme="dark"] .intro.pg-hero .filter-bar .select {
  background: transparent !important; color: #0f1f1c !important; border-color: #e3dccb;
}
html[data-theme="dark"] .pg-search select option, html[data-theme="dark"] .intro.pg-hero .filter-bar .select option { color: #0f1f1c; background: #fff; }
.intro.pg-hero .filter-bar .select { flex: 0 1 150px; }
@media (min-width: 641px) {
  .intro.pg-hero .filter-bar { flex-wrap: nowrap; }
  .intro.pg-hero .filter-bar .input { flex: 2 1 120px; }
  .intro.pg-hero .filter-bar .select { flex: 0 1 140px; width: auto; }
}
