/**
 * HIFOX — professional medical / clinical UI
 * Deep clinical teal, mint surfaces, calm typography (Plus Jakarta Sans in header)
 */

:root {
  --hifox-primary: #0f766e;
  --hifox-primary-light: #2dd4bf;
  --hifox-primary-dark: #0a4f4a;
  --hifox-accent: #0891b2;
  --hifox-care: #059669;
  --hifox-primary-rgb: 15, 118, 110;
  --hifox-deep-rgb: 8, 61, 58;
  --hifox-white: #ffffff;
  --hifox-bg: #f0faf8;
  --hifox-surface: #ffffff;
  --hifox-text: #134e47;
  --hifox-muted: #5f7a76;
  --hifox-border: #c7e4de;
  --hifox-shadow: 0 10px 40px rgba(var(--hifox-deep-rgb), 0.08);
  --hifox-shadow-sm: 0 4px 20px rgba(var(--hifox-deep-rgb), 0.06);
  --hifox-radius: 14px;
  --hifox-radius-pill: 999px;
  --hifox-font: "Plus Jakarta Sans", "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hifox-header-h: 4.35rem;
  --hifox-content-width: 1120px;
  --hifox-ink: #0f2927;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--hifox-font);
  color: var(--hifox-text);
  background: linear-gradient(180deg, var(--hifox-bg) 0%, var(--hifox-bg-mid, #e8f5f2) 38%, var(--hifox-bg-end, #f4fbfb) 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--hifox-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(105deg, var(--hifox-primary-dark) 0%, var(--hifox-primary) 55%, color-mix(in srgb, var(--hifox-primary) 75%, var(--hifox-gradient-deep, #0c4a5a)) 100%);
  color: var(--hifox-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(var(--hifox-deep-rgb), 0.22);
}
.site-header__inner {
  max-width: var(--hifox-content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--hifox-header-h);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem;
}
.site-header__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
  max-width: min(100%, 22rem);
}
.site-header__brand:hover { text-decoration: none; opacity: 0.95; }
.site-header__brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.site-header__logo {
  display: block;
  flex-shrink: 0;
  height: 2.65rem;
  width: auto;
  max-width: 8.5rem;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.site-header__name {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.site-header__tag {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.25;
  padding-left: 0.1rem;
}
@media (min-width: 600px) {
  .site-header__logo { height: 2.85rem; max-width: 9rem; }
  .site-header__name { font-size: 1rem; }
}
@media (max-width: 380px) {
  .site-header__name { font-size: 0.78rem; max-width: 7.5rem; line-height: 1.2; }
}

/* Mobile nav */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: none; border-radius: 8px;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: rgba(255,255,255,.22); }
@media (min-width: 960px) { .nav-toggle { display: none; } }

.site-nav {
  width: 100%;
  max-height: 0; overflow: hidden;
  flex-basis: 100%;
  transition: max-height 0.35s ease;
}
.site-nav--open { max-height: 480px; }
@media (min-width: 960px) {
  .site-nav {
    width: auto; max-height: none; overflow: visible; flex-basis: auto; margin-left: auto;
  }
}
.site-nav ul {
  list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem;
}
@media (min-width: 960px) {
  .site-nav ul { flex-direction: row; margin: 0; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
}
.site-nav a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px; color: #fff; font-weight: 500; font-size: 0.9rem; text-decoration: none;
  transition: background 0.15s;
}
.site-nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.site-nav a.is-active { background: rgba(255,255,255,.2); }
@media (min-width: 960px) {
  .site-nav a { padding: 0.45rem 0.7rem; font-size: 0.875rem; }
}
/* Nav / footer “Live chat” entry (opens widget) */
.site-nav a.hifox-nav-chat { font-weight: 700; border: 1px solid rgba(255,255,255,0.45); }
.site-nav a.hifox-nav-chat:hover { background: rgba(255,255,255,0.15); }
.site-footer a.hifox-footer-chat { text-decoration: underline; text-underline-offset: 2px; }

/* ——— Main ——— */
main { flex: 1; }
.section {
  max-width: var(--hifox-content-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.section--tight { padding-top: 1.5rem; }
.section--wide { max-width: 1200px; }
.section__title {
  font-size: 1.75rem; font-weight: 800; color: var(--hifox-primary);
  margin: 0 0 0.25rem; letter-spacing: -0.03em;
}
.section__lead { color: var(--hifox-muted); font-size: 1.05rem; margin: 0 0 1.5rem; max-width: 52ch; }
.section--customers .section__head--below { margin-top: 1.75rem; margin-bottom: 0; }
.section--customers .section__head--below .section__title { margin-top: 0; }
.section--customers .section__head--below .section__lead { margin-bottom: 0; }
.section--customers .section__head:not(.section__head--below) .section__lead { margin-bottom: 1.5rem; }
.customers-section__head-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--hifox-radius);
  transition: opacity 0.15s ease;
}
.customers-section__head-link:hover {
  text-decoration: none;
  opacity: 0.92;
}
.customers-section__head-link:hover .section__title {
  color: var(--hifox-accent);
}
.customers-section__head-link .section__lead {
  color: var(--hifox-muted);
}
.section--alt {
  background: linear-gradient(180deg, var(--hifox-surface) 0%, var(--hifox-section-soft, #f3fbf9) 55%, var(--hifox-section-mid, #eef8f5) 100%);
  border-block: 1px solid var(--hifox-border);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--hifox-primary-dark) 0%, var(--hifox-primary) 42%, var(--hifox-accent) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: var(--hifox-content-width); margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin: 0 0 1rem; max-width: 20ch; letter-spacing: -0.02em; }
.hero p { font-size: 1.1rem; opacity: 0.95; max-width: 50ch; margin: 0 0 1.5rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--hifox-radius-pill); padding: 0.35rem 0.9rem; font-size: 0.8rem; font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 600px) {
  .hero__inner { padding: 4.5rem 1.25rem 5rem; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  padding: 0.6rem 1.25rem; border-radius: var(--hifox-radius-pill); border: none; text-decoration: none;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  box-shadow: var(--hifox-shadow-sm);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(var(--hifox-deep-rgb), 0.14); }
.btn:active { transform: translateY(0); }
.btn--primary { background: #fff; color: var(--hifox-primary); }
.btn--secondary { background: var(--hifox-primary); color: #fff; border: 2px solid #fff; box-shadow: none; }
.btn--primary:hover, .btn--secondary:hover { filter: brightness(1.02); }
.btn--ghost { background: rgba(255,255,255,0.15); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,0.35); }
.btn--sm { font-size: 0.8rem; padding: 0.5rem 1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ——— Cards / grid ——— */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card-grid--products {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .card-grid--products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid--products { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
}

.card {
  background: #fff; border: 1px solid var(--hifox-border); border-radius: var(--hifox-radius);
  padding: 1.5rem; box-shadow: var(--hifox-shadow);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--hifox-primary); }
.card p { margin: 0; color: var(--hifox-muted); font-size: 0.95rem; }
.card__icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; color: var(--hifox-primary); }
.card__icon path, .card__icon rect, .card__icon circle { stroke: currentColor; }

/* ——— Our customers (logo wall) ——— */
.customers-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: stretch;
}
@media (min-width: 600px) {
  .customers-grid { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; }
}
@media (min-width: 900px) {
  .customers-grid { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
}
.customers-grid__item {
  min-width: 0;
}
.customers-grid__card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  min-height: 6.5rem;
  padding: 0.55rem 0.75rem 0.65rem;
  background: #fff;
  border: 1px solid var(--hifox-border);
  border-radius: var(--hifox-radius);
  box-shadow: var(--hifox-shadow-sm);
}
.customers-grid__link {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.customers-grid__link:hover { text-decoration: none; }
.customers-grid__link:hover .customers-grid__logo { opacity: 0.88; }
.customers-grid__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}
.customers-grid__name {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--hifox-primary);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  max-width: 100%;
}
.customers-grid__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 9rem;
  height: 2.75rem;
  overflow: hidden;
  flex-shrink: 0;
}
.customers-grid__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 2.75rem;
  object-fit: contain;
  object-position: center;
}
.customers-section__more {
  margin: 1.5rem 0 0;
  text-align: center;
}
.section--customers-page .customers-grid {
  margin-top: 0.5rem;
}

/* ——— Roadmap / horizontal preview ——— */
.roadmap-preview { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .roadmap-preview { flex-direction: row; flex-wrap: wrap; } }
.roadmap-preview__step {
  flex: 1; min-width: 140px; text-align: center; padding: 1rem; background: #fff; border: 1px solid var(--hifox-border);
  border-radius: var(--hifox-radius); box-shadow: var(--hifox-shadow-sm);
}
.roadmap-preview__n {
  display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--hifox-primary); color: #fff; font-weight: 800; font-size: 0.8rem; margin-bottom: 0.5rem;
}
.roadmap-preview__t { font-size: 0.85rem; font-weight: 600; color: var(--hifox-text); }

