.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;
}

/* Project cards — keep clear gap between stacked items */
.ht-project-item {
    height: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

.row:has(> [class*="col-"] > .ht-project-item) > [class*="col-"] {
    margin-bottom: 0.25rem;
}

.ht-project-section .row.gy-4,
section .row.gy-4:has(.ht-project-item) {
    --bs-gutter-y: 1.5rem !important;
    row-gap: 1.5rem;
}

@media (max-width: 767.98px) {
    .ht-project-item {
        margin-bottom: 1.25rem;
    }

    .row:has(> [class*="col-"] > .ht-project-item) {
        --bs-gutter-y: 1.25rem !important;
        row-gap: 1.25rem;
    }

    .row:has(> [class*="col-"] > .ht-project-item) > [class*="col-"] {
        margin-bottom: 1.25rem;
    }

    .ht-project-item .thumb img {
        border-radius: 12px 12px 0 0;
    }

    .ht-project-item .content {
        padding: 1.1rem 1rem 1.15rem;
    }
}

/* Project details — clear header spacing + tidy title row */
.ht-project-details-section {
    padding-top: 2rem;
}

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

.project-details-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

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

.project-details-title {
    margin: 0 0 0.4rem;
    line-height: 1.3;
    color: var(--display-color);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.project-details-location {
    color: var(--body-color);
    line-height: 1.4;
}

.project-details-head__actions {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.1rem;
}

.project-details-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--display-color);
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
}

.project-details-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, #fff);
}

@media (max-width: 575.98px) {
    .ht-project-details-section {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

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

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

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

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

    .project-details-action-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1rem;
    }

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

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

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

    .project-details-content-part h3,
    .project-details-content-part h4,
    .project-details-content-part h5,
    .project-details-content-part h6 {
        font-size: 1.0625rem;
        line-height: 1.35;
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

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

    .project-gallery-item {
        height: 160px !important;
    }

    .project-overview-card {
        padding: 1rem !important;
        border-radius: 14px;
    }
}

/* Deposit gateway logos — keep full mark visible (not cropped circles) */
.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) 80%, #fff);
    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;
}

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

.bonus-box-img {
    position: relative;
    z-index: 1;
    background: transparent !important;
    mix-blend-mode: normal;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.bonus-box .openBoxBtn.ht-solid-btn-secondary {
    color: #1f3d2d !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(247, 195, 95, 0.35);
}

.bonus-box .openBoxBtn.ht-solid-btn-secondary:hover,
.bonus-box .openBoxBtn.ht-solid-btn-secondary:focus,
.bonus-box .openBoxBtn.ht-solid-btn-secondary:active {
    color: #fff !important;
    background-color: var(--primary) !important;
}

.bonus-popup .bonus-popup-amount,
.bonus-popup .bonus_amount {
    color: var(--secondary) !important;
    font-weight: 700;
}

.bonus-popup .bonus-popup-dashboard-link {
    color: var(--secondary) !important;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 600;
}

.bonus-popup .bonus-popup-dashboard-link:hover {
    color: #fff !important;
}

.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;
}

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

.buy-sell-radio-fill .form-check {
    width: auto !important;
    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: nowrap !important;
    overflow: visible !important;
}

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

.buy-sell-radio-fill .form-check .form-check-input:checked ~ .form-check-label {
    background: var(--primary) !important;
    background-image: none !important;
    color: #fff !important;
}

.buy-sell-radio-fill .form-check .form-check-input:checked ~ .form-check-label i {
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .buy-sell-radio-fill {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
    }

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

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

/* Project Full — visible but clear disabled look */
.project-full-btn.btn,
.project-overview-card .project-full-btn.btn,
.ht-project-item .project-full-btn.btn,
.project-full-btn.btn:disabled {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    visibility: visible !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.55 !important;
    background-color: #9aa3a7 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.project-full-btn.btn .icon,
.project-full-btn.btn:disabled .icon {
    color: #fff !important;
    opacity: 0.9 !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;
}

/* User dashboard — white Ultimate-style aside */
.ht-dashboard-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    min-height: 100%;
}

.ht-dashboard-aside .ht-bal-card {
    flex-shrink: 0;
    margin-bottom: 0;
}

.ht-bal-card.ht-bal-card-light {
    background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 12%, #fff) 0%, #fff 55%);
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border-color));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    color: var(--display-color);
    overflow: hidden;
    padding-bottom: 1.5rem;
}

