/* ══ Post My Request (inc/post_request_ui.php, js/post-request.js) ══════════
   The request form, email code, Confirm your request, the opportunity detail /
   share sheet, and the homepage LIVE preview, drawn to the 2026-10-25 mockups.
   Everything is scoped under #hprModal, #hprSheet or .hpr-live: css/styles.css
   restyles every `form input/textarea` and phones force button text sizes, so
   these selectors carry an id (or the section class) to win without fighting. */

#hprModal, #hprSheet, .hpr-live, .hpr-page {
    --hpr-gold: #f3c34f;
    --hpr-gold-2: #e9ae42;
    --hpr-gold-grad: linear-gradient(180deg, #fde397 0%, #f4c862 46%, #e5a843 100%);
    --hpr-ink: #1b1203;
    --hpr-text: #ffffff;
    --hpr-soft: #dfe8f2;
    --hpr-muted: #a9bccd;
    --hpr-line: rgba(243, 195, 79, .82);
    --hpr-field: rgba(9, 27, 54, .78);
    --hpr-field-line: rgba(150, 182, 222, .30);
    --hpr-red: #ff5a5f;
    --hpr-green: #39d98a;
    --hpr-panel: radial-gradient(120% 70% at 50% 0%, #1a4677 0%, #0c2649 42%, #071730 100%);
}

/* ------------------------------------------------------------------ shell */

#hprModal[hidden], #hprSheet[hidden] { display: none !important; }
#hprModal, #hprSheet {
    position: fixed; inset: 0; z-index: 100050;
    display: flex; align-items: flex-start; justify-content: center;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 24px 12px; font-family: Lexend, Outfit, "Segoe UI", sans-serif;
    color: var(--hpr-text); text-align: left;
}
#hprModal .hpr-backdrop, #hprSheet .hpr-backdrop {
    position: fixed; inset: 0; background: rgba(2, 8, 20, .74);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
#hprModal .hpr-panel {
    position: relative; width: 100%; max-width: 520px; margin: auto;
    background: var(--hpr-panel); border: 1px solid rgba(243, 195, 79, .28);
    border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    padding: 26px 22px 24px; outline: none;
}
#hprModal .hpr-x, #hprSheet .hpr-x {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: transparent; color: var(--hpr-gold); cursor: pointer;
    display: grid; place-items: center; padding: 0;
}
#hprModal .hpr-x:hover, #hprSheet .hpr-x:hover { background: rgba(255, 255, 255, .06); }
#hprModal .hpr-x:focus-visible, #hprSheet .hpr-x:focus-visible { outline: 2px solid var(--hpr-gold); outline-offset: 2px; }
#hprModal .hpr-view[hidden] { display: none !important; }
html.hpr-lock, html.hpr-lock body { overflow: hidden !important; }

/* ------------------------------------------------------------------ form */

#hprModal .hpr-brand { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0 0 10px; text-align: center; }
#hprModal .hpr-brand img { width: 112px; height: auto; display: block; }
#hprModal .hpr-brand b { font-size: 26px; font-weight: 800; letter-spacing: .5px; line-height: 1.05; color: #fff; }
#hprModal .hpr-brand small { font-size: 13px; color: #e5383b; line-height: 1.1; }

#hprModal .hpr-h1 {
    margin: 4px 0 8px; text-align: center;
    font-size: clamp(31px, 8.6vw, 44px); line-height: 1.04; font-weight: 800; letter-spacing: -.8px;
    background: var(--hpr-gold-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--hpr-gold);
}
#hprModal .hpr-h2 { margin: 0 0 6px; text-align: center; font-size: clamp(17px, 4.7vw, 22px); font-weight: 700; color: #fff; line-height: 1.25; text-wrap: balance; }
#hprModal .hpr-sub { margin: 0 auto 16px; max-width: 30em; text-align: center; font-size: 15px; line-height: 1.45; color: var(--hpr-soft); }

#hprModal .hpr-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 4px; }
#hprModal .hpr-cat {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 8px 10px; border-radius: 12px;
    border: 1.5px solid var(--hpr-line); background: rgba(5, 18, 38, .45);
    color: #fff; font: inherit; font-size: 17px !important; font-weight: 600; line-height: 1.15;
    cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s; text-align: center;
}
#hprModal .hpr-cat .hpr-ic { color: #fff; flex: none; }
#hprModal .hpr-cat:hover { box-shadow: 0 0 0 1px rgba(243, 195, 79, .35), 0 0 16px rgba(243, 195, 79, .16); }
#hprModal .hpr-cat:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#hprModal .hpr-cat.is-on { background: var(--hpr-gold-grad); color: var(--hpr-ink); border-color: #f8d77d; box-shadow: 0 6px 18px rgba(233, 174, 66, .28); }
#hprModal .hpr-cat.is-on .hpr-ic { color: var(--hpr-ink); }
#hprModal .hpr-cats.is-bad .hpr-cat { border-color: var(--hpr-red); box-shadow: 0 0 0 1px rgba(255, 90, 95, .55), 0 0 14px rgba(255, 90, 95, .25); }

