/* ===================================================================
   DASHBOARD LAYOUT
   =================================================================== */
.tm-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--bs-body-bg, #f5f5f9)
}

/* Sidebar */
.tm-sidebar {
    width: 325px;
    min-height: 100vh;
    background: var(--bs-card-bg, #fff);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto
}

[dir="rtl"] .tm-sidebar {
    border: none;
    left: auto;
    right: 0
}

.tm-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bs-border-color, #e7e7e8)
}

.tm-sidebar-logo {
    height: 36px;
    width: auto
}

.tm-sidebar-close {
    display: none
}

.tm-sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0
}

/* Menu */
.tm-menu, .tm-menu-sub {
    list-style: none;
    margin: 0;
    padding: 0
}

.tm-menu-item {
    list-style: none
}

.tm-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--bs-body-color, #697a8d);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
    border-radius: 0
}

.tm-menu-link:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, .04)
}

.tm-menu-item.active > .tm-menu-link, .tm-menu-sub .tm-menu-link.active {
    color: #dc3545;
    background: rgba(220, 53, 69, .08);
    font-weight: 600
}

.tm-menu-item.highlight > .tm-menu-link {
    color: #dc3545;
    font-weight: 600
}

.tm-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    font-size: 18px
}

.tm-menu-title {
    flex: 1
}

.tm-menu-arrow {
    font-size: 14px;
    transition: transform .2s ease
}

/* Accordion */
.tm-menu-accordion .tm-menu-sub {
    display: none
}

.tm-menu-accordion.open .tm-menu-sub {
    display: block
}

.tm-menu-accordion.open .tm-menu-arrow {
    transform: rotate(90deg)
}

[dir="rtl"] .tm-menu-accordion.open .tm-menu-arrow {
    transform: rotate(-90deg)
}

.tm-menu-sub .tm-menu-link {
    padding-left: 54px;
    font-size: 13px
}

[dir="rtl"] .tm-menu-sub .tm-menu-link {
    padding-left: 20px;
    padding-right: 54px
}

.tm-menu-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px
}

.tm-menu-bullet span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-secondary-color, #a1acb8);
    transition: all .2s
}

.tm-menu-sub .tm-menu-link.active .tm-menu-bullet span {
    background: #dc3545;
    transform: scale(1.3)
}

.tm-menu-toggle {
    cursor: pointer
}

/* Main Area */
.tm-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

[dir="rtl"] .tm-main {
    margin-left: 0;
    margin-right: 260px
}

/* Header */
.tm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bs-card-bg, #fff);
    border-bottom: 1px solid var(--bs-border-color, #e7e7e8);
    gap: 16px
}

.tm-header-user {
    display: flex;
    align-items: center;
    gap: 12px
}

.tm-header-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--bs-border-color, #e7e7e8)
}

.tm-header-info h5 {
    margin: 0;
    font-weight: 600
}

/* Content */
.tm-content {
    flex: 1;
    padding: 24px
}

.tm-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e7e7e8);
    border-radius: 12px;
    overflow: hidden
}

.tm-card-body {
    padding: 20px
}

/* Overlay */
.tm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1039
}

.tm-overlay.active {
    display: block
}

/* Mobile */
@media (max-width: 991.98px) {
    .tm-sidebar {
        transform: translateX(-100%)
    }

    [dir="rtl"] .tm-sidebar {
        transform: translateX(100%)
    }

    .tm-sidebar.show {
        transform: translateX(0)
    }

    .tm-sidebar-close {
        display: flex
    }

    .tm-main {
        margin-left: 0
    }

    [dir="rtl"] .tm-main {
        margin-right: 0
    }

    .tm-content {
        padding: 16px
    }
}

/* ===================================================================
   FAVORITE BUTTON
   =================================================================== */
.tm-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all .25s ease;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    z-index: 2
}

.tm-favorite-btn i {
    transition: all .25s ease;
    color: #697a8d
}

.tm-favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.tm-favorite-btn:hover i {
    color: #e74c3c
}

.tm-favorite-btn--sm {
    width: 36px;
    height: 36px
}

.tm-favorite-btn--sm i {
    font-size: 18px
}

.tm-favorite-btn--lg {
    width: 44px;
    height: 44px
}

.tm-favorite-btn--lg i {
    font-size: 22px
}

.tm-favorite-btn--active {
    background: rgba(231, 76, 60, .1)
}

.tm-favorite-btn--active i {
    color: #e74c3c\!important;
    animation: heart-pop .35s ease
}

.tm-favorite-btn--active:hover {
    background: rgba(231, 76, 60, .18)
}