.ht-bal-card.ht-bal-card-light::before {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.ht-bal-card.ht-bal-card-light p {
    color: var(--body-color);
    font-weight: 500;
}

.ht-bal-card.ht-bal-card-light h5 {
    color: var(--display-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.ht-bal-card.ht-bal-card-light .ht-bal-card-btns {
    margin-bottom: 0;
}

.ht-dashboard-aside .ht-profit-overview-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    min-height: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.ht-dashboard-aside .ht-profit-overview-card .card-body {
    flex: 1 1 auto;
    justify-content: space-between;
}

.ht-roi-chart {
    min-height: 180px;
}

.ht-roi-chart-empty {
    min-height: 180px;
    border-radius: 50%;
    border: 12px solid color-mix(in srgb, var(--primary) 16%, #e5e7eb);
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.ht-roi-status-percentage {
    min-width: 4.5rem;
    text-align: end;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.ht-dashboard-aside .ht-roi-chart {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

@media (max-width: 991.98px) {
    .ht-dashboard-aside {
        height: auto;
    }

    .ht-dashboard-aside .ht-profit-overview-card {
        flex: none;
    }
}

/* === Blog + Brand section — mobile alignment === */
.ht-blog-section__header {
    margin-bottom: 1.75rem;
}

.ht-blog-section__intro .ht-section-caption {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.ht-blog-section__btn {
    white-space: nowrap;
}

.ht-brand-section__header .ht-section-caption {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.ht-brand-section__desc {
    max-width: 36rem;
    margin-inline: auto;
    color: var(--body-color);
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .ht-blog-section__header {
        margin-bottom: 1.35rem;
    }

    .ht-blog-section__head-row {
        --bs-gutter-y: 0.85rem;
        text-align: center;
    }

    .ht-blog-section__intro {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ht-blog-section__intro .ht-section-caption {
        justify-content: center;
        margin-bottom: 0.4rem;
    }

    .ht-blog-section__intro .ht-section-title {
        font-size: 1.35rem !important;
        font-weight: 700;
        line-height: 1.3;
        max-width: 18rem;
    }

    .ht-blog-section__action {
        display: flex;
        justify-content: center;
    }

    .ht-blog-section__btn {
        min-height: 42px;
        padding: 0.55rem 1.15rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    .ht-brand-section__header .ht-section-title {
        font-size: 1.35rem !important;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.55rem;
    }

    .ht-brand-section__desc {
        font-size: 0.875rem;
        padding-inline: 0.35rem;
    }

    .ht-blog-section__grid > [class*="col-"] {
        width: 100%;
        max-width: 100%;
    }

    .ht-blog-post {
        border-radius: 14px;
        overflow: hidden;
    }

    /* Full cards only — do not stretch list-style-small thumbs */
    .ht-blog-post:not(.list-style-small) .ht-blog-post-thumb {
        height: 200px !important;
    }

    .ht-blog-post.list-style-small {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
    }

    .ht-blog-post.list-style-small .ht-blog-post-thumb {
        width: 72px !important;
        height: 72px !important;
        flex: 0 0 72px;
        border-radius: 10px;
    }

    .ht-blog-post.list-style-small .ht-blog-post-thumb a,
    .ht-blog-post.list-style-small .ht-blog-post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .ht-blog-post.list-style-small .ht-blog-post-content {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 0 0 0.85rem !important;
    }

    .ht-blog-post:not(.list-style-small) .ht-blog-post-content {
        padding: 1rem !important;
    }

    .ht-blog-post-title {
        font-size: 1.05rem !important;
        line-height: 1.35;
    }

    .ht-blog-post.list-style-small .ht-blog-post-title {
        font-size: 0.95rem !important;
        margin-top: 0.25rem;
    }

    .ht-blog-post-small-list {
        margin-top: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .ht-blog-section__intro .ht-section-title,
    .ht-brand-section__header .ht-section-title {
        font-size: 1.25rem !important;
        max-width: 100%;
    }

    .ht-blog-section__btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .ht-brand-slider .ht-brand-item {
        padding: 0.75rem;
    }

    .ht-brand-slider .ht-brand-item img {
        max-height: 48px;
        width: auto;
        margin-inline: auto;
        object-fit: contain;
    }
}

/* === Agriculture homepage BonusBox redesign === */
.ht-bonus-section-el {
    pointer-events: none;
}

.bonus-stage-grid {
    --bonus-accent-green: var(--primary);
    --bonus-accent-orange: #d97706;
    --bonus-accent-gold: var(--secondary);
}

.bonus-stage-card {
    --stage-accent: var(--bonus-accent-green);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 18px;
    cursor: pointer;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 6%, #fff) 0%, #fff 42%),
        #fff;
    border: 1px solid color-mix(in srgb, var(--stage-accent) 22%, var(--border-color));
    box-shadow: 0 2px 6px rgba(31, 78, 61, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.bonus-stage-card:focus {
    outline: none;
}

.bonus-stage-card:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--stage-accent) 70%, #fff);
    outline-offset: 3px;
}

.bonus-stage-card--green {
    --stage-accent: var(--bonus-accent-green);
}

.bonus-stage-card--orange {
    --stage-accent: var(--bonus-accent-orange);
}

.bonus-stage-card--gold {
    --stage-accent: var(--bonus-accent-gold);
}

.bonus-stage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(31, 78, 61, 0.07);
    border-color: color-mix(in srgb, var(--stage-accent) 45%, var(--border-color));
}

.bonus-stage-card.is-active {
    border: 1px solid color-mix(in srgb, var(--stage-accent) 70%, var(--border-color));
    box-shadow: 0 2px 6px color-mix(in srgb, var(--stage-accent) 12%, transparent);
}

.bonus-stage-card.is-selected {
    border: 1px solid var(--stage-accent);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--stage-accent) 14%, transparent);
}

.bonus-stage-card.is-selected .bonus-stage-badge {
    transform: scale(1.06);
}

.bonus-stage-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.bonus-stage-badge {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--stage-accent) 82%, #fff), var(--stage-accent));
    box-shadow: 0 3px 8px color-mix(in srgb, var(--stage-accent) 18%, transparent);
    transition: transform 0.28s ease;
}

.bonus-stage-card:hover .bonus-stage-badge {
    transform: scale(1.06);
}

.bonus-stage-card__heading {
    min-width: 0;
    padding-top: 0.15rem;
}

.bonus-stage-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--display-color);
    line-height: 1.3;
}

.bonus-stage-card__stars {
    display: inline-flex;
    gap: 0.2rem;
    margin-top: 0.35rem;
    color: var(--secondary);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.bonus-stage-card__range {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.45rem;
    margin: 0 0 1.125rem;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    font-weight: 600;
    color: var(--display-color);
    line-height: 1.25;
}

.bonus-stage-card__range > span:not(.bonus-stage-card__range-sep):not(.bonus-stage-card__range-label) {
    font-weight: 600;
}

.bonus-stage-card__range-sep {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--body-color);
}

.bonus-stage-card__range-label {
    margin-left: 0.15rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stage-accent);
    background-color: color-mix(in srgb, var(--stage-accent) 14%, #fff);
}

.bonus-stage-card__reqs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.bonus-stage-card__reqs li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.875rem;
    color: var(--body-color);
}

.bonus-stage-card__req-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--stage-accent) 22%, #e8efe6);
    background: color-mix(in srgb, var(--stage-accent) 10%, #fff);
    color: var(--stage-accent);
    font-size: 1.15rem;
    line-height: 1;
}

.bonus-stage-card__req-icon iconify-icon {
    display: block;
}

.bonus-stage-card__reqs strong {
    margin-left: auto;
    font-weight: 600;
    color: var(--display-color);
}

.bonus-stage-card__footer {
    margin-top: auto;
    padding-top: 1.125rem;
}

.bonus-stage-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.bonus-stage-status--active {
    color: var(--primary);
}

.bonus-stage-status--locked {
    color: color-mix(in srgb, var(--body-color) 78%, #6b7280);
}

/* Bonus stage cards — mobile app scale + spacing */
.bonus-stage-grid {
    --bs-gutter-y: 1.15rem;
}

@media (max-width: 767.98px) {
    .bonus-stage-grid {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1rem !important;
        row-gap: 1rem;
    }

    .bonus-stage-grid > .col {
        margin-bottom: 0.15rem;
    }

    .bonus-stage-card {
        padding: 1rem 1rem 1.05rem;
        border-radius: 14px;
        box-shadow: 0 4px 14px rgba(31, 78, 61, 0.05);
    }

    .bonus-stage-card:hover {
        transform: none;
    }

    .bonus-stage-card__top {
        gap: 0.7rem;
        margin-bottom: 0.75rem;
        align-items: center;
    }

    .bonus-stage-badge {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.8125rem;
        box-shadow: 0 2px 6px color-mix(in srgb, var(--stage-accent) 16%, transparent);
    }

    .bonus-stage-card__heading {
        padding-top: 0;
    }

    .bonus-stage-card__title {
        font-size: 0.975rem;
        font-weight: 600;
    }

    .bonus-stage-card__stars {
        margin-top: 0.2rem;
        font-size: 0.65rem;
    }

    .bonus-stage-card__range {
        margin: 0 0 0.85rem;
        gap: 0.25rem 0.35rem;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em;
    }

    .bonus-stage-card__range > span:not(.bonus-stage-card__range-sep):not(.bonus-stage-card__range-label) {
        font-weight: 600 !important;
    }

    .bonus-stage-card__range-sep {
        font-size: 0.8rem;
        font-weight: 500;
    }

    .bonus-stage-card__range-label {
        margin-left: 0.1rem;
        padding: 0.15rem 0.5rem;
        font-size: 0.68rem;
        font-weight: 600;
    }

    .bonus-stage-card__reqs {
        gap: 0.55rem;
        padding: 0.65rem 0.7rem;
        border-radius: 12px;
        background: color-mix(in srgb, var(--stage-accent) 5%, #fff);
        border: 1px solid color-mix(in srgb, var(--stage-accent) 12%, #e8efe6);
    }

    .bonus-stage-card__reqs li {
        gap: 0.55rem;
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    .bonus-stage-card__req-icon {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 1rem;
    }

    .bonus-stage-card__reqs strong {
        font-size: 0.8125rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .bonus-stage-card__footer {
        padding-top: 0.85rem;
    }

    .bonus-stage-status {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 575.98px) {
    .bonus-stage-card__range {
        font-size: 0.98rem !important;
    }
}

.bonus-mega-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 20%, rgba(247, 195, 95, 0.16), transparent 42%),
        linear-gradient(135deg, #16382c 0%, #1f4e3d 48%, #255a47 100%);
    color: #f5f7f6;
    box-shadow: 0 18px 40px rgba(22, 56, 44, 0.28);
    overflow: hidden;
}

@media (min-width: 992px) {
    .bonus-mega-card {
        grid-template-columns: minmax(220px, 0.9fr) 1.2fr;
        gap: 2rem;
        padding: 2rem 2.25rem;
    }
}

.bonus-mega-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-mega-card .bonus-box-preview {
    min-height: 220px;
}

.bonus-mega-card .bonus-box-preview::before {
    content: none;
}

.bonus-mega-card .bonus-box-bag {
    max-height: 280px;
    opacity: 1;
    transition: opacity 0.22s ease;
    animation: bonus-bag-float 4.5s ease-in-out infinite;
    background: transparent;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.bonus-mega-card .bonus-box-bag.is-fading {
    opacity: 0;
}

@keyframes bonus-bag-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bonus-mega-card .bonus-box-bag,
    .bonus-mega-card .bonus-box-bag.is-fading,
    .bonus-stage-card,
    .bonus-stage-badge,
    .bonus-trust-item {
        animation: none;
        transition: none;
        opacity: 1;
    }
}

.bonus-mega-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
}

.bonus-mega-card__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.bonus-mega-card__desc {
    max-width: 48ch;
    color: rgba(245, 247, 246, 0.82);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bonus-mega-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.25rem 0 1.5rem;
}

.bonus-mega-card__chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(247, 195, 95, 0.28);
}

.bonus-mega-card__cta {
    display: inline-flex;
    align-items: center;
}

.bonus-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

@media (min-width: 576px) {
    .bonus-trust-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .bonus-trust-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        margin-top: 2.25rem;
    }
}

.bonus-trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border-color));
    color: var(--display-color);
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.bonus-trust-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border-color));
}

.bonus-trust-item iconify-icon {
    font-size: 1.35rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* === cookie floating bar overrides === */
#cookieConsentBanner.cookie-policy {
    background: #ffffff !important;
    color: #1f2937 !important;
}

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

#cookieConsentBanner .cookie-policy-line,
#cookieConsentBanner .cookie-policy-desc,
#cookieConsentBanner .cookie-policy-title,
#cookieConsentBanner .cookie-policy-sep,
#cookieConsentBanner .cookie-policy-more {
    visibility: visible !important;
    opacity: 1 !important;
}

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

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

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

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

