/* ==========================================================================
   HostElevate Smart Order — order page, quick cart and dialogs.
   Colours, radius and font come from the client theme (--nx-* variables set in
   Addons > HostElevate Theme), with fallbacks for other themes. Same rules as the
   client area: white cards, thin borders, ink text, brand colour only on the
   main action.
   ========================================================================== */

.heo, .heo-qc, .heo-modal, .heo-toast, .heo-mbar {
    --h-card: var(--nx-card-bg, #FFFFFF);
    --h-bg: var(--nx-bg, #FFFFFF);
    --h-ink: var(--nx-text, #14201B);
    --h-muted: var(--nx-muted, #5B6B64);
    --h-line: var(--nx-border, #E7EBE9);
    --h-line-strong: color-mix(in srgb, var(--h-line) 55%, var(--h-ink));
    --h-soft: var(--nx-primary-light, #F2F6F4);
    --h-hover: var(--he-hover, #F7F9F8);
    --h-primary: var(--nx-btn-primary, var(--nx-primary, #064E3B));
    --h-primary-hover: var(--nx-btn-primary-hover, #053D2F);
    --h-on-primary: var(--nx-btn-primary-text, #FFFFFF);
    --h-sel: var(--h-ink);
    --h-ok: var(--nx-success, #15803D);
    --h-bad: var(--nx-danger, #B42318);
    --h-warn: var(--nx-warning, #B45309);
    --h-accent: var(--nx-accent, #F59E0B);
    --h-r: var(--nx-radius-card, 12px);
    --h-rb: var(--nx-radius-button, 8px);
    --h-ri: var(--nx-radius-input, 8px);
    --h-rbadge: var(--nx-radius-badge, 999px);
    --h-font: var(--nx-font-family, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    --h-shadow: 0 1px 2px rgba(16, 24, 20, .04);
    --h-focus: 0 0 0 3px color-mix(in srgb, var(--h-ink) 16%, transparent);
    color: var(--h-ink);
    font-family: var(--h-font);
}
.heo *, .heo *::before, .heo *::after,
.heo-qc *, .heo-qc *::before, .heo-qc *::after,
.heo-modal *, .heo-mbar * { box-sizing: border-box; }
.heo [hidden], .heo-qc [hidden], .heo-mbar[hidden] { display: none !important; }
.heo h1, .heo h2, .heo h3, .heo p, .heo ul, .heo dl, .heo dd,
.heo-qc h2, .heo-qc p, .heo-qc ul, .heo-qc dl, .heo-qc dd { margin: 0; }
.heo ul, .heo-qc ul { padding: 0; list-style: none; }
.heo button, .heo-qc button, .heo-modal button, .heo-mbar button { font-family: inherit; }
.heo-ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.heo-ico.is-sm { width: 17px; height: 17px; }
.heo-ico.is-xs { width: 14px; height: 14px; }
.heo-ico.is-lg { width: 34px; height: 34px; }
.heo-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.heo-muted { color: var(--h-muted); }
.heo-small { font-size: 12.5px; }
html.heo-noscroll, html.heo-noscroll body { overflow: hidden; }

/* ---------- Page head ---------- */
.heo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 4px 0 20px; }
.heo-head-text { min-width: 0; }
.heo-title {
    font-size: var(--nx-font-size-h1, 28px); font-weight: var(--nx-weight-page-title, 700); letter-spacing: -.02em;
    line-height: 1.15; color: var(--h-ink); margin: 0 0 6px !important;
}
.heo-crumbs { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--h-muted); }
.heo-crumbs a { color: var(--h-muted); text-decoration: none; }
.heo-crumbs a:hover { color: var(--h-ink); }
.heo-crumbs [aria-current] { color: var(--h-ink); }
.heo-crumb-sep { margin: 0 6px; color: color-mix(in srgb, var(--h-muted) 50%, transparent); }
.heo-tools { display: flex; align-items: center; gap: 8px; }
.heo-tools-inline { justify-content: flex-end; margin: 0 0 14px; }
.heo-currency-wrap { position: relative; display: inline-flex; align-items: center; margin: 0; }
.heo-currency {
    appearance: none; -webkit-appearance: none; height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--h-line); border-radius: var(--h-rb);
    background: var(--h-card); color: var(--h-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.heo-currency-wrap .heo-ico { position: absolute; right: 10px; pointer-events: none; color: var(--h-muted); }
.heo-cartbtn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 12px; border: 1px solid var(--h-line);
    border-radius: var(--h-rb); background: var(--h-card); color: var(--h-ink) !important; font-size: 13.5px; font-weight: 600;
    text-decoration: none !important; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.heo-cartbtn:hover { border-color: var(--h-line-strong); background: var(--h-hover); }
.heo-cartbtn-count {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--h-ink); color: var(--h-card);
    font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.heo-cartbtn-count.is-zero { background: var(--h-soft); color: var(--h-muted); }
.heo-alert { padding: 12px 16px; border-radius: var(--h-r); background: color-mix(in srgb, var(--h-bad) 8%, var(--h-card)); color: var(--h-bad); margin: 0 0 16px; }
.heo-alert a { color: inherit; font-weight: 600; }

/* ---------- Promo bar ---------- */
.heo-promobar {
    display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 11px 16px; margin: 0 0 16px;
    border: 1px solid color-mix(in srgb, var(--h-accent) 35%, var(--h-line)); border-radius: var(--h-r);
    background: color-mix(in srgb, var(--h-accent) 8%, var(--h-card)); font-size: 14px;
}
.heo-promobar-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--h-accent) 18%, var(--h-card)); color: color-mix(in srgb, var(--h-accent) 55%, var(--h-ink)); flex: none; }
.heo-promobar-text { flex: 1 1 260px; min-width: 0; }
.heo-code {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 2px; padding: 2px 8px; border: 1px dashed color-mix(in srgb, var(--h-accent) 60%, var(--h-ink));
    border-radius: 6px; background: var(--h-card); color: var(--h-ink); font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; cursor: pointer; vertical-align: baseline;
}
.heo-code:hover { background: var(--h-hover); }
.heo-countdown { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--h-muted); }
.heo-countdown-time { font: 700 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--h-ink); }

/* ---------- Tabs ---------- */
.heo-tabs { margin: 0 0 20px; }
.heo-tabs-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.heo-tabs-list::-webkit-scrollbar { display: none; }
.heo-tab {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 10px; border: 1px solid var(--h-line);
    border-radius: 999px; background: var(--h-card); color: var(--h-ink); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.heo-tab:hover { border-color: var(--h-line-strong); }
.heo-tab:focus-visible { outline: none; box-shadow: var(--h-focus); }
.heo-tab-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--h-soft); color: var(--h-ink); }
.heo-tab-ico .heo-ico { width: 16px; height: 16px; }
.heo-tab.is-active { background: var(--h-ink); border-color: var(--h-ink); color: var(--h-card); }
.heo-tab.is-active .heo-tab-ico { background: color-mix(in srgb, var(--h-card) 16%, transparent); color: var(--h-card); }
.heo-tabs.is-underline .heo-tabs-list { gap: 0; border-bottom: 1px solid var(--h-line); padding: 0; }
.heo-tabs.is-underline .heo-tab { border: 0; border-radius: 0; background: transparent; color: var(--h-muted); height: 46px; padding: 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.heo-tabs.is-underline .heo-tab-ico { background: transparent; width: auto; height: auto; }
.heo-tabs.is-underline .heo-tab.is-active { color: var(--h-ink); border-bottom-color: var(--h-ink); background: transparent; }
.heo-tabs.is-underline .heo-tab.is-active .heo-tab-ico { background: transparent; color: var(--h-ink); }

/* ---------- Layout ---------- */
.heo-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: -4px 0 16px; color: var(--h-muted); font-size: 14.5px; }
.heo-intro strong { color: var(--h-ink); font-weight: 650; }
.heo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.heo-main { display: grid; gap: 16px; min-width: 0; counter-reset: heosec; }
.heo-parts, .heo-options { display: grid; gap: 16px; min-width: 0; }
.heo-aside { min-width: 0; }
.heo-aside.is-sticky { position: sticky; top: calc(var(--nx-header-offset, 0px) + 16px); }

/* ---------- Sections ---------- */
.heo-sec {
    background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-r); padding: 20px 22px 22px;
    min-width: 0; box-shadow: var(--h-shadow);
}
.heo-sec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.heo-sec-title { font-size: 16.5px !important; font-weight: 700 !important; letter-spacing: -.01em; margin: 0 !important; flex: 1 1 auto; min-width: 0; color: var(--h-ink); }
.heo-sec-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--h-soft); display: grid; place-items: center; color: var(--h-ink); flex: none; }
.heo-sec-ico .heo-ico { width: 18px; height: 18px; }
.heo-sec-num { display: none; }
.heo-main.is-numbered .heo-sec:not([hidden]) { counter-increment: heosec; }
.heo-main.is-numbered .heo-sec-num {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--h-line-strong);
    font-size: 12.5px; font-weight: 700; color: var(--h-ink); flex: none;
}
.heo-main.is-numbered .heo-sec-num::before { content: counter(heosec); }
.heo-main.is-numbered .heo-sec-num + .heo-sec-ico { display: none; }
.heo-sec-body { display: grid; gap: 16px; min-width: 0; }
.heo-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--h-r); background: var(--h-soft); color: var(--h-ink); font-size: 14px; }
.heo-note-edit { margin: 0 0 16px; }

/* Generic selected card */
.heo-plan, .heo-plan-row, .heo-cycle, .heo-choice, .heo-addon, .heo-list-row, .heo-toggle, .heo-seg-btn {
    position: relative; background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-r); cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; outline: none; color: var(--h-ink);
}
.heo-plan:hover, .heo-plan-row:hover, .heo-cycle:hover, .heo-choice:hover, .heo-addon:hover, .heo-list-row:hover, .heo-toggle:hover, .heo-seg-btn:hover { border-color: var(--h-line-strong); }
.heo-plan:focus-visible, .heo-plan-row:focus-visible, .heo-cycle:focus-visible, .heo-choice:focus-visible, .heo-addon:focus-visible,
.heo-list-row:focus-visible, .heo-toggle:focus-visible, .heo-seg-btn:focus-visible { box-shadow: var(--h-focus); }
.heo-plan.is-selected, .heo-plan-row.is-selected, .heo-cycle.is-selected, .heo-choice.is-selected, .heo-addon.is-selected,
.heo-list-row.is-selected, .heo-seg-btn.is-selected {
    border-color: var(--h-sel); box-shadow: inset 0 0 0 1px var(--h-sel);
}
.is-disabled { cursor: not-allowed !important; opacity: .55; }
.heo-tick {
    width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--h-line-strong); display: grid; place-items: center;
    color: transparent; flex: none; margin-left: auto; transition: background .15s ease, border-color .15s ease;
}
.is-selected > .heo-tick, .is-selected > * > .heo-tick { background: var(--h-sel); border-color: var(--h-sel); color: var(--h-card); }

/* ---------- Plans ---------- */
.heo-slider-nav { display: inline-flex; gap: 6px; }
.heo-icon-btn {
    width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--h-line); border-radius: 50%;
    background: var(--h-card); color: var(--h-ink); cursor: pointer; padding: 0;
}
.heo-icon-btn:hover:not(:disabled) { background: var(--h-hover); border-color: var(--h-line-strong); }
.heo-icon-btn:disabled { opacity: .35; cursor: default; }
.heo-plans { display: grid; gap: 16px; }
.heo-plans.is-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.heo-plans.is-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.heo-plans.is-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.heo-plans.is-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.heo-plans.is-slider {
    grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 32px) / 3)); overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: 3px; margin: -3px;
}
.heo-plans.is-slider::-webkit-scrollbar { display: none; }
.heo-plans.is-slider > * { scroll-snap-align: start; }
.heo-plan { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; min-width: 0; }
.heo-plan.is-featured { border-color: var(--h-line-strong); }
.heo-plan-badge {
    position: absolute; top: -1px; right: 16px; transform: translateY(-50%); padding: 3px 10px; border-radius: var(--h-rbadge);
    background: var(--h-ink); color: var(--h-card); font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.heo-plans.is-slider .heo-plan-badge { position: static; transform: none; align-self: flex-start; margin: -4px 0 -6px; }
.heo-plan-top { display: flex; align-items: flex-start; gap: 12px; }
.heo-plan-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--h-soft); display: grid; place-items: center; flex: none; color: var(--plan-accent, var(--h-ink)); }
.heo-plan-img { width: 40px; height: 40px; object-fit: contain; flex: none; border-radius: 10px; }
.heo-plan-name { display: grid; gap: 2px; min-width: 0; }
.heo-plan-name strong { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.heo-plan-name > span { font-size: 13px; color: var(--h-muted); }
.heo-plan-pricewrap { display: grid; gap: 2px; }
.heo-plan-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.heo-from { font-size: 12px; color: var(--h-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.heo-amount { font-size: 26px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.heo-per { font-size: 13.5px; color: var(--h-muted); font-weight: 600; }
.heo-plan-note { font-size: 12.5px; color: var(--h-muted); }
.heo-plan-feats { display: grid; gap: 7px; font-size: 13.5px; padding-top: 14px; border-top: 1px dashed var(--h-line); }
.heo-plan-feats li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.heo-plan-feats .heo-ico { color: var(--h-ok); margin-top: 1px; }
.heo-plan-feats strong { font-weight: 700; }
.heo-plan-text { font-size: 13.5px; color: var(--h-muted); }
.heo-plan-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.heo-plan-foot .heo-pick-btn { margin-left: auto; }
.heo-stock { font-size: 12px; font-weight: 600; color: var(--h-warn); }
.heo-stock.is-out { color: var(--h-bad); }
.heo-plans-rows { display: grid; gap: 10px; }
.heo-plan-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.heo-plan-row-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.heo-plan-row .heo-plan-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.heo-plan-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--h-muted); }
.heo-plan-specs strong { color: var(--h-ink); font-weight: 650; }
.heo-plan-row .heo-plan-pricewrap { text-align: right; justify-items: end; }
.heo-plan-row .heo-amount { font-size: 22px; }

/* ---------- Radio, checkbox, switch marks ---------- */
.heo-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--h-line-strong); flex: none; position: relative; transition: border-color .15s ease; }
.is-selected > .heo-radio { border-color: var(--h-sel); }
.is-selected > .heo-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--h-sel); }
.heo-checkbox { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--h-line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.is-selected .heo-checkbox { background: var(--h-sel); border-color: var(--h-sel); color: var(--h-card); }
.heo-switch { width: 40px; height: 24px; border-radius: 999px; background: var(--h-line-strong); position: relative; flex: none; transition: background .15s ease; }
.heo-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease; }
.is-selected > .heo-switch { background: var(--h-sel); }
.is-selected > .heo-switch::after { transform: translateX(16px); }