@keyframes heart-pop {
    0% {
        transform: scale(1)
    }
    30% {
        transform: scale(1.3)
    }
    60% {
        transform: scale(.9)
    }
    100% {
        transform: scale(1)
    }
}

[data-bs-theme="dark"] .tm-favorite-btn {
    background: rgba(40, 40, 40, .9)
}

[data-bs-theme="dark"] .tm-favorite-btn:hover {
    background: rgba(50, 50, 50, 1)
}

[data-bs-theme="dark"] .tm-favorite-btn--active {
    background: rgba(231, 76, 60, .15)
}

/* ===================================================================
   FAVORITES PAGE
   =================================================================== */
.tm-favorites-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    flex-wrap: wrap
}

.tm-favorites-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-secondary-color, #8592a3);
    text-decoration: none;
    transition: all .2s;
    border: none;
    background: none
}

.tm-favorites-tabs .nav-link:hover {
    background: var(--bs-tertiary-bg, #f0f2f4);
    color: var(--bs-heading-color, #566a7f)
}

.tm-favorites-tabs .nav-link.active {
    background: rgba(220, 53, 69, .1);
    color: #dc3545;
    font-weight: 600
}

.tm-favorites-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bs-tertiary-bg, #f0f2f4);
    color: var(--bs-secondary-color, #8592a3)
}

.tm-favorites-tabs .nav-link.active .tm-favorites-count {
    background: rgba(220, 53, 69, .15);
    color: #dc3545
}

/* Fav Cards */
.tm-fav-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e7e7e8);
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s;
    position: relative
}

.tm-fav-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.tm-fav-card__image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bs-tertiary-bg, #f0f2f4)
}

.tm-fav-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.tm-fav-card__type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    z-index: 2
}

[dir="rtl"] .tm-fav-card__type-badge {
    left: auto;
    right: 12px
}

.tm-fav-card .tm-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3
}

[dir="rtl"] .tm-fav-card .tm-favorite-btn {
    right: auto;
    left: 12px
}

.tm-fav-card__body {
    padding: 16px
}

.tm-fav-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-heading-color, #566a7f);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.tm-fav-card__title a {
    color: inherit;
    text-decoration: none
}

.tm-fav-card__title a:hover {
    color: #dc3545
}

.tm-fav-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--bs-secondary-color, #8592a3)
}

/* Empty State */
.tm-favorites-empty {
    text-align: center;
    padding: 60px 20px
}

.tm-favorites-empty__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-tertiary-bg, #f0f2f4)
}

.tm-favorites-empty__icon i {
    font-size: 36px;
    color: var(--bs-secondary-color, #8592a3)
}

.tm-favorites-empty__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px
}

.tm-favorites-empty__text {
    color: var(--bs-secondary-color, #8592a3);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto
}

/* Fav btn positioning in image containers */
.tm-trending-product-image-wrapper {
    position: relative
}

.tm-trending-product-image-wrapper > .tm-favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3
}

[dir="rtl"] .tm-trending-product-image-wrapper > .tm-favorite-btn {
    right: auto;
    left: 16px
}

.tm-lw-post-card__image, .tm-lw-post-grid-card__image, .tm-product-grid-card__image {
    position: relative
}

.tm-lw-post-card__image > .tm-favorite-btn, .tm-lw-post-grid-card__image > .tm-favorite-btn, .tm-product-grid-card__image > .tm-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3
}

[dir="rtl"] .tm-lw-post-card__image > .tm-favorite-btn, [dir="rtl"] .tm-lw-post-grid-card__image > .tm-favorite-btn, [dir="rtl"] .tm-product-grid-card__image > .tm-favorite-btn {
    right: auto;
    left: 10px
}

/* Favorites Tabs (cm- prefix to match company-home) */
.cm-favorites-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

.cm-favorites-tabs::-webkit-scrollbar {
    display: none
}

.cm-favorites-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-secondary-color, #8592a3);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .2s ease
}

.cm-favorites-tab i {
    font-size: 1.1rem
}

.cm-favorites-tab:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, .06)
}

.cm-favorites-tab.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    font-weight: 600
}

/* Favorite heart btn inside cm-card-header */
.cm-card-header .tm-favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--bs-secondary-color, #8592a3);
    padding: 4px;
    transition: all .2s ease
}

.cm-card-header .tm-favorite-btn:hover, .cm-card-header .tm-favorite-btn.tm-favorite-btn--active {
    color: #dc3545
}

/* ===================================================================
   VIEW TOGGLE BUTTONS (Grid/List) - Red theme
   =================================================================== */
.tm-view-toggle.btn-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #e7e7e8)
}