/* === cookie legal page === */
.ht-cookie-legal-section {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 5%, #fff) 0%, #fff 42%);
}

.cookie-legal-card {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border-color));
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(15, 61, 36, 0.08);
    overflow: hidden;
}

.cookie-legal-card__header {
    padding: 2rem 1.75rem 1.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, var(--border-color));
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, #fff), #fff 70%);
}

@media (min-width: 768px) {
    .cookie-legal-card__header {
        padding: 2.5rem 2.75rem 1.75rem;
    }
}

.cookie-legal-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cookie-legal-card__eyebrow iconify-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

.cookie-legal-card__title {
    margin: 0 0 0.75rem;
    color: var(--display-color);
    font-size: clamp(1.5rem, 2.4vw, 2.125rem);
    font-weight: 800;
    line-height: 1.25;
}

.cookie-legal-card__lead {
    max-width: 48rem;
    color: var(--body-color);
    font-size: 1rem;
    line-height: 1.7;
}

.cookie-legal-card__body {
    padding: 1.75rem 1.75rem 2.25rem;
    color: var(--body-color);
    font-size: 1rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .cookie-legal-card__body {
        padding: 2rem 2.75rem 2.75rem;
    }
}

.cookie-legal-card__body h2,
.cookie-legal-card__body h3,
.cookie-legal-card__body h4 {
    color: var(--display-color);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.cookie-legal-card__body h2 {
    font-size: 1.35rem;
}

.cookie-legal-card__body h3 {
    font-size: 1.15rem;
}

.cookie-legal-card__body p {
    margin-bottom: 1rem;
}

.cookie-legal-card__body ul,
.cookie-legal-card__body ol {
    margin: 0 0 1.15rem;
    padding-left: 1.25rem;
}

.cookie-legal-card__body li + li {
    margin-top: 0.4rem;
}

.cookie-legal-card__body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

/* Footer: keep links readable on dark green; use secondary on hover */
.ht-footer-section a:hover,
.ht-footer-section .footer-menu-link:hover,
.ht-footer-section .text-light-white a:hover {
    color: var(--secondary) !important;
}

/* Quick Links: swapped columns — short links left, longer links wider right */
.ht-footer-section .ht-footer-title + .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0.85rem;
}