#hprModal .hpr-label { display: block; margin: 14px 0 8px; font-size: 20px !important; font-weight: 700 !important; color: #fff !important; letter-spacing: 0; text-transform: none; }
#hprModal .hpr-need { border: 1.5px solid var(--hpr-line); border-radius: 14px; background: rgba(4, 16, 35, .55); padding: 12px 14px 12px; }
#hprModal .hpr-need textarea {
    display: block; width: 100%; min-height: 76px; max-height: 260px; resize: none; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 2px 0 10px; margin: 0; border: 0 !important; border-radius: 0; background: transparent !important;
    box-shadow: none !important; outline: none; color: #fff; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5;
}
#hprModal .hpr-need textarea::placeholder { color: #9db0c6; opacity: 1; font-size: 15.5px; font-weight: 400; }
#hprModal .hpr-need:focus-within { box-shadow: 0 0 0 3px rgba(243, 195, 79, .16); }
#hprModal .hpr-talk { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
#hprModal .hpr-talk-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid rgba(255, 255, 255, .16); padding-right: 12px; }
#hprModal .hpr-talk-copy b { font-size: 17px; font-weight: 700; color: #fff; }
#hprModal .hpr-talk-copy span { font-size: 14px; line-height: 1.4; color: var(--hpr-soft); }
#hprModal .hpr-talk-copy small { font-size: 11.5px; line-height: 1.35; color: var(--hpr-muted); margin-top: 3px; }
#hprModal .hpr-talk-mic { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; }
#hprModal .hpr-mic {
    width: 66px; height: 66px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--hpr-gold-grad); color: var(--hpr-ink); display: grid; place-items: center;
    box-shadow: 0 8px 22px rgba(233, 174, 66, .35); position: relative;
}
#hprModal .hpr-mic:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#hprModal .hpr-mic.is-live { background: radial-gradient(circle, #ff7b7b, #e5383b); color: #fff; }
#hprModal .hpr-mic.is-live::after {
    content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid rgba(255, 90, 95, .55);
    animation: hprPulse 1.3s ease-out infinite;
}
#hprModal .hpr-mic-label { font-size: 12.5px; color: var(--hpr-soft); text-align: center; line-height: 1.2; }
#hprModal .hpr-mic-status { margin: 10px 0 0; font-size: 13px; color: var(--hpr-gold); }
@keyframes hprPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

#hprModal .hpr-as { margin: 14px 4px 0; font-size: 14px; color: var(--hpr-soft); }
#hprModal .hpr-field {
    position: relative; display: flex; align-items: center; gap: 10px; margin: 12px 0 0;
    min-height: 54px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--hpr-field-line); background: var(--hpr-field);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
#hprModal .hpr-field + .hpr-err:empty { display: none; }
#hprModal .hpr-field > .hpr-ic { color: #e6eef7; flex: none; }
#hprModal .hpr-field:focus-within { border-color: rgba(243, 195, 79, .8); box-shadow: 0 0 0 3px rgba(243, 195, 79, .14); }
#hprModal .hpr-field.is-bad { border-color: var(--hpr-red); }
#hprModal .hpr-field input {
    flex: 1; min-width: 0; height: 52px !important; margin: 0; padding-top: 0 !important; padding-bottom: 0 !important; padding-right: 0 !important;
    border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important;
    color: #fff; font: inherit; font-size: 16.5px; font-weight: 400; line-height: 52px; outline: none;
}
#hprModal .hpr-field input:not(.housbe-phone__input) { padding-left: 0 !important; }
#hprModal .hpr-field input::placeholder { color: #b8c7d8; opacity: 1; font-size: 16.5px; font-weight: 400; }
#hprModal .hpr-field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s ease-out 0s; }
/* js/housbe-phone-auto.js wraps the phone input with its country button: the
   flag replaces the phone icon, and the box keeps this pill's look. */
#hprModal .hpr-field-phone:has(.housbe-phone-inline) > .hpr-ic { display: none; }
#hprModal .hpr-field-phone .housbe-phone-inline { flex: 1; min-width: 0; display: flex !important; align-items: center; background: transparent !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
#hprModal .hpr-field-phone .housbe-phone__country { color: #fff; }
#hprModal .hpr-field-phone { padding-left: 8px; }
#hprModal .hpr-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

#hprModal .hpr-private { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 12px; font-size: 14.5px; color: var(--hpr-soft); }
#hprModal .hpr-private-ic { color: #e5383b; display: inline-flex; }
#hprModal .hpr-bar { width: 1px; height: 20px; background: rgba(255, 255, 255, .35); }

#hprModal .hpr-submit {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
    min-height: 58px; border-radius: 999px; border: 2px solid #ec6a52; cursor: pointer;
    background: var(--hpr-gold-grad); color: var(--hpr-ink);
    font: inherit; font-size: 20px !important; font-weight: 700; letter-spacing: .1px;
    box-shadow: 0 10px 26px rgba(233, 174, 66, .30), 0 0 0 3px rgba(236, 106, 82, .12);
}
#hprModal .hpr-submit:hover { filter: brightness(1.05); }
#hprModal .hpr-submit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#hprModal .hpr-submit[disabled] { opacity: .7; cursor: progress; }
#hprModal .hpr-signin { margin: 14px 0 0; text-align: center; font-size: 14.5px; color: var(--hpr-soft); }
#hprModal .hpr-signin a { color: var(--hpr-gold); text-decoration: underline; text-underline-offset: 3px; }