/* ——— Stepper (5-step project page) ——— */
.stepper {
  display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 0;
}
@media (min-width: 900px) {
  .stepper--horizontal { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 0; }
}

.stepper__line {
  display: none;
}
@media (min-width: 900px) {
  .stepper--horizontal .stepper__line {
    display: block; position: absolute; left: 0; right: 0; top: 1.4rem; height: 3px; background: linear-gradient(90deg, var(--hifox-primary) 0%, rgba(var(--hifox-primary-rgb), 0.35) 100%); z-index: 0; border-radius: 3px; margin: 0 1rem;
  }
}
.step {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1;
  padding: 0 0.5rem; margin-bottom: 2.5rem;
}
@media (min-width: 900px) { .stepper--horizontal .step { margin-bottom: 0; } }
.stepper--vertical .step { flex-direction: row; text-align: left; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 900px) {
  .stepper--vertical { padding-left: 0; }
}
.stepper--vertical .step { position: relative; }
.stepper--vertical .step::before { content: ""; position: absolute; left: 0.9rem; top: 2.2rem; bottom: -0.5rem; width: 2px; background: var(--hifox-border); }
.stepper--vertical .step:last-child::before { display: none; }

@media (max-width: 899px) {
  .stepper--horizontal { flex-direction: column; }
  .stepper--horizontal .step { position: relative; flex-direction: row; text-align: left; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
  .stepper--horizontal .step::before { content: ""; position: absolute; left: 0.9rem; top: 2.2rem; bottom: -0.4rem; width: 2px; background: var(--hifox-border); }
  .stepper--horizontal .step:last-of-type::before { display: none; }
  .stepper--horizontal { position: relative; padding-left: 0.25rem; }
  .stepper--horizontal .step { padding-left: 2.75rem; }
  .stepper--horizontal .stepper__line { display: none; }
}

.step__badge {
  flex-shrink: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--hifox-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
}
@media (min-width: 900px) {
  .stepper--horizontal .step__badge { width: 2.5rem; height: 2.5rem; font-size: 0.85rem; }
}
.step__content { min-width: 0; }
.step__content h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--hifox-primary); }
.step__content p { margin: 0; font-size: 0.9rem; color: var(--hifox-muted); }

