:root {
    --hctclient01-z-base: 1;
    --hctclient01-z-dropdown: 900;
    --hctclient01-z-backdrop: 1000;
    --hctclient01-z-mobile-menu: 1010;
    --hctclient01-z-lightbox: 1040;
    --hctclient01-z-popup: 1100;
    --hctclient01-z-modal: 1120;
    --hctclient01-z-loading: 1200;
    --hctclient01-z-feedback: 1300;
    --hctclient01-z-toast: 1310;
    --hctclient01-radius-sm: 6px;
    --hctclient01-radius-md: 10px;
    --hctclient01-radius-lg: 16px;
    --hctclient01-space-1: 4px;
    --hctclient01-space-2: 8px;
    --hctclient01-space-3: 12px;
    --hctclient01-space-4: 16px;
    --hctclient01-space-5: 24px;
    --hctclient01-space-6: 32px;
    --hctclient01-duration-fast: 160ms;
    --hctclient01-duration-normal: 240ms;
    --hctclient01-ease: ease;
}

[hidden] {
    display: none !important;
}

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

html.hctclient01-scroll-locked,
body.hctclient01-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Shared backdrop: Mobile Menu, Loading and Modal use one owner-aware layer. */
.hctclient01-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--hctclient01-z-backdrop);
    display: block;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition:
        opacity 220ms var(--hctclient01-ease),
        visibility 220ms var(--hctclient01-ease);
}

.hctclient01-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Shared showcase buttons. */
.hctclient01-ui-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--hctclient01-duration-fast) var(--hctclient01-ease),
        box-shadow var(--hctclient01-duration-fast) var(--hctclient01-ease),
        background-color var(--hctclient01-duration-fast) var(--hctclient01-ease),
        border-color var(--hctclient01-duration-fast) var(--hctclient01-ease);
}

.hctclient01-ui-button:hover {
    transform: translateY(-1px);
}

.hctclient01-ui-button:active {
    transform: translateY(0);
}

.hctclient01-ui-button:focus-visible {
    outline: 3px solid rgba(14, 116, 144, 0.28);
    outline-offset: 2px;
}

.hctclient01-ui-button--primary {
    color: #fff;
    background: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.hctclient01-ui-button--primary:hover {
    background: #115e59;
    border-color: #115e59;
}

.hctclient01-ui-button--secondary {
    color: #0f172a;
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.hctclient01-ui-button--secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.hctclient01-ui-button--danger {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.2);
}

.hctclient01-ui-button--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Toast. */
.hctclient01-toast-region {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: var(--hctclient01-z-toast);
    isolation: isolate;
    display: grid;
    gap: 12px;
    width: min(390px, calc(100vw - 36px));
    pointer-events: none;
}

.hctclient01-toast {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: start;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: auto;
    transition:
        opacity 200ms var(--hctclient01-ease),
        transform 200ms var(--hctclient01-ease);
}

.hctclient01-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hctclient01-toast.is-leaving {
    opacity: 0;
    transform: translateX(16px);
}

.hctclient01-toast__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
}