.ht-footer-section .ht-footer-menu-swap > [class*="col-"] {
    flex: 0 0 auto;
}

.ht-footer-section .footer-menu-link {
    display: inline-block;
    line-height: 1.45;
    word-break: normal;
}

.ht-footer-section .footer-menu-link.text-nowrap {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .ht-footer-section .footer-menu-link.text-nowrap {
        white-space: normal;
    }
}

/* Membership plan cards: hide center divider on single-column plan layouts */
.membership-plans-grid .membership-item::before,
.membership-item:not(:has(.membership-item-left))::before {
    display: none !important;
}

.membership-plans-grid .membership-item {
    flex-direction: column;
    gap: 1rem;
}

.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;
}

.membership-plans-grid .membership-item__btn--active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: default;
}

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

.membership-plans-grid .membership-item__btn--outline:hover:not(:disabled) {
    background: var(--primary) !important;
    color: #fff !important;
}

@media (max-width: 767.98px) {
    .membership-item .price,
    .membership-item-price .price {
        font-size: 1.25rem !important;
        line-height: 1.25;
    }

    .membership-item .price sub,
    .membership-item-price__period {
        font-size: 0.7rem !important;
    }

    .membership-item-price__amount {
        font-size: inherit;
    }
}

.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;
}

.ht-footer-section .subscribe-form button,
.ht-footer-section .subscribe-form button i {
    color: #fff;
}

