:root {
  --hc-ease: cubic-bezier(.22, 1, .36, 1);

  --hc-bg: rgba(255, 255, 255, .66);
  --hc-border: rgba(255, 255, 255, .92);
  --hc-inset: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35);
  --hc-shadow: 0 30px 70px -24px rgba(24, 29, 37, .5), 0 4px 16px rgba(24, 29, 37, .1);
  --hc-card: rgba(255, 255, 255, .62);
  --hc-card-border: rgba(255, 255, 255, .95);
  --hc-line: rgba(24, 29, 37, .09);
  --hc-title: #181d25;
  --hc-text: #3d4754;
  --hc-muted: #6b7684;
  --hc-faint: #8a92a6;
  --hc-field-bg: rgba(255, 255, 255, .78);
  --hc-field-border: rgba(36, 86, 184, .18);
  --hc-soft: rgba(47, 110, 213, .09);

  --hc-accent: #2456b8;
  --hc-accent-2: #1f8fdc;
  --hc-ok: #1f9d63;
  --hc-ok-bg: rgba(31, 157, 99, .12);
  --hc-danger: #d92d43;
  --hc-btn-grad: linear-gradient(120deg, #2456b8 0%, #2f6ed5 45%, #1f8fdc 100%);
  --hc-head-bg: linear-gradient(135deg, rgba(47, 110, 213, .18), rgba(110, 160, 255, .07) 45%, var(--hc-bg) 75%);
}
html[data-bs-theme="dark"],
html[data-theme="dark"] {
  --hc-bg: rgba(28, 34, 46, .72);
  --hc-border: rgba(255, 255, 255, .15);
  --hc-inset: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .03);
  --hc-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 4px 16px rgba(0, 0, 0, .3);
  --hc-card: rgba(255, 255, 255, .07);
  --hc-card-border: rgba(255, 255, 255, .13);
  --hc-line: rgba(255, 255, 255, .1);
  --hc-title: #f4f7fb;
  --hc-text: #cdd6e4;
  --hc-muted: #93a0b4;
  --hc-faint: #6c7390;
  --hc-field-bg: rgba(255, 255, 255, .07);
  --hc-field-border: rgba(255, 255, 255, .17);
  --hc-soft: rgba(110, 160, 255, .16);

  --hc-accent: #7fb2ff;
  --hc-accent-2: #5ee0f5;
  --hc-ok: #4ad19a;
  --hc-ok-bg: rgba(74, 209, 154, .16);
  --hc-danger: #ff7a8c;
  --hc-head-bg: linear-gradient(135deg, rgba(110, 160, 255, .28), rgba(110, 160, 255, .08) 45%, var(--hc-bg) 75%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --hc-bg: rgba(255, 255, 255, .95); }
  html[data-bs-theme="dark"], html[data-theme="dark"] { --hc-bg: rgba(28, 34, 46, .97); }
}

.hc-page { color: var(--hc-text); }

.hc-head {
  position: relative;
  border-radius: 1.6rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--hc-head-bg);
  border: 1px solid var(--hc-border);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: var(--hc-shadow), var(--hc-inset);
  overflow: hidden;
}
.hc-head h1 { color: var(--hc-title); font-weight: 800; font-size: 1.4rem; margin: 0 0 .4rem; position: relative; }
.hc-head p { color: var(--hc-muted); font-size: .9rem; margin: 0; position: relative; }

.hc-search {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--hc-field-bg);
  border: 1px solid var(--hc-card-border);
  box-shadow: var(--hc-inset);
  position: relative;
}
.hc-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  min-width: 0;
  color: var(--hc-text);
  font-size: .85rem;
}
.hc-search input::placeholder { color: var(--hc-faint); }
.hc-search button { border: none; background: transparent; color: var(--hc-muted); flex-shrink: 0; }