.hctclient01-toast--success .hctclient01-toast__icon { background: #16a34a; }
.hctclient01-toast--error .hctclient01-toast__icon { background: #dc2626; }
.hctclient01-toast--warning .hctclient01-toast__icon { background: #d97706; }
.hctclient01-toast--info .hctclient01-toast__icon { background: #0284c7; }

.hctclient01-toast__content { min-width: 0; }
.hctclient01-toast__title {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: var(--hctclient01-text-body);
    line-height: 1.35;
}
.hctclient01-toast__message {
    margin: 0;
    color: #475569;
    font-size: var(--hctclient01-text-meta);
    line-height: 1.5;
}
.hctclient01-toast__close {
    appearance: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: var(--hctclient01-icon-size-md);
    cursor: pointer;
}
.hctclient01-toast__close:hover { background: #f1f5f9; color: #0f172a; }

/* Loading. */
.hctclient01-loading {
    position: fixed;
    inset: 0;
    z-index: var(--hctclient01-z-loading);
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms var(--hctclient01-ease), visibility 180ms var(--hctclient01-ease);
}

.hctclient01-loading.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hctclient01-loading__panel {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: min(92vw, 420px);
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.hctclient01-loading__spinner {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 3px solid #cbd5e1;
    border-top-color: #0f766e;
    border-radius: 50%;
    animation: hctclient01-spin 700ms linear infinite;
}

.hctclient01-loading__text {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

@keyframes hctclient01-spin { to { transform: rotate(360deg); } }

/* Modal / confirm. */
.hctclient01-modal-layer {
    position: fixed;
    inset: 0;
    z-index: var(--hctclient01-z-modal);
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
}

.hctclient01-modal-layer:not([hidden]) { pointer-events: auto; }

.hctclient01-modal {
    width: min(620px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition:
        opacity 200ms var(--hctclient01-ease),
        transform 200ms var(--hctclient01-ease);
}

.hctclient01-modal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hctclient01-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.hctclient01-modal__title { margin: 0; color: #0f172a; font-size: var(--hctclient01-font-size-xl); line-height: 1.35; }
.hctclient01-modal__close {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: var(--hctclient01-icon-size-md);
    cursor: pointer;
}
.hctclient01-modal__close:hover { background: #e2e8f0; color: #0f172a; }
.hctclient01-modal__body { padding: 20px; color: #334155; line-height: 1.65; }
.hctclient01-modal__body > :first-child { margin-top: 0; }
.hctclient01-modal__body > :last-child { margin-bottom: 0; }
.hctclient01-modal__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px 20px;
    border-top: 1px solid #e2e8f0;
}
.hctclient01-confirm__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    font-size: var(--hctclient01-icon-size-lg);
    font-weight: 900;
}
.hctclient01-confirm__message { margin: 0; color: #334155; }

/* Breadcrumb. */
.hctclient01-breadcrumb-wrap {
    width: 100%;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}
.hctclient01-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 46px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    font-size: var(--hctclient01-text-meta);
    line-height: 1.5;
}
.hctclient01-breadcrumb__item { display: inline-flex; align-items: center; min-width: 0; }
.hctclient01-breadcrumb__item:not(:last-child)::after {
    content: "/";
    flex: 0 0 auto;
    margin: 0 10px;
    color: #94a3b8;
}
.hctclient01-breadcrumb__link { color: #475569; text-decoration: none; }
.hctclient01-breadcrumb__link:hover,
.hctclient01-breadcrumb__link:focus-visible { color: var(--hctclient01-color-primary-hover, #b71e1a); text-decoration: underline; text-underline-offset: 3px; }
.hctclient01-breadcrumb__current {
    display: block;
    max-width: min(52vw, 560px);
    overflow: hidden;
    color: #0f172a;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination. */
.hctclient01-pagination-wrap { display: flex; justify-content: center; width: 100%; margin-top: 28px; }
.hctclient01-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hctclient01-pagination__link,
.hctclient01-pagination__page,
.hctclient01-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
}
.hctclient01-pagination__link:hover,
.hctclient01-pagination__link:focus-visible,
.hctclient01-pagination__page:hover,
.hctclient01-pagination__page:focus-visible { border-color: #0f766e; color: #0f766e; }
.hctclient01-pagination__page.is-current,
.hctclient01-pagination__page[aria-current="page"] { border-color: #0f766e; background: #0f766e; color: #fff; }
.hctclient01-pagination__link.is-disabled,
.hctclient01-pagination__page.is-disabled { cursor: not-allowed; opacity: 0.45; }
.hctclient01-pagination__ellipsis { border-color: transparent; background: transparent; color: #64748b; }

.hctclient01-ui-demo { padding: 48px 0; background: #f8fafc; }
.hctclient01-ui-demo__card { padding: 24px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06); }
.hctclient01-ui-demo__title { margin: 0 0 8px; color: #0f172a; font-size: var(--hctclient01-font-size-2xl); }
.hctclient01-ui-demo__desc { margin: 0 0 24px; color: #64748b; }
.hctclient01-ui-demo__breadcrumb { overflow: hidden; margin-bottom: 28px; border: 1px solid #e2e8f0; border-radius: 12px; }

@media (max-width: 575.98px) {
    .hctclient01-toast-region { top: 12px; right: 12px; width: calc(100vw - 24px); }
    .hctclient01-modal-layer { padding: 12px; }
    .hctclient01-modal { max-height: calc(100dvh - 24px); }
    .hctclient01-modal__actions { flex-direction: column-reverse; }
    .hctclient01-modal__actions .hctclient01-ui-button { width: 100%; }
    .hctclient01-breadcrumb { min-height: 42px; font-size: var(--hctclient01-text-caption); }
    .hctclient01-breadcrumb__item:not(:last-child)::after { margin: 0 7px; }
    .hctclient01-breadcrumb__current { max-width: 46vw; }
    .hctclient01-pagination { gap: 6px; }
    .hctclient01-pagination__link,
    .hctclient01-pagination__page,
    .hctclient01-pagination__ellipsis { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; }
    .hctclient01-ui-demo__card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .hctclient01-backdrop,
    .hctclient01-toast,
    .hctclient01-loading,
    .hctclient01-modal,
    .hctclient01-ui-button { transition: none !important; }
}