.tm-view-toggle .btn {
    border: none;
    padding: 8px 14px;
    font-size: 16px;
    line-height: 1;
    background: var(--bs-card-bg, #fff);
    color: var(--bs-secondary-color, #8592a3);
    transition: all .2s ease
}

.tm-view-toggle .btn:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, .06)
}

.tm-view-toggle .btn.btn-primary, .tm-view-toggle .btn:active {
    background: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
    box-shadow: none !important
}

.tm-view-toggle .btn.btn-outline-secondary {
    background: var(--bs-card-bg, #fff);
    color: var(--bs-secondary-color, #8592a3);
    border-color: transparent
}

.tm-view-toggle .btn:first-child {
    border-radius: 8px 0 0 8px
}

.tm-view-toggle .btn:last-child {
    border-radius: 0 8px 8px 0
}

[dir="rtl"] .tm-view-toggle .btn:first-child {
    border-radius: 0 8px 8px 0
}

[dir="rtl"] .tm-view-toggle .btn:last-child {
    border-radius: 8px 0 0 8px
}

/* ===================================================================
   COMPANY CARD - Favorite button positioning
   =================================================================== */
.tm-company-card {
    position: relative
}

.tm-company-card > .tm-favorite-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3
}

[dir="rtl"] .tm-company-card > .tm-favorite-btn {
    left: auto;
    right: 12px
}

/* Favorite btn base styles (ensure visible everywhere) */
.tm-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .9);
    color: var(--bs-secondary-color, #8592a3);
    font-size: 18px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1)
}

.tm-favorite-btn:hover {
    background: #fff;
    color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15)
}

.tm-favorite-btn--active, .tm-favorite-btn--active:hover {
    color: #dc3545;
    background: rgba(255, 255, 255, .95)
}

.tm-favorite-btn--sm {
    width: 32px;
    height: 32px;
    font-size: 16px
}

.tm-favorite-btn--lg {
    width: 42px;
    height: 42px;
    font-size: 22px
}

/* ===================================================================
   CM-CARD & CM-BTN BASE (for membership banner on all pages)
   =================================================================== */
.cm-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e7e7e8);
    border-radius: 12px;
    overflow: hidden
}

.cm-card-body {
    padding: 1.25rem
}

.cm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color, #e7e7e8)
}

[dir="rtl"] .cm-card-header {
    text-align: right
}

[dir="rtl"] .cm-card-header .cm-card-title {
    text-align: right
}

.cm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #dc3545;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap
}

.cm-btn-primary:hover {
    background: #c82333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, .3)
}

.cm-btn-primary i {
    font-size: 1rem
}

[data-bs-theme="dark"] .cm-card {
    background: var(--bs-card-bg);
    border-color: var(--bs-border-color)
}

@media (max-width: 576px) {
    .cm-btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem
    }
}

/* ===================================================================
   USER SETTINGS - Form Elements (cm- prefix)
   =================================================================== */
.cm-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bs-heading-color, #566a7f);
    margin-bottom: 0.35rem
}

.cm-required {
    color: #dc3545
}

.cm-form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: var(--bs-body-color, #697a8d);
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #e7e7e8);
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none
}

.cm-form-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .1)
}

.cm-form-input--disabled {
    background: var(--bs-tertiary-bg, #f5f5f9);
    color: var(--bs-secondary-color, #8592a3);
    cursor: not-allowed
}

.cm-form-input--error {
    border-color: #dc3545
}

.cm-form-error {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem
}

.cm-form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #8592a3);
    margin-top: 0.25rem
}

.cm-form-hint i {
    font-size: 0.85rem;
    vertical-align: middle;
    margin-inline-end: 0.2rem
}

/* Select2 global layout fix — label above, full-width container */
.mb-3 .select2-container {
    width: 100% !important
}

/* Select2 global border-radius fix */
.select2-container--default .select2-selection--single {
    border-radius: 18px !important;
    border-color: var(--bs-border-color, #e7e7e8) !important;
    height: 3rem !important;
    min-height: 3rem !important;
    display: flex !important;
    align-items: center !important
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 14px !important;
    padding-right: 32px !important;
    display: flex !important;
    align-items: center !important
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 32px !important;
    padding-right: 14px !important
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
    display: flex !important;
    align-items: center !important
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto !important;
    left: 10px !important
}

.select2-dropdown {
    border-radius: 18px !important;
    border-color: var(--bs-border-color, #e7e7e8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1) !important;
    overflow: hidden
}

.select2-container--default .select2-results__option--selected {
    background-color: rgba(220, 53, 69, .08) !important
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(220, 53, 69, .12) !important;
    color: var(--bs-body-color) !important
}

.select2-container--default .select2-selection--single:focus, .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .1) !important
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important
}

[data-bs-theme="dark"] .select2-dropdown {
    background: var(--bs-card-bg) !important;
    border-color: var(--bs-border-color) !important
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bs-body-color) !important
}