/* ---------- Buttons ---------- */
.heo-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--h-rb);
    border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: var(--nx-weight-button, 600); line-height: 1.2; cursor: pointer;
    text-decoration: none !important; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.heo-btn:focus-visible { outline: none; box-shadow: var(--h-focus); }
.heo-btn:disabled { opacity: .6; cursor: not-allowed; }
.heo-btn-primary { background: var(--h-primary); border-color: var(--h-primary); color: var(--h-on-primary) !important; }
.heo-btn-primary:hover:not(:disabled) { background: var(--h-primary-hover); border-color: var(--h-primary-hover); }
.heo-btn-dark { background: var(--h-ink); border-color: var(--h-ink); color: var(--h-card) !important; }
.heo-btn-dark:hover:not(:disabled) { background: color-mix(in srgb, var(--h-ink) 85%, var(--h-card)); }
.heo-btn-ghost { background: var(--h-card); border-color: var(--h-line); color: var(--h-ink) !important; }
.heo-btn-ghost:hover:not(:disabled) { border-color: var(--h-line-strong); background: var(--h-hover); }
.heo-btn-soft { background: var(--h-soft); border-color: transparent; color: var(--h-ink) !important; }
.heo-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.heo-btn-lg { min-height: 50px; font-size: 15px; }
.heo-btn-block { width: 100%; }
.heo-link { background: none; border: 0; padding: 0; color: var(--h-ink); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.heo-link:hover { color: color-mix(in srgb, var(--h-ink) 75%, transparent); }
.heo-link.is-danger { color: var(--h-bad); }
.heo-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--h-rbadge); background: var(--h-soft); color: var(--h-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.heo-chip-ok { background: color-mix(in srgb, var(--h-ok) 12%, var(--h-card)); color: var(--h-ok); }

/* ---------- Billing cycles ---------- */
.heo-cycles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.heo-cycle { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.heo-cycle-top { display: flex; align-items: center; gap: 8px; }
.heo-cycle-name { font-size: 14.5px; font-weight: 700; }
.heo-save { padding: 2px 8px; border-radius: var(--h-rbadge); background: color-mix(in srgb, var(--h-ok) 12%, var(--h-card)); color: var(--h-ok); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.heo-cycle-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.heo-cycle-price .heo-amount { font-size: 22px; }
.heo-strike { color: var(--h-muted); font-size: 13.5px; }
.heo-cycle-sub { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--h-muted); }
.heo-cycle-sub .heo-chip { align-self: flex-start; }
.heo-setup { color: var(--h-muted); }
.heo-cycles.has-buttons .heo-pick-btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Options ---------- */
.heo-opt { display: grid; gap: 10px; min-width: 0; }
.heo-opt + .heo-opt { padding-top: 16px; border-top: 1px dashed var(--h-line); }
.heo-opt-head { display: flex; align-items: center; gap: 8px; }
.heo-opt-label { font-weight: 650; font-size: 14px; }
.heo-opt-ico { color: var(--opt-accent, var(--h-muted)); display: inline-grid; }
.heo-opt-desc { font-size: 13px; color: var(--h-muted); margin-top: -4px !important; }
.heo-tip { position: relative; display: inline-grid; place-items: center; color: var(--h-muted); cursor: help; outline: none; }
.heo-tip::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 260px;
    padding: 8px 10px; border-radius: 8px; background: var(--h-ink); color: var(--h-card); font-size: 12.5px; font-weight: 500; line-height: 1.4;
    opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 5; white-space: normal;
}
.heo-tip:hover::after, .heo-tip:focus::after { opacity: 1; }
.heo-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.heo-choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.heo-choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.heo-choices.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.heo-choices.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.heo-choices.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.heo-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-width: 0; }
.heo-choice-main { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.heo-choice-main strong { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.heo-choice-main small { font-size: 12px; color: var(--h-muted); }
.heo-choice .heo-tick { margin-left: 0; }
.heo-choice-price { font-size: 12.5px; font-weight: 650; color: var(--h-muted); white-space: nowrap; display: grid; justify-items: end; }
.heo-choice-price small { font-weight: 500; }
.heo-choice-main .heo-choice-price { justify-items: start; color: var(--h-ink); font-size: 12.5px; margin-top: 3px; white-space: normal; }
.heo-choice-main .heo-choice-price small { color: var(--h-muted); }
.heo-choice-main strong { white-space: nowrap; }
.heo-mark {
    --mark: var(--h-ink); width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
    background: color-mix(in srgb, var(--mark) 12%, var(--h-card)); color: var(--mark); font-weight: 800; font-size: 15px;
}
.heo-mark-icon { background: var(--h-soft); color: var(--h-ink); }
.heo-mark-icon .heo-ico { width: 18px; height: 18px; }
.heo-mark-img { width: 34px; height: 34px; object-fit: contain; flex: none; border-radius: 8px; }
.heo-flag-wrap { position: relative; width: 30px; height: 22px; flex: none; display: inline-grid; place-items: center; }
.heo-flag-code { font-size: 10.5px; font-weight: 800; color: var(--h-muted); background: var(--h-soft); border-radius: 5px; padding: 2px 4px; letter-spacing: .02em; }
.heo-flag { position: absolute; inset: 0; width: 30px; height: 22px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.heo-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.heo-filter-btn {
    height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--h-line); background: var(--h-card); color: var(--h-muted);
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.heo-filter-btn:hover { color: var(--h-ink); border-color: var(--h-line-strong); }
.heo-filter-btn.is-on { background: var(--h-ink); border-color: var(--h-ink); color: var(--h-card); }
.heo-places, .heo-images { display: grid; gap: 12px; }
.heo-image-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.heo-image { flex-direction: column; align-items: stretch; gap: 10px; }
.heo-image-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.heo-image-head strong { font-size: 14px; font-weight: 650; flex: 1 1 auto; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.heo-image-version { font-size: 12.5px; color: var(--h-muted); min-height: 34px; display: flex; align-items: center; }
.heo-image .heo-choice-price { justify-items: start; }
.heo-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.heo-seg-btn { display: grid; justify-items: center; gap: 2px; min-width: 84px; padding: 10px 14px; text-align: center; border-radius: var(--h-rb); }
.heo-seg-btn strong { font-size: 14px; font-weight: 650; }
.heo-seg-btn small { font-size: 11.5px; color: var(--h-muted); }
.heo-seg-domain .heo-seg-btn { min-width: 0; flex: 1 1 150px; padding: 11px 12px; }
.heo-seg-domain .heo-seg-btn strong { font-size: 13.5px; }
.heo-list { display: grid; border: 1px solid var(--h-line); border-radius: var(--h-r); overflow: hidden; }
.heo-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 0; border-bottom: 1px solid var(--h-line); }
.heo-list-row:last-child { border-bottom: 0; }
.heo-list-row.is-selected { background: var(--h-soft); box-shadow: none; }
.heo-list-label { flex: 1 1 auto; font-size: 14px; font-weight: 600; min-width: 0; display: grid; }
.heo-list-label small { font-weight: 400; color: var(--h-muted); font-size: 12px; }
.heo-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.heo-toggle.is-selected { border-color: var(--h-line-strong); }
.heo-toggle-label { flex: 1 1 auto; display: grid; min-width: 0; }
.heo-toggle-label strong { font-size: 14px; font-weight: 650; }
.heo-toggle-label small { font-size: 12px; color: var(--h-muted); }
.heo-stepper-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.heo-stepper { display: inline-flex; align-items: center; border: 1px solid var(--h-line); border-radius: var(--h-rb); background: var(--h-card); overflow: hidden; }
.heo-step { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--h-ink); cursor: pointer; }
.heo-step:hover:not(:disabled) { background: var(--h-hover); }
.heo-step:disabled { opacity: .35; cursor: default; }
.heo-stepper .heo-qty-input { width: 64px; height: 40px; border: 0; border-left: 1px solid var(--h-line); border-right: 1px solid var(--h-line); border-radius: 0; text-align: center; -moz-appearance: textfield; padding: 0 4px; }
.heo-stepper .heo-qty-input::-webkit-inner-spin-button, .heo-stepper .heo-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.heo-stepper-unit { display: grid; font-size: 13.5px; font-weight: 600; }
.heo-stepper-unit small { font-weight: 500; color: var(--h-muted); font-size: 12.5px; }
.heo-stepper.is-sm .heo-step { width: 30px; height: 30px; }
.heo-qty-val { min-width: 30px; text-align: center; font-size: 13px; font-weight: 700; }
.heo-slider-row { display: grid; gap: 8px; }
.heo-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--h-ink) var(--fill, 0%), var(--h-line) var(--fill, 0%)); outline: none; }
.heo-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--h-card); border: 2px solid var(--h-ink); cursor: grab; }
.heo-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--h-card); border: 2px solid var(--h-ink); cursor: grab; }
.heo-range:focus-visible::-webkit-slider-thumb { box-shadow: var(--h-focus); }
.heo-slider-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.heo-slider-val { font-weight: 700; }

