.bhpa-root,
.bhpa-root * { box-sizing: border-box; }

.bhpa-root {
  --bhpa-bg: #071722;
  --bhpa-bg2: #102d3a;
  --bhpa-card: rgba(255,255,255,.095);
  --bhpa-card2: rgba(255,255,255,.135);
  --bhpa-border: rgba(255,255,255,.18);
  --bhpa-text: #f7fbfc;
  --bhpa-muted: rgba(247,251,252,.72);
  --bhpa-soft: rgba(247,251,252,.46);
  --bhpa-accent: #26627A;
  --bhpa-accent2: #62b6cb;
  --bhpa-shadow: 0 28px 80px rgba(0,0,0,.28);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  border-radius: 34px;
  padding: clamp(20px, 3vw, 42px);
  color: var(--bhpa-text);
  background:
    radial-gradient(circle at 18% 12%, rgba(98,182,203,.24), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(38,98,122,.42), transparent 38%),
    linear-gradient(135deg, var(--bhpa-bg), var(--bhpa-bg2));
  font-family: inherit;
}

.bhpa-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; opacity: .9; }
.bhpa-bg span { position: absolute; display: block; width: 34vw; height: 34vw; min-width: 260px; min-height: 260px; border-radius: 50%; filter: blur(45px); opacity: .32; animation: bhpaFloat 13s ease-in-out infinite; }
.bhpa-bg span:nth-child(1) { left: -12%; top: -12%; background: #62b6cb; }
.bhpa-bg span:nth-child(2) { right: -10%; top: 24%; background: #26627A; animation-delay: -5s; }
.bhpa-bg span:nth-child(3) { left: 32%; bottom: -22%; background: #ffffff; opacity: .11; animation-delay: -8s; }

.bhpa-root:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.bhpa-shell { position: relative; z-index: 1; min-height: 680px; display: flex; align-items: center; justify-content: center; width: min(1180px, 100%); margin: 0 auto; }
.bhpa-hero, .bhpa-stage, .bhpa-loading, .bhpa-result { width: 100%; }
.bhpa-hero { max-width: 850px; text-align: center; padding: clamp(36px, 8vw, 90px) 0; }
.bhpa-eyebrow { margin: 0 0 14px; color: var(--bhpa-accent2); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
.bhpa-hero h2, .bhpa-question h3, .bhpa-result-head h3, .bhpa-loading h3, .bhpa-modal-card h3, .bhpa-empty h3 { margin: 0; font-weight: 850; line-height: 1.05; letter-spacing: -.04em; }
.bhpa-hero h2 { font-size: clamp(38px, 6vw, 82px); }
.bhpa-hero p { max-width: 720px; margin: 22px auto 34px; color: var(--bhpa-muted); font-size: clamp(16px, 1.6vw, 21px); line-height: 1.7; }

.bhpa-btn, .bhpa-ghost {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, opacity .22s ease;
}
.bhpa-btn { min-height: 52px; border-radius: 999px; padding: 14px 24px; font-weight: 800; }
.bhpa-btn:hover, .bhpa-ghost:hover { transform: translateY(-2px); }
.bhpa-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.bhpa-btn-primary { color: white; background: linear-gradient(135deg, var(--bhpa-accent), #2f7d98); box-shadow: 0 18px 45px rgba(38,98,122,.35); }
.bhpa-btn-secondary { color: var(--bhpa-text); background: rgba(255,255,255,.1); border: 1px solid var(--bhpa-border); }
.bhpa-ghost { color: var(--bhpa-muted); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 11px 16px; font-weight: 700; }

.bhpa-stage { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.bhpa-topbar { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-bottom: clamp(26px, 4vw, 44px); }
.bhpa-progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.bhpa-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--bhpa-accent2), #fff); transition: width .45s ease; }
.bhpa-count { color: var(--bhpa-soft); font-weight: 800; }

.bhpa-question { text-align: center; }
.bhpa-question h3 { font-size: clamp(30px, 4vw, 58px); }
.bhpa-question-subtitle { margin: 16px auto 32px; max-width: 620px; color: var(--bhpa-muted); line-height: 1.65; }
.bhpa-answer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.bhpa-answer { position: relative; min-height: 150px; overflow: hidden; border: 1px solid var(--bhpa-border); border-radius: 26px; padding: 22px; color: var(--bhpa-text); background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.055)); box-shadow: 0 16px 45px rgba(0,0,0,.14); backdrop-filter: blur(14px); opacity: 0; transform: translateY(18px); animation: bhpaRise .54s ease forwards; animation-delay: var(--d); }
.bhpa-answer:before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 22% 10%, rgba(98,182,203,.26), transparent 40%); opacity: 0; transition: opacity .25s ease; }
.bhpa-answer-shine { position: absolute; inset: -80% auto auto -20%; width: 80%; height: 240%; transform: rotate(26deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); opacity: 0; transition: .35s; }
.bhpa-answer strong, .bhpa-answer em { position: relative; z-index: 1; display: block; }
.bhpa-answer strong { font-size: 18px; line-height: 1.25; }
.bhpa-answer em { margin-top: 12px; color: var(--bhpa-muted); font-size: 13px; font-style: normal; line-height: 1.5; }
.bhpa-answer:hover, .bhpa-answer.is-selected { transform: translateY(-4px); border-color: rgba(98,182,203,.58); background: linear-gradient(160deg, rgba(98,182,203,.22), rgba(255,255,255,.08)); }
.bhpa-answer:hover:before, .bhpa-answer.is-selected:before { opacity: 1; }
.bhpa-answer:hover .bhpa-answer-shine, .bhpa-answer.is-selected .bhpa-answer-shine { opacity: 1; left: 80%; }

.bhpa-loading { text-align: center; max-width: 680px; }
.bhpa-loading h3 { font-size: clamp(30px, 4vw, 58px); }
.bhpa-loading p { color: var(--bhpa-muted); line-height: 1.7; }
.bhpa-orb { width: 156px; height: 156px; margin: 0 auto 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #62b6cb 25%, #26627A 54%, transparent 70%); box-shadow: 0 0 90px rgba(98,182,203,.45); animation: bhpaPulse 1.8s ease-in-out infinite; }

.bhpa-result { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.bhpa-result-head { text-align: center; max-width: 800px; margin: 0 auto; }
.bhpa-result-head h3 { font-size: clamp(34px, 5vw, 70px); }
.bhpa-result-head p { color: var(--bhpa-muted); }
.bhpa-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.bhpa-product-card { min-height: 300px; border-radius: 30px; border: 1px solid var(--bhpa-border); background: rgba(255,255,255,.09); box-shadow: var(--bhpa-shadow); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.98); animation: bhpaRise .6s ease forwards; animation-delay: var(--d); }
.bhpa-product-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.bhpa-product-img { flex: 1; min-height: 210px; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.35), rgba(255,255,255,.07) 42%, transparent 68%); }
.bhpa-product-img img { max-width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.2)); transition: transform .35s ease; }
.bhpa-product-card:hover img { transform: translateY(-6px) scale(1.04); }
.bhpa-product-meta { padding: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.bhpa-product-meta strong { display: block; font-size: 15px; line-height: 1.35; }
.bhpa-product-meta em { display: block; margin-top: 8px; font-style: normal; color: var(--bhpa-accent2); font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.bhpa-admin-preview { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: var(--bhpa-muted); }
.bhpa-admin-preview strong { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 13px; }
.bhpa-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bhpa-empty { text-align: center; margin: auto; }

.bhpa-modal { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2,10,15,.72); backdrop-filter: blur(12px); opacity: 0; transition: opacity .22s ease; }
.bhpa-modal.is-open { opacity: 1; }
.bhpa-modal-card { position: relative; width: min(520px, 100%); border-radius: 30px; padding: 30px; color: var(--bhpa-text); background: linear-gradient(145deg, rgba(10,35,48,.96), rgba(16,45,58,.96)); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 28px 90px rgba(0,0,0,.45); transform: translateY(12px) scale(.98); transition: transform .22s ease; }
.bhpa-modal.is-open .bhpa-modal-card { transform: translateY(0) scale(1); }
.bhpa-modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.bhpa-modal-card h3 { font-size: 34px; }
.bhpa-modal-card p { color: var(--bhpa-muted); line-height: 1.6; }
.bhpa-modal-card form { display: grid; gap: 12px; margin-top: 18px; }
.bhpa-modal-card input { width: 100%; min-height: 52px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; padding: 0 16px; font: inherit; outline: none; }
.bhpa-modal-card input::placeholder { color: rgba(255,255,255,.52); }
.bhpa-modal-card input:focus { border-color: rgba(98,182,203,.62); box-shadow: 0 0 0 4px rgba(98,182,203,.12); }
.bhpa-form-message { min-height: 22px; margin-bottom: 0; font-weight: 700; }
.bhpa-form-message.is-success { color: #9ef0bd; }
.bhpa-form-message.is-error { color: #ffb3b3; }

@keyframes bhpaFloat { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(28px, 18px, 0) scale(1.08); } }
@keyframes bhpaPulse { 0%,100% { transform: scale(.96); opacity: .85; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes bhpaRise { to { opacity: 1; transform: translateY(0) scale(1); } }
.bhpa-enter { animation: bhpaRise .55s ease both; }

@media (max-width: 980px) {
  .bhpa-root { min-height: 720px; border-radius: 26px; }
  .bhpa-shell { min-height: 640px; }
  .bhpa-answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bhpa-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .bhpa-root { min-height: 100svh; border-radius: 0; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 18px; }
  .bhpa-shell { min-height: calc(100svh - 36px); }
  .bhpa-hero { padding: 34px 0; }
  .bhpa-topbar { grid-template-columns: auto 1fr auto; gap: 10px; margin-bottom: 24px; }
  .bhpa-answer-grid { grid-template-columns: 1fr; gap: 10px; }
  .bhpa-answer { min-height: 112px; border-radius: 22px; padding: 18px; }
  .bhpa-products { grid-template-columns: 1fr; gap: 12px; }
  .bhpa-product-card { min-height: 0; }
  .bhpa-product-img { min-height: 170px; }
  .bhpa-actions .bhpa-btn, .bhpa-actions .bhpa-ghost { width: 100%; }
  .bhpa-modal-card { padding: 24px; border-radius: 24px; }
}

/* v1.0.1 critical isolation + visibility fixes */
.bhpa-root [hidden] { display: none !important; }
.bhpa-root, .bhpa-root * { box-sizing: border-box !important; }
.bhpa-root { color: #f6fbff !important; }
.bhpa-root h1, .bhpa-root h2, .bhpa-root h3, .bhpa-root h4, .bhpa-root h5, .bhpa-root h6,
.bhpa-root p, .bhpa-root span, .bhpa-root strong, .bhpa-root em, .bhpa-root button, .bhpa-root input {
  font-family: inherit !important;
}
.bhpa-root h2, .bhpa-root h3, .bhpa-root .bhpa-question h3, .bhpa-root .bhpa-result-head h3, .bhpa-root .bhpa-loading h3, .bhpa-root .bhpa-modal-card h3 {
  color: #f6fbff !important;
  text-shadow: none !important;
}
.bhpa-root .bhpa-hero h2 {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(34px, 4.2vw, 62px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.035em !important;
}
.bhpa-root .bhpa-hero p:not(.bhpa-eyebrow) {
  max-width: 680px !important;
  color: rgba(246,251,255,.78) !important;
}
.bhpa-root .bhpa-eyebrow {
  color: rgba(214,238,246,.82) !important;
  letter-spacing: .14em !important;
}
.bhpa-root .bhpa-btn, .bhpa-root .bhpa-ghost {
  color: #ffffff !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}
.bhpa-root .bhpa-btn-primary {
  background: linear-gradient(135deg, #2f7d98, #26627A) !important;
  color: #fff !important;
}
.bhpa-root .bhpa-btn-secondary {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
.bhpa-root .bhpa-shell { min-height: 620px !important; }
.bhpa-root .bhpa-stage, .bhpa-root .bhpa-loading, .bhpa-root .bhpa-result { min-width: 0 !important; }
.bhpa-root .bhpa-question h3 { font-size: clamp(30px, 3.2vw, 48px) !important; line-height: 1.18 !important; color: #fff !important; }
.bhpa-root .bhpa-answer strong { color: #fff !important; }
.bhpa-root .bhpa-answer em { color: rgba(246,251,255,.7) !important; }
.bhpa-root .bhpa-count { color: rgba(246,251,255,.78) !important; min-width: 46px !important; text-align: right !important; }

@media (max-width: 620px) {
  .bhpa-root .bhpa-hero h2 { font-size: clamp(31px, 9vw, 42px) !important; }
  .bhpa-root .bhpa-shell { min-height: calc(100svh - 36px) !important; }
  .bhpa-root .bhpa-question h3 { font-size: clamp(26px, 7.5vw, 34px) !important; }
}

/* v1.0.2 surgical visual polish: rounded controls, centered answer cards, AI logo loader */
.bhpa-root .bhpa-btn,
.bhpa-root .bhpa-ghost,
.bhpa-root .bhpa-actions .bhpa-btn,
.bhpa-root .bhpa-actions .bhpa-ghost,
.bhpa-root .bhpa-modal-card .bhpa-btn {
  border-radius: 999px !important;
  min-width: 132px !important;
  min-height: 54px !important;
  padding: 14px 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.bhpa-root .bhpa-hero .bhpa-btn {
  min-width: 150px !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

.bhpa-root .bhpa-answer {
  border-radius: 34px !important;
  padding: 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
}

.bhpa-root .bhpa-answer strong,
.bhpa-root .bhpa-answer em {
  width: 100% !important;
  text-align: center !important;
}

.bhpa-root .bhpa-answer strong {
  font-size: clamp(16px, 1.35vw, 20px) !important;
  line-height: 1.32 !important;
}

.bhpa-root .bhpa-answer em {
  margin-top: 0 !important;
  max-width: 230px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.bhpa-root .bhpa-ai-logo-loader {
  position: relative;
  width: 184px;
  height: 184px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 38px rgba(98,182,203,.32));
}

.bhpa-root .bhpa-ai-logo-loader span {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(236,251,255,.95);
  box-shadow: 0 0 12px rgba(98,182,203,.85), 0 0 26px rgba(98,182,203,.35);
  opacity: 0;
  animation: bhpaLogoDot 6.8s cubic-bezier(.18,.84,.26,1) infinite;
  animation-delay: var(--delay);
}

.bhpa-root .bhpa-ai-logo-loader span:nth-child(3n) {
  width: 4px;
  height: 4px;
  background: rgba(98,182,203,.96);
}

.bhpa-root .bhpa-ai-logo-loader span:nth-child(5n) {
  width: 6px;
  height: 6px;
}

@keyframes bhpaLogoDot {
  0% { left: var(--rx); top: var(--ry); opacity: 0; transform: scale(.35); }
  12% { opacity: .95; }
  30% { left: var(--sx); top: var(--sy); opacity: .72; transform: scale(.75); }
  55%, 76% { left: var(--fx); top: var(--fy); opacity: 1; transform: scale(1.05); }
  100% { left: var(--sx); top: var(--sy); opacity: 0; transform: scale(.48); }
}

@media (max-width: 620px) {
  .bhpa-root .bhpa-answer { border-radius: 26px !important; min-height: 116px !important; }
  .bhpa-root .bhpa-ai-logo-loader { width: 154px; height: 154px; }
}