/* ——— About: timeline / infographic ——— */
.timeline {
  max-width: 800px; margin: 0 auto; position: relative;
  padding: 0 0 0 0;
}
.about-slide {
  background: #fff; border: 1px solid var(--hifox-border); border-radius: 16px;
  padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--hifox-shadow);
  border-left: 4px solid var(--hifox-primary);
  position: relative; overflow: hidden;
}
.about-slide::before {
  content: attr(data-n); position: absolute; right: 1.25rem; top: 1.25rem; font-size: 2.5rem; font-weight: 800; color: rgba(var(--hifox-primary-rgb), 0.09);
  line-height: 1; pointer-events: none;
}
.about-slide h2 { font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--hifox-primary); }
.about-slide p, .about-slide li { color: var(--hifox-muted); font-size: 0.95rem; }
.about-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1.25rem; }
@media (min-width: 600px) { .about-kpi { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  text-align: center; padding: 0.9rem; background: var(--hifox-bg); border-radius: 8px; border: 1px solid var(--hifox-border);
}
.kpi strong { display: block; color: var(--hifox-primary); font-size: 1.25rem; }
.kpi span { font-size: 0.75rem; color: var(--hifox-muted); }

/* ——— Product flow ——— */
.flow-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin: 1rem 0; font-size: 0.8rem; font-weight: 600; color: var(--hifox-text);
}
.flow-bar svg { display: block; color: var(--hifox-primary); }
.flow-bar svg path, .flow-bar svg rect, .flow-bar svg circle { stroke: currentColor; }
.flow-connector { color: var(--hifox-muted); user-select: none; }