/* ---------- Inputs ---------- */
.heo-input {
    display: block; width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--h-line-strong); border-radius: var(--h-ri);
    background: var(--h-card); color: var(--h-ink); font: inherit; font-size: 14.5px; min-width: 0; box-shadow: none;
}
textarea.heo-input { height: auto; padding: 10px 12px; resize: vertical; }
.heo-input:focus { outline: none; border-color: var(--h-ink); box-shadow: var(--h-focus); }
.heo-input-sm { height: 36px; font-size: 13.5px; }
.heo-select-wrap { position: relative; display: block; margin: 0; min-width: 0; }
.heo-select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; }
.heo-select-wrap .heo-ico { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--h-muted); }
.heo-select-wrap.is-sm select { height: 36px; font-size: 13.5px; }
.heo-input-group { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.heo-input-group > .heo-input, .heo-input-group > .heo-grow { flex: 1 1 auto; }
.heo-input-group > .heo-btn { flex: none; min-height: 44px; }
.heo-tld-wrap { flex: 0 0 150px; }
.heo-input-group.is-lg { position: relative; }
.heo-input-group.is-lg .heo-input { height: 54px; font-size: 16px; padding-left: 44px; }
.heo-input-group.is-lg .heo-tld-wrap .heo-input { padding-left: 12px; }
.heo-input-group.is-lg .heo-btn { min-height: 54px; padding: 0 26px; font-size: 15px; }
.heo-input-ico { position: absolute; left: 14px; top: 17px; color: var(--h-muted); pointer-events: none; z-index: 1; }
.heo-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.heo-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.heo-field > label { font-size: 13.5px; font-weight: 650; margin: 0; }
.heo-req { color: var(--h-bad); }
.heo-help { font-size: 12.5px; color: var(--h-muted); }
.heo-field.has-error .heo-input { border-color: var(--h-bad); }
.heo-field-error { color: var(--h-bad); font-size: 13px; font-weight: 600; margin: 0 !important; }
.heo-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; margin: 0; cursor: pointer; font-weight: 500; }
.heo-check input { width: 18px; height: 18px; accent-color: var(--h-ink); margin: 0; }
.heo-pw { display: grid; gap: 8px; }
.heo-pw-row { display: flex; align-items: center; gap: 10px; }
.heo-pw-meter { display: inline-grid; grid-template-columns: repeat(4, 28px); gap: 4px; }
.heo-pw-meter i { height: 4px; border-radius: 2px; background: var(--h-line); }
.heo-pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--h-bad); }
.heo-pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--h-warn); }
.heo-pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--h-ok); }
.heo-pw-meter[data-score="4"] i { background: var(--h-ok); }
.heo-pw-text { font-size: 12px; color: var(--h-muted); }

