.bonus-progress-single.claimed {
    order: -1;
}

.bonus-require-box.activated {
    border-color: var(--primary);
}

.muted-background {
    background-color: rgba(233, 233, 233, 0.5);
    opacity: 0.5;
    pointer-events: none;
}

.cursor-disabled {
    cursor: not-allowed;
}

.no-interaction {
    pointer-events: none;
}

.ht-auth,
.maintenance-page,
.ht-page-body {
    background-color: var(--surface, #fff);
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ht-auth.is-page-bg-ready,
.maintenance-page.is-page-bg-ready,
.ht-page-body.is-page-bg-ready {
    background-image: var(--page-bg, none);
}

.ht-dynamic-progress {
    width: var(--progress-width, 0%);
}

.ht-theme-root {
    --display-font: var(--theme-display-font, inherit);
    --body-font: var(--theme-body-font, inherit);
    --primary: var(--theme-primary, inherit);
    --secondary: var(--theme-secondary, inherit);
}

/* Autofill + mobile (intl-tel-input) — keep theme surfaces, not browser white */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
    -webkit-text-fill-color: var(--display-color) !important;
    caret-color: var(--display-color);
    transition: background-color 9999s ease-in-out 0s;
}

.form-control .iti {
    display: block;
    width: 100%;
    height: 100%;
}

.form-control #phone,
.form-control .iti__tel-input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    box-shadow: none;
    background-color: transparent;
    color: var(--display-color);
    -webkit-text-fill-color: var(--display-color);
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder,
.form-control #phone::placeholder,
.form-control .iti__tel-input::placeholder {
    color: rgba(148, 163, 184, 0.85) !important;
    opacity: 1;
    -webkit-text-fill-color: rgba(148, 163, 184, 0.85) !important;
}

.form-control #phone:-webkit-autofill,
.form-control #phone:-webkit-autofill:hover,
.form-control #phone:-webkit-autofill:focus,
.form-control #phone:-webkit-autofill:active,
.form-control .iti__tel-input:-webkit-autofill,
.form-control .iti__tel-input:-webkit-autofill:hover,
.form-control .iti__tel-input:-webkit-autofill:focus,
.form-control .iti__tel-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
    -webkit-text-fill-color: var(--display-color) !important;
    caret-color: var(--display-color);
    transition: background-color 9999s ease-in-out 0s;
}

.iti {
    --iti-dropdown-bg: var(--surface);
    --iti-hover-color: var(--extra-light);
    --iti-border-color: var(--border-color);
    --iti-dialcode-color: var(--muted);
    --iti-text-gray: var(--muted);
    --iti-arrow-color: var(--display-color);
}

.iti__dropdown-content,
.iti__country-list {
    background-color: var(--surface) !important;
    color: var(--display-color) !important;
    border-color: var(--border-color) !important;
}

.iti__country,
.iti__country-name,
.iti__dial-code {
    color: var(--display-color) !important;
}

.iti__country.iti__highlight {
    background-color: var(--extra-light) !important;
}

.iti__search-input {
    background-color: var(--surface) !important;
    color: var(--display-color) !important;
    border-color: var(--border-color) !important;
}

.iti__selected-country,
.iti__selected-country-primary {
    background-color: transparent !important;
    color: var(--display-color) !important;
}

/* Bonus box — keep title/button readable on project gradients */
.bonus-box {
    position: relative;
}

.bonus-box-img {
    position: relative;
    z-index: 1;
}

.bonus-box-title {
    position: relative;
    z-index: 4;
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    margin-top: 0.75rem;
}

.bonus-box .btn {
    position: relative;
    z-index: 4;
}

.bonus-box .btn:disabled,
.bonus-box .btn[disabled] {
    opacity: 1;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: transparent !important;
}

.bonus-box.claimed::before {
    background-color: rgba(0, 0, 0, 0.42) !important;
    opacity: 1 !important;
}

.bonus-box.claimed::after {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.55) !important;
    font-weight: 600;
    z-index: 5;
}

/* Footer links — keep readable on dark navy */
.ht-footer-section .footer-menu-link,
.ht-footer-section .ht-footer-menu-list a,
.ht-footer-section .text-light-white a {
    color: rgba(255, 255, 255, 0.92) !important;
}

.ht-footer-section .footer-menu-link:hover,
.ht-footer-section .ht-footer-menu-list a:hover,
.ht-footer-section .text-light-white a:hover {
    color: #ffffff !important;
}

/* Blog / page breadcrumb — soft dark overlay + white text */
.dt-breadcrumb {
    background-size: cover !important;
    background-position: center center !important;
}