.select2-search--dropdown .select2-search__field {
    border-radius: 12px !important
}

[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-border-color) !important
}

/* Phone input (intl-tel-input) border-radius */
.iti input[type="tel"].form-control {
    border-radius: 18px !important
}

/* Phone group */
.cm-phone-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start
}

.cm-phone-group .mb-3 {
    margin-bottom: 0 !important
}

.cm-phone-intro {
    flex: 0 0 140px;
    max-width: 140px
}

.cm-phone-intro .select2-container {
    width: 100% !important
}

.cm-phone-number {
    flex: 1
}

/* User Profile Header */
.cm-user-profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem
}

.cm-user-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bs-tertiary-bg, #f0f2f4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bs-border-color, #e7e7e8)
}

.cm-user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cm-user-profile-avatar__initial {
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc3545
}

.cm-user-profile-info {
    flex: 1;
    min-width: 0
}

[dir="rtl"] .cm-user-profile-header {
    text-align: right
}

/* Membership Banner */
.cm-membership-banner {
    border: 2px solid rgba(220, 53, 69, .2);
    background: linear-gradient(135deg, rgba(220, 53, 69, .03) 0%, rgba(220, 53, 69, .08) 100%)
}

.cm-membership-banner__content {
    display: flex;
    align-items: center;
    gap: 1rem
}

.cm-membership-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(220, 53, 69, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.cm-membership-banner__icon i {
    font-size: 1.5rem;
    color: #dc3545
}

.cm-membership-banner__text {
    flex: 1;
    min-width: 0
}

.cm-membership-banner__text h6 {
    margin: 0 0 0.15rem;
    font-weight: 600;
    color: var(--bs-heading-color, #566a7f)
}

.cm-membership-banner__text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #8592a3)
}

[dir="rtl"] .cm-membership-banner__content {
    text-align: right
}

/* Dark mode */
[data-bs-theme="dark"] .cm-form-input {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color)
}

[data-bs-theme="dark"] .cm-form-input--disabled {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color)
}

[data-bs-theme="dark"] .cm-user-profile-avatar {
    border-color: var(--bs-border-color);
    background: var(--bs-tertiary-bg)
}

[data-bs-theme="dark"] .cm-membership-banner {
    border-color: rgba(220, 53, 69, .3);
    background: linear-gradient(135deg, rgba(220, 53, 69, .05) 0%, rgba(220, 53, 69, .1) 100%)
}

/* Responsive */
@media (max-width: 576px) {
    .cm-user-profile-header {
        flex-direction: column;
        text-align: center
    }

    [dir="rtl"] .cm-user-profile-header {
        flex-direction: column;
        text-align: center
    }

    .cm-membership-banner__content {
        flex-direction: column;
        text-align: center
    }

    [dir="rtl"] .cm-membership-banner__content {
        flex-direction: column;
        text-align: center
    }

    .cm-phone-group {
        flex-direction: column
    }

    .cm-phone-intro {
        flex: 1;
        max-width: 100%
    }
}


/* tm-hero-category-select-fix
   Hero "All Categories" Select2 dropdown scrolling + padding fix.
   Scoped to bootstrap-5 theme with high specificity and \!important
   because ~/public/css/dashboard.css loads after turkish-marketer.css
   and an earlier .select2-dropdown rule sets overflow:hidden which
   was clipping the inner scrollbar visually. */
html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown {
    overflow: visible \!important;
    padding: 0 \!important;
}

html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results {
    max-height: 250px \!important;
    overflow-y: auto \!important;
    overflow-x: hidden \!important;
    border-radius: inherit;
}

html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results__options {
    max-height: 250px \!important;
    overflow-y: auto \!important;
    overflow-x: hidden \!important;
    margin: 0 \!important;
    padding: 4px 0 \!important;
    list-style: none \!important;
}

/* Hide the in-dropdown search row entirely for the hero (JS also sets minimumResultsForSearch: Infinity). */
html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-search--dropdown {
    display: none \!important;
}

/* Thin, themed scrollbar */
html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results::-webkit-scrollbar,
html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results__options::-webkit-scrollbar {
    width: 6px;
}

html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results::-webkit-scrollbar-thumb,
html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results::-webkit-scrollbar-track,
html body .select2-container.select2-container--bootstrap-5.select2-container--open .select2-dropdown .select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}