.hc-chips { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; position: relative; }
.hc-chip {
  font-size: .75rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--hc-card);
  border: 1px solid var(--hc-card-border);
  color: var(--hc-muted);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s var(--hc-ease), color .2s var(--hc-ease);
}
.hc-chip.is-active,
.hc-chip:hover { color: #fff; background: var(--hc-btn-grad); border-color: transparent; }

.hc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
@media (max-width: 767.98px) { .hc-grid { grid-template-columns: 1fr; } }

.hc-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.1rem;
  border-radius: 1.1rem;
  background: var(--hc-card);
  border: 1px solid var(--hc-card-border);
  box-shadow: var(--hc-inset);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--hc-ease), box-shadow .2s var(--hc-ease);
}
.hc-card:hover { transform: translateY(-2px); box-shadow: var(--hc-shadow), var(--hc-inset); }
.hc-card .hc-tag-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.hc-card .hc-product-tag {
  font-size: .68rem;
  color: var(--hc-accent);
  background: var(--hc-soft);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-weight: 700;
}
.hc-card .hc-lock { color: var(--hc-faint); font-size: .85rem; }
.hc-card h3 { font-size: .95rem; margin: 0; font-weight: 700; color: var(--hc-title); line-height: 1.4; }
.hc-card .hc-meta { display: flex; justify-content: space-between; font-size: .7rem; color: var(--hc-faint); margin-top: .25rem; }
.hc-card .hc-meta .hc-verify-pill { color: var(--hc-accent); font-weight: 600; }
.hc-empty { text-align: center; padding: 3rem 1rem; color: var(--hc-faint); font-size: .9rem; }

.hc-crumbs { font-size: .78rem; color: var(--hc-faint); margin-bottom: .5rem; }
.hc-crumbs a { color: var(--hc-faint); text-decoration: none; }

.hc-lock-ring {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  margin: 0 auto .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hc-btn-grad);
  box-shadow: 0 14px 28px -12px rgba(47, 110, 213, .8);
  color: #fff;
  font-size: 1.3rem;
}
.hc-verify-title { text-align: center; font-size: 1.05rem; margin: 0 0 .4rem; font-weight: 800; color: var(--hc-title); }
.hc-doc-ref { text-align: center; font-size: .8rem; color: var(--hc-muted); margin: 0 0 1.2rem; }

.hc-tab-switch { display: flex; gap: .4rem; background: var(--hc-card); border-radius: 999px; padding: .25rem; margin-bottom: 1rem; border: 1px solid var(--hc-card-border); }
.hc-tab-switch input { display: none; }
.hc-tab-switch label { flex: 1; text-align: center; font-size: .75rem; padding: .45rem 0; border-radius: 999px; font-weight: 700; color: var(--hc-muted); cursor: pointer; transition: background .2s var(--hc-ease), color .2s var(--hc-ease); }
.hc-tab-switch input:checked + label { background: var(--hc-btn-grad); color: #fff; }

.hc-field-group { margin-bottom: .9rem; }
.hc-field-group label { font-size: .75rem; color: var(--hc-muted); font-weight: 600; display: block; margin-bottom: .35rem; padding-left: .1rem; }
.hc-field-group input {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: .9rem;
  background: var(--hc-field-bg);
  border: 1px solid var(--hc-card-border);
  font-size: .85rem;
  color: var(--hc-text);
  outline: none;
}
.hc-field-group input:focus { border-color: var(--hc-accent); }
.hc-verify-error { font-size: .78rem; color: var(--hc-danger); margin: -.3rem 0 .8rem; padding-left: .1rem; }

.hc-btn-verify {
  width: 100%;
  padding: .85rem 0;
  border-radius: 999px;
  border: none;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  background: var(--hc-btn-grad);
  box-shadow: 0 16px 30px -12px rgba(47, 110, 213, .8);
  letter-spacing: .02em;
}
.hc-verify-foot { text-align: center; font-size: .72rem; color: var(--hc-faint); margin-top: .9rem; line-height: 1.6; }

.hc-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.hc-detail-head h1 { font-size: 1.2rem; margin: 0; font-weight: 800; color: var(--hc-title); }
.hc-unlocked-pill {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--hc-ok);
  background: var(--hc-ok-bg);
  padding: .4rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hc-detail-body {
  background: var(--hc-card);
  border: 1px solid var(--hc-card-border);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: var(--hc-inset);
  color: var(--hc-text);
  font-size: .88rem;
  line-height: 1.85;
}
.hc-detail-body :first-child { margin-top: 0; }

.hc-teaser-card {
  position: relative;
  background: var(--hc-card);
  border: 1px solid var(--hc-card-border);
  border-radius: 1.1rem;
  box-shadow: var(--hc-inset);
  overflow: hidden;
}
.hc-teaser-body {
  max-height: 11rem;
  overflow: hidden;
  padding: 1.25rem 1.25rem 0;
  color: var(--hc-text);
  font-size: .88rem;
  line-height: 1.85;
}
.hc-teaser-body :first-child { margin-top: 0; }
.hc-teaser-fade {
  position: relative;
  margin-top: -3.5rem;
  padding: 3.5rem 1.25rem 1.25rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, transparent, var(--hc-card) 65%);
}
.hc-teaser-expand {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: var(--hc-field-bg);
  border: 1px solid var(--hc-card-border);
  color: var(--hc-accent);
  font-size: .82rem;
  font-weight: 700;
}
@media (hover: hover) {
  .hc-teaser-expand:hover { background: var(--hc-soft); }
}