.dt-breadcrumb::before {
    background-color: transparent !important;
    background-image: linear-gradient(
        120deg,
        color-mix(in srgb, var(--primary) 72%, #0f172a) 0%,
        color-mix(in srgb, var(--primary) 48%, transparent) 48%,
        color-mix(in srgb, var(--primary) 62%, #111827) 100%
    ) !important;
    opacity: 0.78;
    z-index: 0 !important;
}

.dt-breadcrumb > .container {
    position: relative;
    z-index: 1;
}

.dt-breadcrumb-title,
.dt-breadcrumb-menu li,
.dt-breadcrumb-menu li a,
.dt-breadcrumb-menu li.active-page {
    color: #ffffff !important;
}

.dt-breadcrumb-menu li::after {
    color: rgba(255, 255, 255, 0.7);
}

.ht-blog-details-thumb {
    overflow: hidden;
    border-radius: 1rem;
}

.ht-blog-details-thumb img {
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

.ht-blog-post-thumb img {
    object-position: center center;
}

/* Equal-height blog cards — same title/excerpt line count */
.ht-blog-section .ht-section-header + .row > [class*="col-"],
.ht-blog-section > .container > .row > [class*="col-"] {
    display: flex;
}

.ht-blog-section .ht-blog-subtitle {
    max-width: 40rem;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.65;
}

.ht-top-investors .ht-investors-subtitle {
    max-width: 42rem;
    margin: 0.55rem auto 0;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Top Investors — reference card redesign */
.ht-top-investors {
    background: #f5f7fb !important;
    overflow: hidden;
}

.ht-top-investors .ht-investors-badge {
    gap: 0.4rem;
}

.ht-top-investors .ht-section-header {
    margin-bottom: 2.25rem !important;
}

.ht-investor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.15rem 1.05rem 1.05rem;
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ht-investor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.ht-investor-card__rank {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 28px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}

.ht-investor-card__rank i {
    font-size: 0.85rem;
}

.ht-investor-card__media {
    display: flex;
    justify-content: center;
    padding: 1.35rem 0 0.85rem;
}

.ht-investor-card__hex {
    --hex-size: 148px;
    width: var(--hex-size);
    height: calc(var(--hex-size) * 1.1);
    display: grid;
    place-items: center;
    position: relative;
    filter: drop-shadow(0 14px 24px color-mix(in srgb, var(--primary) 22%, transparent));
}

.ht-investor-card__hex::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--primary) 35%, #fff),
        color-mix(in srgb, var(--primary) 75%, #7dd3fc)
    );
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.ht-investor-card__hex img {
    position: relative;
    z-index: 1;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: #eef2ff;
}

.ht-investor-card__body {
    text-align: center;
    padding: 0.35rem 0.4rem 0.95rem;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 0.85rem;
}

.ht-investor-card__name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
}

.ht-investor-card__name i {
    color: #3b82f6;
    font-size: 1.05rem;
}

.ht-investor-card__role {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ht-investor-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary) 6%, #f3f6fb);
}

.ht-investor-card__footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fff;
    color: var(--primary);
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.ht-investor-card__footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ht-investor-card__footer-meta span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

.ht-investor-card__footer-meta strong {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 575.98px) {
    .ht-investor-card__hex {
        --hex-size: 132px;
    }
}

.ht-blog-section .ht-blog-post:not(.list-style-small) {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.ht-blog-section .ht-blog-post:not(.list-style-small) .ht-blog-post-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.ht-blog-section .ht-blog-post:not(.list-style-small) .ht-blog-post-title {
    min-height: 2.75em;
}

.ht-blog-section .ht-blog-post:not(.list-style-small) .ht-blog-post-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.ht-blog-section .ht-blog-post:not(.list-style-small) .ht-blog-post-excerpt,
.ht-blog-section .ht-blog-post:not(.list-style-small) .ht-blog-post-content > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    min-height: 4.5em;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ht-blog-section .ht-blog-post:not(.list-style-small) .ht-blog-post-btn {
    margin-top: auto;
}

/* Property details — clear absolute/sticky header (no breadcrumb on this route) */
.ht-property-details-section.ht-section-pt {
    padding-top: 5.75rem;
}

@media (min-width: 992px) {
    .ht-property-details-section.ht-section-pt {
        padding-top: 6.5rem;
    }
}

/* Property details hero — full content width (avoid aspect-ratio shrinking width) */
.property-details-thumb-item {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    height: clamp(280px, 42vw, 520px);
    max-height: none;
    min-height: 280px;
    padding: 16px;
}

.property-details-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-details-head {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.property-details-head__info {
    min-width: 0;
    flex: 1 1 auto;
}

.property-details-title {
    margin: 0 0 0.4rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.property-details-location {
    line-height: 1.4;
}

.property-details-head__actions {
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.property-details-action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* Invest modal — payment method tabs (Direct Payment / Using Balance) */
.buy-sell-radio-fill {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    justify-content: stretch;
}

.buy-sell-radio-fill .form-check {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.buy-sell-radio-fill .form-check .form-check-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
    min-height: 2.75rem;
    height: auto !important;
    padding: 0.65rem 0.5rem !important;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25 !important;
    text-align: center;
    white-space: normal;
    overflow: visible !important;
    word-break: normal;
    hyphens: manual;
}

.buy-sell-radio-fill .form-check .form-check-label i {
    flex-shrink: 0;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .ht-property-details-section.ht-section-pt {
        padding-top: 5.25rem !important;
    }

    .ht-property-details-section > .container {
        padding-inline: 0.875rem;
    }

    .property-details-head {
        flex-wrap: nowrap;
        gap: 0.75rem !important;
        margin-bottom: 0.875rem !important;
        padding: 0.875rem 1rem;
        background: #fff;
        border-radius: 14px;
    }

    .buy-sell-radio-fill {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .buy-sell-radio-fill .form-check {
        width: 100%;
        flex: 1 1 auto;
    }

    .buy-sell-radio-fill .form-check .form-check-label {
        min-height: 2.5rem;
        padding: 0.7rem 0.875rem !important;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .property-details-title {
        font-size: 1.0625rem !important;
        margin-bottom: 0.35rem;
    }

    .property-details-location {
        font-size: 0.8125rem;
    }

    .property-details-action-btn {
        width: 42px;
        height: 42px;
    }

    .property-details-thumb-item {
        height: auto !important;
        min-height: 200px;
        max-height: 260px;
        padding: 0.75rem !important;
        border-radius: 14px;
    }

    .property-details-thumb-item img {
        min-height: 180px;
        max-height: 240px;
        border-radius: 10px;
    }

    .property-details-content-part {
        padding: 1rem !important;
        border-radius: 14px;
    }

    .property-details-map iframe {
        height: 220px !important;
    }
}

.property-details-action-btn:hover,
.property-details-action-btn:focus {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 35%, #e5e7eb);
    outline: none;
}

.property-details-action-btn.bookmarked,
.ht-property-bookmark-btn.bookmarked {
    color: var(--primary) !important;
    background-color: #fff;
    border-color: color-mix(in srgb, var(--primary) 35%, #e5e7eb);
}

.property-details-action-btn.bookmarked i,
.ht-property-bookmark-btn.bookmarked i {
    color: var(--primary) !important;
}

.ht-property-bookmark-btn.bookmarked {
    background-color: #fff;
}

.js-wishlist-toggle.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

/* Latest properties — whole card clickable + visible title + spacing/divider */
a.latest-property-single {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.latest-property-single:hover .latest-property-title {
    color: var(--primary);
}

.latest-property-single .latest-property-title {
    color: var(--display-color);
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.latest-property-slider .latest-property-slide {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.latest-property-slider .latest-property-slide:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.latest-property-single .content {
    margin-top: 12px;
    padding-inline: 0;
}

/* Property gallery — always 2 columns with gap */
.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.property-gallery-grid .property-gallery-item {
    width: 100%;
    margin: 0;
}

@media (max-width: 575px) {
    .property-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Calculator — redesigned card (title/subtitle/image + inputs + results) */
.ht-calculator-section {
    position: relative;
    z-index: 2;
    background: transparent;
    margin-top: clamp(-4.5rem, -6vw, -3rem);
    padding-top: 0;
}

.ht-calculator-section::before {
    display: none !important;
}

.ht-calculator-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: clamp(1.15rem, 2.2vw, 1.75rem);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    z-index: 1;
}

.ht-calc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: center;
    margin-bottom: 0.85rem;
}

.ht-calc-hero__title {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: clamp(1.25rem, 2.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ht-calc-hero__title span {
    color: var(--primary);
}

.ht-calc-hero__subtitle {
    margin: 0;
    max-width: 34rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ht-calc-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ht-calc-hero__media img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(79, 70, 229, 0.14));
}

.ht-calc-panel {
    border: 1px solid #e8ebf2;
    border-radius: 22px;
    padding: clamp(1rem, 1.8vw, 1.35rem);
    background: #fff;
}

.ht-calc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.ht-calc-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
}

.ht-calc-input {
    position: relative;
}

.ht-calc-input__icon,
.ht-calculator-wrapper .ht-calc-select__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: #6366f1;
    font-size: 1.2rem;
    pointer-events: none;
}

.ht-calc-input__icon iconify-icon,
.ht-calculator-wrapper .ht-calc-select__icon iconify-icon {
    display: block;
    stroke-width: 1.5;
    pointer-events: none;
}

.ht-calculator-wrapper .ht-calc-select {
    position: relative;
    width: 100%;
}

.ht-calculator-wrapper .form-control,
.ht-calculator-wrapper .ht-calc-select__trigger {
    background-color: #ffffff !important;
    color: #262b35 !important;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    min-height: 3.25rem;
    font-size: 0.9375rem;
}

.ht-calculator-wrapper .form-control {
    padding-left: 2.75rem;
}

.ht-calculator-wrapper .form-control:focus,
.ht-calculator-wrapper .form-control:active,
.ht-calculator-wrapper .ht-calc-select.is-open .ht-calc-select__trigger,
.ht-calculator-wrapper .ht-calc-select__trigger:focus {
    background-color: #ffffff !important;
    color: #262b35 !important;
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.ht-calculator-wrapper .ht-calc-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0.9375rem 0.75rem 2.75rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.ht-calculator-wrapper .ht-calc-select__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #262b35;
}

.ht-calculator-wrapper .ht-calc-select__label.is-placeholder {
    color: #94a3b8;
}

.ht-calculator-wrapper .ht-calc-select__caret {
    width: 0;
    height: 0;
    margin-left: 0.75rem;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b7280;
    flex-shrink: 0;
}

.ht-calculator-wrapper .ht-calc-select.is-open .ht-calc-select__caret {
    transform: rotate(180deg);
}

.ht-calculator-wrapper .ht-calc-select__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 0.375rem 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    max-height: 240px;
    overflow-y: auto;
}

.ht-calculator-wrapper .ht-calc-select__option {
    padding: 0.625rem 0.9375rem;
    color: #262b35 !important;
    background: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
}

.ht-calculator-wrapper .ht-calc-select__option:hover,
.ht-calculator-wrapper .ht-calc-select__option.is-selected {
    background: var(--primary);
    color: #ffffff !important;
}

.ht-calculator-wrapper .ht-calc-select__option.is-placeholder:hover {
    background: #f8fafc;
    color: #858484 !important;
}

.ht-calc-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(170px, 0.9fr);
    gap: 1rem;
    align-items: center;
}

.ht-calc-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.ht-calc-stat__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, #e8ebf2);
    background: color-mix(in srgb, var(--primary) 6%, #fff);
    color: #5758d6;
    font-size: 1.35rem;
}

.ht-calc-stat__icon iconify-icon {
    display: block;
}

.ht-calc-stat__label {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
}

.ht-calc-stat__label sub {
    bottom: 0;
    font-size: 0.75em;
}

.ht-calc-stat__value {
    display: block;
    color: #0f172a;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ht-calc-cta .btn {
    min-height: 2.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
}

@media (max-width: 1199.98px) {
    .ht-calc-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-calc-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .ht-calc-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ht-calc-hero__subtitle {
        margin-inline: auto;
        font-size: 0.875rem;
    }

    .ht-calc-hero__media img {
        max-width: 320px;
        margin-inline: auto;
    }
}

@media (max-width: 767.98px) {
    /* How it works — compact step cards + titles */
    .ht-how-work-section .row.gy-4 {
        --bs-gutter-y: 0.75rem;
    }

    .ht-how-work-item {
        padding: 0.7rem 0.85rem 0.7rem 1.15rem !important;
        margin-left: 16px;
        border-radius: 10px;
    }

    .ht-how-work-item .ht-how-work-item-number {
        width: 32px !important;
        height: 32px !important;
        left: -16px;
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .ht-how-work-item-title,
    .ht-how-work-item .ht-how-work-item-title.h5 {
        font-size: 0.9375rem !important;
        line-height: 1.3;
        margin-bottom: 0.25rem !important;
        font-weight: 600;
    }

    .ht-how-work-item p {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    .ht-how-work-section .ht-section-title {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }

    .ht-how-work-thumb {
        display: none !important;
    }

    /* Keep clear space after "View All Properties" before calculate card */
    .ht-property-section.ht-section-pb {
        padding-bottom: 1.75rem !important;
    }

    .ht-property-section .text-center.mt-4 {
        margin-top: 1.25rem !important;
        margin-bottom: 0.25rem;
    }

    .ht-calculator-section {
        margin-top: 0 !important;
        padding-top: 1.5rem !important;
    }

    .ht-calculator-wrapper {
        border-radius: 18px;
        padding: 1rem;
    }

    .ht-calc-panel {
        border-radius: 14px;
        padding: 0.875rem;
    }

    .ht-calc-fields,
    .ht-calc-results {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .ht-calc-label {
        font-size: 0.8125rem;
        margin-bottom: 0.4rem;
    }

    .ht-calculator-wrapper .form-control,
    .ht-calculator-wrapper .ht-calc-select__trigger {
        min-height: 2.75rem;
        font-size: 0.875rem;
    }

    .ht-calc-stat {
        gap: 0.65rem;
        padding: 0.35rem 0;
    }

    .ht-calc-stat__icon {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    .ht-calc-stat__label {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
    }

    .ht-calc-stat__value {
        font-size: 1rem;
    }

    .ht-calc-cta {
        grid-column: auto;
        margin-top: 0.25rem;
    }

    .ht-calc-cta .btn {
        min-height: 2.5rem !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 575.98px) {
    .ht-calc-hero {
        margin-bottom: 0.65rem;
        gap: 0.65rem;
    }

    .ht-calc-hero__title {
        font-size: 1.2rem !important;
        margin-bottom: 0.35rem;
    }

    .ht-calc-hero__subtitle {
        font-size: 0.8125rem;
        line-height: 1.45;
        max-width: 100%;
    }

    .ht-calc-hero__media img {
        max-width: 240px;
    }
}

/* Contact — primary icon circles + clearer title spacing */
.ht-contact-info-list-icon {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}

.ht-contact-info-list-icon iconify-icon {
    color: #fff;
}

/* Property Auction — purple ambient glow (same treatment as how-to-work) */
.ht-auction-section {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.ht-auction-section::before {
    position: absolute;
    content: '';
    bottom: 5%;
    left: -18%;
    width: 750px;
    height: 550px;
    background: radial-gradient(circle, var(--primary) -6%, #fff 65%);
    border-radius: 50%;
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
}

.ht-auction-section::after {
    position: absolute;
    content: '';
    top: 5%;
    right: -18%;
    width: 750px;
    height: 550px;
    background: radial-gradient(circle, var(--primary) -6%, #fff 65%);
    border-radius: 50%;
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
}

/* Property Auction caption — keep .ht-section-caption purple pill (not washed white) */
.ht-auction-section .ht-section-caption.ht-auction-live-pill {
    background: -webkit-linear-gradient(var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.ht-auction-section .ht-section-caption.ht-auction-live-pill::before {
    background-color: var(--primary);
    opacity: 0.1;
}

.ht-auction-section .ht-section-caption.ht-auction-live-pill::after {
    border-color: var(--primary);
    opacity: 0.35;
}

.ht-auction-live-pill i {
    font-size: 0.55rem;
    -webkit-text-fill-color: #22c55e;
    color: #22c55e;
}

.ht-auction-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1200px) {
    .ht-auction-section .container {
        max-width: 1368px;
    }

    .ht-auction-section .ht-section-header {
        margin-bottom: 1.125rem !important;
    }
}

.ht-auction-card {
    padding: 16px;
    background-color: #fff;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 452px minmax(0, 1fr);
    gap: 1.65rem;
    align-items: stretch;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef1f5;
}

.ht-auction-card__media {
    position: relative;
    width: 100%;
    height: 260px;
    min-height: 260px;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    align-self: stretch;
}

.ht-auction-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.ht-auction-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s;
}

.ht-auction-card:hover .ht-auction-card__media img {
    transform: scale(1.06);
}

.ht-auction-card__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 260px;
    padding: 0.75rem 0.65rem 0.35rem 3px;
}

.ht-auction-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ht-auction-card__intro {
    min-width: 0;
    padding-top: 4px;
}

.ht-auction-card__body {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    gap: 1.5rem;
    align-items: stretch;
    flex: 1;
}

.ht-auction-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
}

.ht-auction-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ht-auction-badge--live {
    left: 12px;
    background-color: var(--success, #16a34a);
}

.ht-auction-badge--upcoming {
    left: 12px;
    background-color: var(--danger, #f97316);
}

.ht-auction-badge--ended {
    left: 12px;
    background-color: #dc2626;
}

.ht-auction-badge--featured {
    right: 12px;
    background-color: var(--primary);
}

.ht-auction-card.is-ended {
    opacity: 0.92;
}

.ht-auction-timer.is-ended {
    background: rgba(127, 29, 29, 0.78);
    border-color: rgba(248, 113, 113, 0.35);
}

.ht-auction-timer.is-ended .ht-auction-timer__caption,
.ht-auction-timer.is-ended .ht-auction-timer__caption span {
    color: #fecaca;
    font-weight: 700;
}

.ht-auction-timer.is-ended .ht-auction-timer__caption iconify-icon {
    color: #f87171;
}

.ht-auction-timer.is-ended .ht-auction-timer__unit strong,
.ht-auction-timer.is-ended .ht-auction-timer__sep {
    color: #fee2e2;
}

.ht-auction-timer.is-ended .ht-auction-timer__unit small {
    color: #fca5a5;
}

.ht-auction-timer.is-ended .ht-auction-timer__unit:not(:last-child)::after {
    background: rgba(248, 113, 113, 0.45);
}

.ht-auction-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--display-color, #0f172a);
}

.ht-auction-card__location {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--body-color, #64748b);
}

.ht-auction-card__location .text-primary {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
}

.ht-auction-card__description {
    margin: 0 0 0.8rem;
    max-width: 26rem;
}

.ht-auction-card__description p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.ht-auction-card__amenities {
    margin-top: 2.25rem;
    padding: 0;
}

.ht-auction-card__specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ht-auction-card__specs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0 0.5rem;
    border-right: 1px solid #e8ebf0;
    text-align: center;
}

.ht-auction-card__specs li:first-child {
    padding-left: 0;
}

.ht-auction-card__specs li:last-child {
    padding-right: 0;
    border-right: 0;
}

.ht-auction-card__specs iconify-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(88, 80, 236, 0.08);
    font-size: 1rem;
    color: var(--primary);
}

.ht-auction-card__specs li > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.ht-auction-card__specs strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
}

.ht-auction-card__specs span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #9ca3af;
    line-height: 1.2;
}

.ht-auction-card__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0 0 0 0.75rem;
    margin-top: 0;
}

.ht-auction-card__aside::before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: -0.75rem;
    width: 1px;
    background-color: #e8ebf0;
}

.ht-auction-card__tools {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}

.ht-auction-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ht-auction-tool-btn:hover,
.ht-auction-tool-btn:focus {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

.ht-auction-tool-btn iconify-icon {
    font-size: 1.1rem;
}

.ht-auction-card__stats {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
}

.ht-auction-card__stats li {
    width: calc(100% / 3);
    position: relative;
    padding: 0 0.65rem;
    min-height: 0;
    min-width: 0;
}

.ht-auction-card__stats li:first-child {
    padding-left: 0;
}

.ht-auction-card__stats li:last-child {
    padding-right: 0;
}

.ht-auction-card__stats li:not(:last-child) {
    border-right: 1px solid #e8ebf0;
}

.ht-auction-card__stats span {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--body-color);
    line-height: 1.3;
}

.ht-auction-details__stats .ht-auction-stat__body > span,
.ht-auction-timer__label {
    display: block;
    font-size: 12px;
    color: var(--body-color);
}

.ht-auction-card__stats p {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--display-color);
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.ht-auction-card__stats p.is-primary {
    color: var(--primary);
}

.ht-auction-card__progress {
    position: relative;
    margin: 1.15rem 0 1.35rem;
    padding-right: 2.85rem;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: visible;
}

.ht-auction-card__progress-bar {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #818cf8);
}

.ht-auction-card__progress-value {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
    min-width: 38px;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: #f2f3f6;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.ht-auction-details__stats strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95rem;
}

/* Card image overlay timer (reference style) */
.ht-auction-timer--overlay {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin: 0;
}

.ht-auction-timer--overlay .ht-auction-timer__caption {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ht-auction-timer--overlay .ht-auction-timer__caption iconify-icon {
    font-size: 1rem;
    color: #c4b5fd;
}

.ht-auction-timer--overlay .ht-auction-timer__grid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-left: auto;
}

.ht-auction-timer--overlay .ht-auction-timer__unit {
    position: relative;
    min-width: 2.1rem;
    text-align: center;
    padding: 0 0.2rem;
}

.ht-auction-timer--overlay .ht-auction-timer__unit:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -0.2rem;
    width: 1px;
    height: 70%;
    background: rgba(255, 255, 255, 0.18);
}

.ht-auction-timer--overlay .ht-auction-timer__unit strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ht-auction-timer--overlay .ht-auction-timer__unit small {
    display: block;
    margin-top: 0.15rem;
    color: #c4b5fd;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ht-auction-timer--overlay .ht-auction-timer__sep {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    margin-top: -0.55rem;
    opacity: 0.9;
}

.ht-auction-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 0 0 0.85rem;
    padding-top: 0.15rem;
}

.ht-auction-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border-radius: 7px;
    border: 1.5px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ht-auction-btn i,
.ht-auction-btn iconify-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.ht-auction-btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(88, 80, 236, 0.22);
}

.ht-auction-btn--primary:hover,
.ht-auction-btn--primary:focus {
    background: var(--secondary, var(--primary));
    border-color: var(--secondary, var(--primary));
    color: #fff;
}

.ht-auction-btn--outline {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.ht-auction-btn--outline:hover,
.ht-auction-btn--outline:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ht-auction-btn--muted,
.ht-auction-btn--muted:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}

/* Auction modals */
.ht-auction-modal-dialog {
    --bs-modal-width: 960px;
}

.ht-auction-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #f6f7f9;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.ht-auction-modal .modal-header,
.ht-auction-modal .modal-body,
.ht-auction-modal .modal-footer {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
    background: transparent;
}

.ht-auction-modal .modal-header {
    padding-top: 1.35rem;
    padding-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ht-auction-modal .modal-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ht-auction-modal .modal-footer {
    padding-top: 0.25rem;
    padding-bottom: 1.35rem;
}

.ht-auction-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--display-color, #111827);
}

.ht-auction-modal__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.ht-auction-modal__title-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.ht-auction-modal__subtitle {
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: #9ca3af;
}

.ht-auction-modal__close {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #374151;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex: 0 0 auto;
    padding: 0;
}

.ht-auction-modal__close:hover,
.ht-auction-modal__close:focus {
    background: #111827;
    border-color: #111827;
    color: #fff;
    outline: none;
}

.ht-auction-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ht-auction-details__overview {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.ht-auction-details__media {
    position: relative;
    min-height: 170px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}

.ht-auction-details__media img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.ht-auction-details__media .ht-auction-badge--featured {
    left: 10px;
    top: 10px;
    right: auto;
}

.ht-auction-details__media .ht-auction-badge--live,
.ht-auction-details__media .ht-auction-badge--ended {
    right: 10px;
    top: 10px;
    left: auto;
}

.ht-auction-details__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ht-auction-details__meta h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--display-color, #111827);
    line-height: 1.3;
}

.ht-auction-details__description {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6b7280;
}

.ht-auction-details__description p {
    margin: 0 0 0.45rem;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.ht-auction-details__description p:last-child {
    margin-bottom: 0;
}

.ht-auction-details__location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.ht-auction-details__amenities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    background: #f5f6f8;
}

.ht-auction-details__amenities li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.ht-auction-details__amenities iconify-icon {
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.ht-auction-details__amenities strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
}

.ht-auction-details__amenities span {
    display: block;
    font-size: 0.62rem;
    color: #9ca3af;
}

.ht-auction-details__head {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 14px;
}

.ht-auction-details__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 118px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}

.ht-auction-details__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.ht-auction-details__thumb .ht-auction-badge {
    top: 8px;
    left: 8px;
    right: auto;
    font-size: 10px;
    padding: 2px 8px;
}

.ht-auction-details__head h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--display-color, #111827);
}

.ht-auction-timer--modal {
    margin: 0;
    border: 1px solid #eceff3;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: #f8f9fb;
    text-align: center;
}

.ht-auction-timer--modal.ht-auction-timer--bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.ht-auction-timer--modal .ht-auction-timer__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__label {
    margin-bottom: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ht-auction-timer--modal .ht-auction-timer__label iconify-icon {
    font-size: 1rem;
    color: var(--primary);
}

.ht-auction-timer--modal .ht-auction-timer__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__grid {
    justify-content: flex-end;
    flex: 1 1 auto;
}

.ht-auction-timer--modal .ht-auction-timer__unit {
    min-width: 2.6rem;
    padding: 0.28rem 0.25rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eceff3;
    text-align: center;
}

.ht-auction-timer--modal .ht-auction-timer__unit strong {
    display: block;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ht-auction-timer--modal .ht-auction-timer__unit small {
    display: block;
    margin-top: 0.1rem;
    color: #9ca3af;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ht-auction-timer--modal .ht-auction-timer__sep {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    padding-bottom: 0.55rem;
}

.ht-auction-details__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #eceff3;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    margin-top: 0;
}

.ht-auction-details__stats--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.ht-auction-stat {
    padding: 0.9rem 0.95rem;
    border-right: 1px solid #eceff3;
    border-bottom: 1px solid #eceff3;
}

.ht-auction-details__stats--cards .ht-auction-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #eceff3;
    border-radius: 10px;
    background: #fff;
    min-height: 0;
}

.ht-auction-stat:nth-child(2n) {
    border-right: 0;
}

.ht-auction-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.ht-auction-details__stats--cards .ht-auction-stat:nth-child(2n),
.ht-auction-details__stats--cards .ht-auction-stat:nth-last-child(-n + 2) {
    border-right: 1px solid #eceff3;
    border-bottom: 1px solid #eceff3;
}

.ht-auction-details__stats .ht-auction-stat:nth-last-child(1):nth-child(odd) {
    border-bottom: 0;
    grid-column: 1 / -1;
}

.ht-auction-details__stats--cards .ht-auction-stat:nth-last-child(1):nth-child(odd) {
    grid-column: auto;
    border-bottom: 1px solid #eceff3;
}

.ht-auction-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 1.15rem;
}

.ht-auction-details__stats--cards .ht-auction-stat__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.ht-auction-stat__body {
    min-width: 0;
}

.ht-auction-stat span:not(.ht-auction-stat__icon) {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ht-auction-details__stats--cards .ht-auction-stat span:not(.ht-auction-stat__icon) {
    font-size: 10px;
    margin-bottom: 0.1rem;
    letter-spacing: 0.02em;
}

.ht-auction-stat strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.ht-auction-details__stats--cards .ht-auction-stat strong {
    font-size: 0.88rem;
    line-height: 1.2;
}

.ht-auction-stat__meta {
    display: block;
    margin-top: 0.28rem;
    font-size: 12px;
    color: #6b7280;
}

.ht-auction-details__stats--cards .ht-auction-stat__meta {
    margin-top: 0.08rem;
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ht-auction-stat__meta.is-success,
.js-bid-reserve.is-success,
.js-detail-reserve.is-success {
    color: #16a34a;
    font-weight: 700;
}

.js-detail-reserve.is-success {
    color: #16a34a;
}

.ht-auction-details__bids {
    border: 1px solid #eceff3;
    border-radius: 10px;
    background: #fff;
    padding: 0.65rem 0.75rem;
}

.ht-auction-details__bids-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.ht-auction-details__bids-head h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

.ht-auction-details__bids-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.ht-auction-details__bids-link:hover {
    text-decoration: underline;
    color: var(--primary);
}

.ht-auction-bid-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.ht-auction-bid-history__item:last-child {
    border-bottom: 0;
}

.ht-auction-bid-history__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ht-auction-bid-history__avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.ht-auction-bid-history__user strong {
    display: block;
    font-size: 0.92rem;
    color: #111827;
}

.ht-auction-bid-history__user small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.ht-auction-bid-history__amount {
    text-align: right;
}

.ht-auction-bid-history__amount strong {
    display: block;
    font-size: 0.95rem;
    color: #111827;
}

.ht-auction-bid-history__badge {
    display: inline-flex;
    margin-top: 0.2rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
}

.ht-auction-bid-history__empty {
    padding: 0.75rem 0 0.15rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.ht-auction-modal .modal-footer .ht-auction-btn {
    min-height: 58px;
    border-radius: 14px;
    gap: 0.65rem;
    justify-content: center;
}

.ht-auction-modal .modal-footer .ht-auction-btn > i {
    font-size: 1.25rem;
}

.ht-auction-modal .modal-footer .ht-auction-btn span {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.ht-auction-modal .modal-footer .ht-auction-btn strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.ht-auction-modal .modal-footer .ht-auction-btn small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.ht-auction-info-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 0.95rem;
    border-radius: 12px;
    margin-top: 0.85rem;
}

.ht-auction-info-alert,
.ht-auction-info-alert--danger {
    background: #fff;
    border: 1px solid #eceff3;
}

.ht-auction-info-alert__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.05rem;
    background: #f3f4f6;
    color: #374151;
}

.ht-auction-info-alert--danger .ht-auction-info-alert__icon {
    background: #f3f4f6;
    color: #374151;
}

.ht-auction-info-alert strong,
.ht-auction-info-alert--danger strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    color: #111827;
}

.ht-auction-info-alert p,
.ht-auction-info-alert--danger p {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
}

.ht-auction-deposit-box,
.ht-auction-deposit-box.is-warn,
.ht-auction-deposit-box.is-ok {
    border: 1px solid #eceff3;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    background: #fff;
}

.ht-auction-deposit-box__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.ht-auction-deposit-box__icon,
.ht-auction-deposit-box.is-warn .ht-auction-deposit-box__icon,
.ht-auction-deposit-box.is-ok .ht-auction-deposit-box__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.1rem;
}

.ht-auction-deposit-box__head strong {
    font-size: 0.92rem;
    color: #111827;
}

.ht-auction-deposit-box__rows {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.ht-auction-deposit-box__rows > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.ht-auction-deposit-box__rows span {
    color: #6b7280;
}

.ht-auction-deposit-box__rows strong {
    color: #111827;
}

.ht-auction-deposit-box__note,
.ht-auction-deposit-box__note.is-ok,
.ht-auction-deposit-box__note.is-warn {
    font-size: 0.8rem;
    color: #6b7280;
    padding-top: 0.65rem;
    border-top: 1px solid #eceff3;
    font-weight: 500;
}

.ht-auction-bid-input .form-control,
.ht-auction-bid-input .input-group-text {
    min-height: 48px;
    border-color: #e5e7eb;
    background: #fff;
}

.ht-auction-bid-input .input-group-text:first-child {
    border-radius: 12px 0 0 12px;
    color: #6b7280;
    font-weight: 700;
}

.ht-auction-bid-input .form-control {
    border-radius: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.ht-auction-bid-input__suffix,
.ht-auction-bid-input .input-group-text:last-child {
    border-radius: 0 12px 12px 0;
    color: #64748b;
    font-weight: 700;
}

.ht-auction-bid-input .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
    z-index: 3;
}

.ht-auction-summary {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 14px;
    padding: 0.95rem 1rem;
}

.ht-auction-summary > .d-flex {
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.ht-auction-summary > .d-flex strong {
    color: #111827;
}

.ht-auction-summary__divider {
    margin: 0.55rem 0;
    border: 0;
    border-top: 1px solid #eceff3;
    opacity: 1;
}

.ht-auction-summary__hold span,
.ht-auction-summary__hold strong {
    color: #111827;
    font-weight: 700;
}

.ht-auction-modal .form-check-label {
    font-size: 0.875rem;
    color: #374151;
}

.ht-auction-modal .modal-footer .btn {
    border-radius: 12px;
    min-height: 48px;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .ht-auction-card {
        grid-template-columns: 340px minmax(0, 1fr);
    }

    .ht-auction-card__media {
        height: 280px;
        min-height: 280px;
    }

    .ht-auction-card__main {
        min-height: 280px;
    }

    .ht-auction-card__body {
        grid-template-columns: 1fr;
    }

    .ht-auction-card__aside {
        max-width: none;
        padding-left: 0;
    }

    .ht-auction-card__aside::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .ht-auction-details__stats--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ht-auction-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .ht-auction-card__media {
        aspect-ratio: 16 / 10;
        height: auto;
        min-height: 260px;
    }

    .ht-auction-card__main {
        min-height: 0;
        padding: 0.2rem 0;
    }

    .ht-auction-card__title {
        font-size: 1.15rem;
    }

    .ht-auction-card__specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-auction-card__specs li {
        border-right: 0;
        padding: 0.25rem 0;
    }

    .ht-auction-card__aside {
        max-width: none;
    }

    /* Bid stats — stacked rows so amounts don't mid-break */
    .ht-auction-card__stats {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        border: 1px solid #e8ebf0;
        border-radius: 12px;
        overflow: hidden;
        background: #fafbfc;
    }

    .ht-auction-card__stats li {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 0;
        padding: 0.7rem 0.85rem !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e8ebf0;
    }

    .ht-auction-card__stats li:last-child {
        border-bottom: 0;
    }

    .ht-auction-card__stats span {
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .ht-auction-card__stats p {
        margin: 0;
        font-size: 0.875rem;
        text-align: right;
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    .ht-auction-card__progress {
        margin: 1rem 0 1.15rem;
        padding-right: 2.75rem;
        height: 6px;
    }

    .ht-auction-card__progress-value {
        min-width: 36px;
        font-size: 0.65rem;
    }

    .ht-auction-card__actions {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-top: 0;
        padding-top: 0;
    }

    .ht-auction-btn {
        min-height: 42px;
        padding: 0.6rem 0.875rem;
        font-size: 0.875rem;
    }

    .ht-auction-timer--overlay {
        flex-direction: column;
        align-items: flex-start;
    }

    .ht-auction-timer--overlay .ht-auction-timer__grid {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .ht-auction-modal .modal-header,
    .ht-auction-modal .modal-body,
    .ht-auction-modal .modal-footer {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .ht-auction-details__overview {
        grid-template-columns: 1fr;
    }

    .ht-auction-details__media {
        min-height: 180px;
        aspect-ratio: 16 / 10;
    }

    .ht-auction-details__amenities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-auction-details__thumb {
        width: 92px;
        height: 84px;
    }

    .ht-auction-details__stats {
        grid-template-columns: 1fr;
    }

    .ht-auction-details__stats--cards {
        grid-template-columns: 1fr;
    }

    .ht-auction-stat {
        border-right: 0;
    }

    .ht-auction-stat:nth-last-child(-n + 2) {
        border-bottom: 1px solid #e8ecf4;
    }

    .ht-auction-details__stats--cards .ht-auction-stat:nth-last-child(-n + 2) {
        border-bottom: 1px solid #eceff3;
    }

    .ht-auction-stat:last-child {
        border-bottom: 0;
    }

    .ht-auction-details__stats--cards .ht-auction-stat:last-child {
        border-bottom: 1px solid #eceff3;
    }

    .ht-auction-timer--modal.ht-auction-timer--bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.75rem;
    }

    .ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__label {
        justify-content: center;
    }

    .ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__grid {
        justify-content: center;
    }

    .ht-auction-timer--modal .ht-auction-timer__unit strong {
        font-size: 1.05rem;
        font-weight: 600 !important;
    }

    /* Soften over-bold type in auction details on mobile */
    .ht-auction-details-modal .modal-title,
    .ht-auction-details__head h5,
    .ht-auction-details__meta h5,
    .ht-auction-details__bids-head h6 {
        font-weight: 600 !important;
    }

    .ht-auction-stat strong,
    .ht-auction-details__stats strong,
    .ht-auction-details__stats--cards .ht-auction-stat strong,
    .js-detail-reserve,
    .js-bid-reserve {
        font-weight: 500 !important;
    }

    .ht-auction-stat span:not(.ht-auction-stat__icon),
    .ht-auction-details__stats--cards .ht-auction-stat span:not(.ht-auction-stat__icon) {
        font-weight: 500 !important;
    }

    .ht-auction-stat__meta.is-success,
    .js-bid-reserve.is-success,
    .js-detail-reserve.is-success {
        font-weight: 600 !important;
    }

    .ht-auction-details-modal .modal-footer .btn,
    .ht-auction-details-modal .btn.ht-solid-btn-primary {
        font-weight: 600 !important;
    }
}

/* Property auction details modal — premium SaaS layout */
.ht-auction-details-dialog {
    --bs-modal-width: 1000px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.ht-auction-details-modal {
    max-height: calc(100vh - 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.ht-auction-details-modal .modal-header,
.ht-auction-details-modal .modal-body,
.ht-auction-details-modal .modal-footer {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.ht-auction-details-modal .modal-header {
    min-height: 0;
    padding-top: 1.1rem;
    padding-bottom: 1.25rem !important;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.ht-auction-details-modal .modal-title,
.ht-auction-details-modal .modal-title.fw-bold {
    font-size: 1.02rem;
    font-weight: 600 !important;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #334155;
}

.ht-auction-details-modal .ht-auction-modal__title-wrap {
    align-items: center;
    gap: 0.7rem;
}

.ht-auction-details-modal .ht-auction-modal__title-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.05rem;
}

.ht-auction-details-modal .ht-auction-modal__subtitle {
    margin-top: 2px;
    font-size: 0.76rem;
    font-weight: 400;
    color: #94a3b8;
}

.ht-auction-details-modal .ht-auction-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.15rem;
    box-shadow: none;
}

.ht-auction-details-modal .modal-body {
    padding-top: 0.35rem !important;
    padding-bottom: 0 !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ht-auction-details-modal .ht-auction-details {
    gap: 1rem;
}

.ht-auction-details-modal .ht-auction-details__media .ht-auction-badge--featured {
    top: 10px;
    left: 10px;
}

.ht-auction-details-modal .ht-auction-details__media .ht-auction-badge--live,
.ht-auction-details-modal .ht-auction-details__media .ht-auction-badge--ended {
    top: 10px;
    right: 10px;
}

.ht-auction-details__gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.ht-auction-details-modal .ht-auction-details__overview {
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 1.15rem;
    min-height: 0;
    margin-top: 0.25rem;
    padding: 0.85rem;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    background: #fff;
}

.ht-auction-details-modal .ht-auction-details__media {
    width: 100%;
    height: 176px;
    min-height: 176px;
    aspect-ratio: auto;
    border-radius: 10px;
}

.ht-auction-details-modal .ht-auction-details__media img {
    min-height: 176px;
}

.ht-auction-details-modal .ht-auction-details__meta {
    padding: 0.2rem 0.15rem 0 0;
    gap: 0.45rem;
    justify-content: center;
}

.ht-auction-details-modal .ht-auction-details__meta h5 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.ht-auction-details-modal .ht-auction-details__location {
    font-size: 0.84rem;
    color: #64748b;
}

.ht-auction-details-modal .ht-auction-details__description {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ht-auction-details-modal .ht-auction-details__amenities {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: auto 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.ht-auction-details-modal .ht-auction-details__amenities li {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 0 8px;
    text-align: center;
}

.ht-auction-details-modal .ht-auction-details__amenities li:not(:last-child)::after {
    position: absolute;
    content: '';
    top: 10px;
    right: 0;
    bottom: 10px;
    width: 1px;
    background: #e7eaf0;
}

.ht-auction-details-modal .ht-auction-details__amenities iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(88, 80, 236, 0.08);
    font-size: 1rem;
}

.ht-auction-details-modal .ht-auction-details__amenities strong {
    font-size: 0.85rem;
}

.ht-auction-details-modal .ht-auction-details__amenities span {
    margin-top: 0;
    font-size: 0.65rem;
    color: #64748b;
}

.ht-auction-details-modal .ht-auction-timer--modal.ht-auction-timer--bar {
    min-height: 0;
    padding: 0.55rem 0.9rem;
    border-color: #e7eaf0;
    border-radius: 10px;
    background: #fff;
}

.ht-auction-details-modal .ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__label {
    justify-content: flex-start;
    gap: 0.5rem;
    color: #1f2937;
    font-size: 0.78rem;
    font-weight: 700;
}

.ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__label iconify-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(88, 80, 236, 0.18);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 80, 236, 0.08);
    font-size: 1rem;
}

.ht-auction-details-modal .ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__grid {
    flex: 0 0 auto;
    gap: 0.35rem;
}

.ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__unit {
    width: 58px;
    min-width: 58px;
    min-height: 0;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
}

.ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__unit strong {
    font-size: 1.1rem;
}

.ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__unit small {
    margin-top: 0.1rem;
    font-size: 0.6rem;
}

.ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__sep {
    padding-bottom: 0.55rem;
    font-size: 1.05rem;
    color: #64748b;
}

.ht-auction-details-modal .ht-auction-details__stats--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat {
    min-height: 88px;
    padding: 1rem 1.05rem;
    border: 0;
    border-right: 1px solid #e7eaf0;
    border-bottom: 1px solid #e7eaf0;
    border-radius: 0;
    background: transparent;
    align-items: flex-start;
    gap: 0.75rem;
}

.ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-child(3n) {
    border-right: 0;
}

.ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-child(n + 4) {
    border-bottom: 0;
}

.ht-auction-details-modal .ht-auction-stat__icon {
    width: 34px;
    height: 34px;
    margin-top: 2px;
    border-radius: 50%;
    font-size: 1rem;
}

.ht-auction-details-modal .ht-auction-stat__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ht-auction-details-modal .ht-auction-stat span:not(.ht-auction-stat__icon) {
    margin-bottom: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.ht-auction-details-modal .ht-auction-stat strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.ht-auction-details-modal .ht-auction-stat__meta {
    margin-top: 0;
    font-size: 0.74rem;
    line-height: 1.35;
    color: #64748b;
}

.ht-auction-details-modal .ht-auction-details__bids {
    min-height: 0;
    padding: 0;
    border-color: #e7eaf0;
    border-radius: 12px;
    overflow: hidden;
}

.ht-auction-details-modal .ht-auction-details__bids-head {
    min-height: 0;
    margin: 0;
    padding: 0.75rem 1.05rem;
    border-bottom: 1px solid #e7eaf0;
}

.ht-auction-details-modal .ht-auction-details__bids-head h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.ht-auction-details-modal .ht-auction-details__bids-link {
    font-size: 0.82rem;
    font-weight: 600;
}

.ht-auction-details-modal .ht-auction-bid-history__item,
.ht-auction-details-modal .ht-auction-bid-history__item:last-child {
    margin: 0;
    padding: 1.15rem 1.15rem;
    border-bottom: 1px solid #eef1f5;
}

.ht-auction-details-modal .ht-auction-bid-history__item:last-child {
    border-bottom: 0;
    padding-bottom: 1.15rem;
}

.ht-auction-details-modal .ht-auction-bid-history__user--inline {
    gap: 0;
    min-height: 1.5rem;
    align-items: center;
}

.ht-auction-details-modal .ht-auction-bid-history__user--inline > span {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
    color: #64748b;
}

.ht-auction-details-modal .ht-auction-bid-history__amount {
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

.ht-auction-details-modal .ht-auction-bid-history__amount strong {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    color: #0f172a;
}

.ht-auction-details-modal .ht-auction-bid-history__empty {
    padding: 1.1rem 1.05rem;
}

.ht-auction-details-modal .modal-footer {
    flex: 0 0 auto;
    padding-top: 24px !important;
    padding-bottom: 1.15rem !important;
    margin-top: 0;
}

.ht-auction-details-modal .modal-footer .ht-auction-btn {
    min-height: 46px;
    max-height: 46px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    gap: 0.55rem;
    box-shadow: 0 6px 14px rgba(88, 80, 236, 0.18);
}

.ht-auction-details-modal .modal-footer .ht-auction-btn > i {
    font-size: 1.05rem;
    line-height: 1;
}

.ht-auction-details-modal .modal-footer .ht-auction-btn span {
    gap: 0.1rem;
}

.ht-auction-details-modal .modal-footer .ht-auction-btn strong {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ht-auction-details-modal .modal-footer .ht-auction-btn small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.88;
}

@media (max-width: 1199.98px) {
    .ht-auction-details-dialog {
        --bs-modal-width: calc(100vw - 32px);
    }

    .ht-auction-details-modal .ht-auction-details__overview {
        grid-template-columns: minmax(180px, 36%) minmax(0, 1fr);
        gap: 0.85rem;
    }

    .ht-auction-details-modal .ht-auction-details__media {
        width: 100%;
    }

    .ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__unit {
        width: 54px;
        min-width: 54px;
    }

    .ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__unit strong {
        font-size: 1.05rem;
    }
}

@media (max-width: 991.98px) {
    .ht-auction-details-modal .ht-auction-details__overview {
        grid-template-columns: 1fr;
    }

    .ht-auction-details-modal .ht-auction-details__media {
        height: auto;
        min-height: 180px;
        aspect-ratio: 16 / 10;
    }

    .ht-auction-details-modal .ht-auction-details__media img {
        min-height: 180px;
    }

    .ht-auction-details-modal .ht-auction-details__amenities {
        margin-top: 12px;
    }

    .ht-auction-details-modal .ht-auction-timer--modal.ht-auction-timer--bar {
        flex-direction: column;
    }

    .ht-auction-details-modal .ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__grid {
        justify-content: center;
        width: 100%;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat,
    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-child(3n),
    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-child(n + 4) {
        border-right: 1px solid #e7eaf0;
        border-bottom: 1px solid #e7eaf0;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-child(2n) {
        border-right: 0;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .ht-auction-details-modal .modal-header,
    .ht-auction-details-modal .modal-body,
    .ht-auction-details-modal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ht-auction-details-modal .modal-title {
        font-size: 1.2rem;
    }

    .ht-auction-details-modal .ht-auction-modal__title-icon,
    .ht-auction-details-modal .ht-auction-modal__close {
        width: 42px;
        height: 42px;
    }

    .ht-auction-details-modal .ht-auction-details__amenities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-auction-details-modal .ht-auction-details__amenities li:nth-child(2n)::after {
        display: none;
    }

    .ht-auction-details-modal .ht-auction-timer--modal.ht-auction-timer--bar .ht-auction-timer__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__sep {
        display: none;
    }

    .ht-auction-details-modal .ht-auction-timer--modal .ht-auction-timer__unit {
        width: 100%;
        min-width: 0;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards {
        grid-template-columns: 1fr;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat,
    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-child(2n),
    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e7eaf0;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat:last-child {
        border-bottom: 0;
    }
}

/* Place Your Bid modal — same vibe as Auction Details */
.ht-auction-bid-dialog {
    --bs-modal-width: 1100px;
}

.ht-auction-bid-modal {
    min-height: min(720px, calc(100vh - 28px));
}

.ht-auction-bid-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.ht-auction-bid-modal .modal-header {
    padding-bottom: 1.1rem !important;
}

.ht-auction-bid-modal .modal-body {
    padding-top: 0.55rem !important;
    padding-bottom: 1.15rem !important;
}

.ht-auction-bid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 1.35rem;
    align-items: stretch;
}

.ht-auction-bid-layout__context,
.ht-auction-bid-layout__action {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.ht-auction-bid-modal .ht-auction-details__overview {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 1.05rem;
    margin-top: 0;
    padding: 0.9rem;
}

.ht-auction-bid-modal .ht-auction-details__media {
    width: 100%;
    height: 156px;
    min-height: 156px;
    border-radius: 10px;
}

.ht-auction-bid-modal .ht-auction-details__media img {
    min-height: 156px;
}

.ht-auction-bid-modal .ht-auction-details__media .ht-auction-badge--featured {
    top: 10px;
    left: 10px;
}

.ht-auction-bid-modal .ht-auction-details__media .ht-auction-badge--live {
    top: 10px;
    right: 10px;
    left: auto;
}

.ht-auction-bid-modal .ht-auction-details__meta {
    padding: 0.1rem 0.1rem 0 0;
    gap: 0.35rem;
    justify-content: center;
}

.ht-auction-bid-modal .ht-auction-details__meta h5 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.ht-auction-bid-modal .ht-auction-details__location {
    font-size: 0.82rem;
    color: #64748b;
}

.ht-auction-bid-modal .ht-auction-details__description {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
    -webkit-line-clamp: 3;
}

.ht-auction-bid-modal .ht-auction-details__amenities {
    display: none !important;
}

.ht-auction-bid-modal .ht-auction-timer--modal.ht-auction-timer--bar {
    padding: 0.7rem 1rem;
}

.ht-auction-bid-modal .ht-auction-bid-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat {
    min-height: 0;
    padding: 0.95rem 1rem;
    gap: 0.7rem;
}

.ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:nth-child(3n) {
    border-right: 1px solid #e7eaf0;
}

.ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:nth-child(2n) {
    border-right: 0;
}

.ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:nth-child(n + 4) {
    border-bottom: 1px solid #e7eaf0;
}

.ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.ht-auction-bid-modal .ht-auction-stat__icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
}

.ht-auction-bid-modal .ht-auction-stat__body {
    gap: 0.35rem;
}

.ht-auction-bid-modal .ht-auction-stat span:not(.ht-auction-stat__icon) {
    margin-bottom: 0;
    line-height: 1.25;
}

.ht-auction-bid-modal .ht-auction-stat strong {
    font-size: 0.95rem;
    line-height: 1.35;
}

.ht-auction-bid-modal .ht-auction-stat__meta {
    margin-top: 0.1rem;
    font-size: 0.74rem;
    line-height: 1.4;
}

.ht-auction-bid-modal .ht-auction-stat__meta.is-success,
.ht-auction-bid-modal .js-bid-reserve.is-success {
    color: #16a34a;
}

.ht-auction-bid-layout__action {
    padding: 1.15rem;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    background: #fff;
}

.ht-auction-bid-balance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.ht-auction-bid-balance__card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 0.95rem;
}

.ht-auction-bid-balance__card + .ht-auction-bid-balance__card {
    border-left: 1px solid #e7eaf0;
}

.ht-auction-bid-balance__card span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ht-auction-bid-balance__card strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.ht-auction-bid-balance__note {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.3;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ht-auction-bid-balance__note.is-ok {
    color: #16a34a;
}

.ht-auction-bid-balance__note.is-warn {
    color: #b45309;
}

.ht-auction-bid-field .form-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

/* Keep bid amount as one horizontal group (override property page .input-group{display:block}) */
.ht-auction-bid-input.input-group,
.ht-auction-bid-modal .ht-auction-bid-input {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
}

.ht-auction-bid-modal .ht-auction-bid-input .form-control,
.ht-auction-bid-modal .ht-auction-bid-input .input-group-text {
    min-height: 46px;
    border-color: #e7eaf0;
    background: #fff;
    margin-bottom: 0 !important;
}

.ht-auction-bid-modal .ht-auction-bid-input .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
}

.ht-auction-bid-modal .ht-auction-bid-input .input-group-text:first-child {
    border-radius: 12px 0 0 12px !important;
    color: #64748b;
    font-weight: 600;
}

.ht-auction-bid-modal .ht-auction-bid-input__suffix,
.ht-auction-bid-modal .ht-auction-bid-input .input-group-text:last-child {
    border-radius: 0 12px 12px 0 !important;
    color: #64748b;
    font-weight: 600;
}

.ht-auction-bid-modal .ht-auction-bid-input .form-control {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
    border-radius: 0 !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.ht-auction-bid-modal .ht-auction-bid-input .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 80, 236, 0.12);
}

.ht-auction-bid-minbanner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(88, 80, 236, 0.08);
    color: #4338ca;
    font-size: 0.78rem;
    line-height: 1.4;
}

.ht-auction-bid-minbanner i {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.2;
}

.ht-auction-bid-minbanner strong {
    font-weight: 700;
    color: #312e81;
}

.ht-auction-bid-modal .ht-auction-summary {
    padding: 1.05rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #e7eaf0;
    background: #f8fafc;
}

.ht-auction-bid-modal .ht-auction-summary > .d-flex {
    margin-bottom: 0.7rem;
    font-size: 0.86rem;
    color: #64748b;
}

.ht-auction-bid-modal .ht-auction-summary > .d-flex:last-of-type {
    margin-bottom: 0;
}

.ht-auction-bid-modal .ht-auction-summary > .d-flex strong {
    color: #0f172a;
    font-weight: 600;
}

.ht-auction-bid-modal .ht-auction-summary .is-deduct {
    color: #dc2626;
}

.ht-auction-bid-modal .ht-auction-summary__divider {
    margin: 0.75rem 0;
}

.ht-auction-bid-modal .ht-auction-summary__hold {
    margin-top: 0.1rem;
}

.ht-auction-bid-modal .ht-auction-summary__hold span,
.ht-auction-bid-modal .ht-auction-summary__hold strong {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.ht-auction-summary__hint {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.7rem;
    color: #94a3b8;
}

.ht-auction-bid-agree {
    margin: 0.15rem 0 0;
}

.ht-auction-bid-agree .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    border-color: #cbd5e1;
}

.ht-auction-bid-agree .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.ht-auction-bid-agree .form-check-label {
    font-size: 0.82rem;
    color: #475569;
}

.ht-auction-bid-modal .modal-footer {
    padding-top: 0.25rem !important;
    padding-bottom: 1rem !important;
    flex: 0 0 auto;
}

.ht-auction-bid-modal .modal-footer .ht-auction-bid-submit {
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    white-space: normal;
}

.ht-auction-bid-modal .modal-footer .ht-auction-bid-submit > i {
    flex-shrink: 0;
    font-size: 1.05rem;
}

.ht-auction-bid-modal .modal-footer .ht-auction-bid-submit span {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-width: 0;
    line-height: 1.2;
}

.ht-auction-bid-modal .modal-footer .ht-auction-bid-submit strong {
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.ht-auction-bid-modal .modal-footer .ht-auction-bid-submit small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    white-space: nowrap;
}

.ht-auction-bid-modal .modal-footer .ht-auction-bid-submit small::before {
    content: '•';
    margin-right: 0.45rem;
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .ht-auction-bid-dialog {
        --bs-modal-width: 720px;
    }

    .ht-auction-bid-layout {
        grid-template-columns: 1fr;
    }

    .ht-auction-bid-modal .ht-auction-details__overview {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ht-auction-bid-modal .ht-auction-details__overview {
        grid-template-columns: 1fr;
    }

    .ht-auction-bid-modal .ht-auction-details__media,
    .ht-auction-bid-modal .ht-auction-details__media img {
        height: 180px;
        min-height: 180px;
    }

    .ht-auction-bid-modal .ht-auction-bid-stats {
        grid-template-columns: 1fr;
    }

    .ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat,
    .ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:nth-child(2n),
    .ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:nth-child(3n),
    .ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e7eaf0;
    }

    .ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat:last-child {
        border-bottom: 0;
    }

    .ht-auction-bid-balance {
        grid-template-columns: 1fr;
    }

    .ht-auction-bid-balance__card + .ht-auction-bid-balance__card {
        border-left: 0;
        border-top: 1px solid #e7eaf0;
    }

    .ht-auction-bid-layout__action {
        gap: 0.9rem;
        padding: 0.95rem;
    }

    .ht-auction-bid-field {
        margin-top: 0.15rem;
    }

    .ht-auction-bid-modal .ht-auction-bid-input .form-control,
    .ht-auction-bid-modal .ht-auction-bid-input .input-group-text {
        min-height: 44px;
        font-size: 0.9375rem;
    }

    .ht-auction-bid-modal .modal-footer {
        padding-inline: 1rem !important;
    }

    .ht-auction-bid-modal .modal-footer .ht-auction-bid-submit {
        width: 100%;
        justify-content: flex-start;
        gap: 0.65rem;
        padding: 0.8rem 0.95rem;
        min-height: 52px;
    }

    .ht-auction-bid-modal .modal-footer .ht-auction-bid-submit span {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .ht-auction-bid-modal .modal-footer .ht-auction-bid-submit strong {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .ht-auction-bid-modal .modal-footer .ht-auction-bid-submit small {
        font-size: 0.68rem;
        opacity: 0.9;
        white-space: normal;
        line-height: 1.3;
    }

    .ht-auction-bid-modal .modal-footer .ht-auction-bid-submit small::before {
        display: none;
    }
}

/* Bonus unlock success popup — primary gradient + white text */
.bonus-popup-body {
    background: linear-gradient(155deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 72%, #0b1220) 100%) !important;
    box-shadow: 0 22px 48px color-mix(in srgb, var(--primary) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

.bonus-popup-body h2,
.bonus-popup-body h3,
.bonus-popup-body h5,
.bonus-popup-body p,
.bonus-popup-body .bonus_amount,
.bonus-popup-body a,
.bonus-popup-body .text-xxl,
.bonus-popup-body .text-sm {
    color: #ffffff !important;
}

.bonus-popup-body a:hover {
    color: #ffffff !important;
    opacity: 0.9;
}

/* === Cookie banner — Agriculture layout, Realstate primary === */
#cookieConsentBanner.cookie-policy,
.cookie-policy#cookieConsentBanner {
    position: fixed !important;
    z-index: 1080 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    display: block !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    border-top: 1px solid color-mix(in srgb, var(--primary) 18%, #e5e7eb) !important;
    box-shadow: 0 -8px 28px color-mix(in srgb, var(--primary) 16%, transparent) !important;
}

#cookieConsentBanner.cookie-policy.is-dismissed,
#cookieConsentBanner.cookie-policy[hidden] {
    display: none !important;
}

#cookieConsentBanner .cookie-policy-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.5rem;
}

#cookieConsentBanner .cookie-policy-content {
    flex: 1 1 320px;
    min-width: 0;
    margin-bottom: 0 !important;
}

#cookieConsentBanner .cookie-policy-line {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4b5563 !important;
}

#cookieConsentBanner .cookie-policy-title,
#cookieConsentBanner .cookie-policy-more {
    color: var(--primary) !important;
    font-weight: 700;
}

#cookieConsentBanner .cookie-policy-sep {
    margin: 0 0.35rem;
    color: #9ca3af !important;
}

#cookieConsentBanner .cookie-policy-desc {
    color: #4b5563 !important;
}

#cookieConsentBanner .cookie-policy-more {
    margin-left: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 0.14em;
    white-space: nowrap;
}

#cookieConsentBanner .cookie-policy-more:hover {
    color: var(--secondary, var(--primary)) !important;
}

#cookieConsentBanner .cookie-policy-btns {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.6rem;
}

#cookieConsentBanner .cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

#cookieConsentBanner .cookie-btn-reject {
    color: var(--primary) !important;
    background: #ffffff !important;
    border-color: var(--primary) !important;
}

#cookieConsentBanner .cookie-btn-reject:hover {
    background: color-mix(in srgb, var(--primary) 8%, #ffffff) !important;
}

#cookieConsentBanner .cookie-btn-accept {
    color: #ffffff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

#cookieConsentBanner .cookie-btn-accept:hover {
    background: var(--secondary, var(--primary)) !important;
    border-color: var(--secondary, var(--primary)) !important;
}

@media (max-width: 767.98px) {
    #cookieConsentBanner .cookie-policy-inner {
        flex-direction: column;
        align-items: stretch;
    }

    #cookieConsentBanner .cookie-policy-btns {
        width: 100%;
    }

    #cookieConsentBanner .cookie-btn {
        flex: 1 1 auto;
    }
}

/* ===== FAQ section — reference two-column layout ===== */
.ht-faq-section {
    position: relative;
    z-index: 1;
    background: #fbfcff;
    overflow: hidden;
}

.ht-faq-section::before,
.ht-faq-section::after {
    display: none;
}

.ht-faq-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
}

.ht-faq-copy,
.ht-faq-content-wrapper {
    max-width: none;
    overflow: visible;
}

.ht-faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: rgba(88, 80, 236, 0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.ht-faq-badge i {
    font-size: 0.95rem;
}

.ht-faq-title {
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.ht-faq-desc {
    margin: 0 0 2.25rem;
    max-width: none;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.55;
    white-space: nowrap;
}

.ht-faq-thumb {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.ht-faq-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 34 / 25;
    object-fit: cover;
}

.ht-faq-panel {
    margin-top: 44px;
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 20px;
    padding: 0 1.75rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.ht-faq-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-icon-transition: none;
    --bs-accordion-transition: height 0s ease;
}

/* Instant open/close — Bootstrap skips wait when duration is 0 */
.ht-faq-accordion .accordion-collapse,
.ht-faq-accordion .collapsing {
    transition: height 0s ease !important;
    transition-duration: 0s !important;
}

.ht-faq-button,
.ht-faq-button::after {
    transition: none !important;
}

.ht-faq-item {
    border: 0 !important;
    border-bottom: 1px solid #eef1f6 !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.ht-faq-item:last-child {
    border-bottom: 0 !important;
}

.ht-faq-button {
    display: flex !important;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-height: 92px;
    padding: 1.35rem 2.75rem 1.35rem 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.45;
    text-align: left;
}

.ht-faq-button:focus,
.ht-faq-button:not(.collapsed) {
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a !important;
}

.ht-faq-qicon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 80, 236, 0.1);
    color: var(--primary);
    font-size: 1rem;
}

.ht-faq-question {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0.35rem;
}

.ht-faq-button::after {
    content: "+" !important;
    font-family: inherit !important;
    font-size: 1.35rem !important;
    font-weight: 500 !important;
    color: var(--primary) !important;
    background-image: none !important;
    border: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.ht-faq-button:not(.collapsed)::after {
    content: "−" !important;
    transform: translateY(-52%);
}

.ht-faq-answer {
    padding: 0 0 1.15rem 3.05rem !important;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.ht-faq-empty {
    padding: 1.5rem 0;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 991.98px) {
    .ht-faq-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ht-faq-content-wrapper {
        max-width: none;
        text-align: center;
    }

    .ht-faq-desc {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
    }

    .ht-faq-thumb {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        box-shadow: none;
    }

    .ht-faq-panel {
        margin-top: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .ht-faq-button {
        min-height: 68px;
        font-size: 0.95rem !important;
        gap: 0.7rem;
        padding-right: 2rem !important;
    }

    .ht-faq-qicon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .ht-faq-answer {
        padding-left: 0 !important;
    }
}

/* ===== Referral section — clean balanced layout ===== */
.ht-referral-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fbfcff;
}

.ht-referral-section::before,
.ht-referral-section::after {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 8%, transparent) 0%, transparent 70%);
    opacity: 0.55;
    z-index: -1;
}

.ht-referral-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
}

