:root {
    --primary-color: #9746fd;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

.btn-primary {
    color: #fff;
    background-color: #9746fd;
    border-color: #9746fd;
    transition: all .2s ease-in-out 0s;
}

.btn-outline-primary {
    color: #9746fd;
    border-color: #9746fd;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: #9746fd !important;
    background-color: #9746fd !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #9746fd !important;
    background-color: #fff !important;
    border-color: #9746fd !important;
}

a {
    color: #9746fd;
    transition: all .2s ease-in-out 0s;
}

a:hover {
    color: #7912f9;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    color: #fff;
    pointer-events: none;
    background-color: #9746fd;
    border-color: #9746fd;
    opacity: 0.65;
}

a.disabled {
    pointer-events: none;
    opacity: 0.65;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all .2s ease-in-out 0s;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    color: #dc3545 !important;
    background-color: #fff !important;
    border-color: #dc3545 !important;
}

.btn-warning {
    color: #fff;
    background-color: #ffc107;
    border-color: #ffc107;
    transition: all .2s ease-in-out 0s;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    color: #ffc107 !important;
    background-color: #fff !important;
    border-color: #ffc107 !important;
}

.btn-info {
    color: #fff;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    transition: all .2s ease-in-out 0s;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    color: #0dcaf0 !important;
    background-color: #fff !important;
    border-color: #0dcaf0 !important;
}

.cms_row {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.cms_container {
    max-width: 100%;
    width: 100%;
}

.cms_col-1 {
    flex: 0 0 8.33333%;
    max-width: 8.33333%;
}

.cms_col-2 {
    flex: 0 0 16.66667%;
    max-width: 16.66667%;
}

.cms_col-3 {
    flex: 0 0 23%;
    max-width: 23%;
    border: 1px solid #ccc;
    margin: 0 15px;
}

.cms_col-4 {
    flex: 0 0 31.30%;
    max-width: 31.30%;
    border: 1px solid #ccc;
    margin: 0 15px;
}

.cms_col-5 {
    flex: 0 0 41.66667%;
    max-width: 41.66667%;
}

.cms_col-6 {
    flex: 0 0 48%;
    max-width: 48%;
    border: 1px solid #ccc;
    margin: 0 15px;
}

.cms_col-7 {
    flex: 0 0 58.33333%;
    max-width: 58.33333%;
}

.cms_col-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
}

.cms_col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.cms_col-10 {
    flex: 0 0 83.33333%;
    max-width: 83.33333%;
}

.cms_col-11 {
    flex: 0 0 91.66667%;
    max-width: 91.66667%;
}

.cms_col-12 {
    flex: 0 0 98.3%;
    max-width: 98.3%;
    border: 1px solid #ccc;
    margin: 0 15px;
}

.element_drag {
    background: #ccc;
    text-align: right;
    padding: 15px 15px;
}

.section_row {
    color: #9746fd;
    padding-right: 20px;
    text-decoration: none !important;
}

.section_row span span {
    padding-right: 15px;
}

.section_delete i,
.section_drag i {
    color: #9746fd;
}

.section_delete2 i,
.section_drag2 i {
    color: #9746fd;
}

.section_delete3 i,
.section_drag3 i {
    color: #9746fd !important;
}

.section_drag,
.section_cms_row,
.section_delete {
    color: #000;
    text-decoration: none;
}

.section_cms_row,
.section_delete {
    padding-right: 15px;
    position: relative;
}

.section_cms_row_selection span {
    padding-right: 15px;
}

.add_new_section {
    cursor: pointer;
    background: #9746fd;
    color: #fff;
    padding: 5px 12px;
    margin-bottom: 15px;
    display: inline-block;
    border-radius: 5px;
    border: 1px solid #9746fd;
    transition: all .2s ease-in-out 0s;
}

.add_new_section:hover {
    background: #fff;
    color: #9746fd;

}

.save_btn {
    cursor: pointer;
    background: blue;
    color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    display: inline-block;
}

.section_element {
    border: 1px solid #ccc;
    margin: 0 0px 15px;
    background: #ccc;
    padding: 15px 15px 15px 8px;
}

.section_element a {
    text-decoration: none;
    color: #fff;
    background: #9746fd;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid #9746fd;
    transition: all .2s ease-in-out 0s;
}

.section_element a:hover {
    background: #fff;
    color: #9746fd;
}

.section_element2 {
    position: relative;
    width: 100%;
    text-align: right;
    margin: 0 15px 10px;
}


.element_drag2 {
    background: #ccc;
    text-align: right;
    padding: 15px 15px;
}

.section_drag2,
.section_delete2 {
    color: #000;
    text-decoration: none;
}

.section_cms_row2,
.section_delete2 {
    padding-right: 15px;
    position: relative;
}

.popup_data_box_ctn {
    border: 1px solid #ccc;
    padding: 15px;
    width: 23.5%;
    margin: 0 5px 10px;
    text-align: center;
    cursor: pointer;
    float: left;
}

.popup_data_box_ctn i {
    padding-top: 15px;
}

.popup_data_box_ctn span {
    display: block;
    padding-top: 15px;
}

.popup-trigger:hover {
    opacity: .8;
}

.popup_element_add {
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    text-align: left;
}

.popup_data_box {
    margin: 0 -15px;
}

.popup_element_add h2 {
    padding: 0 30px;
    margin: 20px 0;
    font-size: 1.5em;
}

.popup {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1000;
    width: 100%;
    background-color: rgba(94, 110, 141, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: 500ms all;

}

.popup.is-visible {
    opacity: 1;
    visibility: visible;
    transition: 1s all;
}

.popup-container {
    transform: translateY(-50%);
    transition: 500ms all;
    position: relative;
    width: 40%;
    margin: 2em auto;
    top: 5%;
    padding: 5rem 2rem;
    background: #FFF;
    border-radius: .25em .25em .4em .4em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.is-visible .popup-container {
    transform: translateY(0);
    transition: 500ms all;
}

.popup-container .popup-close {
    position: absolute;
    top: 8px;
    font-size: 0;
    right: 8px;
    width: 30px;
    height: 30px;
}


.popup-container .popup-close::before,
.popup-container .popup-close::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 14px;
    height: 3px;
    background-color: #8f9cb5;
}

.popup-container .popup-close::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    left: 8px;
}

.popup-container .popup-close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    right: 8px;
}