#hprModal .hpr-err { margin: 6px 6px 0; min-height: 0; font-size: 13.5px; line-height: 1.35; color: #ff8a8d; }
#hprModal .hpr-err:empty { display: none; }
#hprModal .hpr-err-form { text-align: center; margin-top: 10px; }

/* ------------------------------------------------------------------ code + confirm */

#hprModal .hpr-kicker { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 8px; font-size: 13px; letter-spacing: 3px; color: var(--hpr-gold); font-weight: 600; }
#hprModal .hpr-kicker span { width: 64px; height: 1px; background: rgba(243, 195, 79, .6); }
#hprModal .hpr-title { margin: 0 0 6px; text-align: center; font-size: clamp(27px, 7.4vw, 34px); font-weight: 800; color: #fff; letter-spacing: -.4px; line-height: 1.12; }
#hprModal .hpr-lead { margin: 0 auto 18px; max-width: 30em; text-align: center; font-size: 16px; line-height: 1.5; color: var(--hpr-soft); }
#hprModal .hpr-lead b { color: #fff; }
#hprModal .hpr-code {
    display: block; width: 100%; max-width: 300px; margin: 6px auto 0; height: 64px !important;
    border-radius: 16px; border: 1.5px solid var(--hpr-line) !important; background: rgba(4, 16, 35, .6) !important;
    color: #fff; text-align: center; font: inherit; font-size: 32px; font-weight: 700; letter-spacing: 12px; padding: 0 0 0 12px !important;
}
#hprModal .hpr-code:focus { outline: none; box-shadow: 0 0 0 3px rgba(243, 195, 79, .2); }
#hprModal .hpr-codeform .hpr-err { text-align: center; }
#hprModal .hpr-codeform .hpr-submit { margin-top: 16px; }
#hprModal .hpr-codehelp { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--hpr-soft); }
#hprModal .hpr-linkbtn { border: 0; background: none; padding: 0; color: var(--hpr-gold); font: inherit; font-size: inherit !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#hprModal .hpr-linkbtn[disabled] { opacity: .55; cursor: default; text-decoration: none; }
#hprModal .hpr-fine { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--hpr-muted); }

#hprModal .hpr-cbrand { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
#hprModal .hpr-cbrand img { width: 70px; height: auto; }
#hprModal .hpr-cbrand b { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: #fff; }
#hprModal .hpr-opt {
    position: relative; margin: 0 0 16px; padding: 18px 18px 16px; border-radius: 18px;
    border: 1px solid rgba(243, 195, 79, .45); background: rgba(4, 15, 32, .45);
}
#hprModal .hpr-opt-id { border: 2px solid rgba(243, 195, 79, .9); box-shadow: 0 0 26px rgba(243, 195, 79, .16), inset 0 0 22px rgba(243, 195, 79, .05); }
#hprModal .hpr-opt-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
#hprModal .hpr-opt-tt { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
#hprModal .hpr-opt-tt .hpr-badge { flex: none; }
#hprModal .hpr-opt-ic { width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(243, 195, 79, .65); color: var(--hpr-gold); display: grid; place-items: center; background: rgba(243, 195, 79, .06); }
#hprModal .hpr-opt h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 800; color: #fff; line-height: 1.2; }
#hprModal .hpr-opt-head p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--hpr-soft); }
#hprModal .hpr-badge { margin-top: 4px; padding: 5px 13px; border-radius: 999px; border: 1.5px solid var(--hpr-gold); color: var(--hpr-gold); font-size: 14px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
#hprModal .hpr-btn-line, #hprSheet .hpr-btn-line {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin: 16px 0 0;
    border-radius: 14px; border: 1.5px solid var(--hpr-gold); background: transparent; color: var(--hpr-gold);
    font: inherit; font-size: 19px !important; font-weight: 700; cursor: pointer; text-decoration: none;
}
#hprModal .hpr-btn-line:hover, #hprSheet .hpr-btn-line:hover { background: rgba(243, 195, 79, .08); }
#hprModal .hpr-btn-gold, #hprSheet .hpr-btn-gold {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin: 16px 0 0;
    border-radius: 14px; border: 0; background: var(--hpr-gold-grad); color: var(--hpr-ink);
    font: inherit; font-size: 20px !important; font-weight: 800; cursor: pointer; text-decoration: none;
    box-shadow: 0 10px 24px rgba(233, 174, 66, .28);
}
#hprModal .hpr-btn-gold:hover, #hprSheet .hpr-btn-gold:hover { filter: brightness(1.05); }
#hprModal .hpr-btn-gold[disabled], #hprModal .hpr-btn-line[disabled] { opacity: .55; cursor: default; filter: none; }
#hprModal .hpr-btn-line:focus-visible, #hprModal .hpr-btn-gold:focus-visible, #hprSheet .hpr-btn-line:focus-visible, #hprSheet .hpr-btn-gold:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#hprModal .hpr-opt-note { margin: 12px 0 0; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--hpr-muted); }
#hprModal .hpr-after { margin: 16px 0 10px 76px; font-size: 12px; letter-spacing: 3px; color: var(--hpr-muted); }
#hprModal .hpr-verified, #hprSheet .hpr-verified {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px 76px; padding: 9px 18px 9px 10px;
    border-radius: 14px; border: 2px solid var(--hpr-green); color: #fff; font-size: 18px; font-weight: 700;
    box-shadow: 0 0 16px rgba(57, 217, 138, .35); background: rgba(57, 217, 138, .06);
}
#hprModal .hpr-verified .hpr-ic, #hprSheet .hpr-verified .hpr-ic { background: #fff; border-radius: 50%; stroke: #0b5e3b; }
#hprModal .hpr-ticks { list-style: none; margin: 0 0 0 76px; padding: 0; }
#hprModal .hpr-ticks li { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; color: #fff; }
#hprModal .hpr-ticks .hpr-ic { color: var(--hpr-gold); flex: none; }
#hprModal .hpr-opt-sub { margin: 4px 0 0 76px; font-size: 14.5px; color: var(--hpr-soft); }
#hprModal .hpr-opt-status {
    margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45;
    background: rgba(243, 195, 79, .09); border: 1px solid rgba(243, 195, 79, .35); color: #fff;
}
#hprModal .hpr-opt-status b { color: var(--hpr-gold); }
#hprModal .hpr-opt-status.is-bad { background: rgba(255, 90, 95, .08); border-color: rgba(255, 90, 95, .45); }
#hprModal .hpr-opt-status.is-good { background: rgba(57, 217, 138, .08); border-color: rgba(57, 217, 138, .45); }
#hprModal .hpr-paypal { margin: 14px 0 0; padding: 12px; border-radius: 14px; background: #fff; }
#hprModal .hpr-paypal .hpr-pp-note { margin: 0 0 8px; color: #1b2b44; font-size: 13px; text-align: center; }
#hprModal .hpr-cfoot { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 4px; text-align: left; }
#hprModal .hpr-cfoot-ic { color: var(--hpr-gold) !important; flex: none; display: inline-flex; }
#hprModal .hpr-cfoot-ic .hpr-ic { stroke: var(--hpr-gold); }
#hprModal .hpr-cfoot b { display: block; font-size: 16.5px; color: #fff; }
#hprModal .hpr-cfoot span { display: block; font-size: 14px; color: var(--hpr-muted); }
#hprModal .hpr-back { margin: 16px 0 0; text-align: center; font-size: 16px; }