.ht-referral-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ht-referral-header {
    max-width: 650px;
    margin-bottom: 2.25rem;
}

.ht-referral-levels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ht-referral-level {
    min-width: 0;
}

.ht-referral-section .ht-referral-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.9rem;
    min-height: 104px;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ht-referral-section .ht-referral-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.075);
}

.ht-referral-section .ht-referral-item .icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 11%, #fff);
    box-shadow: none;
    color: var(--primary);
    font-size: 1.7rem;
}

.ht-referral-section .ht-referral-item .icon::before {
    display: none;
}

.ht-referral-section .ht-referral-item .content {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.ht-referral-section .ht-referral-item .content h4 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

.ht-referral-section .ht-referral-item .content p {
    color: #64748b;
    line-height: 1.5;
}

.ht-referral-visual {
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.ht-referral-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.ht-referral-thumb::before {
    position: absolute;
    content: '';
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 9%, #fff) 0%, rgba(255, 255, 255, 0.72) 50%, transparent 73%);
    filter: blur(2px);
    pointer-events: none;
}

.ht-referral-thumb img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: scale(1.08);
    filter: drop-shadow(0 18px 26px rgba(79, 70, 229, 0.12));
}

@media (max-width: 991.98px) {
    .ht-referral-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ht-referral-header {
        margin-left: auto;
        margin-right: auto;
    }

    .ht-referral-visual {
        min-height: 360px;
    }

    .ht-referral-thumb {
        max-width: 480px;
        margin-inline: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 575.98px) {
    .ht-referral-levels {
        grid-template-columns: 1fr;
    }

    .ht-referral-section .ht-referral-item {
        justify-content: flex-start;
        min-height: 96px;
        padding: 0.9rem;
        text-align: left;
    }

    .ht-referral-visual {
        min-height: 280px;
    }

    .ht-referral-thumb {
        max-width: 340px;
    }
}

/* ===== Membership packages — homepage + user dashboard ===== */
.ht-membership-section .ht-membership-subtitle {
    max-width: 40rem;
    margin: 0.35rem auto 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.65;
}

.ht-membership-section .membership-item,
.membership-plans-grid .membership-item {
    position: relative;
    padding: 1.5rem 1.35rem 1.35rem;
    border: 1px solid #e8ecf4;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    background: #fff;
}

.ht-membership-section .membership-item[data-recommended],
.membership-plans-grid .membership-item[data-recommended] {
    border-color: #e8ecf4;
}

.ht-membership-section .membership-item.is-active,
.ht-membership-section .membership-item.is-active[data-recommended],
.membership-plans-grid .membership-item.is-active,
.membership-plans-grid .membership-item.is-active[data-recommended] {
    border-color: var(--primary);
}

.ht-membership-section .membership-item.is-recommended,
.membership-plans-grid .membership-item.is-recommended {
    border-color: #e8ecf4;
}

.ht-membership-section .membership-item[data-recommended]::after,
.membership-plans-grid .membership-item[data-recommended]::after {
    top: 1.15rem;
    right: 1.15rem;
    min-height: 26px;
    padding: 0.28rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--primary) 28%, transparent);
}

