/* Vastu Tips + Vastu Camera */
.bdv {
	--maroon: #5b1212; --orange: #fb4d14; --ink: #241a15; --muted: #6b5f58; --line: #efe2d6; --cream: #fdf6ee;
	--best: #2b8a3e; --good: #1c7ed6; --ok: #b7791f; --avoid: #c92a2a;
	max-width: 1180px; margin: 0 auto; padding: 22px 16px 40px; color: var(--ink); font-family: "Roboto", "Poppins", Arial, sans-serif;
}
.bdv *, .bdv *::before, .bdv *::after { box-sizing: border-box; }
.bdv h1, .bdv h2, .bdv h3 { font-family: "Lora", Georgia, serif; color: var(--maroon); margin: 0; }
.bdv p { margin: 0; }
.bdv [hidden] { display: none !important; }
.bdv-kicker { display: inline-block; font-weight: 600; font-size: 13px; color: var(--orange); background: #fff0e8; padding: 6px 12px; border-radius: 999px; }
.bdv-note, .bdv-muted { font-size: 13px; color: var(--muted); line-height: 1.5; }
.bdv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 500 15px "Roboto", Arial, sans-serif; cursor: pointer; text-decoration: none; }
.bdv-btn--primary { background: linear-gradient(90deg, #fd5a1e, #fb3d10); color: #fff; box-shadow: 0 4px 12px rgba(251, 61, 16, .25); }
.bdv-btn--ghost { background: #fff; color: var(--maroon); border-color: #ead8ca; }
.bdv-btn--ghost:hover { background: #fff7f0; }
.bdv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.bdv-actions .bdv-btn { flex: 1 1 200px; }
.bdv-select { width: 100%; height: 46px; border: 1px solid #ead8ca; border-radius: 12px; padding: 0 12px; font-size: 16px; background: #fff; color: var(--ink); }
.bdv-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.bdv-pill--best { background: var(--best); } .bdv-pill--good { background: var(--good); } .bdv-pill--ok { background: var(--ok); } .bdv-pill--avoid { background: var(--avoid); }

/* ---------- tips page ---------- */
.bdv-hero { text-align: center; max-width: 720px; margin: 0 auto 18px; }
.bdv-hero h1 { font-size: clamp(30px, 4vw, 42px); margin: 10px 0 8px; }
.bdv-hero p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.bdv-camcard {
	display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px; text-decoration: none; color: #fff;
	background: radial-gradient(120% 140% at 0% 0%, #7a1d12, #3b0d08 60%, #1d0905); box-shadow: 0 10px 30px rgba(91, 18, 18, .25);
}
.bdv-camcard__dial { position: relative; width: 78px; height: 78px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.bdv-camcard__dial b { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #ffb38a; }
.bdv-camcard__needle { position: absolute; left: 50%; top: 50%; width: 6px; height: 56px; margin: -28px 0 0 -3px; background: linear-gradient(#fb4d14 50%, #fff 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: bdv-sway 3.2s ease-in-out infinite; }
@keyframes bdv-sway { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(14deg); } }
.bdv-camcard__text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bdv-camcard__text strong { font: 600 22px "Lora", Georgia, serif; }
.bdv-camcard__text span { font-size: 14.5px; line-height: 1.45; opacity: .92; }
.bdv-camcard__text em { font-style: normal; font-size: 12px; color: #ffb38a; }
.bdv-camcard__go { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 22px; flex: none; }
.bdv-camcard:hover .bdv-camcard__go { transform: translateX(3px); }
.bdv-section { margin-top: 28px; }
.bdv-section > h2 { font-size: 24px; margin-bottom: 14px; }
.bdv-dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bdv-dir { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; padding: 14px; }
.bdv-dir header { display: flex; gap: 10px; align-items: center; }
.bdv-dir header > b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 14px; flex: none; }
.bdv-dir h3 { font-size: 17px; }
.bdv-dir header span { font-size: 12.5px; color: var(--muted); }
.bdv-dir > p { font-size: 14px; line-height: 1.5; margin-top: 10px; }
.bdv-dir dl { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.bdv-dir dt { font-weight: 600; color: var(--maroon); margin-top: 6px; }
.bdv-dir dd { margin: 0; color: #4a403a; }
.bdv-roomguide .bdv-select { max-width: 420px; }
.bdv-matrix { margin-top: 14px; display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 18px; align-items: start; }
.bdv-matrix__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bdv-cell { border-radius: 10px; padding: 10px 6px; text-align: center; color: #fff; min-height: 70px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.bdv-cell b { font-size: 16px; } .bdv-cell span { font-size: 12px; }
.bdv-cell--best { background: var(--best); } .bdv-cell--good { background: var(--good); } .bdv-cell--ok { background: var(--ok); } .bdv-cell--avoid { background: var(--avoid); }
.bdv-matrix__mid { display: grid; place-items: center; text-align: center; border-radius: 10px; background: var(--cream); color: var(--maroon); font-weight: 600; font-size: 13px; padding: 6px; }
.bdv-matrix__notes { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; }
.bdv-n--best b { color: var(--best); } .bdv-n--good b { color: var(--good); } .bdv-n--ok b { color: var(--ok); } .bdv-n--avoid b { color: var(--avoid); }
.bdv-askbox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.bdv-askbox h2 { font-size: 20px; }
.bdv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bdv-chips button { border: 1px solid #ead8ca; background: #fff; color: var(--maroon); border-radius: 999px; padding: 7px 12px; font: 13px "Roboto", Arial, sans-serif; cursor: pointer; }
.bdv-ask__form { display: flex; gap: 8px; margin-top: 12px; }
.bdv-ask__form input { flex: 1; min-width: 0; height: 46px; border: 1px solid #ead8ca; border-radius: 12px; padding: 0 12px; font-size: 16px; }
.bdv-ask__log { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; margin-top: 10px; }
.bdv-ask__log:empty { display: none; }
.bdv-msg { max-width: 90%; padding: 10px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.bdv-msg--me { align-self: flex-end; background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.bdv-msg--ai { align-self: flex-start; background: var(--cream); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bdv-disclaimer { margin-top: 20px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- camera app: start / manual ---------- */
.bdv-app { max-width: 620px; }
.bdv-back { display: inline-block; color: var(--maroon); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.bdv-start { text-align: center; }
.bdv-start h1 { font-size: 32px; margin-top: 14px; }
.bdv-start > p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin-top: 8px; }
.bdv-start__dial { position: relative; width: 132px; height: 132px; margin: 8px auto 0; border-radius: 50%; background: radial-gradient(circle, #fff 55%, #fdeee4); border: 2px solid #f3d9c8; box-shadow: 0 8px 24px rgba(91, 18, 18, .12); }
.bdv-start__dial span { position: absolute; left: 50%; top: 50%; width: 10px; height: 96px; margin: -48px 0 0 -5px; background: linear-gradient(var(--orange) 50%, #5b1212 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: bdv-sway 3.2s ease-in-out infinite; }
.bdv-start__dial b, .bdv-start__dial i { position: absolute; font-style: normal; font-size: 13px; font-weight: 700; color: var(--maroon); }
.bdv-start__dial b { top: 6px; left: 50%; transform: translateX(-50%); color: var(--orange); }
.bdv-start__dial i:nth-of-type(1) { right: 8px; top: 50%; transform: translateY(-50%); }
.bdv-start__dial i:nth-of-type(2) { bottom: 6px; left: 50%; transform: translateX(-50%); }
.bdv-start__dial i:nth-of-type(3) { left: 8px; top: 50%; transform: translateY(-50%); }
.bdv-start__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; text-align: left; }
.bdv-start__list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.bdv-start__err { margin-top: 14px; padding: 12px; border-radius: 12px; background: #fff4ec; border: 1px solid #fbd9c4; color: #8a3a12; font-size: 14px; line-height: 1.5; text-align: left; }
.bdv-start__err a { color: var(--orange); font-weight: 600; }
.bdv-qr { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--cream); text-align: left; }
.bdv-qr__code { width: 112px; height: 112px; flex: none; background: #fff; border-radius: 8px; padding: 4px; }
.bdv-qr__code svg { width: 100%; height: 100%; display: block; }
.bdv-qr p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.bdv-manual h1 { font-size: 28px; }
.bdv-manual .bdv-note { margin: 6px 0 14px; padding: 10px 12px; background: #fff8e6; border: 1px solid #f5e1a4; border-radius: 10px; color: #7a5a00; }
.bdv-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 0 auto 16px; }
.bdv-picker button { min-height: 72px; border-radius: 14px; border: 2px solid #eee2d8; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; color: var(--maroon); }
.bdv-picker button b { font-size: 18px; } .bdv-picker button span { font-size: 12px; color: var(--muted); }
.bdv-picker [aria-checked="true"] { border-color: var(--orange); background: #fff1e8; box-shadow: 0 0 0 3px rgba(251, 77, 20, .12); }
.bdv-picker__mid { display: grid; place-items: center; font-size: 28px; }
.bdv-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.bdv-manual__out { margin-top: 14px; }

/* verdict / info */
.bdv-verdict { border-radius: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--good); color: var(--ink); }
.bdv-verdict--best { border-left-color: var(--best); } .bdv-verdict--ok { border-left-color: var(--ok); } .bdv-verdict--avoid { border-left-color: var(--avoid); }
.bdv-verdict__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bdv-verdict__head strong { font-size: 15px; }
.bdv-verdict p { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.bdv-verdict ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; display: grid; gap: 4px; }
.bdv-dirinfo { border-radius: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); color: var(--ink); font-size: 14px; line-height: 1.5; }
.bdv-dirinfo p + p { margin-top: 6px; }
.bdv-tags span { font-size: 13px; color: #24543a; }
.bdv-tags--avoid span { color: #8a2a12; }

/* ---------- live camera ---------- */
body.bdv-cam-open { overflow: hidden; }
body.bdv-cam-open .bd-bottomnav { display: none; }
.bdv-live { position: fixed; inset: 0; z-index: 1100; background: #120a07; color: #fff; overflow: hidden; }
.bdv-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-cam .bdv-live video { display: none; }
.no-cam .bdv-live { background: radial-gradient(circle at 50% 35%, #3b1a10, #120a07 70%); }
.bdv-live__shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent 22%, transparent 45%, rgba(0, 0, 0, .65) 70%); pointer-events: none; }
.bdv-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; }
.bdv-round { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; display: grid; place-items: center; cursor: pointer; flex: none; }
.bdv-round--light { background: #f4ece5; color: var(--maroon); }
.bdv-acc { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font: 500 13px "Roboto", Arial, sans-serif; cursor: pointer; }
.bdv-acc i { width: 9px; height: 9px; border-radius: 50%; background: #adb5bd; }
.bdv-acc.is-good i { background: #51cf66; } .bdv-acc.is-fair i { background: #fcc419; } .bdv-acc.is-poor i { background: #ff6b6b; }
.bdv-reticle { position: absolute; left: 50%; top: 40%; width: 70px; height: 70px; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.bdv-reticle span { position: absolute; left: 50%; top: -16px; width: 2px; height: 102px; margin-left: -1px; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.bdv-readout { position: absolute; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top)); text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.bdv-readout__dir { font: 600 34px/1.1 "Lora", Georgia, serif; }
.bdv-readout__sub { font-size: 15px; margin-top: 2px; opacity: .92; }
.bdv-readout__deg { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(251, 77, 20, .9); font: 700 14px "Roboto", Arial, sans-serif; text-shadow: none; }
.is-unreliable .bdv-readout__deg { background: rgba(120, 120, 120, .85); }
.bdv-rose3d { position: absolute; left: 50%; top: 40%; width: 230px; height: 230px; margin: -115px 0 0 -115px; perspective: 520px; pointer-events: none; }
.bdv-rose3d__disc { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); background: radial-gradient(circle, rgba(255, 255, 255, .05) 0 45%, rgba(255, 255, 255, .14) 46% 47%, rgba(0, 0, 0, .12) 48%); transform: rotateX(58deg); transition: transform .08s linear; box-shadow: 0 0 30px rgba(251, 77, 20, .25) inset; }
.bdv-rose3d__disc b, .bdv-rose3d__disc i { position: absolute; left: 50%; top: 50%; font-style: normal; transform-origin: 0 0; }
.bdv-rose3d__disc b { font: 700 20px "Roboto", Arial, sans-serif; }
.bdv-rose3d__disc i { font: 600 12px "Roboto", Arial, sans-serif; opacity: .85; }
.bdv-rose3d__disc .n { color: #ff8a5b; transform: translate(-50%, -112px); }
.bdv-rose3d__disc .e { transform: translate(98px, -50%); } .bdv-rose3d__disc .s { transform: translate(-50%, 90px); } .bdv-rose3d__disc .w { transform: translate(-112px, -50%); }
.bdv-rose3d__disc .ne { transform: translate(62px, -82px); } .bdv-rose3d__disc .se { transform: translate(62px, 66px); } .bdv-rose3d__disc .sw { transform: translate(-86px, 66px); } .bdv-rose3d__disc .nw { transform: translate(-86px, -82px); }
.bdv-tape { position: absolute; left: 0; right: 0; top: calc(158px + env(safe-area-inset-top)); height: 34px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.bdv-tape__strip { position: absolute; left: 50%; top: 0; height: 100%; }
.bdv-tape__strip span { position: absolute; bottom: 0; width: 1px; height: 7px; background: rgba(255, 255, 255, .6); }
.bdv-tape__strip span.is-mid { height: 11px; }
.bdv-tape__strip span.is-card { height: 14px; background: #fff; width: 2px; }
.bdv-tape__strip b, .bdv-tape__strip em { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font: 700 12px "Roboto", Arial, sans-serif; font-style: normal; white-space: nowrap; }
.bdv-tape__strip em { font-weight: 400; font-size: 10px; opacity: .75; }
.bdv-tape__mark { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-bottom-color: var(--orange); }
.bdv-warn { position: absolute; left: 50%; top: calc(200px + env(safe-area-inset-top)); transform: translateX(-50%); width: max-content; max-width: 92vw; text-align: center; padding: 8px 14px; border-radius: 12px; background: rgba(201, 42, 42, .88); font-size: 13.5px; line-height: 1.4; }
.bdv-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(18, 10, 7, 0), rgba(18, 10, 7, .55) 18%); max-height: 52vh; overflow-y: auto; }
.bdv-panel__room { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.bdv-panel__room label { grid-column: 1 / -1; font-size: 12px; opacity: .85; }
.bdv-panel .bdv-select { height: 44px; background: rgba(255, 255, 255, .95); }
.bdv-scanbtn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.bdv-panel__info { margin-top: 10px; }
.bdv-panel__actions { display: flex; gap: 8px; margin-top: 10px; }
.bdv-panel__actions .bdv-btn { flex: 1; min-height: 42px; font-size: 14px; }
.bdv-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; }

/* sheets */
.bdv-sheet { position: fixed; inset: 0; z-index: 1200; background: rgba(20, 10, 5, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.bdv-sheet__box { width: min(520px, 100%); max-height: 86vh; overflow-y: auto; background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; animation: bdv-up .22s ease; }
.bdv-sheet__box--tall { min-height: 50vh; display: flex; flex-direction: column; }
.bdv-sheet__box--tall .bdv-ask__log { flex: 1; max-height: none; }
.bdv-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.bdv-sheet__box h2 { font-size: 21px; }
.bdv-sheet__box > p { font-size: 14.5px; line-height: 1.55; color: #4a403a; margin-top: 8px; }
.bdv-sheet__box > .bdv-btn { width: 100%; margin-top: 16px; }
.bdv-sheet__acc { font-weight: 600; color: var(--maroon) !important; }
@keyframes bdv-up { from { transform: translateY(30px); opacity: 0; } }
.bdv-eight { position: relative; width: 180px; height: 90px; margin: 0 auto 6px; }
.bdv-eight svg { width: 100%; height: 100%; }
.bdv-eight span { position: absolute; left: 0; top: 0; font-size: 26px; offset-path: path("M90 45C60 7.5 15 7.5 15 45s45 37.5 75 0 75-37.5 75 0-45 37.5-75 0"); animation: bdv-eight 3s linear infinite; }
@keyframes bdv-eight { to { offset-distance: 100%; } }
.bdv-scans { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bdv-scans li { padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.bdv-scans small { color: var(--muted); }
.bdv-scans p { font-size: 13px; color: #4a403a; margin-top: 4px; }

.bdv-toast { position: fixed; z-index: 1300; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 440px); padding: 11px 16px; border-radius: 12px; background: #2a1712; color: #fff; font-size: 14px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
body.bdv-cam-open .bdv-toast { bottom: 50%; }

@media (max-width: 980px) { .bdv-dirs { grid-template-columns: repeat(2, 1fr); } .bdv-matrix { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.bdv-dirs { grid-template-columns: 1fr; }
	.bdv-camcard { flex-wrap: wrap; padding: 16px; }
	.bdv-camcard__dial { width: 62px; height: 62px; }
	.bdv-camcard__go { display: none; }
	.bdv-rose3d { transform: scale(.82); }
	.bdv-readout__dir { font-size: 30px; }
}
@media (min-width: 760px) { .bdv-sheet { align-items: center; } }
@media (prefers-reduced-motion: reduce) { .bdv-camcard__needle, .bdv-start__dial span, .bdv-eight span { animation: none; } }
