/* Builders & Developers — nexvork.ai (prefix bd-) */

.bd-hero { overflow: hidden; }
.bd-hero .container { z-index: 1; }
.bd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bd-hero-grid > *, .bd-pain .split > *, .bd-wa .split > *, .bd-day .split > *, .bd-reports .split > *, .bd-ai .nx-story > *, .bd-band-card > *, .bd-needs > * { min-width: 0; }
.bd-hero-title { max-width: 15ch; }
.bd-hero-actions { margin-top: 32px; }
.bd-hero-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.bd-hero-links .nx-link { font-size: 0.88rem; }
.bd-orb-1 { width: 540px; height: 540px; top: -170px; left: -150px; }
.bd-orb-2 { width: 600px; height: 600px; top: 8%; right: -230px; }

.bd-hero-visual { position: relative; }
.bd-win { max-width: min(100%, 560px); margin-left: auto; }
.bd-win-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-win-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nx-blue-2); }
html[data-theme="light"] .bd-win-tag { color: var(--nx-purple); }
.bd-towers { display: flex; gap: 4px; }
.bd-tower { padding: 4px 11px; border-radius: 7px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); border: 1px solid rgba(255,255,255,0.1); }
html[data-theme="light"] .bd-tower { border-color: var(--line-2); }
.bd-tower.is-on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.bd-kpis .nx-kpi-val { font-size: 1.1rem; }

.bd-inv { display: grid; grid-template-columns: 30px repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 14px; }
.bd-floor { display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.58rem; color: var(--subtle); }
.bd-unit { display: grid; place-items: center; height: 30px; border-radius: 7px; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; border: 1px solid transparent; min-width: 0; }
.bd-unit.is-avail, .bd-plot.is-avail { background: rgba(16,185,129,0.16); color: #34D399; border-color: rgba(16,185,129,0.38); }
.bd-unit.is-booked, .bd-plot.is-booked { background: rgba(65,143,228,0.18); color: #7DB5F2; border-color: rgba(65,143,228,0.38); }
.bd-unit.is-hold, .bd-plot.is-hold { background: rgba(245,158,11,0.16); color: #FBBF24; border-color: rgba(245,158,11,0.38); }
.bd-unit.is-sold, .bd-plot.is-sold { background: rgba(255,255,255,0.05); color: var(--subtle); border-color: rgba(255,255,255,0.08); text-decoration: line-through; }
html[data-theme="light"] .bd-unit.is-avail, html[data-theme="light"] .bd-plot.is-avail { color: #047857; }
html[data-theme="light"] .bd-unit.is-booked, html[data-theme="light"] .bd-plot.is-booked { color: #1D4ED8; }
html[data-theme="light"] .bd-unit.is-hold, html[data-theme="light"] .bd-plot.is-hold { color: #B45309; }
html[data-theme="light"] .bd-unit.is-sold, html[data-theme="light"] .bd-plot.is-sold { background: var(--bg-3); border-color: var(--line); }
.bd-unit.is-pulse { animation: bdPulse 2.4s ease-in-out infinite; }
@keyframes bdPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(65,143,228,0); } 50% { box-shadow: 0 0 0 4px rgba(65,143,228,0.25); } }
.bd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.bd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bd-legend i { width: 8px; height: 8px; border-radius: 2px; }
.bd-legend .l-avail i { background: var(--nx-emerald); }
.bd-legend .l-booked i { background: var(--nx-blue); }
.bd-legend .l-hold i { background: var(--nx-amber); }
.bd-legend .l-sold i { background: var(--faint); }

.bd-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.76rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-md); white-space: nowrap; z-index: 2; }
.bd-chip svg { color: var(--nx-blue-2); }
.bd-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-wa); box-shadow: 0 0 10px var(--nx-wa); }
.bd-chip-1 { top: -18px; left: -10px; }
.bd-chip-2 { bottom: -16px; right: 16px; }
.bd-chip-3 { bottom: 30px; left: 0; right: 0; width: max-content; max-width: calc(100% - 16px); margin: 0 auto; }

.bd-seg-grid .nx-card p { font-size: 0.93rem; }
.bd-seg-grid .nx-tag { margin-bottom: 14px; }
.bd-inline-link { color: var(--nx-blue-2); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="light"] .bd-inline-link { color: var(--nx-purple); }