.ht-membership-section .membership-item-top,
.membership-plans-grid .membership-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ht-membership-section .membership-item-top .icon,
.membership-plans-grid .membership-item-top .icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
}

.ht-membership-section .membership-item-top .content,
.membership-plans-grid .membership-item-top .content {
    width: 100%;
    padding-top: 0.9rem;
    padding-right: 0.25rem;
}

.ht-membership-section .membership-item-top .content h4,
.membership-plans-grid .membership-item-top .content h4 {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.ht-membership-section .membership-item-top .content p,
.membership-plans-grid .membership-item-top .content p {
    color: #64748b;
}

.ht-membership-section .membership-item-price,
.membership-plans-grid .membership-item-price {
    padding: 1.1rem 0 1rem;
}

.ht-membership-section .membership-item-price .price,
.membership-plans-grid .membership-item-price .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 1.75rem;
    line-height: 1.15;
}

.ht-membership-section .membership-item-price__amount,
.membership-plans-grid .membership-item-price__amount {
    color: var(--primary);
    font-weight: 800;
}

.ht-membership-section .membership-item-price__period,
.membership-plans-grid .membership-item-price__period {
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 500;
}

.ht-membership-section .membership-item-feature-list,
.membership-plans-grid .membership-item-feature-list {
    margin: 1.15rem 0 1.35rem;
    flex: 1 1 auto;
}

