/* Astrologer */
.bdas {
	--maroon: #5b1212; --orange: #fb4d14; --ink: #241a15; --muted: #6b5f58; --line: #efe2d6; --cream: #fdf6ee; --gold: #c8902f;
	max-width: 1320px; margin: 0 auto; padding: 20px 16px 32px;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: stretch;
	font-family: "Roboto", "Poppins", Arial, sans-serif; color: var(--ink);
}
.bdas *, .bdas *::before, .bdas *::after { box-sizing: border-box; }
.bdas h1, .bdas h2 { font-family: "Lora", Georgia, serif; margin: 0; }
.bdas p { margin: 0; }
.bdas [hidden] { display: none !important; }

/* ---------- stage (video) ---------- */
.bdas-stage { position: relative; border-radius: 22px; overflow: hidden; min-height: 640px; background: #2a1a10; box-shadow: 0 14px 40px rgba(60, 25, 5, .25); isolation: isolate; }
.bdas-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.bdas-stage__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 45% at 50% 35%, rgba(255, 190, 90, 0), rgba(255, 190, 90, 0) 60%), linear-gradient(rgba(20, 8, 2, .05) 55%, rgba(20, 8, 2, .78)); transition: background .6s; }
.is-thinking .bdas-stage__glow { background: radial-gradient(60% 45% at 50% 35%, rgba(255, 190, 90, .22), rgba(255, 190, 90, 0) 70%), linear-gradient(rgba(20, 8, 2, .05) 55%, rgba(20, 8, 2, .78)); }
.bdas-stage__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px 20px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.bdas-stage__cap h1 { font-size: 34px; color: #ffe2b0; }
.bdas-stage__cap p { font-size: 14px; opacity: .9; margin-top: 4px; letter-spacing: .3px; }

/* parchment "thinking" scrolls (like the video) */
.bdas-scroll {
	position: absolute; z-index: 2; width: 33%; max-width: 210px; padding: 10px 12px; text-align: center;
	font: 600 15px/1.25 "Lora", Georgia, serif; color: #4a2a12;
	background: linear-gradient(135deg, #fbf0d9, #f1dfba 55%, #e9d2a6); border-radius: 6px;
	box-shadow: 0 8px 22px rgba(40, 18, 4, .35), inset 0 0 0 1px rgba(150, 100, 40, .25), inset 0 0 18px rgba(160, 110, 50, .25);
	opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .45s, transform .45s;
}
.bdas-scroll::before, .bdas-scroll::after { content: ""; position: absolute; top: -4px; bottom: -4px; width: 8px; border-radius: 4px; background: linear-gradient(90deg, #d8b77c, #f4e4c0, #c9a466); }
.bdas-scroll::before { left: -4px; } .bdas-scroll::after { right: -4px; }
.bdas-scroll i { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: #2b8a3e; color: #fff; font: 700 12px/22px Arial, sans-serif; font-style: normal; opacity: 0; transform: scale(.4); transition: .3s; }
.bdas-scroll.is-on { opacity: 1; transform: none; }
.bdas-scroll.is-done i { opacity: 1; transform: none; }
.bdas-scroll--l1 { left: 4%; top: 9%; } .bdas-scroll--l2 { left: 4%; top: 24%; } .bdas-scroll--l3 { left: 4%; top: 39%; }
.bdas-scroll--r1 { right: 4%; top: 9%; } .bdas-scroll--r2 { right: 4%; top: 24%; } .bdas-scroll--r3 { right: 4%; top: 39%; }
.bdas-scroll[data-step="ank"] { top: 24%; }
.bdas-scroll[data-step="dasha"].is-on ~ .bdas-scroll[data-step="ank"] { top: 32%; }
@media (prefers-reduced-motion: reduce) { .bdas-scroll { transition: none; } }

/* ---------- chat ---------- */
.bdas-chat { display: flex; flex-direction: column; min-height: 640px; max-height: calc(100vh - 120px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgba(90, 50, 20, .08); overflow: hidden; }
.bdas-chat__head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: linear-gradient(180deg, #fff7ee, #fff); border-bottom: 1px solid var(--line); }
.bdas-chat__head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid #f0c98a; }
.bdas-chat__head h2 { font-size: 22px; color: var(--maroon); display: flex; align-items: center; gap: 8px; }
.bdas-online { font: 500 12px "Roboto", Arial, sans-serif; color: #2b8a3e; }
.bdas-chat__head p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.bdas-profile { padding: 10px 14px 0; }
.bdas-profile__bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed #e8c9a6; background: #fffaf3; border-radius: 12px; cursor: pointer; font: 14px "Roboto", Arial, sans-serif; color: #5a3b25; text-align: left; }
.has-profile .bdas-profile__bar { border-style: solid; border-color: #f0dcc4; }
.bdas-profile__txt { flex: 1; min-width: 0; }
.bdas-profile__edit { color: var(--orange); font-weight: 600; font-size: 13px; }
.bdas-profile__form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; }
.bdas-profile__form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.bdas-profile__form input:not([type="checkbox"]), .bdas-profile__form select { height: 42px; border: 1px solid #ead8ca; border-radius: 10px; padding: 0 10px; font-size: 16px; background: #fff; color: var(--ink); }
.bdas-profile__form .bdas-check { flex-direction: row; align-items: center; gap: 8px; align-self: end; height: 42px; font-size: 14px; color: var(--ink); }
.bdas-profile__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.bdas-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.45; }

.bdas-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.bdas-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; }
.bdas-msg--me { align-self: flex-end; background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.bdas-msg--ai { align-self: flex-start; background: var(--cream); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bdas-msg--ai b { color: var(--maroon); }
.bdas-msg--ai i { color: var(--muted); font-size: .93em; }
.bdas-msg.is-typing { display: flex; gap: 5px; padding: 14px 16px; }
.bdas-msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: #c9a07a; animation: bdas-dot 1s infinite; }
.bdas-msg.is-typing span:nth-child(2) { animation-delay: .15s; } .bdas-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bdas-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.bdas-msg.is-typing em { margin-left: 6px; font-size: 13px; color: #8a5a2b; font-style: italic; align-self: center; }
.bdas-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.bdas-links a { color: var(--orange); font-weight: 600; text-decoration: none; }
.bdas-chips { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.bdas-chips::-webkit-scrollbar { display: none; }
.bdas-chips:empty { display: none; }
.bdas-chips button { flex: none; border: 1px solid #ead8ca; background: #fff; color: var(--maroon); border-radius: 999px; padding: 8px 13px; font: 13px "Roboto", Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.bdas-chips button:hover { background: #fff5ee; border-color: #f3b996; }
.bdas-input { display: flex; gap: 8px; align-items: flex-end; margin: 0 14px; padding: 8px 8px 8px 14px; border: 1px solid #ead8ca; border-radius: 16px; background: #fff; }
.bdas-input:focus-within { border-color: #f3a079; box-shadow: 0 0 0 3px rgba(251, 77, 20, .1); }
.bdas-input textarea { flex: 1; border: 0; outline: 0; resize: none; font: 16px/1.4 "Roboto", Arial, sans-serif; padding: 8px 0; max-height: 120px; background: none; color: var(--ink); }
.bdas-input button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(135deg, #fd5a1e, #d9230f); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(217, 35, 15, .3); }
.bdas-input button svg { width: 20px; height: 20px; }
.bdas-disclaimer { padding: 8px 16px 14px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.4; }
.bdas-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: 500 14px "Roboto", Arial, sans-serif; cursor: pointer; }
.bdas-btn--primary { background: linear-gradient(90deg, #fd5a1e, #fb3d10); color: #fff; }
.bdas-btn--ghost { background: #fff; color: var(--maroon); border-color: #ead8ca; }
.bdas-btn--small { margin-top: 10px; min-height: 36px; background: #fff; color: var(--orange); border-color: #f3c3a6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.bdas { grid-template-columns: 1fr; padding-top: 12px; gap: 12px; }
	.bdas-stage { min-height: 0; height: 340px; }
	.bdas-stage__video { object-position: 50% 22%; }
	.bdas-stage__cap { padding: 12px 16px 14px; }
	.bdas-stage__cap h1 { font-size: 28px; }
	.bdas-scroll { font-size: 12px; padding: 7px 8px; width: 31%; max-width: 160px; }
	.bdas-scroll--l1, .bdas-scroll--r1 { top: 6%; } .bdas-scroll--l2, .bdas-scroll--r2, .bdas-scroll[data-step="ank"] { top: 23%; } .bdas-scroll--l3, .bdas-scroll--r3 { top: 40%; }
	.bdas-chat { min-height: 0; max-height: none; }
	.bdas-log { min-height: 300px; max-height: 60vh; }
}
@media (max-width: 480px) {
	.bdas { padding-left: 10px; padding-right: 10px; }
	.bdas-stage { height: 300px; border-radius: 18px; }
	.bdas-profile__form { grid-template-columns: 1fr; }
	.bdas-msg { max-width: 94%; font-size: 14px; }
}