.bd-before { position: relative; width: 100%; max-width: 470px; margin: 0 auto; padding-bottom: 26px; }
.bd-before-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; }
.bd-sheet { transform: rotate(-1.2deg); }
.bd-sheet-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.3fr); font-family: var(--font-mono); font-size: 0.62rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
html[data-theme="light"] .bd-sheet-grid { border-color: var(--line-2); }
.bd-sheet-grid > span { padding: 7px 9px; border-bottom: 1px solid rgba(255,255,255,0.07); border-right: 1px solid rgba(255,255,255,0.07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html[data-theme="light"] .bd-sheet-grid > span { border-color: var(--line); }
.bd-sheet-grid > span:nth-child(4n) { border-right: 0; }
.bd-sheet-grid .hd { background: rgba(255,255,255,0.05); color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.54rem; }
html[data-theme="light"] .bd-sheet-grid .hd { background: var(--bg-3); }
.bd-sheet-grid .bad { color: var(--nx-rose); font-weight: 700; }
.bd-sheet-grid .warn { color: var(--nx-amber); }
.bd-sheet-grid .ok { color: #34D399; }
.bd-before-chat { margin-top: 14px; transform: rotate(1deg); box-shadow: var(--shadow-md); }
.bd-before-chat .nx-chat-body { padding: 10px 12px; gap: 6px; }
.bd-msg-from { display: block; font-size: 0.64rem; font-weight: 600; color: var(--nx-amber); margin-bottom: 2px; }
.bd-before-tag { position: absolute; right: -8px; bottom: 0; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(244,63,94,0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nx-rose); box-shadow: var(--shadow-md); white-space: nowrap; z-index: 2; }

.bd-pains { display: grid; gap: 14px; }
.bd-pains li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; line-height: 1.55; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line-2); }
.bd-pains li strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.bd-pain-num { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; color: var(--nx-blue-2); }
html[data-theme="light"] .bd-pain-num { color: var(--nx-purple); }

.bd-bento .nx-card p { font-size: 0.93rem; }
.bd-var-head, .bd-var { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.8fr); gap: 8px; align-items: center; padding: 8px 12px; font-size: 0.76rem; }
.bd-var-head { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); padding-bottom: 4px; }
.bd-var { border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); }
.bd-var + .bd-var { margin-top: 6px; }
.bd-var span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bd-var span:first-child { font-weight: 600; color: var(--text); }
.bd-var span + span { font-family: var(--font-mono); color: var(--muted); }
.bd-var span:last-child, .bd-var-head span:last-child { text-align: right; }
.bd-var .ok { color: #34D399; font-weight: 700; }
.bd-var .warn { color: var(--nx-amber); font-weight: 700; }
.bd-var .hot { color: var(--nx-rose); font-weight: 700; }
html[data-theme="light"] .bd-var .ok { color: #047857; }

.bd-plots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.bd-plot { aspect-ratio: 1.3; display: grid; place-items: center; border-radius: 5px; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600; border: 1px solid transparent; min-width: 0; }
.bd-plot.is-park { background: rgba(16,185,129,0.08); color: var(--subtle); border: 1px dashed rgba(16,185,129,0.35); font-size: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; }
.bd-road { grid-column: 1 / -1; height: 14px; border-radius: 3px; background: var(--surface-3); position: relative; }
.bd-road::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1px dashed var(--line-3); }
.bd-plots-cap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.bd-mini .nx-row { padding: 8px 10px; }

.bd-story-con, .bd-story-win { max-width: min(100%, 560px); }
.bd-story-con .nx-console-body { font-size: 0.72rem; }
.bd-story-phone { width: 300px; }
.bd-profile { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bd-urow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); }
.bd-urow + .bd-urow { margin-top: 7px; }
html[data-theme="light"] .bd-urow { border-color: var(--line); background: var(--bg-2); }
.bd-uid { flex-shrink: 0; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; padding: 5px 8px; border-radius: 7px; background: rgba(65,143,228,0.15); color: #7DB5F2; }
html[data-theme="light"] .bd-uid { color: #1D4ED8; }
.bd-urow-main { flex: 1; min-width: 0; }
.bd-urow-main strong { display: block; font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-urow-main span { display: block; font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-urow .nx-tag { flex-shrink: 0; }

.bd-wa-visual { position: relative; padding: 20px 0 36px; }
.bd-wa-visual .nx-phone { width: 320px; }
.bd-wa-visual .nx-msg-btn + .nx-msg-btn { margin-top: 4px; }

.bd-day .nx-timeline { margin-top: 8px; }
.bd-day .nx-tl-item p { font-size: 0.93rem; }
.bd-day-win { max-width: min(100%, 520px); margin: 0 auto; }
.bd-day-rows { margin-top: 12px; }
.bd-day-rows .nx-tag { flex-shrink: 0; }

.bd-rep-win { max-width: min(100%, 580px); }
.bd-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bd-kpis-4 .nx-kpi-val { font-size: 1.05rem; }
.bd-tbl-wrap { overflow-x: auto; margin-top: 14px; }
.bd-tbl-head, .bd-tbl { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 0.7fr)); gap: 8px; align-items: center; padding: 8px 12px; font-size: 0.74rem; min-width: 420px; }
.bd-tbl-head { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); padding-bottom: 4px; }
.bd-tbl { border-radius: 9px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); }
.bd-tbl + .bd-tbl { margin-top: 6px; }
html[data-theme="light"] .bd-tbl { border-color: var(--line); background: var(--bg-2); }
.bd-tbl span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-tbl span + span, .bd-tbl-head span + span { font-family: var(--font-mono); text-align: right; color: var(--muted); }
.bd-tbl span:last-child { color: #34D399; font-weight: 700; }
.bd-tbl span.warn { color: var(--nx-amber); }
html[data-theme="light"] .bd-tbl span:last-child { color: #047857; }
.bd-rep-copy .nx-checks { margin-top: 4px; }

.bd-band { padding-top: 0; }
.bd-band-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-2xl); }
.bd-band-card::before { opacity: 1 !important; background: radial-gradient(60% 80% at 0% 0%, rgba(130,62,157,0.35), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(65,143,228,0.3), transparent 60%); }
html[data-theme="light"] .bd-band-card { background: #0B0B13; border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow-md); }
.bd-band-card .eyebrow, html[data-theme="light"] .bd-band-card .eyebrow { color: var(--nx-blue-2); }
.bd-band-card .h2 { color: #fff; margin-bottom: 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.bd-band-card .lead { color: #C3C8D6; margin-bottom: 26px; font-size: 1.05rem; }
.bd-band-card .nx-btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.2); }
.bd-band-flow { justify-content: center; margin-bottom: 22px; }
.bd-band-flow .nx-node { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); color: #F4F5FA; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.bd-band-list { display: grid; gap: 8px; }
.bd-band-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); font-size: 0.82rem; color: #C3C8D6; }
.bd-band-list .nx-tag { flex-shrink: 0; }