#hprModal .hpr-done { text-align: center; }
#hprModal .hpr-done-ic { display: inline-grid; place-items: center; width: 88px; height: 88px; margin: 10px auto 14px; border-radius: 50%; color: var(--hpr-green); border: 2px solid rgba(57, 217, 138, .6); box-shadow: 0 0 26px rgba(57, 217, 138, .3); }

/* ------------------------------------------------------------------ detail + share */

#hprSheet { align-items: center; z-index: 100060; }
#hprSheet .hpr-card {
    position: relative; width: 100%; max-width: 470px; margin: auto; outline: none;
    background: radial-gradient(120% 70% at 50% 0%, #14365f 0%, #0b2141 50%, #07162d 100%);
    border: 1.5px solid rgba(243, 195, 79, .85); border-radius: 24px; padding: 26px 22px 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 30px rgba(243, 195, 79, .12);
}
#hprSheet .hpr-pill-lg { display: inline-block; padding: 6px 16px; border-radius: 6px; font-size: 17px; font-weight: 800; letter-spacing: .6px; background: var(--tag, #e5383b); color: var(--ink, #fff); }
#hprSheet .hpr-d-place { margin: 12px 0 4px; font-size: 30px; font-weight: 800; color: #fff; line-height: 1.15; padding-right: 30px; }
#hprSheet .hpr-d-head { margin: 0 0 6px; font-size: 19px; color: var(--hpr-soft); line-height: 1.35; }
#hprSheet .hpr-d-budget { margin: 0 0 6px; font-size: 34px; font-weight: 800; color: #f7d27c; letter-spacing: -.3px; }
#hprSheet .hpr-d-budget:empty { display: none; }
#hprSheet .hpr-verified-sm { margin: 4px 0 6px; font-size: 14px; padding: 5px 12px 5px 6px; }
#hprSheet .hpr-facts { list-style: none; margin: 10px 0 0; padding: 14px 0 4px; border-top: 1px solid rgba(255, 255, 255, .14); }
#hprSheet .hpr-facts:empty { display: none; }
#hprSheet .hpr-facts li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; color: var(--hpr-soft); }
#hprSheet .hpr-facts li .hpr-ic { color: var(--hpr-gold); flex: none; }
#hprSheet .hpr-facts li b { margin-left: auto; color: #fff; font-weight: 500; text-align: right; }
#hprSheet .hpr-d-h { margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 20px; font-weight: 700; color: #f7d27c; }
#hprSheet .hpr-d-text { margin: 0; font-size: 16px; line-height: 1.55; color: #fff; white-space: pre-line; overflow-wrap: anywhere; }
#hprSheet .hpr-d-private { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: 15px; color: var(--hpr-soft); }
#hprSheet .hpr-d-private .hpr-ic { color: var(--hpr-soft); }
#hprSheet .hpr-detail .hpr-btn-line { color: #fff; border-radius: 999px; font-size: 18px !important; font-weight: 600; }
#hprSheet .hpr-detail .hpr-btn-gold { border-radius: 999px; margin-top: 12px; }
#hprSheet .hpr-share[hidden], #hprSheet .hpr-detail[hidden] { display: none !important; }
#hprSheet .hpr-share { text-align: center; }
#hprSheet .hpr-affpill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 18px; border-radius: 999px; background: #4c3b9e; border: 1.5px solid #8f7bff; color: #fff; font-size: 16px; font-weight: 600; }
#hprSheet .hpr-s-title { margin: 6px 0 6px; padding: 0 34px; font-size: 27px; font-weight: 800; color: #fff; }
#hprSheet .hpr-s-sub { margin: 0 0 14px; font-size: 15.5px; color: var(--hpr-soft); }
#hprSheet .hpr-s-sum { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(160, 190, 230, .28); background: rgba(10, 30, 60, .6); text-align: left; }
#hprSheet .hpr-s-sum b { display: block; font-size: 20px; color: #fff; }
#hprSheet .hpr-s-sum span:not(.hpr-pill) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; color: var(--hpr-soft); }
#hprSheet .hpr-s-deal { margin: 14px 0 0; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #fbe2a2, #f2c766); color: var(--hpr-ink); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; }
#hprSheet .hpr-s-deal[hidden] { display: none; }
#hprSheet .hpr-s-gift { grid-row: span 1; display: grid; place-items: center; padding-right: 12px; border-right: 1px solid rgba(27, 18, 3, .35); }
#hprSheet .hpr-s-deal b { display: block; font-size: 22px; font-weight: 800; }
#hprSheet .hpr-s-deal span { display: block; font-size: 15px; line-height: 1.4; }
#hprSheet .hpr-s-deal small { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; }
#hprSheet .hpr-s-link { margin: 16px 0 0; text-align: left; }
#hprSheet .hpr-s-link[hidden] { display: none; }
#hprSheet .hpr-s-link > b { display: block; font-size: 20px; color: #fff; }
#hprSheet .hpr-s-link > span { display: block; font-size: 14.5px; color: var(--hpr-soft); margin: 2px 0 8px; }
#hprSheet .hpr-s-url { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border-radius: 14px; border: 1.5px solid rgba(160, 190, 230, .4); background: rgba(5, 18, 38, .7); }
#hprSheet .hpr-s-url input { flex: 1; min-width: 0; height: 40px !important; border: 0 !important; background: transparent !important; color: #fff; font: inherit; font-size: 16px; padding: 0 !important; box-shadow: none !important; outline: none; }
#hprSheet .hpr-s-url button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
#hprSheet .hpr-s-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 4px; }
#hprSheet .hpr-s-apps a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: 15px; text-decoration: none; }
#hprSheet .hpr-s-apps i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
#hprSheet .hpr-s-apps .is-wa { background: #25d366; }
#hprSheet .hpr-s-apps .is-mail { background: linear-gradient(180deg, #3aa0ff, #1e6ff2); }
#hprSheet .hpr-s-apps .is-ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
#hprSheet .hpr-s-apps .is-sms { background: linear-gradient(180deg, #34e58e, #13b864); }
#hprSheet .hpr-s-apps a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
#hprSheet .hpr-s-copy { border-radius: 999px; margin-top: 16px; }
#hprSheet .hpr-s-copy[hidden] { display: none; }
#hprSheet .hpr-s-note, #hprSheet .hpr-s-notes p { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; font-size: 14px; line-height: 1.4; color: var(--hpr-soft); text-align: left; }
#hprSheet .hpr-s-notes { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 16px; }
#hprSheet .hpr-s-notes[hidden], #hprSheet .hpr-s-note[hidden] { display: none; }
#hprSheet .hpr-s-note .hpr-ic, #hprSheet .hpr-s-notes .hpr-ic { flex: none; color: var(--hpr-soft); }
#hprSheet .hpr-toast { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(57, 217, 138, .14); border: 1px solid rgba(57, 217, 138, .5); color: #fff; font-size: 14px; }

