.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, #140c07);
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Inner pages: keep breadcrumb/header strip black when CMS banner image is missing */
.dt-breadcrumb {
    background-color: var(--surface, #140c07);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.dt-breadcrumb::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ht-header {
    background-color: rgba(0, 0, 0, 0.35);
}

/* Defer heavy CMS page background until after first paint */
.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);
}

/* Reduce scroll/paint jank on homepage surfaces */
.ht-page-body .ht-calculator::before,
.ht-page-body .ht-blog-post.list-style-small,
.ht-page-body .ht-banner-section::before,
.ht-page-body .ht-banner-section::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .ht-page-body *,
    .ht-page-body *::before,
    .ht-page-body *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.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,
.form-select,
textarea {
    color-scheme: dark;
    background-color: var(--body-bg, #211108) !important;
    color: var(--display-color, #ffffff) !important;
    caret-color: var(--display-color, #ffffff);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.form-select option {
    background-color: var(--surface, #140c07);
    color: var(--display-color, #ffffff);
}

/* Investment calculator — keep select/input dark (no white autofill flash) */
.ht-calculator .form-select,
.ht-calculator .form-control,
.ht-calculator input[type="number"] {
    color-scheme: dark;
    background-color: #211108 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    border-color: var(--primary, #ee9601);
    box-shadow: none !important;
}

.ht-calculator .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.ht-calculator .form-select option {
    background-color: #140c07;
    color: #ffffff;
}

.ht-calculator .form-control:-webkit-autofill,
.ht-calculator .form-control:-webkit-autofill:hover,
.ht-calculator .form-control:-webkit-autofill:focus,
.ht-calculator .form-control:-webkit-autofill:active,
.ht-calculator input[type="number"]:-webkit-autofill,
.ht-calculator input[type="number"]:-webkit-autofill:hover,
.ht-calculator input[type="number"]:-webkit-autofill:focus,
.ht-calculator input[type="number"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #211108 inset !important;
    box-shadow: 0 0 0 1000px #211108 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    background-color: #211108 !important;
    background-image: none !important;
    transition: background-color 9999s ease-in-out 0s;
}

.form-control:focus,
.form-control:active,
.form-select:focus,
.form-select:active,
textarea:focus,
textarea:active {
    background-color: var(--body-bg) !important;
    color: var(--display-color) !important;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active,
.form-control:autofill,
.form-control:autofill:hover,
.form-control:autofill:focus,
input.form-control:-internal-autofill-selected {
    -webkit-box-shadow: 0 0 0 1000px var(--body-bg, #211108) inset !important;
    box-shadow: 0 0 0 1000px var(--body-bg, #211108) inset !important;
    -webkit-text-fill-color: var(--display-color, #ffffff) !important;
    color: var(--display-color, #ffffff) !important;
    caret-color: var(--display-color, #ffffff);
    background-color: var(--body-bg, #211108) !important;
    background-image: none !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Auth pages — icons stay visible on dark inputs (keep below intl-tel dropdown) */
.ht-auth .icon-field {
    position: relative;
    z-index: 1;
}

.ht-auth .password-field .icon-field {
    z-index: 0;
}

.ht-auth .password-field .icon-field .form-control {
    padding-inline-end: 2.75rem;
}

.ht-auth .icon-field .icon {
    color: var(--display-color) !important;
    z-index: 2;
    pointer-events: none;
}

.ht-auth .password-field .password-field-btn {
    color: var(--display-color) !important;
    z-index: 5;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    height: 3rem;
}

/* Mobile country dropdown above neighboring field icons */
.ht-auth .row > .col-md-6:has(#phone) {
    position: relative;
    z-index: 5;
}

.ht-auth .form-control:has(#phone),
.ht-auth .form-control:has(.iti) {
    position: relative;
    z-index: 4;
    overflow: visible;
}

.ht-auth .iti {
    position: relative;
    z-index: 4;
}

.ht-auth .iti__dropdown-content,
.ht-auth .iti__country-list,
.iti__dropdown-content,
.iti__country-list {
    z-index: 1055 !important;
}

.ht-auth .form-control,
.ht-auth .icon-field .form-control {
    background-color: var(--body-bg) !important;
    color: var(--display-color) !important;
    -webkit-text-fill-color: var(--display-color);
}

/* Placeholders must stay muted — -webkit-text-fill-color was making them look filled */
.ht-auth .form-control::placeholder,
.ht-auth .icon-field .form-control::placeholder,
.ht-auth textarea::placeholder,
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
    opacity: 1;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.38) !important;
}

.ht-auth .form-control::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.38) !important;
}

.ht-auth .form-control:-webkit-autofill,
.ht-auth .form-control:-webkit-autofill:hover,
.ht-auth .form-control:-webkit-autofill:focus,
.ht-auth .form-control:-webkit-autofill:active,
.ht-auth .form-control:autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--body-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--body-bg) inset !important;
    -webkit-text-fill-color: var(--display-color) !important;
    caret-color: var(--display-color);
}

.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 #phone::placeholder,
.form-control .iti__tel-input::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
    opacity: 1;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.38) !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(--body-bg) 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;
}

/* Referral page — dark theme surfaces (match dashboard cards, not bootstrap/select2 white) */
.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 {
    background-color: var(--body-bg) !important;
    color: var(--display-color) !important;
    border-color: var(--border-color);
    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;
    }
}

.referral-link-field .select2-container,
.form-select-two ~ .select2-container {
    width: 100% !important;
}

.form-select-two ~ .select2-container .select2-selection--single,
.form-select-two ~ .select2-container .select2-selection--multiple {
    background-color: var(--body-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--display-color) !important;
}

.form-select-two ~ .select2-container .select2-selection--multiple .select2-search__field,
.form-select-two ~ .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--display-color) !important;
}

.form-select-two ~ .select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--border-color) !important;
    color: var(--display-color) !important;
}

.form-select-two ~ .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    border-color: var(--border-color) !important;
    color: var(--display-color) !important;
}

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