/* ——— Video / demo ——— */
.video-card {
  background: linear-gradient(165deg, var(--hifox-primary-dark) 0%, var(--hifox-gradient-footer, #063d38) 100%); color: #fff; border-radius: var(--hifox-radius);
  min-height: 200px; display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255,255,255,0.25);
  text-align: center; padding: 1.5rem; box-shadow: var(--hifox-shadow);
}
.video-card .icon-play { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; }
.video-card p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

/* ——— Pricing table ——— */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 0.9rem 1rem; text-align: left; border: 1px solid var(--hifox-border); }
.compare-table thead th { background: var(--hifox-primary); color: #fff; font-weight: 700; }
.compare-table thead th:first-child { border-radius: 10px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 10px 0 0; }
.compare-table tbody tr { background: #fff; }
.compare-table tbody tr:nth-child(even) { background: #f8fafc; }
.compare-table .highlight { background: rgba(var(--hifox-primary-rgb), 0.07) !important; }
.compare-table .label { font-weight: 600; }
.compare-table tfoot td { background: #fff; }
.plan-head { text-align: center; }
.badge--cloud, .badge--onprem { font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.badge--cloud { background: #d6f5f0; color: var(--hifox-primary-dark); }
.badge--onprem { background: #e8e8e8; color: #333; }

/* ——— Contact form ——— */
form.hifox-form { max-width: 520px; }
form.hifox-form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0.9rem 0 0.35rem; }
form.hifox-form input, form.hifox-form select, form.hifox-form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--hifox-border);
  border-radius: 8px; background: #fff; }
form.hifox-form textarea { min-height: 8rem; resize: vertical; }
form.hifox-form input:focus, form.hifox-form select:focus, form.hifox-form textarea:focus { outline: 2px solid var(--hifox-primary); outline-offset: 1px; }
.alert { padding: 0.9rem 1rem; border-radius: 8px; margin: 0 0 1rem; font-size: 0.95rem; }
.alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--err { background: #fce8e8; color: #8b1a1a; border: 1px solid #e0a0a0; }

/* ——— Footer ——— */
.site-footer { background: var(--hifox-primary-dark); color: rgba(255,255,255,0.92); margin-top: auto; }
.site-footer a { color: #fff; }
.site-footer__inner { max-width: var(--hifox-content-width); margin: 0 auto; padding: 2.5rem 1.25rem 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand {
  display: inline-block;
  margin-bottom: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.site-footer__brand:hover { opacity: 0.92; text-decoration: none; }
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.site-footer__logo {
  display: block;
  flex-shrink: 0;
  height: 2.75rem;
  width: auto;
  max-width: 8.5rem;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.site-footer__name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.site-footer h3 { margin: 0 0 0.75rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; }
.site-footer p, .site-footer li { font-size: 0.9rem; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); text-align: center; font-size: 0.8rem; padding: 1rem; opacity: 0.8; }
.site-footer__bottom p { margin: 0; }
.dot-list li::before { content: "•"; margin-right: 0.5rem; }

/* ——— List / two-col ——— */
.split { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .split--2 { grid-template-columns: 1fr 1fr; align-items: start; } }

.why-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

.footnote { font-size: 0.8rem; color: var(--hifox-muted); }

/* ——— Floating live chat (visitor) ——— */
.hifox-fchat {
  position: fixed;
  z-index: 99999;
  right: 1rem;
  left: auto;
  top: auto;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  font-family: var(--hifox-font);
  pointer-events: auto;
  margin: 0;
  padding: 0;
  isolation: isolate;
  --hifox-chat-bubble-admin: #ffffff;
  --hifox-chat-bubble-visit: var(--hifox-primary);
}
/* Stacking: backdrop inside .hifox-fchat. Visibility: .hifox-fchat--open on wrap (avoids [hidden] vs display:flex fights). */
.hifox-fchat__backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: rgba(var(--hifox-deep-rgb), 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  margin: 0;
  border: 0;
  padding: 0;
  box-sizing: border-box;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
.hifox-fchat.hifox-fchat--open .hifox-fchat__backdrop {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}
.hifox-fchat__icon { display: block; flex-shrink: 0; }
.hifox-fchat__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.25rem;
  padding: 0 1.05rem 0 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--hifox-radius-pill);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, var(--hifox-primary-light) 0%, var(--hifox-primary) 55%, var(--hifox-primary-dark) 100%);
  box-shadow: 0 6px 24px rgba(var(--hifox-deep-rgb), 0.4), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
  position: relative;
  z-index: 3;
}
.hifox-fchat__btn:hover,
.hifox-fchat__btn:focus {
  filter: brightness(1.06);
  box-shadow: 0 8px 28px rgba(var(--hifox-deep-rgb), 0.45), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  outline: none;
  transform: translateY(-1px);
}
.hifox-fchat__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.hifox-fchat--open .hifox-fchat__btn,
.hifox-fchat__btn--open {
  background: #fff;
  color: var(--hifox-primary);
  border-color: rgba(var(--hifox-primary-rgb), 0.2);
  box-shadow: 0 4px 20px rgba(var(--hifox-deep-rgb), 0.18), 0 0 0 1px rgba(var(--hifox-primary-rgb), 0.08) inset;
}
.hifox-fchat--open .hifox-fchat__btn:hover,
.hifox-fchat--open .hifox-fchat__btn:focus { filter: none; background: #f8fbff; }
.hifox-fchat__btn-ico { display: flex; align-items: center; justify-content: center; opacity: 0.95; }
.hifox-fchat__btn--open .hifox-fchat__btn-ico { color: var(--hifox-primary); }
.hifox-fchat__btn-label { line-height: 1; }
.hifox-fchat__panel {
  position: absolute;
  right: 0;
  bottom: calc(3.25rem + 0.65rem);
  width: min(100vw - 2rem, 25.5rem);
  max-height: min(75vh, 32rem);
  display: none !important;
  color: var(--hifox-text);
  background: linear-gradient(180deg, #feffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(var(--hifox-primary-rgb), 0.12);
  border-radius: 1.05rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset, 0 8px 16px rgba(var(--hifox-deep-rgb), 0.08), 0 24px 48px rgba(var(--hifox-deep-rgb), 0.2);
  overflow: hidden;
  transform-origin: bottom right;
  animation: hifox-fchat-in 0.26s cubic-bezier(0.2, 0.85, 0.35, 1);
  isolation: isolate;
  z-index: 2;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  box-sizing: border-box;
}
.hifox-fchat.hifox-fchat--open .hifox-fchat__panel {
  display: flex !important;
  flex-direction: column;
  visibility: visible;
  pointer-events: auto;
}
@keyframes hifox-fchat-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hifox-fchat__btn:hover,
  .hifox-fchat__btn:focus { transform: none; }
  .hifox-fchat.hifox-fchat--open .hifox-fchat__panel { animation: none; }
}
.hifox-fchat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.65rem 0.7rem 0.8rem;
  flex-shrink: 0;
  background: linear-gradient(120deg, var(--hifox-primary-dark) 0%, var(--hifox-primary) 50%, var(--hifox-primary-light) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 0;
  border-top: 3px solid var(--hifox-accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.hifox-fchat__head-left { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.hifox-fchat__head-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 2px 6px rgba(0, 0, 0, 0.08);
}
.hifox-fchat__head-titles { min-width: 0; }
.hifox-fchat__head-title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.hifox-fchat__head-sub {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.88;
  margin-top: 0.1rem;
  line-height: 1.3;
  white-space: normal;
}
.hifox-fchat__close {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.55rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  pointer-events: auto;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.hifox-fchat__close:hover,
.hifox-fchat__close:focus { background: rgba(255, 255, 255, 0.2); }
.hifox-fchat__close-ico { font-size: 1.35rem; line-height: 1; position: relative; top: -1px; }
.hifox-fchat__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  background: linear-gradient(180deg, #e4eaf4 0%, #ecf0f7 45%, #eef1f6 100%);
  position: relative;
}
.hifox-fchat__body::after {
  content: "";
  position: absolute;
  left: 0.65rem; right: 0.65rem; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65) 20%, rgba(255, 255, 255, 0.65) 80%, transparent);
  pointer-events: none;
  z-index: 1;
}
.hifox-fchat__thread {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.55rem;
  overflow-y: auto;
  padding: 0.8rem 0.75rem;
  max-height: min(46vh, 16.5rem);
  scrollbar-gutter: stable;
}
.hifox-fchat__thread--has-msg { justify-content: flex-start; }
.hifox-fchat__empty {
  text-align: center;
  max-width: 16rem;
  margin: 0.75rem auto 1rem;
  padding: 0 0.25rem 0.5rem;
}
.hifox-fchat__empty-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  color: var(--hifox-primary);
  background: linear-gradient(145deg, #fff, #e8f0f9);
  box-shadow: 0 2px 10px rgba(var(--hifox-deep-rgb), 0.1), 0 0 0 1px rgba(var(--hifox-primary-rgb), 0.1);
}
.hifox-fchat__empty-ico .hifox-fchat__icon { margin: 0; }
.hifox-fchat__empty-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--hifox-text);
  margin: 0 0 0.3rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.hifox-fchat__empty-text {
  font-size: 0.8rem;
  color: var(--hifox-muted);
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}
.hifox-fchat__empty[hidden] { display: none !important; }
.hifox-fchat__thread::-webkit-scrollbar { width: 6px; }
.hifox-fchat__thread::-webkit-scrollbar-thumb { background: rgba(var(--hifox-deep-rgb), 0.2); border-radius: 3px; }
.hifox-fchat__msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  gap: 0.2rem;
}
.hifox-fchat__msg--admin { align-self: flex-start; align-items: flex-start; }
.hifox-fchat__msg--visit { align-self: flex-end; align-items: flex-end; }
.hifox-fchat__from {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hifox-muted);
  padding: 0 0.2rem;
  opacity: 0.9;
}
.hifox-fchat__msg--visit .hifox-fchat__from { text-align: right; }
.hifox-fchat__bubble {
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.6rem 0.75rem 0.6rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(var(--hifox-deep-rgb), 0.05);
}
.hifox-fchat__msg--admin .hifox-fchat__bubble {
  color: var(--hifox-text);
  background: var(--hifox-chat-bubble-admin);
  border: 1px solid rgba(214, 222, 232, 0.9);
  border-bottom-left-radius: 0.28rem;
  box-shadow: 0 2px 10px rgba(var(--hifox-deep-rgb), 0.08);
}
.hifox-fchat__msg--visit .hifox-fchat__bubble {
  color: #fff;
  background: linear-gradient(150deg, var(--hifox-primary-light) 0%, var(--hifox-primary) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-right-radius: 0.28rem;
}
.hifox-fchat__foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8faff 0%, #fff 32%);
  border-top: 1px solid rgba(var(--hifox-primary-rgb), 0.1);
  box-shadow: 0 -2px 16px rgba(var(--hifox-deep-rgb), 0.04);
  padding: 0 0 0.1rem;
}
.hifox-fchat__name {
  padding: 0.5rem 0.85rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}
.hifox-fchat__name-lab {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hifox-muted);
}
.hifox-fchat__name input {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--hifox-border);
  border-radius: 0.55rem;
  background: #f6f8fb;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hifox-fchat__name input::placeholder { color: #8a9aaa; }
.hifox-fchat__name input:focus {
  outline: none;
  border-color: var(--hifox-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--hifox-primary-rgb), 0.12);
}
.hifox-fchat__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.85rem;
  border-top: none;
  background: transparent;
}
.hifox-fchat__form textarea {
  min-height: 2.65rem;
  max-height: 6rem;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--hifox-border);
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(var(--hifox-deep-rgb), 0.04) inset;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hifox-fchat__form textarea::placeholder { color: #8a9aaa; }
.hifox-fchat__form textarea:focus {
  outline: none;
  border-color: var(--hifox-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--hifox-primary-rgb), 0.1), 0 1px 2px rgba(var(--hifox-deep-rgb), 0.04) inset;
}
.hifox-fchat__send {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  background: var(--hifox-primary);
  color: #fff;
  border: 1px solid var(--hifox-primary-dark);
  border-radius: 0.65rem;
  padding: 0.45rem 1.1rem 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1), 0 4px 12px rgba(var(--hifox-deep-rgb), 0.2);
  transition: background 0.15s ease, filter 0.15s ease, transform 0.1s ease;
}
.hifox-fchat__send:hover { filter: brightness(1.07); transform: translateY(-0.5px); }
.hifox-fchat__send:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); }
.hifox-fchat__send-ico { display: flex; align-items: center; }
.hifox-fchat__send-ico svg { display: block; }
.hifox-fchat__send:disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }
.hifox-fchat__thread p.hifox-fchat__err,
.hifox-fchat__err {
  font-size: 0.8rem;
  color: #8a1515;
  margin: 0.2rem 0.25rem 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #fff5f5, #fee);
  border: 1px solid #e8b0b0;
  box-shadow: 0 1px 3px rgba(138, 21, 21, 0.08);
  line-height: 1.4;
  width: 100%;
  max-width: none;
  text-align: center;
}
@media (min-width: 380px) {
  .hifox-fchat__form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .hifox-fchat__form textarea { flex: 1 1 7.5rem; min-width: 0; }
  .hifox-fchat__send { flex: 0 0 auto; align-self: stretch; min-width: 5.6rem; }
}