/* ------------------------------------------------------------------ LIVE preview */

/* The homepage header is fixed (120px on phones, ~90px on desktop) and the
   search block used to clear it with its own top spacing. The preview now sits
   first, so it clears the header and the search keeps only a small gap. */
.hpr-live { position: relative; z-index: 2; padding: 18px 16px 6px; font-family: Lexend, Outfit, "Segoe UI", sans-serif; color: #fff; }
/* two copies (inc/post_request_ui.php): phones see the top one, desktop the one under the Deal Room cards */
.hpr-live--top { padding-top: 118px; }
.hpr-live--desk { display: none; }
@media (max-width: 991px) {
    .hpr-live--top + .property__searchAndCategory { margin-top: 8px !important; padding-top: 0 !important; }
}
.hpr-live .hpr-live-in { max-width: 1240px; margin: 0 auto; display: grid; gap: 14px; }
.hpr-live .hpr-tabs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.hpr-live .hpr-tab {
    grid-column: span 3; min-height: 40px; padding: 4px 6px; border-radius: 999px;
    border: 1.5px solid rgba(243, 195, 79, .8); background: rgba(5, 18, 38, .55); color: #fff;
    font: inherit; font-size: 15.5px !important; font-weight: 500; cursor: pointer; line-height: 1.1;
}
.hpr-live .hpr-tab:nth-child(n+5) { grid-column: span 4; }
.hpr-live .hpr-tab:hover { background: rgba(243, 195, 79, .1); }
.hpr-live .hpr-tab.is-on { background: linear-gradient(180deg, #e9cf8c, #c9a35a); color: #1b1203; border-color: #e9cf8c; font-weight: 700; }
.hpr-live .hpr-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hpr-live .hpr-live-line { display: flex; align-items: center; gap: 8px; margin: 12px 4px 8px; font-size: 15px; color: #dce6f0; }
.hpr-live .hpr-dot { width: 11px; height: 11px; border-radius: 50%; background: #28c76f; box-shadow: 0 0 0 0 rgba(40, 199, 111, .6); animation: hprLive 2s infinite; }
@keyframes hprLive { 0% { box-shadow: 0 0 0 0 rgba(40, 199, 111, .55); } 70% { box-shadow: 0 0 0 8px rgba(40, 199, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 199, 111, 0); } }
.hpr-live .hpr-list-wrap { border-radius: 16px; border: 1.5px solid rgba(160, 190, 230, .28); background: rgba(5, 16, 34, .62); padding: 4px 6px 4px 16px; }
.hpr-live .hpr-list { list-style: none; margin: 0; padding: 0 8px 0 0; max-height: 330px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; }
.hpr-live .hpr-list::-webkit-scrollbar { width: 6px; }
.hpr-live .hpr-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); border-radius: 6px; }
.hpr-live .hpr-row { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.hpr-live .hpr-row[hidden] { display: none; }
.hpr-live .hpr-row.is-new { animation: hprIn .7s ease-out; }
@keyframes hprIn { from { background: rgba(243, 195, 79, .18); } to { background: transparent; } }
.hpr-live .hpr-row-a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top go" "say go"; gap: 6px 10px; padding: 12px 0; color: inherit; text-decoration: none; }
.hpr-live .hpr-row-a:hover .hpr-row-say { color: #fff; }
.hpr-live .hpr-row-a:focus-visible { outline: 2px solid var(--hpr-gold); outline-offset: 2px; border-radius: 8px; }
.hpr-live .hpr-row-top { grid-area: top; display: flex; align-items: center; gap: 12px; min-width: 0; }
.hpr-live .hpr-pill, #hprSheet .hpr-pill { display: inline-block; flex: none; padding: 4px 12px; border-radius: 5px; background: var(--tag, #e5383b); color: var(--ink, #fff); font-size: 13px; font-weight: 800; letter-spacing: .6px; }
.hpr-live .hpr-row-place { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpr-live .hpr-row-time { flex: none; font-size: 13.5px; color: #c3d0dd; }
.hpr-live .hpr-row.is-sample .hpr-row-time { color: var(--hpr-gold); font-weight: 600; }
.hpr-live .hpr-row-say { grid-area: say; font-size: 15px; color: #dce6f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpr-live .hpr-row-go { grid-area: go; align-self: center; color: var(--hpr-gold); display: grid; }
.hpr-live .hpr-empty { margin: 0; padding: 22px 6px; text-align: center; color: #c3d0dd; font-size: 15px; }
.hpr-live .hpr-empty[hidden] { display: none; }
.hpr-live .hpr-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 0 8px; border: 0; background: transparent; color: var(--hpr-gold); font: inherit; font-size: 17px !important; font-weight: 600; cursor: pointer; }
.hpr-live .hpr-more[hidden] { display: none; }
.hpr-live .hpr-cta-h, .hpr-live .hpr-cta-sub { display: none; }
.hpr-live .hpr-post {
    display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px;
    border-radius: 999px; border: 0; background: linear-gradient(180deg, #f6dc98 0%, #ecc46b 55%, #dca54c 100%);
    color: #1b1203; font: inherit; font-size: 19px !important; font-weight: 700; cursor: pointer; box-shadow: 0 10px 26px rgba(220, 165, 76, .28);
}
.hpr-live .hpr-post span { font-size: 28px; font-weight: 500; line-height: 0; }
.hpr-live .hpr-post:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hpr-live .hpr-live-private { margin: 10px 0 2px; text-align: center; font-size: 15.5px; color: #ff7072; }

/* the full list behind Show More */
#hprSheet .hpr-all h2 { margin: 0 0 12px; font-size: 24px; font-weight: 800; color: #fff; }

@media (min-width: 992px) {
    .hpr-live--top { display: none; }
    .hpr-live--desk { display: block; padding: 34px 24px 22px; }
    .hpr-live .hpr-live-in { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 22px; align-items: center; }
    .hpr-live .hpr-tabs { grid-template-columns: repeat(7, 1fr); }
    .hpr-live .hpr-tab, .hpr-live .hpr-tab:nth-child(n+5) { grid-column: auto; }
    .hpr-live .hpr-live-cta { padding: 26px; border-radius: 20px; border: 1.5px solid rgba(243, 195, 79, .55); background: radial-gradient(120% 90% at 50% 0%, rgba(26, 70, 119, .7), rgba(7, 23, 48, .75)); text-align: center; }
    .hpr-live .hpr-cta-h { display: block; margin: 0 0 8px; font-size: 32px; font-weight: 800; line-height: 1.08; background: linear-gradient(180deg, #fde397, #e5a843); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f3c34f; }
    .hpr-live .hpr-cta-sub { display: block; margin: 0 0 18px; font-size: 15.5px; color: #dce6f0; }
    .hpr-live .hpr-list { max-height: 300px; }
}

@media (max-width: 420px) {
    #hprModal, #hprSheet { padding: 0; }
    #hprModal .hpr-panel { border-radius: 0; min-height: 100%; padding: 22px 16px 28px; border: 0; }
    #hprSheet .hpr-card { border-radius: 22px 22px 0 0; margin: auto 0 0; padding: 24px 16px 20px; }
    #hprModal .hpr-cat { font-size: 16px !important; gap: 8px; }
    #hprModal .hpr-after, #hprModal .hpr-verified, #hprModal .hpr-ticks, #hprModal .hpr-opt-sub { margin-left: 64px; }
    #hprModal .hpr-after { letter-spacing: 2px; }
    #hprModal .hpr-opt h3 { font-size: 19px; }
    #hprModal .hpr-opt-head p { font-size: 14.5px; }
    #hprModal .hpr-opt { padding: 16px 14px 14px; }
    #hprModal .hpr-opt-ic { width: 50px; height: 50px; }
    #hprModal .hpr-badge { padding: 4px 10px; font-size: 13px; }
    #hprModal .hpr-talk-mic { width: 80px; }
    .hpr-live--top { padding: 116px 12px 4px; }
    .hpr-live .hpr-tab { font-size: 14.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
    #hprModal .hpr-mic.is-live::after, .hpr-live .hpr-dot, .hpr-live .hpr-row.is-new { animation: none; }
}

/* ------------------------------------------------------------------ opportunity.php */

.hpr-page { max-width: 640px; margin: 0 auto; padding: calc(var(--housbe-navh, 96px) + 18px) 16px 60px; font-family: Lexend, Outfit, "Segoe UI", sans-serif; color: #fff; }
.hpr-page .hpr-card-page {
    position: relative; border: 1.5px solid rgba(243, 195, 79, .85); border-radius: 24px; padding: 26px 22px 22px;
    background: radial-gradient(120% 70% at 50% 0%, #14365f 0%, #0b2141 50%, #07162d 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.hpr-page .hpr-banner { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(57, 217, 138, .5); background: rgba(57, 217, 138, .1); font-size: 15.5px; }
.hpr-page .hpr-banner.is-warn { border-color: rgba(243, 195, 79, .5); background: rgba(243, 195, 79, .08); }
.hpr-page .hpr-respond { margin: 18px 0 0; padding: 16px; border-radius: 16px; border: 1px solid rgba(160, 190, 230, .3); background: rgba(5, 18, 38, .5); }
.hpr-page .hpr-respond h3 { margin: 0 0 8px; font-size: 19px; color: #fff; }
.hpr-page .hpr-respond p { margin: 0 0 6px; color: #dce6f0; font-size: 15px; line-height: 1.45; }
.hpr-page .hpr-price { display: grid; gap: 4px; margin: 10px 0; font-size: 15px; }
.hpr-page .hpr-price div { display: flex; justify-content: space-between; color: #dce6f0; }
.hpr-page .hpr-price .is-total { font-size: 18px; font-weight: 800; color: #fff; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 6px; }
.hpr-page .hpr-price .is-off { color: #7ff0b4; }
.hpr-page .hpr-pp { margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff; }
.hpr-page .hpr-msg { margin: 10px 0 0; font-size: 14.5px; color: #ff9a9c; }
.hpr-page .hpr-msg.is-ok { color: #7ff0b4; }
.hpr-page .hpr-btn-line, .hpr-page .hpr-btn-gold { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin: 12px 0 0; border-radius: 999px; font: inherit; font-size: 18px !important; font-weight: 700; cursor: pointer; text-decoration: none; }
.hpr-page .hpr-btn-line { border: 1.5px solid #f3c34f; background: transparent; color: #fff; }
.hpr-page .hpr-btn-gold { border: 0; background: linear-gradient(180deg, #fde397 0%, #f4c862 46%, #e5a843 100%); color: #1b1203; }
.hpr-page .hpr-pill-lg { display: inline-block; padding: 6px 16px; border-radius: 6px; font-size: 17px; font-weight: 800; letter-spacing: .6px; background: var(--tag, #e5383b); color: var(--ink, #fff); }
.hpr-page .hpr-d-place { margin: 12px 0 4px; font-size: 30px; font-weight: 800; line-height: 1.15; }
.hpr-page .hpr-d-head { margin: 0 0 6px; font-size: 19px; color: #dce6f0; }
.hpr-page .hpr-d-budget { margin: 0 0 6px; font-size: 34px; font-weight: 800; color: #f7d27c; }
.hpr-page .hpr-facts { list-style: none; margin: 10px 0 0; padding: 14px 0 4px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hpr-page .hpr-facts li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; color: #dce6f0; }
.hpr-page .hpr-facts li .hpr-ic { color: #f3c34f; }
.hpr-page .hpr-facts li b { margin-left: auto; color: #fff; font-weight: 500; }
.hpr-page .hpr-d-h { margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 20px; color: #f7d27c; }
.hpr-page .hpr-d-text { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.hpr-page .hpr-d-private { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: 15px; color: #dce6f0; }
.hpr-page .hpr-verified { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 5px 12px 5px 6px; border-radius: 12px; border: 2px solid #39d98a; font-size: 14px; font-weight: 700; box-shadow: 0 0 14px rgba(57, 217, 138, .3); }
.hpr-page .hpr-verified .hpr-ic { background: #fff; border-radius: 50%; stroke: #0b5e3b; }
.hpr-page .hpr-meta { margin: 14px 2px 0; font-size: 13px; color: #a9bccd; text-align: center; }
#hprModal .hpr-h1 .hpr-l2 { display: block; }

/* opportunity.php: the site's global heading and paragraph colours beat inheritance */
#hprPage .hpr-d-place, #hprPage .hpr-respond h3 { color: #fff !important; }
#hprPage .hpr-d-h { color: #f7d27c !important; }
#hprPage .hpr-d-head { color: #dce6f0 !important; line-height: 1.35; }
#hprPage .hpr-d-budget { color: #f7d27c !important; line-height: 1.15; }
#hprPage .hpr-d-text, #hprPage .hpr-respond p, #hprPage .hpr-d-private { color: #e8eef5 !important; line-height: 1.55; }
#hprPage .hpr-price div { color: #dce6f0; }
#hprPage .hpr-price .is-total { color: #fff; }
#hprPage .hpr-respond p.hpr-pp-note { margin: 12px 0 -4px; color: #f3c34f !important; font-size: 13px; font-weight: 600; text-align: center; }
#hprSheet .hpr-d-place, #hprSheet .hpr-s-title { color: #fff !important; }
#hprSheet .hpr-d-head { color: #dce6f0 !important; line-height: 1.35; }
#hprSheet .hpr-d-text { color: #fff !important; }
#hprModal .hpr-title, #hprModal .hpr-opt h3 { color: #fff !important; }

/* Desktop: lined up with the Deal Room cards above it (index.php .hb3-grid:
   230 / 374 / 230 units with 8-unit gaps in min(100vw - 48px, 1320px)). The
   request list runs under Property Passport + Deal Room, Post My Request under
   the Finance card; both columns share one height and one top edge. */
@media (min-width: 992px) {
    .hpr-live--desk { padding: 34px 24px 22px; }
    .hpr-live--desk .hpr-live-in {
        max-width: 1320px;
        grid-template-columns: minmax(0, 612fr) minmax(0, 230fr);
        column-gap: 0.9412%;
        align-items: stretch;
    }
    .hpr-live--desk .hpr-live-main { display: flex; flex-direction: column; min-width: 0; }
    .hpr-live--desk .hpr-live-line { margin: 12px 4px 10px; }
    .hpr-live--desk .hpr-list-wrap { flex: 1 1 auto; display: flex; flex-direction: column; }
    .hpr-live--desk .hpr-list { flex: 1 1 auto; }
    .hpr-live--desk .hpr-empty:not([hidden]) { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
    .hpr-live--desk .hpr-live-cta { display: flex; flex-direction: column; justify-content: center; padding: 26px 22px; min-width: 0; }
    /* Show More: the list grows, the call-to-action stays with the reader instead of stretching into an empty panel */
    /* Show More never makes the page grow: the list scrolls inside its own box,
       so both columns keep the same height */
    .hpr-live--desk.is-expanded .hpr-list { max-height: 560px !important; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(243,195,79,.5) transparent; }
    .hpr-live--desk.is-expanded .hpr-list::-webkit-scrollbar { width: 6px; }
    .hpr-live--desk.is-expanded .hpr-list::-webkit-scrollbar-thumb { background: rgba(243,195,79,.5); border-radius: 6px; }
    .hpr-live--desk .hpr-cta-h { font-size: clamp(22px, 2.15vw, 31px); }
    .hpr-live--desk .hpr-cta-sub { font-size: clamp(14px, 1.05vw, 15.5px); }
    .hpr-live--desk .hpr-post { font-size: clamp(16px, 1.3vw, 19px) !important; padding: 0 12px; }
    .hpr-live--desk .hpr-live-private { font-size: clamp(13px, 1vw, 15px); }
}