.select2-dropdown .select2-search__field {
    background-color: var(--body-bg) !important;
    color: var(--display-color) !important;
}

.select2-dropdown .select2-results__option {
    color: var(--display-color) !important;
}

.select2-dropdown .select2-results__option--selected {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.referral-tree .single-referral {
    background-color: var(--body-bg);
    border-color: var(--border-color);
    color: var(--display-color);
}

.referral-tree .single-referral .expand-btn {
    background-color: var(--body-bg);
    border-color: var(--border-color);
    color: var(--display-color);
}

/* Share buttons (laravel-share) — horizontal icon row, not default vertical <ul> */
.social-media-share,
.social-media-share #social-links,
.ht-blog-details #social-links {
    display: block;
    background: transparent;
}

.social-media-share #social-links ul,
.social-media-share ul,
.ht-blog-details #social-links ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.social-media-share #social-links ul li,
.social-media-share ul li,
.ht-blog-details #social-links ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1;
    background: transparent;
}

.social-media-share .social-button,
.ht-blog-details .social-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.social-media-share .social-button:hover,
.ht-blog-details .social-button:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.social-media-share .social-button span,
.ht-blog-details .social-button span {
    line-height: 1;
}

.referral-card .card-header {
    align-items: center;
}

.referral-card .card-header .social-media-share {
    flex-shrink: 0;
}