/* ——— Admin: single chat room ——— */
.hifox-adm-chat--page {
  max-width: 52rem;
  margin: 0 auto;
}
.hifox-adm-chat__toolbar { margin: 0 0 0.75rem; }
.hifox-adm-chat__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hifox-primary);
  text-decoration: none;
  padding: 0.4rem 0.6rem 0.4rem 0.35rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.hifox-adm-chat__back:hover {
  text-decoration: none;
  color: #fff;
  background: var(--hifox-primary);
  transform: translateX(-1px);
}
.hifox-adm-chat__shell {
  border-radius: 1rem;
  border: 1px solid var(--hifox-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(var(--hifox-deep-rgb), 0.04), 0 8px 28px rgba(var(--hifox-deep-rgb), 0.08);
  overflow: hidden;
}
.hifox-adm-chat__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
  padding: 1.05rem 1.1rem 1.1rem;
  background: linear-gradient(120deg, var(--hifox-primary-dark) 0%, var(--hifox-primary) 50%, var(--hifox-accent) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  border-top: 3px solid var(--hifox-accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.hifox-adm-chat__head-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.hifox-adm-chat__head-ico svg { display: block; }
.hifox-adm-chat__head-text { flex: 1; min-width: 0; }
.hifox-adm-chat__head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.9rem;
  margin: 0 0 0.35rem;
}
.hifox-adm-chat__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.hifox-adm-chat__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 180, 100, 0.25);
  color: #d4ffe8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}
.hifox-adm-chat__pulse {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
  animation: hifox-adm-pulse 2s ease-in-out infinite;
}
@keyframes hifox-adm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .hifox-adm-chat__pulse { animation: none; }
}
.hifox-adm-chat__meta {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.95;
  font-weight: 500;
}
.hifox-adm-chat__meta strong { font-weight: 800; }
.hifox-adm-chat__tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  vertical-align: middle;
}
.hifox-adm-chat__hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
}
.hifox-adm-thread-bar {
  display: flex;
  align-items: center;
  padding: 0.4rem 1.1rem;
  background: linear-gradient(180deg, #f2f5f9, #e8edf4);
  border-bottom: 1px solid var(--hifox-border);
}
.hifox-adm-thread-bar__label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hifox-muted);
}
.hifox-adm-thread {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 13rem;
  max-height: min(56vh, 28rem);
  overflow-y: auto;
  padding: 0.9rem 0.9rem 1.05rem;
  margin: 0;
  background: linear-gradient(180deg, #dde5ef 0%, #e4eaf0 6%, #eef1f6 100%);
  background-size: 100% 100%;
  scrollbar-gutter: stable;
}
.hifox-adm-thread::-webkit-scrollbar { width: 7px; }
.hifox-adm-thread::-webkit-scrollbar-thumb { background: rgba(var(--hifox-deep-rgb), 0.2); border-radius: 4px; }
.hifox-adm-thread__empty {
  text-align: center;
  color: var(--hifox-muted);
  margin: 2.25rem 1rem 2.5rem;
  padding: 0 0.5rem;
}
.hifox-adm-thread__empty-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--hifox-primary);
  background: linear-gradient(180deg, #fff, #e8f0f9);
  border-radius: 50%;
  border: 1px solid rgba(var(--hifox-primary-rgb), 0.1);
  box-shadow: 0 2px 8px rgba(var(--hifox-deep-rgb), 0.08);
}
.hifox-adm-thread__empty-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hifox-text);
  margin: 0 0 0.3rem;
}
.hifox-adm-thread__empty-text {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}
.hifox-adm-msg {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(100%, 36rem);
}
.hifox-adm-msg--visit { align-self: flex-start; }
.hifox-adm-msg--admin { align-self: flex-end; flex-direction: row-reverse; max-width: min(100%, 36rem); margin-left: auto; }
.hifox-adm-msg__ava {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--hifox-primary);
  background: #fff;
  border: 1px solid var(--hifox-border);
  box-shadow: 0 1px 3px rgba(var(--hifox-deep-rgb), 0.08);
}
.hifox-adm-msg__ava--you {
  color: #fff;
  background: linear-gradient(145deg, var(--hifox-primary-light), var(--hifox-primary));
  border-color: rgba(0, 0, 0, 0.1);
}
.hifox-adm-msg__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.2rem;
  max-width: calc(100% - 2.5rem);
}
.hifox-adm-msg__from {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hifox-muted);
  padding: 0 0.1rem 0 0.15rem;
}
.hifox-adm-msg--admin .hifox-adm-msg__from { text-align: right; padding: 0 0.15rem 0 0.1rem; }
.hifox-adm-msg__inner { max-width: 100%; }
.hifox-adm-msg__bubble {
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  padding: 0.55rem 0.75rem 0.6rem;
  border-radius: 1rem;
}
.hifox-adm-msg--visit .hifox-adm-msg__bubble {
  color: var(--hifox-text);
  background: #fff;
  border: 1px solid var(--hifox-border);
  border-bottom-left-radius: 0.3rem;
  box-shadow: 0 2px 10px rgba(var(--hifox-deep-rgb), 0.08);
}
.hifox-adm-msg--admin .hifox-adm-msg__bubble {
  color: #fff;
  background: linear-gradient(150deg, var(--hifox-primary-light) 0%, var(--hifox-primary) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-right-radius: 0.3rem;
  box-shadow: 0 2px 12px rgba(var(--hifox-deep-rgb), 0.2);
}
.hifox-adm-msg__time {
  display: block;
  font-size: 0.64rem;
  color: var(--hifox-muted);
  margin: 0.12rem 0.2rem 0 0.15rem;
  opacity: 0.88;
}
form.hifox-form.hifox-adm-reply { max-width: 100%; margin: 0; }
.hifox-adm-reply__head { margin: 0 0 0.5rem; }
form.hifox-form.hifox-adm-reply .hifox-adm-reply__label { margin: 0; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--hifox-muted); font-weight: 800; }
form.hifox-form.hifox-adm-reply label:not(.hifox-adm-reply__label) { margin: 0; }
form.hifox-form.hifox-adm-reply textarea {
  min-height: 2.8rem;
  max-height: 8rem;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: 0.65rem;
  border: 1px solid var(--hifox-border);
  background: #fafbfc;
  box-shadow: 0 1px 2px rgba(var(--hifox-deep-rgb), 0.04) inset;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  padding: 0.6rem 0.75rem;
  font-family: var(--hifox-font, inherit);
}
form.hifox-form.hifox-adm-reply textarea:focus {
  outline: none;
  border-color: var(--hifox-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--hifox-primary-rgb), 0.1);
}
.hifox-adm-reply__row { display: flex; flex-direction: column; gap: 0.75rem; }
.hifox-adm-reply__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.45rem 1.1rem 0.45rem 0.9rem;
  font-family: var(--hifox-font, inherit);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(145deg, var(--hifox-primary-light) 0%, var(--hifox-primary) 100%);
  border: 1px solid var(--hifox-primary-dark);
  border-radius: 0.7rem;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1), 0 4px 12px rgba(var(--hifox-deep-rgb), 0.25);
  transition: filter 0.15s ease, transform 0.1s ease;
  margin: 0;
  flex-shrink: 0;
}
.hifox-adm-reply__send:hover { filter: brightness(1.05); }
.hifox-adm-reply__send:active { transform: translateY(1px); }
.hifox-adm-reply__send:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.hifox-adm-reply__send-ico { display: flex; align-items: center; }
.hifox-adm-reply__send-ico svg { display: block; }
@media (min-width: 520px) {
  .hifox-adm-reply__row { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; }
  .hifox-adm-reply__row textarea { flex: 1; min-width: 0; }
  .hifox-adm-reply__send { min-width: 7.25rem; }
}
.hifox-adm-reply__wrap {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  background: linear-gradient(180deg, #f0f4fa 0%, #fafcff 30%, #fff 100%);
  border-top: 1px solid var(--hifox-border);
  box-shadow: 0 -2px 12px rgba(var(--hifox-deep-rgb), 0.04);
}

.hifox-blog { max-width: 40rem; }
.hifox-blog-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.hifox-blog-list__item {
  border-bottom: 1px solid var(--hifox-border);
  padding: 1.15rem 0 1.25rem;
}
.hifox-blog-list__item:first-child { padding-top: 0.25rem; }
.hifox-blog-list__title { font-size: 1.15rem; margin: 0 0 0.25rem; font-weight: 700; }
.hifox-blog-list__title a { color: var(--hifox-ink, #0a0f1a); text-decoration: none; }
.hifox-blog-list__title a:hover { color: var(--hifox-primary); text-decoration: underline; }
.hifox-blog-list__meta { font-size: 0.8rem; color: var(--hifox-muted); margin: 0; }
.hifox-blog-list__ex { margin: 0.5rem 0 0; line-height: 1.5; }
.hifox-blog-list__read { margin: 0.4rem 0 0; font-size: 0.9rem; }
.hifox-blog-list__item--with-thumb {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 1rem 1.1rem;
  align-items: start;
}
@media (max-width: 520px) {
  .hifox-blog-list__item--with-thumb { grid-template-columns: 1fr; }
}
.hifox-blog-list__thumb {
  display: block;
  border-radius: var(--hifox-radius);
  overflow: hidden;
  border: 1px solid var(--hifox-border);
  box-shadow: var(--hifox-shadow-sm);
  line-height: 0;
}
.hifox-blog-list__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  vertical-align: middle;
}
.hifox-blog-list__thumb:hover { box-shadow: var(--hifox-shadow); }
.hifox-blog-list__text { min-width: 0; }
.link-arrow { color: var(--hifox-primary); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.hifox-blog-post { max-width: 40rem; }
.hifox-blog-post__back { margin: 0 0 1rem; font-size: 0.95rem; }
.hifox-blog-post__meta { font-size: 0.85rem; color: var(--hifox-muted); margin: 0 0 0.5rem; }
.hifox-blog-post__ex { line-height: 1.5; color: var(--hifox-muted); }
.hifox-blog-post__gallery {
  margin: 1.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.hifox-blog-post__fig { margin: 0; }
.hifox-blog-post__fig img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--hifox-border);
  box-shadow: var(--hifox-shadow-sm);
}
.hifox-blog-post__body { line-height: 1.65; font-size: 1.02rem; margin-top: 1rem; }
.hifox-blog-comms { max-width: 40rem; margin-top: 0.5rem; }
.hifox-blog-comms__h { font-size: 1.2rem; margin: 0 0 0.5rem; }
.hifox-blog-comms__subh { font-size: 1rem; margin: 0 0 0.5rem; }
.hifox-blog-comms__empty { color: var(--hifox-muted); }
.hifox-blog-comms__form-wrap { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--hifox-border); border-radius: 0.5rem; background: #fafbfc; }
.hifox-blog-cmt {
  border: 1px solid var(--hifox-border);
  border-radius: 0.4rem;
  padding: 0.75rem 0.9rem 0.85rem;
  margin: 0 0 0.6rem;
  background: #fff;
}
.hifox-blog-cmt--depth { margin-left: min(calc(1.25rem * var(--hifox-cmt-depth, 1)), 5rem); border-left: 2px solid var(--hifox-primary); }
.hifox-blog-cmt__head { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: baseline; }
.hifox-blog-cmt__name { font-weight: 600; }
.hifox-blog-cmt__date { font-size: 0.8rem; color: var(--hifox-muted); }
.hifox-blog-cmt__body { margin: 0.45rem 0; line-height: 1.5; }
.hifox-blog-cmt__actions { margin: 0.25rem 0 0; }
.hifox-blog-cmt__reply-btn {
  background: none; border: 0; padding: 0;
  color: var(--hifox-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.hifox-blog-cmt__reply { margin: 0.5rem 0 0; padding: 0.5rem; background: #f4f6f9; border-radius: 0.35rem; }
.hifox-blog-cmt__form-row { display: flex; flex-direction: column; gap: 0.2rem; margin: 0 0 0.5rem; }
.hifox-blog-cmt__form-row label { font-size: 0.78rem; font-weight: 600; color: var(--hifox-muted); }
.hifox-blog-cmt__form-row input,
.hifox-blog-cmt__form-row textarea { font: inherit; padding: 0.4rem 0.5rem; border: 1px solid var(--hifox-border); border-radius: 0.3rem; max-width: 100%; }
.hifox-blog-cmt__children { margin: 0.5rem 0 0; padding: 0; }

/* ——— Pricing (plan selection style) ——— */
.hifox-pricing { max-width: 1120px; margin: 0 auto; }
.hifox-pricing__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
}
.hifox-pricing__toolbar-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hifox-muted);
}
.hifox-pricing__toggle {
  display: inline-flex; padding: 0.2rem; border-radius: var(--hifox-radius-pill);
  background: #e8f2ef; border: 1px solid var(--hifox-border);
  box-shadow: inset 0 1px 2px rgba(var(--hifox-deep-rgb), 0.06);
}
.hifox-pricing__toggle-btn {
  font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; border-radius: var(--hifox-radius-pill);
  padding: 0.5rem 1.35rem; background: transparent; color: var(--hifox-muted);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.hifox-pricing__toggle-btn:hover { color: var(--hifox-text); }
.hifox-pricing__toggle-btn.is-active {
  background: var(--hifox-surface); color: var(--hifox-primary); box-shadow: var(--hifox-shadow-sm);
}
.hifox-pricing__hint {
  text-align: center; font-size: 0.88rem; color: var(--hifox-muted); max-width: 42rem; margin: -0.5rem auto 1.5rem; line-height: 1.5;
}
.hifox-pricing__grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .hifox-pricing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hifox-pricing__grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
}
.hifox-price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--hifox-surface); border: 1px solid var(--hifox-border); border-radius: var(--hifox-radius);
  padding: 1.35rem 1.25rem 1.5rem; box-shadow: var(--hifox-shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hifox-price-card:hover { border-color: color-mix(in srgb, var(--hifox-primary) 35%, var(--hifox-border)); }
.hifox-price-card--featured {
  border-color: color-mix(in srgb, var(--hifox-primary) 45%, var(--hifox-border));
  box-shadow: 0 12px 36px rgba(var(--hifox-primary-rgb), 0.12);
}
@media (min-width: 1024px) {
  .hifox-price-card--featured { transform: translateY(-4px); }
}
.hifox-price-card__badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem; border-radius: 6px;
  background: linear-gradient(135deg, var(--hifox-primary) 0%, var(--hifox-accent) 100%); color: #fff;
}
.hifox-price-card__head { margin-bottom: 0.75rem; padding-right: 4rem; }
.hifox-price-card--custom .hifox-price-card__head { padding-right: 0; }
.hifox-price-card__name { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--hifox-ink); letter-spacing: -0.02em; }
.hifox-price-card__tagline { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--hifox-muted); line-height: 1.4; }
.hifox-price-card__price-block { min-height: 0; margin-bottom: 1rem; }
.hifox-price-card__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.35rem; }
.hifox-price-card__amount.is-hidden { display: none !important; }
.hifox-price-card__lifetime-stack {
  display: flex; flex-direction: column; gap: 0.65rem; padding-top: 0.15rem;
}
.hifox-price-card__lifetime-stack.is-hidden { display: none !important; }
.hifox-price-card__line {
  display: flex; flex-direction: column; gap: 0.2rem; align-items: flex-start;
}
.hifox-price-card__line-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hifox-muted);
}
.hifox-price-card__line-sub { font-weight: 500; text-transform: none; letter-spacing: 0; }
.hifox-price-card__line-value { font-size: 1.35rem; font-weight: 800; color: var(--hifox-primary); letter-spacing: -0.02em; }
.hifox-price-card__line-value--sm { font-size: 1.05rem; font-weight: 700; color: var(--hifox-text); }
.hifox-price-card__line--recurring {
  padding-top: 0.55rem; margin-top: 0.15rem; border-top: 1px dashed var(--hifox-border);
}
.hifox-price-card__currency { font-size: 0.8rem; font-weight: 600; color: var(--hifox-muted); }
.hifox-price-card__value { font-size: 1.65rem; font-weight: 800; color: var(--hifox-primary); letter-spacing: -0.03em; }
.hifox-price-card__value--custom { font-size: 1.35rem; }
.hifox-price-card__period { font-size: 0.8rem; color: var(--hifox-muted); width: 100%; margin-top: 0.1rem; }
.hifox-price-card__features {
  list-style: none; margin: 0 0 1.25rem; padding: 0; flex: 1; font-size: 0.88rem; color: var(--hifox-text);
}
.hifox-price-card__features li {
  padding: 0.35rem 0 0.35rem 1.15rem; position: relative; border-bottom: 1px dashed rgba(var(--hifox-deep-rgb), 0.06);
}
.hifox-price-card__features li:last-child { border-bottom: none; }
.hifox-price-card__features li::before {
  content: ""; position: absolute; left: 0; top: 0.65rem; width: 6px; height: 6px; border-radius: 50%;
  background: var(--hifox-primary-light);
}
.hifox-price-card .btn--block { margin-top: auto; }
.hifox-price-card--featured .btn--primary {
  background: var(--hifox-primary); color: #fff; border: 2px solid transparent;
}
.hifox-price-card--featured .btn--primary:hover { filter: brightness(1.06); }
.hifox-price-card__features--compact { margin-bottom: 0.85rem; }
.hifox-price-card__features--compact li { border-bottom: none; padding-top: 0.25rem; padding-bottom: 0.25rem; }

