:where(.h4-pro-dual-heading, .h4-pro-animated-heading) {
    margin: 0;
    color: var(--h4bs-color-text, #111827);
    font-family: var(--h4bs-font-heading, inherit);
    letter-spacing: 0;
}

.h4-pro-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--h4bs-color-primary, #1565c0);
    border-radius: var(--h4bs-button-radius, 6px);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.h4-pro-button.is-fill { background: var(--h4bs-color-primary, #1565c0); color: #fff; }
.h4-pro-button.is-outline { background: transparent; color: var(--h4bs-color-primary, #1565c0); }
.h4-pro-button.is-ghost { border-color: transparent; background: color-mix(in srgb, var(--h4bs-color-primary, #1565c0) 10%, transparent); color: var(--h4bs-color-primary, #1565c0); }
.h4-pro-button.is-underline { min-height: auto; padding: 4px 0; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; color: var(--h4bs-color-primary, #1565c0); }
.h4-pro-button:hover { transform: translateY(-1px); }
.h4-pro-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--h4bs-color-accent, #f97316) 65%, #fff); outline-offset: 2px; }

.h4-pro-feature-list,
.h4-pro-icon-list,
.h4-pro-timeline {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.h4-pro-feature-list li,
.h4-pro-icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.h4-pro-feature-list li > span,
.h4-pro-icon-list li > span {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--h4bs-color-primary, #1565c0) 14%, #fff);
    color: var(--h4bs-color-primary, #1565c0);
}

.h4-pro-feature-list strong,
.h4-pro-feature-list p { display: block; margin: 0; }
.h4-pro-feature-list p { margin-top: 3px; color: color-mix(in srgb, var(--h4bs-color-text, #111827) 72%, transparent); }

.h4-pro-image-box,
.h4-pro-team-member,
.h4-pro-testimonial,
.h4-pro-price-menu article {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--h4bs-color-text, #111827) 15%, transparent);
    border-radius: var(--h4bs-card-radius, 8px);
    background: var(--h4bs-color-surface, #fff);
    color: var(--h4bs-color-text, #111827);
}

.h4-pro-image-box img,
.h4-pro-image-box .h4-pro-media-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: color-mix(in srgb, var(--h4bs-color-primary, #1565c0) 12%, #eef2f7);
}

.h4-pro-image-box > div { padding: 18px; }
.h4-pro-image-box h3, .h4-pro-image-box p { margin: 0; }
.h4-pro-image-box p { margin-top: 8px; }
.h4-pro-image-box a { display: inline-block; margin-top: 14px; font-weight: 700; }

.h4-pro-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--h4bs-space-grid-gap, 20px);
}

.h4-pro-team-member { padding: 18px; text-align: center; }
.h4-pro-team-member img,
.h4-pro-avatar {
    display: grid;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
    background: var(--h4bs-color-secondary, #8b5cf6);
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}
.h4-pro-team-member h3, .h4-pro-team-member p { margin: 0; }
.h4-pro-team-member p { margin-top: 5px; opacity: 0.72; }

.h4-pro-testimonial { margin: 0; padding: 20px; }
.h4-pro-testimonial blockquote { margin: 0 0 16px; font-size: 1.04rem; }
.h4-pro-testimonial figcaption { display: grid; gap: 2px; }
.h4-pro-testimonial figcaption span { opacity: 0.68; }

.h4-pro-business-hours { display: grid; gap: 0; margin: 0; }
.h4-pro-business-hours > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 13%, transparent); }
.h4-pro-business-hours dt { font-weight: 700; }
.h4-pro-business-hours dd { margin: 0; text-align: right; }

.h4-pro-price-menu { display: grid; gap: 10px; }
.h4-pro-price-menu article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; }
.h4-pro-price-menu h3, .h4-pro-price-menu p { margin: 0; }
.h4-pro-price-menu p { margin-top: 4px; opacity: 0.7; }
.h4-pro-price-menu article > strong { white-space: nowrap; color: var(--h4bs-color-primary, #1565c0); }

.h4-pro-timeline { position: relative; padding-left: 28px; }
.h4-pro-timeline::before { position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: color-mix(in srgb, var(--h4bs-color-primary, #1565c0) 35%, transparent); content: ""; }
.h4-pro-timeline li { position: relative; }
.h4-pro-timeline-dot { position: absolute; top: 6px; left: -28px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--h4bs-color-primary, #1565c0); box-shadow: 0 0 0 1px var(--h4bs-color-primary, #1565c0); }
.h4-pro-timeline time { color: var(--h4bs-color-primary, #1565c0); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; }
.h4-pro-timeline h3, .h4-pro-timeline p { margin: 3px 0 0; }

.h4-pro-overlay[hidden] { display: none !important; }
.h4-pro-overlay { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 20px; }
.h4-pro-overlay-backdrop { position: absolute; inset: 0; background: rgb(10 18 28 / 72%); }
.h4-pro-overlay-panel { position: relative; z-index: 1; width: min(680px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 26px; border-radius: 8px; background: var(--h4bs-color-surface, #fff); color: var(--h4bs-color-text, #111827); box-shadow: 0 24px 80px rgb(0 0 0 / 30%); }
.h4-pro-overlay.is-offcanvas { justify-items: end; padding: 0; }
.h4-pro-overlay.is-offcanvas .h4-pro-overlay-panel { width: min(460px, 92vw); height: 100%; max-height: none; border-radius: 0; }
.h4-pro-overlay-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.h4-pro-overlay-content { margin-top: 16px; }
.h4-pro-overlay-open { overflow: hidden; }

.h4-pro-toggle-tabs { display: inline-flex; padding: 4px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 8px; background: color-mix(in srgb, currentColor 5%, transparent); }
.h4-pro-toggle-tabs button { min-height: 38px; padding: 7px 16px; border: 0; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; }
.h4-pro-toggle-tabs button[aria-selected="true"] { background: var(--h4bs-color-primary, #1565c0); color: #fff; }
.h4-pro-content-toggle [role="tabpanel"] { margin-top: 16px; }

.h4-pro-tooltip { position: relative; display: inline-block; border-bottom: 1px dashed currentColor; cursor: help; }
.h4-pro-tooltip [role="tooltip"] { position: absolute; z-index: 20; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 5px; background: #111827; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 150ms ease, transform 150ms ease; }
.h4-pro-tooltip.is-top [role="tooltip"] { bottom: calc(100% + 8px); left: 50%; }
.h4-pro-tooltip.is-bottom [role="tooltip"] { top: calc(100% + 8px); left: 50%; }
.h4-pro-tooltip.is-left [role="tooltip"] { top: 50%; right: calc(100% + 8px); transform: translateY(-50%); }
.h4-pro-tooltip.is-right [role="tooltip"] { top: 50%; left: calc(100% + 8px); transform: translateY(-50%); }
.h4-pro-tooltip:hover [role="tooltip"], .h4-pro-tooltip:focus [role="tooltip"] { opacity: 1; transform: translate(-50%, 0); }
.h4-pro-tooltip.is-left:hover [role="tooltip"], .h4-pro-tooltip.is-left:focus [role="tooltip"], .h4-pro-tooltip.is-right:hover [role="tooltip"], .h4-pro-tooltip.is-right:focus [role="tooltip"] { transform: translateY(-50%); }

.h4-pro-protected-content.is-locked { padding: 16px; border: 1px dashed color-mix(in srgb, currentColor 30%, transparent); border-radius: 8px; background: color-mix(in srgb, currentColor 5%, transparent); }
.h4-pro-protected-content.is-locked p { margin: 0; }

.h4-pro-image-compare { position: relative; overflow: hidden; margin: 0; aspect-ratio: 16 / 9; border-radius: 8px; background: #111827; }
.h4-pro-image-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h4-pro-image-compare-before { position: absolute; inset: 0; width: 100%; overflow: hidden; clip-path: inset(0 calc(100% - var(--h4-pro-compare)) 0 0); border-right: 0; }
.h4-pro-image-compare-before::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--h4-pro-compare); width: 2px; background: #fff; transform: translateX(-1px); }
.h4-pro-image-compare-before img { width: 100%; max-width: 100%; }
.h4-pro-image-compare input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.h4-pro-image-compare > span { position: absolute; z-index: 3; bottom: 12px; padding: 5px 8px; border-radius: 4px; background: rgb(0 0 0 / 68%); color: #fff; font-size: 12px; font-weight: 700; }
.h4-pro-image-compare .is-before-label { left: 12px; }
.h4-pro-image-compare .is-after-label { right: 12px; }

.h4-pro-lightbox-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h4-pro-lightbox-gallery a { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; }
.h4-pro-lightbox-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.h4-pro-lightbox-gallery a:hover img { transform: scale(1.025); }
.h4-pro-lightbox-gallery span { position: absolute; right: 0; bottom: 0; left: 0; padding: 20px 10px 8px; background: linear-gradient(transparent, rgb(0 0 0 / 75%)); color: #fff; }
.h4-pro-lightbox-dialog { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; }
.h4-pro-lightbox-dialog::backdrop { background: rgb(0 0 0 / 84%); }
.h4-pro-lightbox-dialog img { display: block; max-width: 100%; max-height: 88vh; margin: auto; }
.h4-pro-lightbox-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: rgb(0 0 0 / 55%); color: #fff; font-size: 30px; }

.h4-pro-progress > div { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.h4-pro-progress progress { width: 100%; height: 12px; overflow: hidden; border: 0; border-radius: 6px; background: color-mix(in srgb, currentColor 12%, transparent); }
.h4-pro-progress progress::-webkit-progress-value { background: var(--h4-pro-accent); }
.h4-pro-progress progress::-moz-progress-bar { background: var(--h4-pro-accent); }

.h4-pro-counter { display: grid; gap: 4px; text-align: center; }
.h4-pro-counter strong { color: var(--h4-pro-accent); font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.h4-pro-circle-progress { display: grid; width: 160px; aspect-ratio: 1; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, var(--h4bs-color-surface, #fff) 58%, transparent 60%), conic-gradient(var(--h4-pro-accent) var(--h4-pro-value), color-mix(in srgb, currentColor 12%, transparent) 0); text-align: center; }
.h4-pro-circle-progress strong { font-size: 1.7rem; }
.h4-pro-circle-progress span { font-size: 0.84rem; }
.h4-pro-animated-heading strong { display: inline-block; color: var(--h4bs-color-primary, #1565c0); transition: opacity 160ms ease, transform 160ms ease; }
.h4-pro-animated-heading strong.is-changing { opacity: 0; transform: translateY(5px); }

.h4-pro-toc { padding: 16px; border-left: 3px solid var(--h4bs-color-primary, #1565c0); background: color-mix(in srgb, var(--h4bs-color-primary, #1565c0) 6%, transparent); }
.h4-pro-toc ol { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 20px; }
.h4-pro-toc li.is-child { margin-left: 16px; }
.h4-pro-reading-progress { z-index: 99999; height: 4px; background: color-mix(in srgb, currentColor 10%, transparent); }
.h4-pro-reading-progress.is-top, .h4-pro-reading-progress.is-bottom { position: fixed; right: 0; left: 0; }
.h4-pro-reading-progress.is-top { top: 0; }
.h4-pro-reading-progress.is-bottom { bottom: 0; }
.h4-pro-reading-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--h4-pro-accent); }
.h4-pro-scroll-top { position: fixed; z-index: 9998; right: var(--h4-pro-scroll-offset, 18px); bottom: var(--h4-pro-scroll-offset, 18px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--h4-pro-accent, var(--h4bs-color-primary, #1565c0)); color: #fff; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.h4-pro-scroll-top.is-left { right: auto; left: var(--h4-pro-scroll-offset, 18px); }
.h4-pro-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.h4-pro-alert { position: relative; padding: 15px 46px 15px 16px; border: 1px solid currentColor; border-radius: 8px; }
.h4-pro-alert.is-info { background: #e8f2ff; color: #174f8f; }
.h4-pro-alert.is-success { background: #e8f7ee; color: #17643c; }
.h4-pro-alert.is-warning { background: #fff7dd; color: #795600; }
.h4-pro-alert.is-danger { background: #ffebee; color: #8f1d2c; }
.h4-pro-alert p { margin: 4px 0 0; }
.h4-pro-alert button { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; color: inherit; font-size: 24px; }

.h4-pro-social-icons, .h4-pro-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.h4-pro-social-icons a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 50%; background: var(--h4bs-color-surface, #fff); color: var(--h4bs-color-primary, #1565c0); font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.h4-pro-share-buttons a { padding: 8px 12px; border-radius: 5px; background: #263238; color: #fff; font-size: 0.86rem; font-weight: 700; text-decoration: none; }

.h4-pro-sticky-video { margin: 0; }
.h4-pro-video-frame { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: #05070a; }
.h4-pro-video-frame :where(iframe, video) { display: block; width: 100%; height: 100%; border: 0; }
.h4-pro-sticky-video figcaption { margin-top: 7px; font-size: 0.86rem; opacity: 0.7; }
.h4-pro-sticky-video.is-floating .h4-pro-video-frame { position: fixed; z-index: 9990; right: 18px; bottom: 18px; width: min(420px, calc(100vw - 36px)); box-shadow: 0 18px 55px rgb(0 0 0 / 32%); }

@media (max-width: 860px) {
    .h4-pro-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h4-pro-lightbox-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .h4-pro-card-grid, .h4-pro-lightbox-gallery { grid-template-columns: minmax(0, 1fr); }
    .h4-pro-price-menu article { align-items: flex-start; }
    .h4-pro-overlay { padding: 10px; }
    .h4-pro-overlay-panel { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .h4-pro-button,
    .h4-pro-lightbox-gallery img,
    .h4-pro-animated-heading strong,
    .h4-pro-scroll-top { transition: none !important; }
    .h4-pro-button:hover,
    .h4-pro-lightbox-gallery a:hover img { transform: none !important; }
}