.ht-membership-section .membership-item-feature-list li,
.membership-plans-grid .membership-item-feature-list li {
    padding-left: 1.85rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ht-membership-section .membership-item-feature-list li + li,
.membership-plans-grid .membership-item-feature-list li + li {
    margin-top: 0.85rem;
}

.ht-membership-section .membership-item-feature-list li::before,
.membership-plans-grid .membership-item-feature-list li::before {
    top: 0.05rem;
    width: 1.15rem;
    height: 1.15rem;
    display: grid;
    place-items: center;
    content: "\eb7b";
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 12%, #fff);
    color: var(--primary);
    font-size: 0.78rem;
    line-height: 1;
}

.ht-membership-section .membership-item__btn,
.membership-plans-grid .membership-item__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ht-membership-section .membership-item__btn--active,
.membership-plans-grid .membership-item__btn--active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 28%, transparent);
    opacity: 1 !important;
    cursor: default;
}

.ht-membership-section .membership-item__btn--active i,
.membership-plans-grid .membership-item__btn--active i {
    font-size: 1.1rem;
    line-height: 1;
}

.ht-membership-section .membership-item__btn--outline,
.membership-plans-grid .membership-item__btn--outline {
    background: #fff !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    opacity: 1 !important;
}

.ht-membership-section .membership-item__btn--outline:hover:not(:disabled),
.membership-plans-grid .membership-item__btn--outline:hover:not(:disabled) {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 24%, transparent);
}