.popup-container .popup-close:hover:before,
.popup-container .popup-close:hover:after {
    background-color: #35a785;
    transition: 300ms all;
}


.gallery_section {
    border: 1px solid #8f8f8f;
    margin: 0 15px;
    color: #fff;
    margin-bottom: 15px;
}

.gallery_section h2 {
    font-size: 16px;
    margin: 0;
    position: relative;
    font-weight: normal;
    background: #8f8f8f;
    padding: 10px;
}

.gallery_section h2 span {
    position: absolute;
    right: 10px;
}

.gallery_section h2 span a {
    margin-left: 10px;
}

.gallery_section h2 span a i {
    color: #000;
}

.slider_section {
    border: 1px solid #8f8f8f;
    margin: 0 15px;
    color: #fff;
    margin-bottom: 15px;
}

.slider_section h2 {
    font-size: 16px;
    margin: 0;
    position: relative;
    font-weight: normal;
    background: #8f8f8f;
    padding: 10px;
}

.slider_section h2 span {
    position: absolute;
    right: 10px;
}

.slider_section h2 span a {
    margin-left: 10px;
}

.slider_section h2 span a i {
    color: #000;
}

.text_section {
    border: 1px solid #8f8f8f;
    margin: 0 15px;
    color: #fff;
    margin-bottom: 15px;
}

.text_section h2 {
    font-size: 16px;
    margin: 0;
    position: relative;
    font-weight: normal;
    background: #8f8f8f;
    padding: 10px;
}