.ht-footer-section .subscribe-form button:hover,
.ht-footer-section .subscribe-form button:hover i {
    color: var(--secondary);
}

/* FAQ accordion — keep question text and +/- icon off the box edges */
.ht-faq-section .accordion-style-dafault .accordion-item {
    padding: 20px 24px;
}

.ht-faq-section .accordion-style-dafault .accordion-button {
    padding-inline-end: 40px;
}

@media (max-width: 575.98px) {
    .ht-faq-section .accordion-style-dafault .accordion-item {
        padding: 16px 18px;
    }
}

/* Agriculture calculator — keep CMS image as soft background */
.ht-calculator-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 1.25rem;
    background: var(--surface);
}

.ht-calculator-img-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

.ht-calculator-wrapper > .row {
    position: relative;
    z-index: 1;
}

@media (max-width: 575.98px) {
    .ht-calculator-wrapper {
        padding: 1rem;
    }
}

/* 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 (Agriculture / shared pattern) ===== */
.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;
}

/* Bottom mobile nav — equal icon/label rows; center + doesn't throw others off */
.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: 44px;
    }

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

    .modal-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: 2.5rem !important;
        background-position: center center !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-section-title {
        font-size: 1.35rem !important;
        line-height: 1.3;
        font-weight: 700;
    }

    .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-bg-img {
        opacity: 0.25;
        pointer-events: none;
    }
}