.bd-needs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; padding: 32px; }
.bd-needs-head .h4 { margin-bottom: 0; }
.bd-needs .nx-checks li { font-size: 0.93rem; }

.bd-rel { display: flex; flex-direction: column; }
.bd-rel .nx-card-link { margin-top: auto; padding-top: 18px; }
.bd-rel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

@media (max-width: 1100px) {
    .bd-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .bd-hero-title { max-width: none; }
    .bd-win { margin: 0 auto; }
    .bd-chip-1 { left: 0; }
}
@media (max-width: 900px) {
    .bd-band-card { grid-template-columns: 1fr; }
    .bd-needs { grid-template-columns: 1fr; gap: 20px; }
    .bd-story-phone { width: 280px; margin: 0 auto; }
    .bd-day-visual { order: -1; }
}
@media (max-width: 640px) {
    .bd-chip { font-size: 0.7rem; padding: 7px 11px; }
    .bd-chip-1 { top: -14px; }
    .bd-chip-2 { bottom: -14px; right: 6px; }
    .bd-chip-3 { bottom: 12px; white-space: normal; text-align: center; max-width: calc(100% - 24px); }
    .bd-inv { grid-template-columns: 24px repeat(6, minmax(0, 1fr)); gap: 4px; }
    .bd-unit { height: 26px; font-size: 0.54rem; }
    .bd-kpis, .bd-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-before { padding-bottom: 28px; }
    .bd-before-tag { right: 0; left: 0; width: max-content; max-width: 100%; margin: 0 auto; }
    .bd-sheet-grid { font-size: 0.56rem; }
    .bd-sheet-grid > span { padding: 6px 7px; }
    .bd-var-head, .bd-var { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.8fr); font-size: 0.7rem; padding: 7px 9px; }
    .bd-wa-visual .nx-phone { width: 280px; }
    .bd-band-card { padding: 28px 20px; }
    .bd-band-flow .nx-flow-arrow { width: 14px; }
    .bd-needs { padding: 24px 20px; }
    .bd-day-win .nx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-story-con .nx-console-body { font-size: 0.66rem; padding: 12px; }
}
@media (max-width: 400px) {
    .bd-uid { font-size: 0.58rem; padding: 4px 6px; }
    .bd-towers { width: 100%; }
    .bd-tower { flex: 1; text-align: center; }
}