#hcVerifyModal .modal-content {
  background: var(--hc-bg);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--hc-border);
  border-radius: 1.5rem;
  box-shadow: var(--hc-shadow), var(--hc-inset);
}
#hcVerifyModal .modal-body { padding: 1.75rem 1.5rem 1.5rem; }
body:has(#hcVerifyModal.show) .modal-backdrop {
  background-color: rgba(18, 26, 42, .34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body:has(#hcVerifyModal.show) .modal-backdrop.show { opacity: 1; }

.hc-linked-product {
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .75rem .75rem .9rem;
  border-radius: .9rem;
  background: var(--hc-soft);
  border: 1px solid var(--hc-card-border);
  font-size: .78rem;
}
.hc-linked-product__info { min-width: 0; }
.hc-linked-product__info b { display: block; font-size: .82rem; color: var(--hc-title); }
.hc-linked-product__info span { color: var(--hc-faint); font-size: .72rem; }
.hc-linked-product__buy {
  flex-shrink: 0;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--hc-btn-grad);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 20px -10px rgba(47, 110, 213, .8);
}

.hc-toc-fab {
  position: fixed;
  z-index: 1000;
  left: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  color: var(--hc-title);
  background: var(--hc-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hc-border);
  border-radius: 50%;
  box-shadow: 0 16px 32px -14px rgba(24, 29, 37, .5), var(--hc-inset);
  cursor: pointer;
  font-size: 1.3rem;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(calc(var(--fab-lift, 0px) * -1));
}
@media (max-width: 991.98px) {
  .hc-toc-fab { bottom: calc(var(--mbn-bar-total, 92px) + 10px); }
}
@media (hover: hover) {
  .hc-toc-fab:hover { box-shadow: 0 20px 38px -14px rgba(24, 29, 37, .6), var(--hc-inset); }
}
.hc-toc-fab:active { box-shadow: 0 8px 18px -10px rgba(24, 29, 37, .5), var(--hc-inset); }
.hc-toc-fab[aria-expanded="true"] { color: #fff; background: var(--hc-btn-grad); border-color: transparent; }

.hc-toc-panel {
  position: fixed;
  z-index: 1000;
  left: 24px;
  bottom: 88px;
  width: min(80vw, 18.5rem);
  max-height: min(60vh, 26rem);
  overflow-y: auto;
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: var(--hc-shadow), var(--hc-inset);
  transform: translateY(calc(var(--fab-lift, 0px) * -1));
}
@media (max-width: 991.98px) {
  .hc-toc-panel { bottom: calc(var(--mbn-bar-total, 92px) + 74px); }
}
.hc-toc-panel__title { font-size: .78rem; font-weight: 700; color: var(--hc-faint); margin-bottom: .6rem; padding-left: .2rem; }
.hc-toc-list { display: flex; flex-direction: column; gap: .15rem; }
.hc-toc-item {
  display: block;
  padding: .5rem .6rem;
  border-radius: .6rem;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--hc-text);
  text-decoration: none;
}
.hc-toc-item:hover { background: var(--hc-soft); color: var(--hc-accent); }
.hc-toc-item--lv3 { padding-left: 1.2rem; font-size: .78rem; color: var(--hc-muted); }
.hc-toc-item--lv4,
.hc-toc-item--lv5,
.hc-toc-item--lv6 { padding-left: 2rem; font-size: .76rem; color: var(--hc-faint); }