.ht-membership-section .membership-item__btn--outline.is-locked,
.ht-membership-section .membership-item__btn--outline:disabled,
.membership-plans-grid .membership-item__btn--outline.is-locked,
.membership-plans-grid .membership-item__btn--outline:disabled {
    background: #fff !important;
    border-color: color-mix(in srgb, var(--primary) 45%, #cbd5e1) !important;
    color: color-mix(in srgb, var(--primary) 70%, #64748b) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.modal-header .btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    margin: 0 0 0 auto;
    opacity: 1;
    background: transparent !important;
    background-image: none !important;
    color: var(--display-color, #111);
    font-size: 1.35rem;
    line-height: 1;
    filter: none;
    box-shadow: none;
}

.modal-header .btn-close i,
.modal-header .btn-close::before {
    line-height: 1;
    color: inherit;
}

.modal-header .btn-close:empty::before,
.modal-header .btn-close:not(:has(i))::before {
    content: "\eb55";
    font-family: remixicon !important;
    font-style: normal;
    speak: never;
}

@media (max-width: 1199.98px) {
    .ht-membership-section .membership-item-price .price,
    .membership-plans-grid .membership-item-price .price {
        font-size: 1.5rem;
    }
}

/* ===== User dashboard bonus card action alignment ===== */
.mystery-box-available-card .bonus-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.mystery-box-available-card .bonus-card-actions .bonus-timer {
    flex: 0 1 auto;
    min-height: 38px;
    margin: 0;
    padding-block: 0.35rem;
}

.mystery-box-available-card .bonus-card-actions .bonus-timer .icon {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
}

.mystery-box-available-card .bonus-card-actions .bonus-timer .timer {
    width: auto;
    min-width: 120px;
    padding-inline-start: 0.625rem;
    white-space: nowrap;
    text-align: left;
}

.mystery-box-available-card .bonus-card-actions .btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0 !important;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .mystery-box-available-card .bonus-card-actions {
        max-width: 230px;
        margin-inline: auto;
    }
}

/* Deposit/Withdraw gateway logos — light plate so dark marks stay readable */
.recipient-single {
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    min-height: 72px;
}

.recipient-single-thumb {
    flex: 0 0 78px;
    width: 78px !important;
    height: 44px !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    object-position: center;
    background: #fff !important;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, #fff) !important;
    box-shadow: none !important;
    padding: 6px;
}

.recipient-single-content {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding-inline-start: 0;
    padding-inline-end: 1.75rem;
}

.recipient-single-content h6 {
    margin-bottom: 0;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .ht-auction-bid-dialog {
        --bs-modal-width: calc(100vw - 32px) !important;
    }
}

/* Referral link — show full URL (wrap, don’t clip) */
.referral-url-wrap,
.referral-link-row .min-w-0 {
    min-width: 0;
    width: 100%;
}

.form-control.url-field,
.form-control.url-field[readonly],
textarea.form-control.url-field {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    height: auto !important;
    resize: none;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: 0.8125rem;
    line-height: 1.45;
    padding: 0.7rem 0.85rem;
}

.referral-invite-row {
    --bs-gutter-y: 0.85rem;
}

.referral-invite-form .referral-link-field .select2-container {
    width: 100% !important;
    margin-bottom: 0;
}

.referral-invite-form .referral-invite-submit {
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .referral-link-row .copy-btn {
        min-height: 44px;
        height: auto !important;
    }

    textarea.form-control.url-field {
        font-size: 0.78rem;
        min-height: 3.25rem;
    }

    .referral-invite-row {
        --bs-gutter-y: 0.85rem !important;
        row-gap: 0.85rem;
    }

    .referral-invite-row > [class*="col-"] {
        margin-top: 0 !important;
    }

    .referral-invite-row .referral-link-field {
        margin-bottom: 0.85rem;
    }

    .referral-invite-form .select2-container--default .select2-selection--multiple {
        min-height: 44px;
    }

    .referral-card + .card {
        margin-top: 1.25rem !important;
    }
}

/* ===== Navbar + bottom bar icon alignment ===== */
.user-navbar-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-self: center;
    height: 40px;
    gap: 0.5rem !important;
}

.user-navbar-actions .dropdown {
    display: inline-flex !important;
    align-items: center !important;
    height: 40px;
    margin: 0;
}

.user-navbar a.action-icon,
.user-navbar button.action-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-shrink: 0;
    vertical-align: middle;
}