.hifox-features-summary-wrap {
  max-width: 1120px; margin: 2.5rem auto 0; padding: 0 1.25rem;
}
.hifox-features-summary__title {
  font-size: 1.35rem; font-weight: 800; color: var(--hifox-primary); margin: 0 0 0.35rem; letter-spacing: -0.02em;
}
.hifox-features-summary__intro {
  margin: 0 0 1rem; font-size: 0.95rem; color: var(--hifox-muted); max-width: 52ch;
}
.hifox-features-summary__table-wrap { margin-top: 0.25rem; }
.hifox-features-summary.compare-table th,
.hifox-features-summary.compare-table td {
  vertical-align: top; text-align: left;
}
.hifox-features-summary.compare-table td:not(.label) { font-size: 0.92rem; }
@media (max-width: 719px) {
  .hifox-features-summary.compare-table thead { display: none; }
  .hifox-features-summary.compare-table tr {
    display: block; border: 1px solid var(--hifox-border); border-radius: var(--hifox-radius);
    margin-bottom: 0.75rem; padding: 0.75rem; background: var(--hifox-surface);
  }
  .hifox-features-summary.compare-table td {
    display: block; border: none; padding: 0.35rem 0;
  }
  .hifox-features-summary.compare-table td.label {
    font-size: 1rem; font-weight: 800; color: var(--hifox-primary); padding-bottom: 0.25rem;
  }
  .hifox-features-summary.compare-table td::before {
    display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hifox-muted); margin-bottom: 0.15rem;
  }
  .hifox-features-summary.compare-table tr td:nth-child(1)::before { content: "Category"; }
  .hifox-features-summary.compare-table tr td:nth-child(2)::before { content: "Key features"; }
  .hifox-features-summary.compare-table tr td:nth-child(3)::before { content: "Benefit"; }
}