/* ApexCharts — dark tooltips on user dashboard */
#depo-with-chart .apexcharts-tooltip,
#roiChart .apexcharts-tooltip,
.apexcharts-tooltip.apexcharts-theme-dark {
    background: rgba(20, 12, 7, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#depo-with-chart .apexcharts-tooltip *,
#roiChart .apexcharts-tooltip *,
.apexcharts-tooltip.apexcharts-theme-dark * {
    color: #fff !important;
}

#depo-with-chart .apexcharts-tooltip-title,
#roiChart .apexcharts-tooltip-title {
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

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

.ht-roi-chart-empty {
    min-height: 180px;
    border-radius: 50%;
    border: 12px solid rgba(255, 255, 255, 0.08);
    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;
}

/* Dashboard side column: match Overview card height */
.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-dashboard-aside .ht-profit-overview-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    min-height: 0;
}

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

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

/* Membership plans (user panel) — Ultimate was missing these styles */
.membership-plans-grid {
    align-items: stretch;
}

.membership-item {
    display: flex;
    flex-flow: column;
    background-color: var(--surface);
    color: var(--display-color);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.membership-item[data-recommended] {
    border-color: var(--primary);
}

.membership-item[data-recommended]::after {
    position: absolute;
    content: attr(data-recommended);
    top: 1.625rem;
    right: 1.25rem;
    z-index: 2;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.25rem 0.75rem;
    background: var(--grad-bg, linear-gradient(to right, var(--primary), var(--secondary)));
    color: #fff;
    border-radius: 99px;
    max-width: 45%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.membership-item-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.membership-item-top .icon {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--primary);
    font-size: 1.375rem;
    line-height: 1;
    flex-shrink: 0;
}

.membership-item-top .icon::before {
    position: absolute;
    content: '';
    inset: 0;
    background-color: var(--primary);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.membership-item-top .content {
    width: 100%;
    padding-top: 1rem;
    padding-inline-end: 5rem;
}

.membership-item-top .content h4,
.membership-item-top .content .h5 {
    color: var(--display-color);
}

.membership-item-top .content p {
    color: var(--muted, rgba(255, 255, 255, 0.55));
}

.membership-item-price {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.membership-item-price .price {
    font-size: 1.75rem;
    color: var(--display-color);
}

.membership-item-price .price sub {
    font-weight: 400;
    color: var(--body-color);
    font-size: 48%;
    bottom: 0;
}

.membership-item-feature-list {
    margin-block: 1.5rem;
    flex: 1 1 auto;
}

.membership-item-feature-list li + li {
    margin-top: 0.875rem;
}

.membership-item-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--body-color);
}

.membership-item-feature-list li::before {
    position: absolute;
    content: "\eb81";
    top: -0.1875rem;
    left: 0;
    font-family: remixicon !important;
    font-style: normal;
    color: var(--primary);
    font-size: 1.25rem;
}

.membership-item .btn[disabled] {
    opacity: 0.85;
    cursor: default;
}

.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;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    opacity: 1 !important;
    cursor: default;
}

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

.membership-plans-grid .membership-item__btn--outline {
    background: transparent !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;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.membership-plans-grid .membership-item__btn--outline:disabled {
    opacity: 0.65 !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, #fff);
    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) {
    .membership-item-feature-list li {
        font-size: 0.875rem;
    }

    .membership-item-feature-list li::before {
        font-size: 1.125rem;
    }

    .membership-item-price .price {
        font-size: 1.375rem;
    }

    .membership-item-top .content h4,
    .membership-item-top .content .h5 {
        font-size: 1.125rem;
    }
}

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

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

/* Blog sidebar latest posts spacing */
.ht-short-blog-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ht-short-blog-list > li {
    list-style: none;
}

/* 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;
    border: 1px solid rgba(255, 255, 255, 0.2) !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;
}

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

/* Plan cards — breathing room between stacked cards */
.row:has(> [class*="col-"] > .ht-plan) {
    --bs-gutter-y: 1.5rem;
}

@media (max-width: 767.98px) {
    .row:has(> [class*="col-"] > .ht-plan) {
        --bs-gutter-y: 1.75rem;
    }

    .ht-plan {
        margin-bottom: 0.5rem;
    }

    .ht-bonus-area {
        max-width: 260px;
        margin-inline: auto;
    }

    .ht-bonus-box-slider .ht-bonus-box-slide img {
        width: 100%;
        max-width: 220px;
        max-height: 220px;
        height: auto;
        margin-inline: auto;
        object-fit: contain;
    }

    .ht-bonus-area .light-circle {
        max-width: 180px;
    }

    .ht-bonus-section .ps-5.ms-5 {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

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

/* Dashboard Bonus of the Day — compact on mobile */
@media (max-width: 767.98px) {
    .mystery-box-available-card {
        padding: 0.9rem 0.85rem 0.65rem !important;
        border-radius: 16px;
        margin-bottom: 1rem !important;
    }

    .mystery-box-available-card .row {
        --bs-gutter-y: 0.65rem;
        row-gap: 0.65rem;
    }

    .mystery-box-available-card .text-uppercase {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
        margin-bottom: 0.2rem !important;
    }

    .mystery-box-available-card h4 {
        font-size: 1.05rem !important;
        line-height: 1.3;
        margin-bottom: 0.65rem !important;
    }

    .mystery-box-available-card h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
    }

    .mystery-box-available-card .btn {
        min-height: 38px;
        padding: 0.45rem 1rem;
        font-size: 0.8125rem;
    }

    .mystery-box-available-card .col-xxl-3.order-2 {
        margin-top: 0.35rem !important;
    }

    .mystery-box-available-card .bonus-timer {
        margin-top: 0.55rem !important;
        padding: 0.25rem 0.55rem;
    }

    .mystery-box-available-card .bonus-timer .timer {
        font-size: 0.75rem;
        width: auto;
        min-width: 0;
    }

    .mystery-box-available-card .bonus-timer .icon {
        font-size: 0.95rem;
        padding-right: 0.45rem;
    }

    .mystery-box-available-card .mystery-bonus-box {
        min-height: 0;
        margin-top: 0.15rem;
        line-height: 0;
    }

    .mystery-box-available-card .mystery-bonus-box-main-box {
        max-height: 110px !important;
        width: auto;
        max-width: 140px;
        margin-bottom: -28px !important;
        margin-inline: auto;
        display: block;
    }

    .mystery-box-available-card .mystery-bonus-box-lighting img {
        max-height: 160px !important;
        max-width: 160px;
    }

    .mystery-box-available-card .mystery-box-available-el {
        max-width: 220px;
        opacity: 0.18;
    }
}

@media (max-width: 575.98px) {
    .mystery-box-available-card h4 {
        font-size: 0.98rem !important;
    }

    .mystery-box-available-card .mystery-bonus-box-main-box {
        max-height: 96px !important;
        max-width: 120px;
        margin-bottom: -22px !important;
    }
}

/* ===== 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 .d-flex.gap-sm-4,
    .ht-banner-section .d-flex.gap-3 {
        width: 100%;
    }

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

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

    .ht-section-caption {
        font-size: 0.8125rem;
    }

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

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

    .ht-plan {
        margin-bottom: 0.25rem;
        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-percentage {
        font-size: 1.125rem !important;
    }

    .ht-plan .ht-plan-name {
        font-size: 0.7rem !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-plan .ht-plan-roi-part .mb-4 {
        margin-bottom: 0.625rem !important;
    }

    .ht-plan .ht-plan-top-caption-inner {
        font-size: 0.6875rem;
        padding: 0.3rem 0.55rem;
        white-space: normal;
        line-height: 1.25;
    }

    .ht-plan .ht-plan-body {
        padding: 1.25rem 0 !important;
    }

    .ht-feature-bg-img,
    .ht-how-work-section-bg,
    .ht-calculator-img-bg,
    .ht-plan-el-img {
        max-width: 100%;
    }

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

    .ht-trading-scroller {
        display: none !important;
    }

    .ht-bonus-area {
        max-width: 220px;
        margin-inline: auto;
    }

    .ht-bonus-box-slider .ht-bonus-box-slide {
        padding: 0 0.5rem;
    }

    .ht-bonus-box-slider .ht-bonus-box-slide img {
        width: 100%;
        max-width: 180px;
        max-height: 180px;
        height: auto;
        margin-inline: auto;
        object-fit: contain;
    }

    .ht-bonus-area .light-circle {
        max-width: 160px;
        top: -10%;
        left: 50%;
        transform: translateX(-50%);
    }

    .ht-bonus-section .ps-5.ms-5 {
        padding-left: 0 !important;
        margin-left: 0 !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;
    }

    .ht-auth-feature-list li {
        margin-bottom: 0.875rem;
    }

    .table th,
    .table td {
        white-space: nowrap;
    }

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

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