.user-navbar .action-icon iconify-icon,
.user-navbar .action-icon .iconify {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.35rem !important;
    height: 1.35rem !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    vertical-align: middle;
}

.user-dashboard .ht-mobile-bar ul,
.ht-mobile-bar ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    min-height: 56px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.user-dashboard .ht-mobile-bar ul li,
.ht-mobile-bar ul li {
    flex: 1 1 0;
    display: flex !important;
    justify-content: center;
    align-items: flex-end !important;
    min-width: 0;
    align-self: flex-end;
}

.user-dashboard .ht-mobile-bar ul li a:not(.ht-mobile-bar-main-item),
.ht-mobile-bar ul li a:not(.ht-mobile-bar-main-item) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.2rem;
    width: 100%;
    min-height: 48px;
    padding: 0 !important;
    line-height: 1;
}

.user-dashboard .ht-mobile-bar ul li a:not(.ht-mobile-bar-main-item) i,
.ht-mobile-bar ul li a:not(.ht-mobile-bar-main-item) i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.user-dashboard .ht-mobile-bar ul li a:not(.ht-mobile-bar-main-item) span,
.ht-mobile-bar ul li a:not(.ht-mobile-bar-main-item) span {
    display: block;
    line-height: 1 !important;
    margin: 0 !important;
    font-size: 0.6875rem;
}

.user-dashboard .ht-mobile-bar ul li a.ht-mobile-bar-main-item,
.ht-mobile-bar ul li a.ht-mobile-bar-main-item {
    margin-top: -1.75rem !important;
    justify-content: center !important;
    align-self: flex-end;
}

.user-dashboard .ht-mobile-bar ul li a.ht-mobile-bar-main-item i,
.ht-mobile-bar ul li a.ht-mobile-bar-main-item i {
    width: 50px !important;
    height: 50px !important;
}

.row:has(> [class*="col-"] > .ht-plan) {
    --bs-gutter-y: 1.5rem;
}

/* ===== Cross-page mobile responsive polish ===== */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.row > [class*="col-"] {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .user-dashboard .ht-mobile-bar {
        bottom: 0 !important;
    }

    .user-dashboard {
        padding-bottom: 5.25rem;
    }

    .user-dashbaord-body {
        padding-inline: 0.5rem;
        padding-top: 0.875rem;
        padding-bottom: 1rem;
    }

    .user-navbar {
        padding-inline: 0.625rem;
        gap: 0.5rem;
    }

    .user-navbar-logo img {
        max-height: 32px;
        width: auto;
    }

    .user-navbar-actions {
        height: 36px;
        gap: 0.35rem !important;
    }

    .user-navbar-actions .dropdown {
        height: 36px;
    }

    .user-navbar a.action-icon,
    .user-navbar button.action-icon {
        width: 2rem !important;
        height: 2rem !important;
        min-width: 2rem;
        min-height: 2rem;
        line-height: 0 !important;
    }

    .user-navbar .action-icon iconify-icon,
    .user-navbar .action-icon .iconify {
        width: 1.25rem !important;
        height: 1.25rem !important;
        font-size: 1.25rem !important;
        line-height: 1 !important;
    }

    .card,
    .ht-d-card {
        border-radius: 12px;
    }

    .card-header,
    .card-body {
        padding: 0.875rem;
    }

    .card-title,
    .ht-d-card .title {
        font-size: 1rem;
        line-height: 1.35;
    }

    .btn {
        white-space: normal;
    }

    .btn-md,
    .ht-solid-btn-primary,
    .ht-solid-btn-secondary {
        min-height: 40px;
        padding: 0.55rem 1rem;
        font-size: 0.875rem;
    }

    .btn-md .icon,
    .ht-solid-btn-primary .icon,
    .ht-solid-btn-secondary .icon {
        font-size: 0.95rem;
    }

    .form-control,
    .form-select {
        font-size: 0.9375rem;
        min-height: 40px;
    }

    /* Homepage sections — tighter type scale */
    .ht-section-header {
        margin-bottom: 1rem !important;
    }

    .ht-section-title {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }

    .ht-section-header > p,
    .ht-section-header .text-muted {
        font-size: 0.8125rem !important;
        line-height: 1.45;
        padding-inline: 0.25rem;
    }

    .ht-auction-section .ht-section-title {
        font-size: 1.25rem !important;
    }

    .ht-property-section .btn.w-100,
    .ht-property .btn.w-100 {
        min-height: 40px !important;
        font-size: 0.875rem !important;
        padding: 0.55rem 0.875rem !important;
    }

    .ht-property .title.h5 {
        font-size: 1rem !important;
        line-height: 1.35;
    }

    .ht-property-section .text-center.mt-4 a,
    .ht-property-section a.text-primary {
        font-size: 0.875rem;
    }

    /* User dashboard — compact deposit/withdraw/invest rows */
    .user-dashboard .ht-d-card-two {
        padding: 0.75rem !important;
    }

    .user-dashboard .ht-d-card-two .title {
        font-size: 1.05rem !important;
        margin-top: 0.65rem !important;
    }

    .user-dashboard .ht-d-card-two .caption {
        font-size: 0.75rem !important;
    }

    .user-dashboard .ht-d-card-two .icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.15rem !important;
    }

    .user-dashboard .card-body > .row.gy-4 {
        --bs-gutter-y: 0.65rem;
    }

    .user-dashboard .ht-d-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0.75rem;
        padding: 0.7rem 0.85rem !important;
        height: auto;
    }

    .user-dashboard .ht-d-card-icon {
        margin-inline: 0 !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.25rem !important;
        flex-shrink: 0;
    }

    .user-dashboard .ht-d-card-content {
        margin-top: 0 !important;
        width: auto !important;
        padding-inline-start: 0 !important;
        min-width: 0;
    }

    .user-dashboard .ht-d-card-content p {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }

    .user-dashboard .ht-d-card-content h6 {
        font-size: 0.9375rem !important;
        line-height: 1.3;
    }

    .modal-dialog:not(.ht-auction-details-dialog):not(.ht-auction-bid-dialog) {
        margin: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }

    .dropdown-menu {
        max-width: calc(100vw - 1.5rem);
    }

    .ht-banner-section {
        padding-top: 5.75rem !important;
        padding-bottom: 0 !important;
        background-position: center center !important;
    }

    .ht-banner-section > .container > .row {
        --bs-gutter-y: 1.25rem;
        align-items: flex-end;
    }

    .ht-banner-section .ht-banner-section-bg-img {
        display: block;
        margin-inline: auto;
        margin-bottom: 0 !important;
        max-width: min(280px, 78vw);
        vertical-align: bottom;
    }

    .ht-banner-section .col-lg-5 {
        line-height: 0;
        padding-bottom: 0 !important;
    }

    .ht-banner-section .ht-banner-title {
        font-size: 1.75rem !important;
        line-height: 1.25;
        word-break: break-word;
    }

    .ht-banner-section .ht-banner-description {
        font-size: 0.9375rem;
    }

    .ht-banner-section .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .ht-plan,
    .membership-item,
    .ht-feature-list li,
    .ht-blog-post {
        max-width: 100%;
    }

    .row:has(.ht-plan) {
        --bs-gutter-y: 1.75rem;
    }

    .ht-plan {
        margin-bottom: 0.5rem;
        padding: 1.25rem !important;
    }

    .ht-plan .ht-plan-header {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.75rem;
    }

    .ht-plan .ht-plan-circle {
        flex: 0 0 72px;
        width: 72px !important;
        height: 72px !important;
    }

    .ht-plan .ht-plan-roi-part {
        width: auto !important;
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 0.5rem !important;
        align-items: flex-start !important;
    }

    .ht-footer-section .footer-menu-link.text-nowrap,
    .ht-referral-section .text-nowrap,
    .ht-footer-section .text-nowrap {
        white-space: normal !important;
    }

    .ht-auth {
        min-height: 100vh;
        padding: 1rem 0;
    }

    .ht-auth .col-lg-4 {
        display: none;
    }

    .ht-auth .col-lg-7 {
        width: 100%;
        max-width: 100%;
    }

    .ht-auth .ht-auth-content-title {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    .send-money-steps {
        gap: 0.5rem;
        overflow-x: auto;
    }

    .send-money-single-step-caption {
        font-size: 0.7rem;
    }

    .recipient-single {
        min-height: 64px;
    }

    .recipient-single-thumb {
        flex: 0 0 64px !important;
        width: 64px !important;
        height: 40px !important;
    }
}

@media (max-width: 991.98px) {
    .sidebar-menu {
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }

    .user-sidebar {
        max-width: min(280px, 86vw);
    }

    .ht-feature-section .ht-feature-media,
    .ht-feature-section .ht-feature-bg-img {
        display: none !important;
    }

    .ht-feature-section .col-lg-5:has(.ht-feature-media) {
        display: none !important;
    }
}