/* ---------- Domain ---------- */
.heo-domain-form { display: grid; gap: 12px; }
.heo-epp { max-width: 420px; }
.heo-domain-result:empty { display: none; }
.heo-dr {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--h-r);
    border: 1px solid var(--h-line); background: var(--h-card); font-size: 14px;
}
.heo-dr.is-big { padding: 16px 18px; }
.heo-dr-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.heo-dr-ico .heo-ico { width: 16px; height: 16px; }
.heo-dr.is-ok { border-color: color-mix(in srgb, var(--h-ok) 35%, var(--h-line)); background: color-mix(in srgb, var(--h-ok) 5%, var(--h-card)); }
.heo-dr.is-ok .heo-dr-ico { background: var(--h-ok); color: #fff; }
.heo-dr.is-bad { border-color: color-mix(in srgb, var(--h-bad) 30%, var(--h-line)); background: color-mix(in srgb, var(--h-bad) 4%, var(--h-card)); }
.heo-dr.is-bad .heo-dr-ico { background: color-mix(in srgb, var(--h-bad) 14%, var(--h-card)); color: var(--h-bad); }
.heo-dr.is-warn .heo-dr-ico { background: color-mix(in srgb, var(--h-warn) 14%, var(--h-card)); color: var(--h-warn); }
.heo-dr.is-wait { color: var(--h-muted); }
.heo-dr-text { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.heo-dr-text strong { font-weight: 650; overflow-wrap: anywhere; }
.heo-dr-text small { color: var(--h-muted); font-size: 12.5px; }
.heo-dr-price { font-weight: 750; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.heo-dr-price small { font-weight: 500; font-size: 12.5px; color: var(--h-muted); }
.heo-dr-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.heo-dr .heo-select-wrap { flex: 0 0 auto; }
.heo-free-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--h-ok); font-weight: 600; }
.heo-alt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.heo-alt-title { font-size: 12.5px; color: var(--h-muted); font-weight: 600; margin-right: 4px; }
.heo-alt-item {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--h-line); border-radius: var(--h-rb);
    background: var(--h-card); color: var(--h-ink); font-size: 13px; cursor: pointer;
}
.heo-alt-item:hover { border-color: var(--h-line-strong); }
.heo-alt-item span { color: var(--h-muted); }
.heo-alt-item em { font-style: normal; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Add-ons ---------- */
.heo-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.heo-addon { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.heo-addon.is-selected { background: color-mix(in srgb, var(--h-soft) 55%, var(--h-card)); }
.heo-addon-art { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; overflow: hidden; }
.heo-addon-art.is-icon { background: var(--h-soft); color: var(--addon-accent, var(--h-ink)); }
.heo-addon-art img { width: 100%; height: 100%; object-fit: cover; }
.heo-addon.is-circle .heo-addon-art { border-radius: 50%; }
.heo-addon.is-square .heo-addon-art img { object-fit: contain; }
.heo-addon.is-wide { flex-wrap: wrap; }
.heo-addon.is-wide .heo-addon-art { width: 100%; height: 90px; flex-basis: 100%; }
.heo-addon-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.heo-addon-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.heo-addon-title strong { font-size: 14px; font-weight: 650; }
.heo-addon-main small { font-size: 12.5px; color: var(--h-muted); line-height: 1.4; }
.heo-addon-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.heo-addon-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.heo-addon-side small { font-size: 11.5px; color: var(--h-muted); }

/* ---------- Promo ---------- */
.heo-promo { display: grid; gap: 8px; }
.heo-promo .heo-input { height: 40px; text-transform: uppercase; }
.heo-promo .heo-input::placeholder { text-transform: none; }
.heo-promo .heo-btn { min-height: 40px; }
.heo-promo-applied { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--h-rb); background: color-mix(in srgb, var(--h-ok) 8%, var(--h-card)); color: var(--h-ok); font-size: 13.5px; font-weight: 600; }
.heo-promo-applied span { flex: 1 1 auto; }
.heo-promo-applied .heo-link { color: var(--h-ink); font-size: 12.5px; }
.heo-promo-toggle { margin-top: 2px; font-size: 13px; }

/* ---------- Summary ---------- */
.heo-summary {
    background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-r); padding: 20px; display: grid; gap: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 8px 24px -16px rgba(16, 24, 20, .12);
}
.heo-summary-head h2 { font-size: 16px !important; font-weight: 700 !important; margin: 0 !important; color: var(--h-ink); }
.heo-sum-plan { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: calc(var(--h-r) - 4px); background: var(--h-soft); }
.heo-sum-plan > div { display: grid; gap: 1px; min-width: 0; }
.heo-sum-plan strong { font-size: 15px; font-weight: 700; }
.heo-sum-plan .heo-muted { font-size: 12.5px; }
.heo-sum-plan-price { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.heo-sum-cycle { display: grid; gap: 6px; font-size: 13px; }
.heo-sum-list { display: grid; gap: 8px; padding: 2px 0; }
.heo-sum-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 13.5px; }
.heo-sum-row dt { display: grid; gap: 1px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.heo-sum-row dt small { color: var(--h-muted); font-size: 12px; }
.heo-sum-row dd { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.heo-sum-row.is-sub { color: var(--h-muted); font-size: 13px; }
.heo-sum-row.is-sub > span:last-child { color: var(--h-ink); font-weight: 600; }
.heo-sum-row.is-discount { color: var(--h-ok); font-weight: 650; }
.heo-sum-row.is-discount > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.heo-sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--h-line); }
.heo-sum-total-label { font-size: 14px; font-weight: 650; }
.heo-sum-total-amount { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
.heo-sum-renew { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--h-muted); margin-top: -6px !important; justify-content: flex-end; }
.heo-sum-note { font-size: 12.5px; color: var(--h-muted); }
.heo-sum-foot { font-size: 12.5px; color: var(--h-muted); text-align: center; }
.heo-sum-promo { padding-top: 4px; }
.heo-sum-domains { display: grid; gap: 8px; }
.heo-sum-domains li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.heo-actions { display: grid; gap: 8px; padding-top: 4px; }
.heo-errors { padding: 12px 14px; border-radius: calc(var(--h-r) - 4px); background: color-mix(in srgb, var(--h-bad) 7%, var(--h-card)); color: var(--h-bad); font-size: 13px; }
.heo-errors ul { margin-top: 4px; padding-left: 18px; list-style: disc; display: grid; gap: 2px; }
.heo-cta { padding: 14px; border: 1px dashed var(--h-line-strong); border-radius: calc(var(--h-r) - 4px); display: grid; gap: 4px; font-size: 13.5px; }
.heo-cta .heo-link { justify-self: start; }

