/* hq-buildnhanh.css — chế độ «Ráp nhanh 3 câu hỏi» (Dễ) · Build PC tham khảo · Máy Tính Bàn Daklak
   Scope: #bn-root / html.mtbd-easy-on. Nền trắng/xám nhạt, vàng #d4e000, Roboto. */
html.mtbd-easy-on #tk-builder-top,
html.mtbd-easy-on #tk-app > .mtbd-shell,
html.mtbd-easy-on #tk-app .mtbd-hero,
html.mtbd-easy-on #tk-suggest-presets,
html.mtbd-easy-on #tk-build-layout,
html.mtbd-easy-on #tk-bottom,
html.mtbd-easy-on #tk-app .mtbd-bottom { display: none !important; }
html.mtbd-easy-on .mtbd-tk--p1, html.mtbd-easy-on .mtbd-tk--p910 { padding-bottom: 24px !important; }
html.mtbd-easy-on.bn-has-bottom .mtbd-tk--p1, html.mtbd-easy-on.bn-has-bottom .mtbd-tk--p910 { padding-bottom: calc(132px + var(--mtbd-preview-bar, 0px) + env(safe-area-inset-bottom, 0px)) !important; }

.bn { --bn-y: #d4e000; --bn-y2: #f7f9d6; --bn-ink: #1f2937; --bn-mut: #64748b; --bn-line: #e5e7eb; --bn-bg: #f4f6f8; --bn-red: #d0021b; --bn-green: #15803d;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--bn-ink); box-sizing: border-box; max-width: 1280px; margin: 0 auto; padding: 10px 12px 0; }
.bn *, .bn *::before, .bn *::after, .bn-sheet * { box-sizing: border-box; }
.bn button { font-family: inherit; cursor: pointer; }
.bn img { max-width: 100%; }

/* thanh chế độ */
.bn-modebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--bn-line); border-radius: 14px; padding: 10px 12px; }
.bn-mb-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bn-mb-title strong { font-size: 16px; font-weight: 800; }
.bn-mb-title span { font-size: 12px; color: var(--bn-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-toggle { flex: 0 0 auto; display: inline-flex; background: var(--bn-bg); border: 1px solid var(--bn-line); border-radius: 999px; padding: 3px; }
.bn-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; color: #475569; min-height: 36px; }
.bn-toggle button[aria-pressed="true"] { background: var(--bn-y); color: #1a1a00; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.bn[data-mode="expert"] { padding-bottom: 4px; }
.bn-body { padding: 12px 0 8px; }
html:not(.mtbd-easy-on) .bn-body { display: none; }

.bn-loading { padding: 40px 8px; text-align: center; color: var(--bn-mut); }
.bn-spin { display: inline-block; width: 18px; height: 18px; border: 3px solid #e5e7eb; border-top-color: #a3ad00; border-radius: 50%; animation: bnspin .8s linear infinite; vertical-align: -4px; margin-right: 6px; }
@keyframes bnspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bn-spin { animation: none; } }

.bn-stepno { font-size: 12.5px; color: var(--bn-mut); font-weight: 600; margin-bottom: 4px; }
.bn-h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; line-height: 1.3; }
.bn-sub { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.bn-sub small { font-weight: 400; color: var(--bn-mut); }
.bn-link { border: 0; background: none; padding: 0; color: #4b5563; text-decoration: underline; font-size: 13.5px; font-weight: 600; }
.bn-note { font-size: 13px; color: var(--bn-mut); margin: 10px 0 0; line-height: 1.45; }
.bn-disc { font-size: 12.5px; color: var(--bn-mut); margin: 12px 0 0; line-height: 1.45; }
.bn-muted { color: var(--bn-mut); }

/* bước 1 / 2 */
.bn-q { display: grid; gap: 16px; }
.bn-q > section, .bn-q-aside { background: #fff; border: 1px solid var(--bn-line); border-radius: 14px; padding: 16px 14px; min-width: 0; }
.bn-q[data-step="1"] .bn-q2, .bn-q[data-step="2"] .bn-q1 { display: none; }
.bn-q-aside { display: none; }
.bn-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bn-need { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: #fff; border: 1.5px solid var(--bn-line); border-radius: 14px; padding: 14px 12px; min-height: 112px; }
.bn-need:hover { border-color: #c2cc00; }
.bn-need.is-on { border-color: #a3ad00; background: var(--bn-y2); box-shadow: 0 0 0 2px rgba(212,224,0,.45); }
.bn-need-ic { font-size: 26px; line-height: 1; }
.bn-need-t { font-size: 15px; font-weight: 800; line-height: 1.25; }
.bn-need-s { font-size: 12.5px; color: var(--bn-mut); line-height: 1.35; }
.bn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-chip { border: 1.5px solid var(--bn-line); background: #fff; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--bn-ink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.bn-chip small { font-size: 11px; font-weight: 400; color: var(--bn-mut); }
.bn-chip.is-on { background: #1f2937; border-color: #1f2937; color: #fff; }
.bn-chip.is-on small { color: #d1d5db; }
.bn-cta { display: block; width: 100%; margin-top: 18px; min-height: 50px; border: 0; border-radius: 12px; background: var(--bn-y); color: #1a1a00; font-size: 17px; font-weight: 800; }
.bn-cta:disabled { background: #eef0c4; color: #8a8f55; cursor: not-allowed; }
.bn-q-aside h3 { font-size: 15px; margin: 0 0 8px; }
.bn-q-aside ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }

/* kết quả */
.bn-result { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.bn-side, .bn-sum { display: none; }
.bn-main { background: #fff; border: 1px solid var(--bn-line); border-radius: 14px; padding: 14px 12px; min-width: 0; }
.bn-edit { margin-left: 6px; font-size: 13px; vertical-align: 2px; }
.bn-notice, .bn-custom { font-size: 13px; background: var(--bn-bg); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; color: #334155; }
.bn-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--bn-bg); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.bn-lv { border: 0; background: transparent; border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; min-width: 0; }
.bn-lv span { font-size: 13px; color: #475569; white-space: nowrap; }
.bn-lv b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.bn-lv.is-on { background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.bn-power { display: flex; gap: 12px; align-items: flex-start; background: #fbfce9; border: 1px solid #e8ec9a; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.bn-power-t { font-weight: 800; font-size: 15.5px; }
.bn-power-h { font-size: 13px; color: #475569; line-height: 1.4; margin-top: 2px; }
.bn-power-l { font-size: 12.5px; color: #475569; margin-top: 6px; line-height: 1.4; }
.bn-bars { flex: 0 0 auto; display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 2px; }
.bn-bars i { display: block; width: 7px; border-radius: 2px; background: #d1d5db; }
.bn-bars i:nth-child(1) { height: 10px; } .bn-bars i:nth-child(2) { height: 18px; } .bn-bars i:nth-child(3) { height: 26px; }
.bn-bars.b1 i:nth-child(-n+1), .bn-bars.b2 i:nth-child(-n+2), .bn-bars.b3 i { background: #1f2937; }
.bn-check { background: #effaf2; border: 1px solid #c9ecd3; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.bn-check.is-bad { background: #fff4f4; border-color: #f5c2c2; }
.bn-check-t { font-weight: 800; color: var(--bn-green); font-size: 14.5px; }
.bn-check.is-bad .bn-check-t { color: #b91c1c; }
.bn-check ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #166534; }
.bn-list-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 14.5px; margin: 6px 0 4px; }
.bn-list-h small { font-weight: 400; color: var(--bn-mut); font-size: 12.5px; }
.bn-list-h--acc { margin-top: 18px; }
.bn-list { border-top: 1px solid var(--bn-line); }
.bn-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bn-line); min-width: 0; }
.bn-row.is-just { background: linear-gradient(90deg, rgba(212,224,0,.16), rgba(212,224,0,0)); }
.bn-thumb { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--bn-line); border-radius: 10px; }
.bn-thumb--empty { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-weight: 700; background: var(--bn-bg); }
.bn-row-main { flex: 1 1 auto; min-width: 0; }
.bn-row-lbl { font-size: 12px; color: var(--bn-mut); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.bn-row-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-row-price { font-size: 14px; font-weight: 800; color: var(--bn-red); }
.bn-auto { font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #4d5300; background: #eef2a8; border-radius: 6px; padding: 1px 6px; }
.bn-auto.is-just { background: var(--bn-y); color: #1a1a00; }
.bn-tier { font-size: 10.5px; font-weight: 700; color: #1e40af; background: #e8efff; border-radius: 6px; padding: 1px 6px; }
.bn-opt-tag { font-size: 10.5px; color: var(--bn-mut); background: var(--bn-bg); border-radius: 6px; padding: 1px 6px; }
.bn-swap-btn { flex: 0 0 auto; min-width: 58px; min-height: 40px; border: 1.5px solid #1f2937; background: #fff; border-radius: 10px; font-weight: 800; font-size: 14px; color: #1f2937; }
.bn-row.is-open .bn-swap-btn { background: #1f2937; color: #fff; }
.bn-row-btns { display: flex; flex-direction: column; gap: 4px; }
.bn-x { border: 1px solid var(--bn-line); background: #fff; border-radius: 8px; min-height: 30px; min-width: 40px; font-size: 13px; color: #475569; }

/* bảng Đổi */
.bn-swap { background: var(--bn-bg); border: 1px solid var(--bn-line); border-radius: 12px; padding: 10px; margin: 6px 0 10px; }
.bn-swap-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.bn-swap-p { font-size: 12.5px; color: var(--bn-mut); margin: 4px 0 8px; line-height: 1.4; }
.bn-opts { display: flex; flex-direction: column; gap: 6px; }
.bn-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--bn-line); border-radius: 10px; padding: 8px; min-height: 56px; color: var(--bn-ink); }
.bn-opt:hover { border-color: #b5bf00; }
.bn-opt.is-cur { border: 2px solid #1f2937; background: #fbfce9; }
.bn-opt img, .bn-opt-noimg { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; color: #94a3b8; }
.bn-opt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bn-opt-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-opt-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.bn-opt-note { font-size: 11.5px; color: #92400e; }
.bn-delta { flex: 0 0 auto; font-size: 13px; font-weight: 800; border-radius: 8px; padding: 4px 7px; background: #f1f5f9; white-space: nowrap; }
.bn-delta.is-up { color: #c2410c; background: #fff1e6; }
.bn-delta.is-down { color: var(--bn-green); background: #e8f7ed; }
.bn-delta.is-cur { color: #fff; background: #1f2937; }
.bn-more { display: block; width: 100%; margin-top: 8px; min-height: 42px; border: 1px dashed #94a3b8; background: #fff; border-radius: 10px; font-weight: 700; color: #334155; }
.bn-sheet { position: fixed; inset: 0; z-index: 1040; display: none; }
.bn-sheet.is-open { display: block; }
.bn-sheet-bg { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.bn-sheet-panel { position: absolute; left: 0; right: 0; bottom: var(--mtbd-preview-bar, 0px); max-height: 82vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 16px 16px 0 0; padding: 6px 10px calc(12px + env(safe-area-inset-bottom, 0px)); font-family: Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f2937; }
.bn-sheet-panel .bn-swap { background: #fff; border: 0; margin: 0; padding: 6px 2px; }
html.bn-sheet-open body { overflow: hidden; }

/* thanh dưới (mobile + tablet) */
.bn-bottom { position: fixed; left: 0; right: 0; bottom: var(--mtbd-preview-bar, 0px); z-index: 1035; background: #fff; border-top: 1px solid var(--bn-line); box-shadow: 0 -6px 18px rgba(15,23,42,.08); padding: 8px 12px calc(6px + env(safe-area-inset-bottom, 0px)); }
.bn-bottom-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: #475569; }
.bn-bottom-total { font-size: 20px; font-weight: 900; color: var(--bn-red); }
.bn-bottom-disc { font-size: 11px; color: var(--bn-mut); text-align: center; margin-top: 3px; }
.bn-actions { display: flex; gap: 8px; margin-top: 6px; }
.bn-btn { flex: 1 1 0; min-width: 0; min-height: 44px; border: 1.5px solid #d1d5db; background: #fff; border-radius: 12px; font-size: 14px; font-weight: 800; color: #1f2937; padding: 6px 8px; white-space: nowrap; }
.bn-btn--pri { flex: 1.6 1 0; background: var(--bn-y); border-color: var(--bn-y); color: #1a1a00; }
.bn-btn--consult { border-color: rgba(165,177,3,.7); color: #3f4600; }
.bn-actions--col { flex-wrap: wrap; }
.bn-actions--col .bn-btn--pri { flex: 1 1 100%; min-height: 50px; font-size: 16px; }
.bn-actions--inline { margin-top: 12px; }
.bn-empty { background: #fff; border: 1px solid var(--bn-line); border-radius: 14px; padding: 16px; }
@media (max-width: 359px) { .bn-btn { font-size: 13px; padding: 6px 4px; } .bn-mb-title span { display: none; } }

/* tablet */
@media (min-width: 768px) {
  .bn { padding: 14px 16px 0; }
  .bn-needs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bn-main { padding: 16px; }
}
/* desktop ≥1024: 3 cột (tuỳ chọn | bộ máy | BUILD CỦA BẠN), không thanh dưới */
@media (min-width: 1024px) {
  .bn { padding: 14px 20px 0; }
  .bn-q { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 280px; align-items: start; }
  .bn-q[data-step] .bn-q1, .bn-q[data-step] .bn-q2 { display: block; }
  .bn-q-aside { display: block; }
  .bn-q2 .bn-stepno .bn-link { display: none; }
  .bn-needs { grid-template-columns: 1fr 1fr; }
  .bn-result { grid-template-columns: 250px minmax(0, 1fr) 300px; align-items: start; }
  .bn-side, .bn-sum { display: block; background: #fff; border: 1px solid var(--bn-line); border-radius: 14px; padding: 14px; position: sticky; top: calc(var(--tk-header-h, 0px) + 12px); }
  .bn-side-g { margin-bottom: 12px; }
  .bn-side-h { font-size: 12px; font-weight: 800; color: var(--bn-mut); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
  .bn-side .bn-chip { padding: 6px 11px; min-height: 36px; font-size: 13px; }
  .bn-mob-only { display: none; }
  .bn-bottom { display: none; }
  .bn-sum-h { font-size: 12px; font-weight: 800; color: var(--bn-mut); letter-spacing: .05em; }
  .bn-sum-total { font-size: 28px; font-weight: 900; color: var(--bn-red); margin-top: 4px; }
  .bn-sum-sub { font-size: 12.5px; color: var(--bn-mut); margin-bottom: 10px; }
  .bn-edit { display: none; }
  html.mtbd-easy-on.bn-has-bottom .mtbd-tk--p1, html.mtbd-easy-on.bn-has-bottom .mtbd-tk--p910 { padding-bottom: 28px !important; }
}