/* ===== Realstate — mobile app shell (dashboard + auctions) ===== */
@media (max-width: 767.98px) {
    .user-dashboard {
        background: #f3f4f6;
    }

    .user-dashboard .user-navbar {
        background: #fff !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    }

    .user-dashboard .user-dashbaord-body {
        padding-inline: 0.75rem !important;
        padding-top: 0.75rem !important;
    }

    .user-dashboard .user-dashbaord-body > .container-fluid {
        padding-inline: 0 !important;
    }

    /* Top metric cards — 2x2 app grid */
    .user-dashboard .rs-dash-metrics {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.65rem;
    }

    .user-dashboard .rs-dash-metrics > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .user-dashboard .ht-d-card-two {
        height: 100%;
        padding: 0.85rem !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        border: 1px solid #eef1f5;
    }

    .user-dashboard .ht-d-card-two .caption {
        font-size: 0.7rem !important;
        line-height: 1.25;
        color: #64748b;
    }

    .user-dashboard .ht-d-card-two .title {
        font-size: 1rem !important;
        margin-top: 0.55rem !important;
        line-height: 1.25;
        word-break: break-word;
    }

    .user-dashboard .ht-d-card-two .link-btn {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: color-mix(in srgb, var(--primary) 8%, #fff);
        font-size: 0.8rem;
    }

    .user-dashboard .card {
        border: 1px solid #eef1f5;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        border-radius: 14px !important;
        overflow: hidden;
    }

    .user-dashboard .card-header {
        background: #fff;
        border-bottom: 1px solid #eef1f5;
        padding: 0.85rem 1rem !important;
    }

    .user-dashboard .card-title {
        font-size: 0.95rem !important;
        font-weight: 700;
    }

    .user-dashboard .card-body {
        padding: 0.85rem !important;
    }

    .user-dashboard .card-body.p-0 {
        padding: 0 !important;
    }

    .user-dashboard #depo-with-chart {
        margin-top: 0.5rem;
        min-height: 220px;
    }

    .user-dashboard .mystery-box-available-card .card-body {
        padding: 1rem !important;
    }

    .user-dashboard .mystery-box-available-card h3,
    .user-dashboard .mystery-box-available-card .h4 {
        font-size: 1rem !important;
        line-height: 1.35;
        margin-bottom: 0.85rem !important;
    }

    .user-dashboard .mystery-box-available-card .h3 {
        font-size: 1.05rem !important;
    }

    .user-dashboard .bonus-box-thumb {
        max-width: 140px;
        margin-inline: auto;
    }

    .user-dashboard .bonus-card-actions {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        align-items: stretch;
    }

    .user-dashboard .bonus-card-actions .btn {
        width: 100%;
    }

    /* Latest transactions — tighter card rows */
    .user-dashboard .responsive-table.bt tbody td,
    .user-dashboard table.bt tbody td {
        border-radius: 0 !important;
        margin: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .user-dashboard .responsive-table.bt tbody tr,
    .user-dashboard table.bt tbody tr {
        display: block;
        margin: 0.65rem 0.75rem;
        padding: 0.35rem 0;
        background: #f8fafc;
        border: 1px solid #e8ebf0;
        border-radius: 12px;
        overflow: hidden;
    }

    .user-dashboard .responsive-table tbody tr td:last-child,
    .user-dashboard table.bt tbody tr td:last-child {
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }

    .user-dashboard .user-footer {
        padding: 0.75rem 0 5.5rem;
        font-size: 0.75rem;
    }

    /* Auction cards — app card feel */
    .ht-auction-section {
        padding-inline: 0;
    }

    .ht-auction-section .ht-section-header {
        padding-inline: 0.25rem;
    }

    .ht-auction-list {
        gap: 14px;
    }

    .ht-auction-card {
        padding: 12px !important;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .ht-auction-card__media {
        min-height: 200px !important;
        border-radius: 12px;
    }

    .ht-auction-card__title {
        font-size: 1.05rem !important;
        line-height: 1.3;
    }

    .ht-auction-card__location {
        font-size: 0.8rem;
    }

    .ht-auction-card__description p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    /* Auction modals — full-screen app sheets */
    .ht-auction-details-dialog.modal-dialog,
    .ht-auction-bid-dialog.modal-dialog,
    .modal-dialog.ht-auction-details-dialog,
    .modal-dialog.ht-auction-bid-dialog,
    .modal-dialog-centered.ht-auction-details-dialog,
    .modal-dialog-centered.ht-auction-bid-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100%;
        min-height: 100%;
        align-items: stretch;
    }

    .ht-auction-details-modal,
    .ht-auction-bid-modal {
        min-height: 100dvh;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0 !important;
        box-shadow: none;
    }

    .ht-auction-details-modal .modal-header,
    .ht-auction-bid-modal .modal-header,
    .ht-auction-details-modal .modal-body,
    .ht-auction-bid-modal .modal-body,
    .ht-auction-details-modal .modal-footer,
    .ht-auction-bid-modal .modal-footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .ht-auction-details-modal .modal-header,
    .ht-auction-bid-modal .modal-header {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #fff;
        border-bottom: 1px solid #eef1f5 !important;
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
    }

    .ht-auction-details-modal .modal-title,
    .ht-auction-bid-modal .modal-title {
        font-size: 0.95rem !important;
    }

    .ht-auction-details-modal .ht-auction-modal__subtitle,
    .ht-auction-bid-modal .ht-auction-modal__subtitle {
        font-size: 0.7rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ht-auction-details-modal .modal-body,
    .ht-auction-bid-modal .modal-body {
        padding-top: 0.75rem !important;
        padding-bottom: 1rem !important;
    }

    .ht-auction-details-modal .modal-footer,
    .ht-auction-bid-modal .modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 3;
        background: #fff;
        border-top: 1px solid #eef1f5 !important;
        padding-top: 0.75rem !important;
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .ht-auction-details-modal .ht-auction-details__overview,
    .ht-auction-bid-modal .ht-auction-details__overview {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
        padding: 0.75rem !important;
        border-radius: 14px;
    }

    .ht-auction-details-modal .ht-auction-details__media,
    .ht-auction-details-modal .ht-auction-details__media img,
    .ht-auction-bid-modal .ht-auction-details__media,
    .ht-auction-bid-modal .ht-auction-details__media img {
        height: 190px !important;
        min-height: 190px !important;
    }

    .ht-auction-details-modal .ht-auction-details__meta h5,
    .ht-auction-bid-modal .ht-auction-details__meta h5 {
        font-size: 1.1rem !important;
        line-height: 1.3;
    }

    .ht-auction-details-modal .ht-auction-details__amenities {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.35rem !important;
        margin-top: 0.5rem;
    }

    .ht-auction-details-modal .ht-auction-details__amenities li {
        min-height: 56px;
        padding: 0.5rem !important;
        text-align: left;
        flex-direction: row !important;
        gap: 0.5rem !important;
        border: 1px solid #eef1f5;
        border-radius: 10px;
        background: #f8fafc;
    }

    .ht-auction-details-modal .ht-auction-details__amenities li:not(:last-child)::after {
        display: none;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards,
    .ht-auction-bid-modal .ht-auction-bid-stats {
        grid-template-columns: 1fr !important;
        gap: 0.55rem;
    }

    .ht-auction-details-modal .ht-auction-details__stats--cards .ht-auction-stat,
    .ht-auction-bid-modal .ht-auction-bid-stats .ht-auction-stat {
        border: 1px solid #e7eaf0 !important;
        border-radius: 12px;
        padding: 0.8rem 0.85rem !important;
        background: #fff;
    }

    .ht-auction-timer--modal.ht-auction-timer--bar {
        flex-wrap: wrap;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem !important;
        border-radius: 12px;
    }

    .ht-auction-timer--modal .ht-auction-timer__grid {
        width: 100%;
        justify-content: space-between;
    }

    .ht-auction-timer--modal .ht-auction-timer__unit strong {
        font-size: 1rem;
    }

    .ht-auction-details-modal .modal-footer .ht-auction-btn,
    .ht-auction-details-modal .js-detail-bid-btn {
        min-height: 52px;
        justify-content: flex-start;
        gap: 0.65rem;
        padding: 0.75rem 0.95rem;
        border-radius: 12px;
    }

    .ht-auction-details-modal .modal-footer .ht-auction-btn span,
    .ht-auction-details-modal .js-detail-bid-btn span {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        min-width: 0;
    }

    .ht-auction-details-modal .modal-footer .ht-auction-btn strong,
    .ht-auction-details-modal .js-detail-bid-btn strong {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .ht-auction-details-modal .modal-footer .ht-auction-btn small,
    .ht-auction-details-modal .js-detail-bid-btn small {
        font-size: 0.68rem;
        opacity: 0.9;
        white-space: normal;
        line-height: 1.3;
    }

    .ht-auction-bid-layout {
        gap: 0.9rem !important;
    }

    .ht-auction-bid-layout__action {
        padding: 0.85rem !important;
        border-radius: 14px;
        gap: 0.85rem !important;
    }

    .ht-auction-bid-balance__card {
        padding: 0.8rem !important;
    }

    .ht-auction-bid-balance__card strong {
        font-size: 0.9rem !important;
    }

    .ht-auction-bid-balance__note {
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .ht-auction-bid-modal .ht-auction-summary {
        padding: 0.85rem !important;
    }

    .ht-auction-bid-modal .ht-auction-summary > .d-flex {
        font-size: 0.8rem !important;
        gap: 0.5rem;
    }

    .ht-auction-bid-modal .ht-auction-summary > .d-flex strong {
        text-align: right;
        word-break: break-word;
    }

    .ht-auction-details__bids {
        border-radius: 14px;
        padding: 0.85rem;
    }

    .ht-auction-bid-history__item {
        gap: 0.65rem;
        padding: 0.7rem 0;
    }

    .ht-auction-bid-history__amount strong {
        font-size: 0.875rem;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .user-dashboard .user-dashbaord-body {
        padding-inline: 0.65rem !important;
    }

    .user-dashboard .ht-d-card-two .title {
        font-size: 0.95rem !important;
    }

    .ht-auction-card__actions .ht-auction-btn {
        width: 100%;
    }

    .ht-auction-modal__title-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ===== Bonus Box page — mobile-friendly stage / timer cards ===== */
.bonus-level-timer,
.bonus-level-area {
    border: 1px solid #eef1f5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.bonus-level-timer > .d-flex {
    align-items: flex-start;
}

.bonus-progress {
    width: min(200px, 100%);
}

.bonus-progress-single.deposit-claimed,
.bonus-progress-single.invest-claimed,
.bonus-progress-single.referral-claimed,
.bonus-progress-single.claimed {
    min-height: 0.25rem;
}

.bonus-require-box .bonus-require-list li {
    border-bottom-color: #eef1f5;
}

.bonus-level-slider {
    position: relative;
    padding-inline: 0.25rem;
}

.bonus-level-slider .slick-arrow {
    width: 36px;
    height: 36px;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #475569;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.bonus-level-slider .slick-arrow:hover,
.bonus-level-slider .slick-arrow:focus {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 35%, #e5e7eb) !important;
}

@media (max-width: 767.98px) {
    .user-dashboard .bonus-level-timer,
    .user-dashboard .bonus-level-area {
        padding: 0.95rem !important;
        border-radius: 14px;
        height: auto !important;
    }

    .bonus-level-timer > .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .bonus-level-timer > .d-flex > div:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem 0.85rem;
        width: 100%;
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #eef1f5;
    }

    .bonus-level-timer > .d-flex > div:last-child .text-sm {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }

    .bonus-level-timer h5 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .bonus-level-timer .mb-4 {
        margin-bottom: 0.65rem !important;
    }

    .bonus-progress {
        width: 100%;
        max-width: 220px;
        gap: 0.3rem;
    }

    .bonus-progress-single {
        height: 0.35rem;
    }

    /* Countdown — compact app tiles */
    .bonus-level-timer .timer-countdown {
        gap: 0.4rem;
    }

    .bonus-level-timer .timer-countdown > div {
        width: calc(25% - 0.3rem) !important;
        padding: 0.65rem 0.2rem !important;
        font-size: 1rem !important;
        background: #f8fafc !important;
        border: 1px solid #eef1f5 !important;
        border-radius: 10px !important;
        line-height: 1.15;
    }

    .bonus-level-timer .timer-countdown > div::before,
    .bonus-level-timer .timer-countdown > div::after {
        display: none !important;
    }

    .bonus-level-timer .timer-countdown > div span {
        font-size: 0.62rem !important;
        margin-top: 0.35rem !important;
        letter-spacing: 0.01em;
    }

    .bonus-level-area h6 {
        font-size: 0.95rem;
        margin-bottom: 0.85rem !important;
    }

    .bonus-level-slider {
        padding-inline: 1.35rem;
    }

    .bonus-level-slider .bonus-level-slide {
        padding: 0 0.35rem;
    }

    .bonus-level-slider .slick-arrow {
        width: 34px !important;
        height: 34px !important;
        margin-top: -28px !important;
        font-size: 1.05rem;
        z-index: 3;
    }

    .bonus-level-slider .slick-arrow.prev {
        left: -2px !important;
    }

    .bonus-level-slider .slick-arrow.next {
        right: -2px !important;
    }

    .bonus-require-box {
        padding: 1rem 1.1rem 1.35rem !important;
        margin-bottom: 1.35rem !important;
        border-radius: 12px !important;
        border: 1px solid #e8ebf0 !important;
        background: linear-gradient(180deg, #fffaf3 0%, #fff 55%) !important;
        text-align: left !important;
    }

    .bonus-require-box h6 {
        text-align: center;
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .bonus-require-box::after {
        bottom: -18px;
        font-size: 1.25rem;
    }

    .bonus-require-box .bonus-require-list {
        margin-top: 0.65rem !important;
    }

    .bonus-require-box .bonus-require-list li {
        padding: 0.7rem 0.15rem !important;
        font-size: 0.875rem !important;
        border-bottom: 1px solid #eef1f5 !important;
    }

    .bonus-require-box .bonus-require-list li span:first-child {
        color: #64748b;
    }

    .bonus-require-box .bonus-require-list li span:last-child {
        font-weight: 700;
        color: #0f172a !important;
    }

    .bonus-require-box.activated {
        border-color: color-mix(in srgb, var(--primary) 45%, #e8ebf0) !important;
    }

    .bonus-level-slide > .text-center {
        padding-top: 0.15rem;
    }

    .bonus-level-slide > .text-center .text-sm {
        font-size: 0.8125rem !important;
        line-height: 1.4;
    }

    /* Unlock boxes grid */
    .bonus-box-wrapper {
        --bs-gutter-y: 0.85rem;
    }

    .bonus-box {
        padding: 1rem 0.9rem 1.05rem !important;
        border-radius: 14px !important;
        min-height: 0;
    }

    .bonus-box-img {
        max-height: 88px;
        width: auto;
        margin-inline: auto;
        display: block;
    }

    .bonus-box-title {
        font-size: 0.95rem !important;
        line-height: 1.3;
        margin-top: 0.55rem !important;
    }

    .bonus-box .btn {
        min-height: 40px !important;
        font-size: 0.875rem !important;
        padding: 0.55rem 0.85rem !important;
        margin-top: 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .bonus-level-timer .timer-countdown > div {
        font-size: 0.95rem !important;
        padding: 0.55rem 0.15rem !important;
    }

    .bonus-level-slider {
        padding-inline: 1.5rem;
    }

    .bonus-require-box {
        padding: 0.9rem 0.95rem 1.25rem !important;
    }
}

/* === Investment History (mobile polish) === */
.invest-history .border-end {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.invest-history__item.single-transaction {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
}

.invest-history__item-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.invest-history__item-meta {
    min-width: 0;
}

.invest-history__item-meta h6,
.invest-history__item-meta p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invest-history__item-amount {
    flex: 0 0 auto;
    text-align: end;
}

.invest-history__item-amount h6 {
    white-space: nowrap;
    font-size: 0.875rem;
}

.invest-history__date {
    margin-top: 0.75rem;
}

.invest-history__date:first-child {
    margin-top: 0;
}

.invest-details__title {
    font-size: 1.05rem;
}

.invest-details__panel > div > span:last-child {
    max-width: 62%;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .invest-history .border-end {
        border-right: 0 !important;
    }

    .invest-history__list .transaction-all {
        max-height: none;
        padding-inline-end: 0;
    }

    .invest-history__details {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(15, 23, 42, 0.1);
    }

    .invest-details__title {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.875rem !important;
        opacity: 0.9;
    }

    .invest-details__summary {
        display: none !important;
    }

    .invest-details__panel {
        margin-top: 0 !important;
        border-radius: 12px;
        gap: 0.75rem !important;
        padding: 0.875rem !important;
    }

    .invest-history__item.single-transaction {
        padding: 0.7rem 0.75rem;
    }

    .invest-history__item .avatar-xl {
        width: 2.5rem;
        height: 2.5rem;
        object-fit: cover;
    }

    .invest-history__item-meta h6 {
        font-size: 0.8125rem;
    }

    .invest-history__item-meta p {
        font-size: 0.7rem;
    }

    .invest-history__item-amount h6 {
        font-size: 0.8125rem;
    }
}

/* Mobile menu: separate language from Dashboard */
.mobile-menu .mobile-menu-lang {
    margin-top: 0.75rem;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-menu .mobile-menu-lang .ht-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}