/* ---------- Domain tabs ---------- */
.heo-dsearch { padding: 26px; }
.heo-dsearch-head { display: grid; gap: 4px; margin-bottom: 16px; }
.heo-dsearch-head h2 { font-size: 22px !important; font-weight: 750 !important; letter-spacing: -.02em; margin: 0 !important; }
.heo-dsearch-form { display: grid; gap: 14px; }
.heo-years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.heo-dz-result { margin-top: 16px; }
.heo-dz-result:empty { display: none; }
.heo-dz-result .heo-dr-price { font-size: 18px; }
.heo-spot { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.heo-spot-card {
    position: relative; display: grid; gap: 6px; align-content: start; justify-items: start; padding: 14px; border: 1px solid var(--h-line);
    border-radius: var(--h-r); background: var(--h-card);
}
.heo-spot-card.is-clickable { cursor: pointer; }
.heo-spot-card.is-clickable:hover { border-color: var(--h-line-strong); }
.heo-spot-card.is-ok { border-color: color-mix(in srgb, var(--h-ok) 40%, var(--h-line)); }
.heo-spot-card.is-bad { opacity: .65; }
.heo-spot-tld { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.heo-spot-price { font-weight: 700; font-size: 14px; }
.heo-spot-price small { font-weight: 500; color: var(--h-muted); }
.heo-spot-card .heo-muted { font-size: 11.5px; }
.heo-tld-label { display: inline-block; padding: 1px 7px; border-radius: var(--h-rbadge); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; vertical-align: middle; }
.heo-spot-card .heo-tld-label { position: absolute; top: 10px; right: 10px; margin: 0; }
.heo-tld-label.is-hot { background: color-mix(in srgb, var(--h-bad) 12%, var(--h-card)); color: var(--h-bad); }
.heo-tld-label.is-new { background: color-mix(in srgb, var(--h-ok) 12%, var(--h-card)); color: var(--h-ok); }
.heo-tld-label.is-sale { background: color-mix(in srgb, var(--h-accent) 18%, var(--h-card)); color: color-mix(in srgb, var(--h-accent) 50%, var(--h-ink)); }
.heo-suggest { display: grid; border: 1px solid var(--h-line); border-radius: var(--h-r); overflow: hidden; }
.heo-suggest-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--h-line); }
.heo-suggest-row:last-child { border-bottom: 0; }
.heo-suggest-row strong { flex: 1 1 auto; font-weight: 650; overflow-wrap: anywhere; }
.heo-suggest-price { font-weight: 700; white-space: nowrap; }
.heo-tld-sec .heo-filter { margin-bottom: 12px; }
.heo-table-wrap { overflow-x: auto; border: 1px solid var(--h-line); border-radius: var(--h-r); }
.heo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.heo-table th { text-align: left; padding: 10px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--h-muted); background: var(--h-hover); border-bottom: 1px solid var(--h-line); white-space: nowrap; font-weight: 700; }
.heo-table td { padding: 11px 14px; border-bottom: 1px solid var(--h-line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.heo-table tr:last-child td { border-bottom: 0; }
.heo-more { margin-top: 12px; }

/* ---------- Loading, empty ---------- */
.heo-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--h-ink) 18%, transparent); border-top-color: var(--h-ink); display: inline-block; animation: heo-spin .7s linear infinite; flex: none; }
.heo-spin.is-light { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes heo-spin { to { transform: rotate(360deg); } }
.heo-skeleton { display: grid; gap: 14px; color: var(--h-muted); font-size: 14px; }
.heo-skeleton > .heo-spin { display: none; }
.heo-skel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.heo-skel-cards i, .heo-skel-lines i, .heo-skeleton-sum {
    display: block; border-radius: var(--h-r); background: linear-gradient(90deg, var(--h-hover) 0%, var(--h-soft) 50%, var(--h-hover) 100%);
    background-size: 200% 100%; animation: heo-shimmer 1.4s ease-in-out infinite;
}
.heo-skel-cards i { height: 210px; }
.heo-skel-lines { display: grid; gap: 10px; }
.heo-skel-lines i { height: 56px; }
.heo-skeleton-sum { height: 360px; border: 1px solid var(--h-line); }
@keyframes heo-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.heo-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 20px; text-align: center; color: var(--h-muted); background: var(--h-card); border: 1px dashed var(--h-line-strong); border-radius: var(--h-r); }