.text_section h2 span {
    position: absolute;
    right: 10px;
}

.text_section h2 span a {
    margin-left: 10px;
}

.text_section h2 span a i {
    color: #000;
}

.gallery_type {
    margin: 15px;
}

.gallery_type select {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
}

.slider_type {
    margin: 15px;
}

.slider_type select {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
}

.text_type {
    margin: 15px;
}

.text_type textarea {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
}

.close_nav_bar {
    display: none;
}

.online_access {
    position: absolute;
    background: #18a31c;
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

.offline_access {
    position: absolute;
    background: #959795;
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

.card_point_color {
    margin-bottom: 15px
}

.main_cat,
.seco_cat,
.thir_cat,
.four_cat,
.five_cat,
.six_cat,
.seven_cat {
    float: left;
    margin-right: 20px;
    position: relative;
    padding-left: 32px;
}

.main_cat:before {
    position: absolute;
    background: #5470c6;
    content: "";
    width: 25px;
    height: 25px;
    left: 0;
}

.seco_cat:before {
    position: absolute;
    background: #91cc75;
    content: "";
    width: 25px;
    height: 25px;
    left: 0;
}

.thir_cat:before {
    position: absolute;
    background: #fac858;
    content: "";
    width: 25px;
    height: 25px;
    left: 0;
}

.four_cat:before {
    position: absolute;
    background: #c666ee;
    content: "";
    width: 25px;
    height: 25px;
    left: 0;
}

.five_cat:before {
    position: absolute;
    background: #73c0de;
    content: "";
    width: 25px;
    height: 25px;
    left: 0;
}

.six_cat:before {
    position: absolute;
    background: #e4554d;
    content: "";
    width: 25px;
    height: 25px;
    left: 0;
}

.seven_cat:before {
    position: absolute;
    background: #ff69b4;
    content: "";
    width: 25px;
    height: 25px;
    left: 0;
}


/* OFFERS CSS */

*:focus {
    /* outline: none !important; */
    box-shadow: none !important;
}

.progress-steps .step-indicators {
    width: 80%;
    align-items: center;
    margin: 0 auto;
    justify-content: space-between;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
}

.step-indicator.active {
    background-color: var(--primary-color);
    color: white;
}

.step-indicator.inactive {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 2px solid #dee2e6;
}

.step-connector {
    height: 1px;
    background-color: #dee2e6;
    flex: 1;
    margin: 0 8px;
}

.rich-editor {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.rich-editor-toolbar {
    background-color: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.rich-editor-toolbar button {
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rich-editor-toolbar button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.rich-editor-content {
    min-height: 200px;
    padding: 1rem;
    outline: none;
}

.product-selection {
    max-height: 400px;
    overflow-y: auto;
}

.product-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.product-item:hover {
    background-color: var(--light-color);
}

.product-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.offer-card-ui {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.06);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.offer-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1c1c1c;
}

.offer-sub {
    font-size: 13px;
    margin-top: 4px;
    color: #6b7280;
}

.offer-badge-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Status Badges */
.status-active {
    background: #d4f8d9;
    color: #1e7d34;
}

.status-inactive {
    background: #eee;
    color: #555;
}

/* Type Badges */
.type-bank {
    background: #dce9ff;
    color: #2a4faa;
}

.type-wallet {
    background: #d9f7ff;
    color: #006b8f;
}

/* GRID ROWS */
.offer-body {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.offer-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.offer-row small {
    color: #6b7280;
}

.value {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
}

/* Footer */
.offer-footer {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions i {
    font-size: 16px;
    margin-left: 12px;
    cursor: pointer;
    opacity: 0.7;
}

.actions i:hover {
    opacity: 1;
}

.modal-header .btn-close {
    background-size: 18px;
    width: 1.2rem;
    height: 1.2rem;
    opacity: 0.6;
}

.modal-header .btn-close:hover {
    opacity: 1;
}