/* ===== Agriculture dashboard — mobile app look ===== */
@media (max-width: 767.98px) {
    .user-dashboard {
        background: #f1f3f2;
    }

    .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 metrics — 2×2 compact cards */
    .user-dashboard .ag-dash-metrics {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.65rem;
    }

    .user-dashboard .ag-dash-metrics > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .user-dashboard .ht-d-card-two {
        height: 100%;
        padding: 0.8rem 0.85rem !important;
        border-radius: 14px !important;
        background: #fff !important;
        border: 1px solid #e7ece8;
        box-shadow: 0 4px 14px rgba(20, 50, 30, 0.04);
    }

    .user-dashboard .ht-d-card-two > .d-flex {
        gap: 0.4rem !important;
    }

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

    .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: 0.95rem !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) 10%, #fff);
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .user-dashboard .card {
        border: 1px solid #e7ece8;
        box-shadow: 0 4px 14px rgba(20, 50, 30, 0.04);
        border-radius: 14px !important;
    }

    .user-dashboard .card-body.p-3 {
        padding: 0.9rem !important;
    }

    .user-dashboard .ag-dash-overview-head {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-bottom: 0.9rem !important;
    }

    .user-dashboard .ag-dash-overview-head .card-title {
        font-size: 1rem !important;
        font-weight: 700;
    }

    .user-dashboard .ag-dash-overview-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem !important;
        width: 100%;
    }

    .user-dashboard .ag-dash-overview-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 40px !important;
        padding: 0.5rem 0.65rem !important;
        font-size: 0.8125rem !important;
        border-radius: 10px;
        white-space: nowrap;
    }

    .user-dashboard .ag-dash-overview-actions .btn .icon {
        font-size: 0.95rem;
    }

    /* Overview stats — equal 3 columns OR stacked compact rows */
    .user-dashboard .ag-dash-overview-stats {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .user-dashboard .ag-dash-overview-stats > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .user-dashboard .ag-dash-overview-stats .ht-d-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0.75rem;
        padding: 0.75rem 0.85rem !important;
        height: auto !important;
        min-height: 0;
        margin: 0;
        background: #f7f9f7;
        border: 1px solid #e7ece8;
        border-radius: 12px !important;
    }

    .user-dashboard .ag-dash-overview-stats .ht-d-card-icon {
        margin: 0 !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 1.3rem !important;
        flex-shrink: 0;
    }

    .user-dashboard .ag-dash-overview-stats .ht-d-card-content {
        margin-top: 0 !important;
        width: auto !important;
        padding: 0 !important;
        min-width: 0;
        text-align: left !important;
    }

    .user-dashboard .ag-dash-overview-stats .ht-d-card-content p {
        font-size: 0.75rem !important;
        color: #64748b;
        line-height: 1.3;
    }

    .user-dashboard .ag-dash-overview-stats .ht-d-card-content h6 {
        font-size: 0.9375rem !important;
        line-height: 1.3;
        margin-top: 0.15rem;
        word-break: break-word;
    }

    .user-dashboard #depo-with-chart {
        min-height: 210px;
    }

    .user-dashboard .ht-bal-card {
        padding: 1rem !important;
        border-radius: 14px;
        margin-bottom: 0.75rem;
    }

    .user-dashboard .ht-bal-card h5 {
        font-size: 1.15rem;
    }

    .user-dashboard .ht-bal-card-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .user-dashboard .ht-bal-card-btns .btn {
        width: 100%;
        justify-content: center;
        min-height: 40px;
        font-size: 0.8125rem;
    }

    .user-dashboard .ht-profit-overview-card {
        border-radius: 14px;
    }

    .user-dashboard .ht-roi-status li {
        gap: 0.5rem;
    }

    .user-dashboard .ht-roi-status-title,
    .user-dashboard .ht-roi-status-percentage {
        font-size: 0.75rem;
    }

    .user-dashboard .user-footer {
        padding-bottom: 5.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .user-dashboard .ht-d-card-two .title {
        font-size: 0.9rem !important;
    }

    .user-dashboard .ag-dash-overview-actions {
        grid-template-columns: 1fr 1fr;
    }

    /* If 3 action buttons, let third span full */
    .user-dashboard .ag-dash-overview-actions .btn:nth-child(3):last-child {
        grid-column: 1 / -1;
    }
}

/* === 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;
}