/* ---------- Toast ---------- */
.heo-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 10060; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--h-ink); color: var(--h-card);
    font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.18); transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px);
}
.heo-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.heo-toast .heo-link { color: var(--h-card); }

/* ---------- Mobile bar ---------- */
.heo-mbar { display: none; }

/* ---------- Quick cart ---------- */
.heo-qc { position: fixed; inset: 0; z-index: 10050; }
.heo-qc-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 14, .42); opacity: 0; transition: opacity .2s ease; }
.heo-qc-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column;
    background: var(--h-card); color: var(--h-ink); font-family: var(--h-font); box-shadow: -16px 0 40px rgba(0,0,0,.14);
    transform: translateX(100%); transition: transform .22s ease; outline: none;
}
.heo-qc.is-open .heo-qc-backdrop { opacity: 1; }
.heo-qc.is-open .heo-qc-panel { transform: translateX(0); }
.heo-qc-panel.is-busy .heo-qc-body, .heo-qc-panel.is-busy .heo-qc-foot { opacity: .55; pointer-events: none; }
.heo-qc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--h-line); }
.heo-qc-head h2 { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.heo-qc-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px; }
.heo-qc-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--h-ok) 9%, var(--h-card)); color: var(--h-ok); font-size: 13.5px; font-weight: 600; }
.heo-qc-items { display: grid; }
.heo-qc-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--h-line); }
.heo-qc-item:last-child { border-bottom: 0; }
.heo-qc-item-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.heo-qc-item-main > strong { font-size: 14.5px; font-weight: 700; }
.heo-qc-item-main > .heo-muted { font-size: 12.5px; overflow-wrap: anywhere; }
.heo-qc-details { display: grid; gap: 1px; font-size: 12px; color: var(--h-muted); margin-top: 2px !important; }
.heo-qc-item-tools { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.heo-qc-item-tools .heo-link { font-size: 12.5px; }
.heo-qc a.heo-link, .heo a.heo-link { color: var(--h-ink) !important; }
.heo-qc-item-price { display: grid; justify-items: end; align-content: start; gap: 2px; text-align: right; flex: none; max-width: 45%; }
.heo-qc-item-price strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.heo-qc-item-price small { font-size: 11.5px; color: var(--h-muted); }
.heo-qc-foot { border-top: 1px solid var(--h-line); padding: 16px 20px 18px; display: grid; gap: 12px; background: var(--h-card); }
.heo-qc-foot:empty { display: none; }
.heo-qc-totals { display: grid; gap: 6px; font-size: 13.5px; }
.heo-qc-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.heo-qc-totals dt { color: var(--h-muted); font-weight: 500; }
.heo-qc-totals dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.heo-qc-totals .is-discount dt, .heo-qc-totals .is-discount dd { color: var(--h-ok); }
.heo-qc-totals .is-total { padding-top: 8px; border-top: 1px solid var(--h-line); margin-top: 2px; }
.heo-qc-totals .is-total dt { color: var(--h-ink); font-weight: 700; }
.heo-qc-totals .is-total dd { font-size: 18px; font-weight: 800; }
.heo-qc-recurring { font-size: 12.5px; color: var(--h-muted); margin-top: -4px !important; }
.heo-qc-actions { display: grid; gap: 8px; }
.heo-qc-clear { justify-self: center; font-size: 12.5px; }
.heo-qc-state { display: grid; justify-items: center; gap: 10px; padding: 50px 10px; text-align: center; color: var(--h-muted); }

/* ---------- Dialog ---------- */
.heo-modal { position: fixed; inset: 0; z-index: 10070; display: grid; place-items: center; padding: 16px; background: rgba(10, 18, 14, .45); }
.heo-modal-box { width: min(440px, 100%); background: var(--h-card); color: var(--h-ink); border-radius: var(--h-r); padding: 22px; display: grid; gap: 12px; font-family: var(--h-font); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.heo-modal-box h2 { font-size: 17px; font-weight: 750; margin: 0; }
.heo-modal-box p { margin: 0; color: var(--h-muted); font-size: 14px; }
.heo-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .heo-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
    .heo-plans.is-slider { grid-auto-columns: minmax(230px, calc((100% - 16px) / 2)); }
}
@media (max-width: 991px) {
    .heo-layout { grid-template-columns: minmax(0, 1fr); }
    .heo-aside.is-sticky { position: static; }
    .heo-cycles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heo-plans.is-grid.cols-3, .heo-plans.is-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heo-mbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--h-card); border-top: 1px solid var(--h-line);
        box-shadow: 0 -8px 24px rgba(0,0,0,.06); transition: transform .2s ease; font-family: var(--h-font);
    }
    .heo-mbar.is-hidden { transform: translateY(110%); }
    .heo-mbar-total { display: grid; text-align: left; border: 0; background: none; padding: 0; color: var(--h-ink); cursor: pointer; }
    .heo-mbar-total small { font-size: 11.5px; color: var(--h-muted); font-weight: 600; }
    .heo-mbar-total strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
    .heo-mbar .heo-btn { min-height: 46px; }
    .heo { padding-bottom: 76px; }
    /* Sit above the theme's optional bottom tab bar */
    body.he-mobile-tabs.he-has-tabs .heo-mbar { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
}
@media (max-width: 640px) {
    .heo-sec { padding: 16px; }
    .heo-dsearch { padding: 18px 16px; }
    .heo-plans.is-slider { grid-auto-columns: minmax(250px, 84%); }
    .heo-plans.is-grid, .heo-plans.is-grid.cols-2, .heo-plans.is-grid.cols-3, .heo-plans.is-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .heo-cycles { grid-template-columns: minmax(0, 1fr); }
    .heo-choices, .heo-choices.cols-3, .heo-choices.cols-4, .heo-choices.cols-5, .heo-choices.cols-6 { grid-template-columns: minmax(0, 1fr); }
    .heo-image-grid, .heo-choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heo-form-grid { grid-template-columns: minmax(0, 1fr); }
    .heo-addons { grid-template-columns: minmax(0, 1fr); }
    .heo-input-group { flex-wrap: wrap; }
    .heo-input-group > .heo-input { flex: 1 1 100%; }
    .heo-tld-wrap { flex: 1 1 auto; }
    .heo-input-group.is-lg .heo-btn { flex: 1 1 100%; }
    .heo-input-group.is-lg .heo-tld-wrap { flex: 1 1 100%; }
    .heo-plan-row { flex-wrap: wrap; }
    .heo-plan-row .heo-plan-pricewrap { width: 100%; justify-items: start; text-align: left; padding-left: 34px; }
    .heo-head { align-items: flex-start; }
    .heo-title { font-size: calc(var(--nx-font-size-h1, 28px) * .8); }
    .heo-cartbtn-label { display: none; }
    .heo-seg-btn { flex: 1 1 calc(50% - 8px); }
    .heo-spot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heo-qc-item { flex-direction: column; gap: 8px; }
    .heo-qc-item-price { justify-items: start; text-align: left; max-width: none; grid-auto-flow: column; gap: 8px; align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) {
    .heo *, .heo-qc *, .heo-toast { transition: none !important; animation: none !important; }
}

/* ---------- Dark mode (HostElevate theme) ---------- */
html.nx-dark .heo, html.nx-dark .heo-qc, html.nx-dark .heo-modal, html.nx-dark .heo-toast, html.nx-dark .heo-mbar {
    --h-shadow: none;
    --h-line-strong: color-mix(in srgb, var(--h-line) 60%, var(--h-ink));
}
html.nx-dark .heo-summary { box-shadow: none; }
html.nx-dark .heo-switch::after { background: var(--h-card); }
html.nx-dark .heo-qc-backdrop, html.nx-dark .heo-modal { background: rgba(0, 0, 0, .6); }
html.nx-dark .heo-flag { box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

/* ---------- Other themes (Twenty-One) ---------- */
.heo-standalone { margin: 8px 0 32px; }
