/* رنگ‌ها و فونت رو از همین متغیرها عوض کن */
.bhc {
	--bhc-paper: #eef2ef;
	--bhc-card: #fbfcfa;
	--bhc-ink: #12261f;
	--bhc-mut: #6b7c74;
	--bhc-line: #dbe3de;
	--bhc-pulse: #e5483b;
	--bhc-ok: #2f9e6e;
	--bhc-warn: #e9a23b;

	max-width: 640px;
	margin: 2rem auto;
	padding: clamp(1.1rem, 4vw, 2rem);
	background: var(--bhc-card);
	color: var(--bhc-ink);
	border-radius: 28px;
	border: 1px solid var(--bhc-line);
	box-shadow: 0 24px 60px -34px rgba(18, 38, 31, .45);
	font-family: inherit;
	line-height: 1.9;
	text-align: right;
	position: relative;
}
.bhc *, .bhc *::before, .bhc *::after { box-sizing: border-box; }
.bhc h2, .bhc h3, .bhc p { margin: 0; }

/* خط ضربان: بخش اصلی طراحی */
.bhc-pulse { display: block; width: 100%; height: 44px; margin-bottom: 1.4rem; overflow: visible; }
.bhc-pulse path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bhc-pulse .track { stroke: var(--bhc-line); }
.bhc-pulse .live { stroke: var(--bhc-pulse); transition: stroke-dashoffset .6s ease; }

.bhc-chip {
	display: inline-block;
	padding: .1rem .85rem;
	margin-bottom: .9rem;
	border-radius: 999px;
	background: var(--bhc-paper);
	color: var(--bhc-mut);
	font-size: .85rem;
}
.bhc-title { font-size: clamp(1.35rem, 4.4vw, 1.8rem); line-height: 1.6; font-weight: 700; margin-bottom: .6rem; }
.bhc-sub { color: var(--bhc-mut); margin-bottom: 1.5rem; }

/* فیلدها */
.bhc-field { margin-bottom: 1rem; }
.bhc-field label { display: block; font-size: .9rem; color: var(--bhc-mut); margin-bottom: .2rem; }
.bhc input[type="text"], .bhc input[type="email"], .bhc input[type="tel"] {
	width: 100%;
	padding: .55rem 0;
	border: 0;
	border-bottom: 2px solid var(--bhc-line);
	border-radius: 0;
	background: transparent;
	color: var(--bhc-ink);
	font: inherit;
	box-shadow: none;
	transition: border-color .2s;
}
.bhc input:focus { outline: none; border-bottom-color: var(--bhc-pulse); box-shadow: none; }
.bhc input[type="email"], .bhc input[type="tel"] { direction: ltr; text-align: right; }
.bhc .bhc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* گزینه‌ها */
.bhc-opts { display: grid; gap: .6rem; margin-top: 1.2rem; }
.bhc-opt {
	display: flex;
	align-items: center;
	gap: .8rem;
	width: 100%;
	padding: .85rem 1.1rem;
	background: var(--bhc-paper);
	color: var(--bhc-ink);
	border: 2px solid transparent;
	border-radius: 16px;
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.bhc-opt::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--bhc-mut);
	transition: all .15s;
}
.bhc-opt:hover { border-color: var(--bhc-ink); }
.bhc-opt.on { border-color: var(--bhc-pulse); background: #fff; }
.bhc-opt.on::before { border-color: var(--bhc-pulse); background: var(--bhc-pulse); box-shadow: inset 0 0 0 3px #fff; }

/* دکمه‌ها */
.bhc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.bhc-btn {
	padding: .75rem 1.8rem;
	background: var(--bhc-ink);
	color: #fff;
	border: 0;
	border-radius: 14px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.bhc-btn:hover { background: var(--bhc-pulse); color: #fff; }
.bhc-btn:active { transform: scale(.98); }
.bhc-btn[disabled] { opacity: .5; cursor: wait; }
.bhc-back { background: none; border: 0; padding: .4rem 0; color: var(--bhc-mut); font: inherit; cursor: pointer; }
.bhc-back:hover { color: var(--bhc-ink); background: none; }
.bhc a.bhc-btn { display: inline-block; text-decoration: none; }
.bhc button:focus-visible, .bhc a:focus-visible { outline: 3px solid var(--bhc-pulse); outline-offset: 2px; }

/* تحلیل اختصاصی (Claude) */
.bhc-ai { margin: 1.4rem 0 0; padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--bhc-paper); border-right: 4px solid var(--bhc-pulse); }
.bhc-ai h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.bhc-ai-body p { margin: 0 0 .75rem; font-size: .95rem; }
.bhc-ai-body p:last-child { margin-bottom: 0; }
.bhc-ai-wait { color: var(--bhc-mut); animation: bhc-blink 1.4s ease-in-out infinite; }
@keyframes bhc-blink { 50% { opacity: .45; } }

/* دکمه‌های زیر نتیجه */
.bhc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.bhc-actions .bhc-btn { text-align: center; }
.bhc-btn.bhc-ghost { background: transparent; color: var(--bhc-ink); border: 2px solid var(--bhc-ink); }
.bhc-btn.bhc-ghost:hover { background: var(--bhc-ink); color: #fff; }
.bhc-btn.bhc-cta { background: var(--bhc-pulse); }
.bhc-btn.bhc-cta:hover { background: var(--bhc-ink); }
.bhc-note a { color: inherit; }

.bhc-err { color: var(--bhc-pulse); font-size: .92rem; min-height: 1.4rem; margin-top: .6rem; }
.bhc-note { color: var(--bhc-mut); font-size: .82rem; margin-top: .8rem; }

/* نتیجه */
.bhc-score { display: flex; align-items: center; gap: 1.4rem; margin: .4rem 0 1.4rem; }
.bhc-ring { flex: none; width: 128px; height: 128px; position: relative; }
.bhc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bhc-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.bhc-ring .bg { stroke: var(--bhc-paper); }
.bhc-ring .fg { transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.bhc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; }
.bhc-label { font-size: 1.3rem; font-weight: 700; }

.bhc-sec { padding: .9rem 0; border-top: 1px solid var(--bhc-line); }
.bhc-sec-h { display: flex; justify-content: space-between; font-weight: 700; }
.bhc-bar { height: 8px; margin: .45rem 0; border-radius: 8px; background: var(--bhc-paper); overflow: hidden; }
.bhc-bar i { display: block; height: 100%; border-radius: 8px; width: 0; transition: width 1s ease; }
.bhc-sec p { color: var(--bhc-mut); font-size: .93rem; }

.bhc-prio { margin: 1.6rem 0 0; padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--bhc-ink); color: #fff; }
.bhc-prio h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.bhc-prio ol { margin: 0; padding-right: 1.2rem; }
.bhc-prio li { margin-bottom: .4rem; font-size: .95rem; }

@media (max-width: 480px) {
	.bhc-score { flex-direction: column; text-align: center; }
	.bhc-actions .bhc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.bhc *, .bhc *::before { transition: none !important; animation: none !important; }
}
