/* ========================================================================
   Marketerum Stylesheet
   Table of Contents
   1) Theme Tokens
   2) Base + Accessibility
   3) Components (Alerts, Modals, Dropdowns)
   4) Layout (Header, Sidebar)
   5) Data Tables
   6) Forms (Auth, Dashboard, New Order)
   7) Utilities (Animations, Helpers)
   8) Dark Mode Overrides
   ======================================================================== */

/* 1) Theme Tokens (light defaults) */
:root {
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text-primary: #0a2753;
    --color-text-secondary: #3f4b5a;
    --color-accent: #00BFF3;
    --color-accent-hover: #00A6D6;
    --color-border: #EEF0F3;
    --color-error: #EF4444;
    --color-success: #10B981;
    --header-hight: 72px;

    /* UI tokens */
    --radius-card: 14px;
    --shadow-card: 0 10px 24px rgba(2, 6, 23, 0.06);
    --shadow-card-dark: 0 10px 24px rgba(0, 0, 0, 0.45);
    --ring-primary: 0 0 0 3px rgba(0, 191, 243, 0.25);
}

/* 8) Dark Mode Base (palette) */
/* Dark mode base styling (Marketerum palette) */
body.dark {
    /* Tokens */
    --color-bg: #0B0F19;            /* Background */
    --color-surface: #0a2753;       /* Cards/sections */
    --color-text-primary: #E5E7EB;  /* Primary text */
    --color-text-secondary: #9CA3AF;/* Secondary text */
    --color-accent: #00D4A6;        /* Buttons/links */
    --color-accent-hover: #14F1B9;  /* Hover state */
    --color-border: #1F2937;        /* Borders/dividers */
    --color-error: #EF4444;         /* Error */
    --color-success: #10B981;       /* Success */

    background-color: var(--color-bg);
    color: var(--color-text-primary);
}


/* ========================================================================
   3) Components: Alerts
   ======================================================================== */
/* General alert styling */
.alert {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    font-size: 13px;
}

/* Danger alert styling */
.alert-danger {
    background-color: #fff8fc;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button,
.btn {
    min-width: 44px;
    min-height: 44px;
}

/* Success alert styling */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}



/* Links */
body.dark a {
    color: var(--color-accent);
}
body.dark a:hover,
body.dark a:focus {
    color: var(--color-accent-hover);
}

/* Alerts */
body.dark .alert {
    background-color: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}
body.dark .alert-success {
    background-color: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.45);
    color: var(--color-text-primary);
}
body.dark .alert-danger {
    background-color: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.45);
    color: var(--color-text-primary);
}

/* Close button styling */
.alert .close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
}

/* ========================================================================
   3) Components: Select2
   ======================================================================== */
.select2-container--default .select2-results>.select2-results__options {
    background: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #bfebf7;
}

/* Dark: select2 */
.dark .select2-container--default .select2-results>.select2-results__options {
    background: var(--color-surface);
    color: var(--color-text-primary);
}
.dark .select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(20, 241, 185, 0.15);
}

.select2-results__option {
    padding: 10px 0;
}

.blog-excerpt {
    width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
}

/* ========================================================================
   3) Components: Modals
   ======================================================================== */
/* Modal */
/* Modal container, hidden by default */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.modal-title img {
    width: 150px;
}

/* Close button */
.modal .close {
    color: #333 !important;
    background: #fff !important;
    cursor: pointer;
    border: 1px solid #e2e5ea !important;
}

.modal .close:hover,
.modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.services-info .s-header h4 {
    margin: 0;
}

.service-id-box {
    font-weight: 500;
    margin-bottom: 10px;
    background: #00bff3;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline;
    width: fit-content;
}

.dark .service-id-box {
    background: var(--color-accent);
    color: #0B0F19;
}

.services-info>div {
    background: #ebfafe;
    display: flex;
    justify-content: space-around;
    border-radius: 8px;
    padding: 30px;
    flex-wrap: wrap;
    row-gap: 30px;
}

.services-info>div> :nth-child(-n + 3) {
    flex-basis: 33.33%;
}

.services-info .si-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-info .si-item small {
    font-weight: 500;
    font-size: 15px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    text-align: left;
}

.modal .si-item {
    text-align: center;
}

.modal .si-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #00bff3;
    color: #fff;
    line-height: 40px;
    font-size: 20px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dark .modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.dark .services-info>div {
    background: var(--color-surface);
}

.dark .modal .close {
    background: transparent !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-primary) !important;
}

.sidebar__menu .badge {
    width: 20px;
    height: 20px;
    text-align: center;
    border-radius: 50%;
    background: white !important;
    color: #03bff3;
}

.dark .sidebar__menu .badge {
    background: var(--color-surface) !important;
    color: var(--color-accent) !important;
}

.sidebar__menu .custom-push-menu {
    padding-left: 20px;
    padding-top: 20px;
}

.sidebar__menu .custom-push-menu a {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.sidebar__menu .custom-push-menu .dropdown {
    margin-top: 20px;
}

.sidebar__menu .custom-push-menu .dd-menu {
    position: relative;
    padding: 10px;
}

#currencies-list li {
    padding: 0 10px;
}

.join-now-sec {
    background-image: url('https://storage.perfectcdn.com/7gc9nb/yso64do77b67ckcy.png');
}

.join-now-sec .becam-btn {
    display: inline-block;
}

td.service-name,
table#service-table thead tr:first-child td h2 {
    font-size: 15px !important;
}

.sidebar__menu ul li a {
    font-size: 16px !important;
}

.collapsed .sidebar__menu ul li a {
    font-size: 18px !important;
}

[data-status] {
    border-radius: 10px;
    color: #fff;
    text-align: center;
    padding: 5px 10px !important;
}

[data-status="Canceled"] {
    background: #f30f01 !important;
}

[data-status="In progress"] {
    background: #1777ff !important;
}

[data-status="Processing"] {
    background: #a500f3 !important;
}

[data-status="Partial"] {
    background: #6d6dbb !important;
}

[data-status="Completed"] {
    background: #3ab54b !important;
}

[data-status="Pending"] {
    background: #f7931a !important;
}

.dark table#service-table tbody tr {
    background: transparent;
}

/* Dark: buttons (primary accent) */
.dark .btn.btn-primary,
.dark .btn-primary {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #0B0F19 !important;
}
.dark .btn.btn-primary:hover,
.dark .btn-primary:hover,
.dark .btn.btn-primary:focus,
.dark .btn-primary:focus {
    background-color: var(--color-accent-hover) !important;
    border-color: var(--color-accent-hover) !important;
    color: #0B0F19 !important;
}

/* Currency drop down */
.currency-item {
    background: #F6F6F6;
    border: 1px solid #eee5e5;
    border-radius: 7px;
    padding: 7px 10px;
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: #3E4954;
    transition: 0.14s ease;
    cursor: pointer;
    margin-bottom: 5px;
}

.currency-item span {
    background: #1eaae7;
    float: right;
    width: 35px;
    text-align: center;
    border-radius: 3px;
    color: #fff;
}

/* Dark: currency item */
.dark .currency-item {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}
.dark .currency-item span {
    background: var(--color-accent);
    color: #0B0F19;
}

/* Style the dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding-top: 10px;
    margin-top: 10px;
}

/* Show the dropdown menu when it has the 'show' class */
.dropdown-menu.show {
    display: block;
}

/* Style for the dropdown items */
.dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Dark: dropdowns */
.dark .dropdown-menu {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
}
.dark .dropdown-item {
    color: var(--color-text-primary);
}
.dark .dropdown-item:hover {
    background-color: rgba(20, 241, 185, 0.08);
}

.status-data>div:nth-child(1) {
    flex-basis: 80% !important;
}

/* Dark: modal header/footer borders and secondary text */
.dark .modal-header,
.dark .modal-footer {
    border-color: var(--color-border);
}
.dark .text-muted,
.dark .text-secondary,
.dark .subtitle {
    color: var(--color-text-secondary) !important;
}

.status-data>div:nth-child(2) {
    flex-basis: 20% !important;
}

.status-data>div:nth-child(3) {
    flex-basis: 20% !important;
}


@media (max-width: 768px) {
    main.page-wrapper {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    [data-label="Link"] a {
        word-break: keep-all;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100px;
        display: inline-block !important;
    }

    ul.order-tabs li {
        flex-basis: 47%;
    }

    .status-data {
        flex-direction: column;
        gap: 10px;
    }

    table#service-table a {
        width: 100%;
        margin-top: 10px;
        margin-top: 20px;
        display: block !important;
        max-width: 250px;
    }


    ul.nt-select-cats,
    ul.nt-sc {
        flex-wrap: wrap;

    }

    li.flex.flex-nowrap.items-center {
        flex-basis: 100%;
    }


}


/** Contact page */
a.contact-infp {
    display: flex;
    column-gap: 10px;
    margin-bottom: 10px;
}

table#service-table tbody td.fav+td {
    font-weight: 500 !important;
    font-size: 15px;
}



/* ========================================================================
   5) Data Tables: Tickets
   ======================================================================== */
#tickets-table {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* Table Styling */
#tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

#tickets-table thead {
    background-color: #f4f4f4;
    color: #FFF;
    text-align: start;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
}

#tickets-table th,
#tickets-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#tickets-table th {

    background: #03bff3 !important;
}

#tickets-table tr th:first-child {
    border-radius: 15px 0px 0px 15px;
}

#tickets-table tr th:last-child {
    border-radius: 0px 15px 15px 0px;
}

#tickets-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#tickets-table tr:hover {
    background-color: #f1f1f1;
}

.nowrap {
    white-space: nowrap;
}


#tickets-table tr:nth-child(even) {
    background-color: #FFF;
}

/* Dark: tables (tickets) */
.dark #tickets-table {
    color: var(--color-text-primary);
}
.dark #tickets-table thead {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
}
.dark #tickets-table th,
.dark #tickets-table td {
    border-bottom: 1px solid var(--color-border);
}
.dark #tickets-table tr:nth-child(even) {
    background-color: transparent;
}
.dark #tickets-table tr:hover {
    background-color: #0F1624;
}





/* Responsive Styling */
@media (max-width: 768px) {
    #tickets-table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    @media (max-width: 768px) {
        #tickets-table tbody {
            width: 100%;
            display: block;
        }
    }

    #tickets-table thead {
        display: none;
    }

    #tickets-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 10px;
        border-color: rgb(0 191 243 / var(--tw-border-opacity));
        padding: 10px;
        background: #FFF !important;
    }

    #tickets-table td {
        display: block;
        text-align: right;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #ddd;
    }

    #tickets-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }

    #tickets-table td:last-child {
        border-bottom: 0;
    }
}




[data-label="Link"] {
    text-align: left !important;
    word-break: break-all;
}

table#service-table a {
    border: none;
    word-break: break-all !important;
    word-break: break-all;
    overflow: hidden;
    text-wrap: wrap;
    padding: 0;
}


.sidebar__menu ul li:not(.active) .badge {
    background: #e15327 !important;
    color: #FFF;
    font-size: 14px;
    display: inline-block;
}


table#service-table tbody tr td {
    text-align: left !important;
}


@media screen and (max-width: 600px) {
    .dash_card .tabs {
        flex-wrap: wrap;
        gap: 10px;
        flex-wrap: wrap;
        align-content: center;
        /* flex-direction: column; */
        align-items: center;
    }

    .dash_card .tabs>* {
        flex-basis: 33% !important;
        flex-grow: 1 !important;
    }

    .dash_card_search .nav.nav-pills {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
}

p,
li {
    font-weight: inherit !important;
    font-size: 15px !important;
}

article.slick-slide.slick-active p,
.faqs p {
    font-size: 13px !important;
}

.reviews__rating {
    padding-top: 30px;
}

blockquote.text-xl.md\:text-2xl {
    color: rgb(27 54 95 / var(--tw-text-opacity));
}

#notify-wrapper {
    display: none;
}

.google-btn {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 55px;
    width: 100%;
    overflow: hidden;
    opacity: 0;
}

.google-login {
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
}

.google-login-wrap {
    position: relative;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 10px;
    background-color: rgb(58 181 74 / var(--tw-bg-opacity));
    border-color: rgb(58 181 74 / var(--tw-bg-opacity));
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-around;
    margin-left: 12px;
}

.frm-btn-wrap .btn.btn-primary,
.google-login-wrap {
    flex: 0 0 48%;
    max-width: 48%;
}

.google-login svg {
    width: 20px;
    display: inline-block;
    margin-left: 8px;
}

.have-acc {
    margin-left: 0;
    margin-top: 12px;
    font-size: 17px;
    color: #0b0a1e;
    font-size: 16px;
    font-weight: 500;
    display: flex;
}

.signin_btns {
    display: flex;
}

.payment__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.685rem;
}

.payment_black_image {
    margin-top: 20px;
}

.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

.mt-5 {
    margin-top: 5rem !important;
}


/* Notifications New in tickets and ticket menu */
.new-indicator {
    background-color: #ff0000;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 8px;
    animation: pulse 1.5s infinite;
    /* Add animation to the badge */
}

.hiddennew {
    display: none;
}

.badge {
    animation: pulse 1.5s infinite;
    /* Add pulsing animation */
}

/* Keyframes for pulsing effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}


.dash_card_search .nav.nav-pills {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.dash_card_search .search .input-group {
    display: flex;
    border: 2px solid #00bff3;
    border-radius: 10px;
}

.dash_card_search .search .input-group .input-group-btn {
    background: #00bff3;
    color: white;
}




/* AI Tools */

#customContentGeneratorContainer {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #ddd;
    width: 100%;
    margin: auto;
    margin-top: 40px;
    text-align: center;
}

.customInput {
    width: calc(100% - 24px);
    padding: 12px;
    margin-top: 15px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 17px;
    transition: border-color 0.3s;
}

.customInput:focus {
    border-color: #007bff;
    outline: none;
}

.customButton {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.customButton:hover {
    background-color: #218838;
}

#customLoader {
    color: gray;
    font-style: italic;
    margin-top: 25px;
}

#customGeneratedContent {
    width: 100%;
    margin: 40px auto;
    text-align: left;
}

.customTextarea {
    width: 100%;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: 250px;
    resize: vertical;
}

.box {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 20px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s;
    min-width: 300px;
}

.box:hover {
    transform: translateY(-5px);
}

.box-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.box-description {
    font-size: 1em;
    color: #666;
}

@media (max-width: 768px) {
    .box {
        width: 100%;
    }
}

.box-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.dash_card .tab {
    color: #0a2753;
    font-size: 16px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .mobile-cards {
        display: none;
    }
}

@media (max-width: 767px) {
    .desktop-table {
        display: none;
    }
}

.Canceled-border {
    border-color: #FF4C4C;
}

.Partial-border {
    border-color: #FFD700;
}

ul.refund-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

ul.refund-tabs .input-group {
    display: flex;
}

/* Custom styles for the bonus modal */
.bonus-modal {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    font-family: "Poppins", sans-serif;
}

.bonus-header {
    background: linear-gradient(135deg, #ecf9ff 0%, #f6fcff 100%);
    /* replicate very light pastel section backgrounds【138422794865479†L130-L146】 */
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.bonus-icon {
    background-color: #3ab54b;
    /* green similar to completed status【138422794865479†L279-L281】 */
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.bonus-title {
    color: #00bff3;
    /* turquoise blue from the site【138422794865479†L130-L146】 */
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.bonus-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #999;
    font-size: 1.5rem;
    border: none;
    background: transparent;
    z-index: 10;
}

.bonus-body {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.bonus-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.bonus-button {
    background: #3ab54b;
    /* green CTA matching the site’s accents【138422794865479†L279-L281】 */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    display: inline-block;
    transition: background 0.3s ease;
}

.bonus-button:hover {
    background: #329e43;
    text-decoration: none;
    color: #000;
}

/* Dark mode adaptation (optional) */
body.dark .bonus-modal {
    background-color: #151616;
    color: #f1f1f1;
}

body.dark .bonus-header {
    background: #1e293b;
}

body.dark .bonus-icon {
    background-color: #3ab54b;
}

body.dark .bonus-title {
    color: #00bff3;
}

/* Custom styles for the insufficient balance modal */
.balance-modal {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    font-family: "Poppins", sans-serif;
}

.balance-header {
    background: linear-gradient(135deg, #fff7e6 0%, #fffdf6 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.balance-icon {
    background-color: #f97316;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.balance-title {
    color: #f97316;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.balance-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #999;
    font-size: 1.5rem;
    border: none;
    background: transparent;
    z-index: 10;
}

.balance-body {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.balance-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.balance-button {
    background: #f97316;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    display: inline-block;
    transition: background 0.3s ease;
}

.balance-button:hover {
    background: #ea580c;
    text-decoration: none;
    color: #000;
}

body.dark .balance-modal {
    background-color: #151616;
    color: #f1f1f1;
}

body.dark .balance-header {
    background: #374151;
}

body.dark .balance-icon {
    background-color: #f97316;
}

body.dark .balance-title {
    color: #f97316;
}

/* Accessibility contrast adjustments */
.nav-link.active {
    color: #000 !important;
}

.btn--primary {
    color: #fff !important;
}

.text__highlight {
    color: #000;
}

.dark .text__highlight {
    --tw-bg-opacity: 1;
    background-color: #ebfafe;
}

.text__highlight--dark {}

.google-login {
    color: #000;
}

.text-slate-50,
.text-slate-200 {
    color: #000 !important;
}

/* Dark: restore readable slate text colors */
body.dark .text-slate-50,
body.dark .text-slate-200 {
    color: var(--color-text-primary) !important;
}

/* Enhanced color contrast for accessibility */
.btn--primary {
    background-color: #00bff3;
    color: #ffffff !important;
}

.btn--primary:hover {
    background-color: #004080;
}

/* Dark: primary CTA on hero/signin */
.dark .btn--primary {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #0B0F19 !important;
}
.dark .btn--primary:hover,
.dark .btn--primary:focus {
    background-color: var(--color-accent-hover) !important;
    border-color: var(--color-accent-hover) !important;
}
.hero{
    background: #EBFAFE;
}
.dark .hero{
    background: #0A2753;
}
.hero__heading,
.hero__intro {
    color: #0a2753;
}

/* Dark: hero heading/body text */
.dark .hero__heading,
.dark .hero__intro,
.dark .hero p {
    color: var(--color-text-primary);
}

/* Dark: hero highlight chip */
.dark .hero .text__highlight {
    background-color: rgba(20, 241, 185, 0.08);
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
}

.header_actions a:not(.btn--primary),
.mt-auto.flex.flex-col.space-y-8>a:not(.btn--primary) {
    color: #0056b3;
    font-weight: 600;
}


/* Accessible color contrast adjustments */
.text-secondary-main,
.text-primary-main {
    color: #0056b3;
}

.bg-primary-main {
    background-color: #00bff3 !important;
}

.bg-primary-main:hover {
    background-color: #004080 !important;
}

.border-primary-main {
    border-color: #0056b3 !important;
}

.border-secondary-main {
    border-color: #0056b3 !important;
}

/* Sticky header styles */
.main-header,
.dash-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #EBFAFE;
    transition: box-shadow 0.3s ease;
}
.dark .main-header,.dark .dash-header {
    background: #0a2753 !important;
}

/* Header (guest) polish */
.main-header {
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: saturate(1.2) blur(6px);
}
.main-header nav {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: var(--header-hight);
    gap: 1.25rem;
}
.main-header .logo img { height: auto; width: 150px; }
.main-header .nav__main { display: flex; align-items: center; gap: .25rem; }
.main-header .nav__main li.nav-link { padding: 0 !important; border-radius: 9999px; }
.main-header .nav__main li a {
    display: block;
    padding: .5rem .875rem;
    border-radius: 9999px;
    color: #1f2a44;
    font-weight: 500;
    transition: background .15s ease, color .15s ease, transform .1s ease;
}
.main-header .nav__main li:hover a { background: rgba(0, 191, 243, 0.10); color: #0a2753; }
.main-header .nav__main li.active a { background: rgba(0, 191, 243, 0.16); color: #0056b3; }
.main-header .header_actions { gap: 1rem; }
.main-header .header_actions .btn--primary { height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 600; }
.main-header .header_actions a:not(.btn--primary) { font-weight: 600; color: #0a2753; }
.main-header .header_actions a:not(.btn--primary):hover { color: #0056b3; }

/* Header: dark */
.dark .main-header { border-bottom-color: #0a3a62; backdrop-filter: none; }
.dark .main-header .nav__main li a { color: var(--color-text-primary); }
.dark .main-header .nav__main li:hover a { background: rgba(255,255,255,0.06); color: var(--color-text-primary); }
.dark .main-header .nav__main li.active a { background: rgba(0,212,166,0.14); color: var(--color-text-primary); }
.dark .main-header .header_actions a:not(.btn--primary) { color: var(--color-text-primary); }
.dark .main-header .header_actions a:not(.btn--primary):hover { color: var(--color-accent); }

/* Sign-in page: light + dark styles */
.signIn_form {
    background: #ffffff;
    border: 1px solid #E6EEF5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.10);
}
.signIn_form .input-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FDFF;
    border: 1px solid #85E0F9;
    border-radius: 12px;
    padding: 6px 10px;
}
.signIn_form .input-field > .bg-primary-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px; padding: 0;
    border-radius: 10px;
    background: #00BFF3;
    color: #fff;
}
.signIn_form .input-field input {
    background: transparent;
    border: none;
    outline: none;
    color: #0a2753;
    font-size: 0.95rem;
    flex: 1;
}
.signIn_form .input-field input::placeholder { color: #6C7A8A; }
.signIn_form .form-info label { color: #3f4b5a; font-size: 0.875rem; }
.signIn_form .form-info a { color: #0056b3; font-weight: 600; }
.signIn_form .form-info a:hover { color: #004080; }
.signIn_form .signin_btns .btn.btn--primary { width: 100%; display:flex; align-items:center; justify-content:center; gap: 8px; }
.signIn_form input[type="checkbox"] { accent-color: #00BFF3; }

/* Dark: sign-in */
.dark .signIn_form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(11, 15, 25, 0.35) inset;
}
.dark .signIn_form .input-field {
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid var(--color-border);
}
.dark .signIn_form .input-field > .bg-primary-main {
    background: color-mix(in srgb, var(--color-accent) 92%, #0B0F19) !important;
    box-shadow: 0 6px 16px rgba(0, 212, 166, 0.22);
}
.dark .signIn_form .input-field input { color: var(--color-text-primary); }
.dark .signIn_form .input-field input::placeholder { color: var(--color-text-secondary); }
.dark .signIn_form .form-info label { color: var(--color-text-secondary); }
.dark .signIn_form .form-info a { color: var(--color-accent); }
.dark .signIn_form .form-info a:hover { color: var(--color-accent-hover); }
.dark .signIn_form input[type="checkbox"] { accent-color: var(--color-accent); }

/* Dark: header links (non-CTA) */
.dark .header_actions a:not(.btn--primary),
.dark .mt-auto.flex.flex-col.space-y-8>a:not(.btn--primary) {
    color: var(--color-text-primary);
}
.dark .header_actions a:not(.btn--primary):hover,
.dark .mt-auto.flex.flex-col.space-y-8>a:not(.btn--primary):hover {
    color: var(--color-accent);
}

/* Dark: Google login button tone */
.dark .google-login-wrap {
    background: linear-gradient(180deg, rgba(16,185,129,0.95) 0%, rgba(16,185,129,0.85) 100%);
    border-color: transparent;
}
.dark .google-login {
    color: #0B0F19;
}

.main-header.active,
.dash-header.active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Overlay for sidebar and menu */
.sidebar-overlay,
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 20;
}

.sidebar-overlay.active,
.menu-overlay.active {
    display: block;
}

/* Sidebar toggle visibility */
.sidebar-toggle {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar-toggle {
        display: block;
    }
}

/* Collapsible sidebar styles */
.sidebar.collapsed {
    min-width: 4rem;
    width: 8rem;
    overflow: hidden;
}

.sidebar.collapsed .sidebar__wrapper {
    min-width: 4rem;
    width: 4rem;
}

.sidebar.collapsed header {
    display: none;
}

.sidebar.collapsed .sidebar__menu ul li a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.collapsed .sidebar-text {
    display: none;
}

.sidebar__logo-square {
    display: none;
    padding: 1rem 0;
    justify-content: center;
}

.sidebar__logo-square img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.sidebar.collapsed .sidebar__logo-square {
    display: flex;
}
.dash-header h3:where(.dark, .dark *),
.active-user__name:not(.sidebar .active-user__name):where(.dark, .dark *) {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity));
}

/* ========================================================================
   4) Layout: Sidebar
   ======================================================================== */
.sidebar {
  position: fixed;
  left: -100%;
  margin-top: var(--header-hight);
  /* height: 100%; */
  min-width: 18.4rem;
  border-right-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(238 240 243 / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  /* padding-left: 1.5rem;
  padding-right: 1.5rem; */
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .sidebar {
    position: relative;
    left: 0px;
  }

  .sidebar__wrapper {
    position: fixed;
    height: 100%;
    /* padding: 10px; */
  }
}

.sidebar__wrapper {
  /* overflow-y: scroll; */
  height: 100%;
  /* padding: 10px; */
}

.sidebar.active {
  z-index: 999;
  min-width: 16rem;
  padding: 0px;
  margin: 0px;
}

@media not all and (min-width: 1024px) {
  .sidebar.active {
    left: 0px;
  }
}

.sidebar__menu {
  height: 100%;
  /*min-h-screen*/
}

.sidebar__menu ul li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  min-width: -moz-fit-content;
  min-width: fit-content;
  border-radius: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  --tw-text-opacity: 1;
  color: rgb(92, 99, 111);
}

.sidebar__menu ul li.active {
  border-radius: 0.75rem;
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
  box-shadow: 0px 4px 8.9px rgba(0, 191, 243, 0.18);
}

.sidebar__menu ul li a {
  display: flex;
  align-items: center;
  -moz-column-gap: 0.75rem;
  column-gap: 0.75rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.sidebar__menu ul li.active .sidebar__icon-wrapper {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.86rem;
  --tw-bg-opacity: 1;
  background-color: rgb(0 191 243 / var(--tw-bg-opacity));
  padding: 0.5rem;
}

.sidebar__menu ul li svg {
  width: 20px;
}

.sidebar__menu ul li svg path:where(.dark, .dark *) {
  fill: #0ecbff;
}

.sidebar__menu ul li.active svg path {
  fill: #fff;
}

.sidebar__menu ul li.active path:where(.dark, .dark *) {
  fill: #f8fafc;
}

.sidebar__menu ul li.active .sidebar__icon-wrapper svg {
  fill: white;
  color: #fff;
}

/* Sidebar: dark mode */
.dark .sidebar {
  /* Match header background in dark mode */
  background-color: #0a2753 !important;
  border-color: #0a3a62 !important;
}
.dark .sidebar__wrapper {
  background-color: transparent;
}
.dark .sidebar__menu ul li {
  color: var(--color-text-secondary);
}
.dark .sidebar__menu ul li a {
  color: var(--color-text-secondary);
}
/* Sidebar: stronger active indicator + hover feedback */
.dark .sidebar__menu ul li.active {
    background-color: #06E8FF8A;
  box-shadow: inset 3px 0 0 rgb(0, 212, 166);
}
.dark .sidebar__menu ul li:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  box-shadow: inset 3px 0 0 rgba(0, 212, 166, 0.35);
}
.dark .sidebar__menu ul li:hover a {
  color: var(--color-text-primary);
}
.dark .sidebar__menu ul li svg path {
  fill: var(--color-text-secondary);
}
.dark .sidebar__menu ul li.active a {
  color: #00FFCF;
}
.dark .sidebar__menu ul li.active .sidebar__icon-wrapper {
  background-color: rgba(11, 15, 25, 0.25);
}
.dark .sidebar__menu ul li.active svg path {
  fill: #0B0F19;
}
.dark .sidebar__menu ul li .sidebar__icon-wrapper {
  background-color: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #00bff3;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f9;
}

/* Dark: scrollbars */
.dark ::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
}
.dark ::-webkit-scrollbar-track {
    background: #0F1624;
}

/* Custom layout for New Order page */
@media (min-width: 1024px) {
    .order-form-card {
        flex-basis: 60%;
    }

    .order-desc-card {
        flex-basis: 40%;
    }
}

/* ========================================================================
   6) Forms: New Order
   ======================================================================== */
/* New Order: dark containers */
.dark .dash_card,
.dark .order-form-card,
.dark .order-desc-card {
    background-color: var(--color-surface) !important;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

/* New Order: tabs */
.dark .dash_card .tabs { gap: 8px; }
.dark .dash_card .tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 10px;
}
.dark .dash_card .tab.active,
.dark .dash_card .tab.active-tab {
    background: rgba(0, 212, 166, 0.12);
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

/* New Order: platform chips row */
.dark #new-order-cats .nwo-cat-btn {
    background-color: var(--color-surface) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text-primary) !important;
}
.dark #new-order-cats .nwo-cat-btn .text-md {
    color: var(--color-text-primary) !important; /* override inline black */
}
.dark #new-order-cats .nwo-cat-btn:hover { border-color: #2a3a4f; }
.dark #new-order-cats .nwo-cat-btn.active {
    outline: 2px solid rgba(0, 212, 166, 0.25);
    border-color: var(--color-accent);
}

/* New Order: search inputs (left and right) */
.dark #new-order-search input,
.dark #history-search .input.search,
.dark .service-desc input.search,
.dark .s-dropdown,
.dark .select2-selection--single {
    background-color: rgba(2, 6, 23, 0.40) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-primary) !important;
}
.dark #new-order-search input::placeholder,
.dark #history-search .input.search::placeholder,
.dark .service-desc input.search::placeholder {
    color: var(--color-text-secondary);
}

/* New Order: description panel */
.dark #description_container,
.dark .panel-body {
    background-color: #0F1624 !important;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

/* New Order: form labels and help text */
.dark .order-form-card .form-label,
.dark .order-form-card label,
.dark .order-form-card small,
.dark .order-form-card .terms,
.dark .order-form-card .help-block {
    color: var(--color-text-secondary);
}

/* New Order: inputs/selects inside order form */
.dark #order-form input,
.dark #order-form textarea,
.dark #order-form select,
.dark #order-form .form-control {
    background-color: #0F1624; /* clear contrast on dark cards */
    border: 1px solid #2a3a4f; /* slightly lighter than card border */
    color: var(--color-text-primary);
    /* remove inner highlight that looks like a white border */
    box-shadow: none;
}

/* ========================================================================
   2) Base + Accessibility (type scale, colors)
   ======================================================================== */
html { font-size: 16px; }
body, .dashboard {
  color: var(--color-text-primary);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5rem;
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

label, .form-label { font-size: 0.875rem; color: var(--color-text-secondary); }
small, .text-muted { color: var(--color-text-secondary) !important; font-size: 0.8125rem; }

/* Section-specific heading polish */
.order-desc-card h3 { font-size: 1rem; font-weight: 600; color: #0a2753; }
.dark .order-desc-card h3 { color: var(--color-text-primary); }
#description_container { font-size: 0.9375rem; line-height: 1.7; }
.dark #order-form input::placeholder,
.dark #order-form textarea::placeholder {
    color: var(--color-text-secondary);
}
.dark #order-form input[type="checkbox"] {
    accent-color: var(--color-accent);
}
.dark #order-form input:focus,
.dark #order-form textarea:focus,
.dark #order-form select:focus,
.dark #order-form .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 166, 0.20);
    outline: none;
}

/* New Order: select2 inside the form */
.dark #order-form .select2-selection--single {
    background-color: #0F1624 !important;
    border-color: #2a3a4f !important;
    color: var(--color-text-primary) !important;
    box-shadow: none !important;
}
.dark #order-form .select2-selection__rendered {
    color: var(--color-text-primary) !important;
}
.dark #order-form .select2-selection__placeholder {
    color: var(--color-text-secondary) !important;
}
.dark #order-form .select2-search__field {
    background-color: #0F1624 !important;
    color: var(--color-text-primary) !important;
    border: 1px solid #2a3a4f !important;
}

/* New Order: services dropdown trigger/button */
.dark button#services-dropdown-btn {
    background-color: #0F1624;
    border: 1px solid #2a3a4f;
    color: var(--color-text-primary);
}
.dark #services-dropdown-list {
    background: #07193b;
    border: 1px solid var(--color-border);
}

/* New Order: select2 pieces */
.dark .select2-selection__rendered { color: var(--color-text-primary) !important; }
.dark .select2-selection__arrow b { border-color: var(--color-text-secondary) transparent transparent transparent !important; }



/* Right card heading polish */
.dark .order-desc-card h3 {
    color: var(--color-text-primary);
}

.s-dropdown {
    width: 100%;
    border-radius: 0.75rem;
    background-color: rgb(235 250 254 / var(--tw-bg-opacity));
    color: rgb(147 160 179 / var(--tw-text-opacity));
    border: 0.2rem solid #85e0f9;
    margin-top: 1rem;
}

.s-dropdown button {
    min-height: auto !important;
    min-width: 100% !important;
    text-align: left !important;
    padding: 1rem;
    border-radius: 10px;
}

.s-dropdown dropdown-menu {
    overflow-y: auto;
    width: 100%;
    position: relative !important;
    background-color: white;
    padding: 5px;
}

.s-dropdown .dropdown-menu>button {
    display: block;
    padding: 3px 10px;
    clear: both;
    font-weight: 600;
    line-height: 1.42857143;
    color: var(--color-drop-down-list-text);
    text-align: left;
    width: 100%;
    border: none;
    border-bottom: 1px solid hsla(200, 17%, 69%, 0.141);
    min-height: auto !important;
    padding: 0.6rem;
    border-radius: 10px;
}

.select2-selection__id {
    background-color: orangered;
    border-radius: 10px;
    padding: 1px 10px;
    color: white;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    text-overflow: initial !important;
    white-space: normal !important;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 100% !important;
}

.dashboard input:not(.search),
.dashboard textarea,
.dashboard select {
    background-color: #f8fdff;
    border: 1px solid #00bff3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

/* Dark: dashboard form controls */
.dark .dashboard input:not(.search),
.dark .dashboard textarea,
.dark .dashboard select,
.dark .form-control,
.dark .select2-selection--single {
    /* background-color: var(--color-surface) !important; */
    border-color: var(--color-border) !important;
    color: var(--color-text-primary) !important;
}
.dark .select2-search .form-control.select2-search__field {
    background-color: rgba(2, 6, 23, 0.40);
    border: 1px solid var(--color-border);
}
.dark .select2-dropdown {
    background: var(--color-surface);
    color: var(--color-text-primary);
}
.dark .select2-container--default .select2-results>.select2-results__options {
    background: #07193b !important;
}
.dark #order-services{
    color: #E5E7EB;
}
/* Normal state */
.select2-container--default .select2-selection--single {
    background-color: #f8fdff;
    border: 1px solid #00bff3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #60a5fa;
    /* or transparent if you want no border */
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    /* optional blue glow */
    outline: none;
}


button#services-dropdown-btn {
    background-color: #f8fdff;
    border: 1px solid #00bff3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

.services-list .first-btn {
    border: 1px solid #e5e5e6;
}

span#order-services {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.text-left {
    text-align: left !important;
}

.font-semibold {
    font-weight: 600;
}

#services-dropdown-list {
    max-height: 500px !important;
    overflow-y: auto;
    background: #f8fdff;
}

.services-list .dropdown-menu {
    padding: 0 !important;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}


/* FAQ2 section enhancements */
.faq2 .tab__item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.faq2 .tab__label {
    background-color: transparent;
    color: #0f172a;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    min-height: 4rem;
}

.faq2 .tab__label h3 {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
}

.faq2 .tab__item p {
    color: #0f172a;
    padding-left: 2rem;
    padding-right: 2rem;
}

.faq2 .tab__label svg {
    transition: transform 0.3s ease;
}

.faq2 .tab__item.active .tab__label svg {
    transform: rotate(45deg);
}

.faq2 .tab__item.active {
    background-color: #f8fafc;
}

.col-md-6 {
    width: 100%;
    float: none;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
        float: left;
        box-sizing: border-box;
        padding: 15px;
    }
}

.col-md-6::after {
    content: "";
    display: table;
    clear: both;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.tempus-dominus-widget {
    border-radius: 10px !important;
    border: 1px solid #00bff3 !important;
    box-shadow: none !important;
    margin-bottom: 5px !important;
}

.input-group {
    display: flex;
    position: relative;
    width: 100%;
}

.form-control {
    flex-grow: 1;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group-button {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
    background-color: #007bff;
    border: 1px solid #007bff;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group .form-control+.input-group-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .input-group-button+.form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.input-group-button:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-search--dropdown.select2-search--hide {
    display: block !important;
}

.select2-selection--single {
    height: 42px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #fff;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.search-dropdown .input-wrapper .form-control {
    padding-left: 50px !important;
}

.select2-search__field {
    padding-left: 30px !important;
}


.select2-dropdown {
    overflow-y: auto;
    max-height: 564px;
    background: #f8fdff;
}

.select2-container--default .select2-results>.select2-results__options {
    background: #f8fdff !important;
}

/* Responsive styling for child panel table */
#service-table {
    width: 100%;
}

@media (max-width: 768px) {
    #service-table thead {
        display: none;
    }

    #service-table,
    #service-table tbody,
    #service-table tr,
    #service-table td {
        display: block;
        width: 100%;
    }

    #service-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 0.5rem;
        background-color: #fff;
    }

    #service-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0;
        text-align: right;
    }

    #service-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
        text-align: left;
    }
}

/* Simple Balance Info Modal */
.balance-modal-simple {
    border: 0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(18, 38, 63, 0.25);
    border-top: 4px solid #00bff3;
}

.balance-modal-simple h4 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
    color: #0056b3;
}

.balance-modal-simple p {
    font-size: 16px;
    margin-bottom: 24px;
}

.balance-modal-simple .balance-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 8px;
}

.balance-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    opacity: .6;
}

.balance-close:hover {
    opacity: 1;
}


.nwo-cat-btn {
    width: 100%;
    text-align: left;
    border-radius: 0.4rem;
    border: 1px solid rgba(229, 231, 235, 0.7);
    background-color: #ffffff;
    padding: 0.25rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.nwo-cat-btn:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.nwo-cat-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.dark .nwo-cat-btn {
    border-color: #1f2937;
    background-color: #000000;
}

.dark .nwo-cat-btn:hover {
    border-color: #374151;
}

.nwo-cat-btn .icon-wrap {
    height: 2.25rem;
    width: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: #f3f4f6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dark .nwo-cat-btn .icon-wrap {
    background-color: #18181b;
}

.nwo-cat-btn .icon {
    height: 1.25rem;
    width: 1.25rem;
    object-fit: contain;
}

.nwo-cat-btn .label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.dark .nwo-cat-btn .label {
    color: #e5e7eb;
}

.nwo-cat-btn.is-active {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: 2px solid rgba(99, 102, 241, 0.2);
}

.nwo-cat-btn.is-active .label {
    color: #4f46e5;
}

.dark .nwo-cat-btn.is-active .label {
    color: #818cf8;
}

.nwo-cat-btn.is-active .icon-wrap {
    background-color: #eef2ff;
}

.dark .nwo-cat-btn.is-active .icon-wrap {
    background-color: #1e1b4b;
}

.top-actions .action-item {
    text-decoration: none;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #00BFF3;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 191, 243, .35);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.action-item:hover .action-icon {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 191, 243, .45);
    background: #00A6D6;
}

.action-label {
    font-size: 12px;
    line-height: 1;
    color: #4c4c4c;
}

.action-icon.toggle {
    position: relative;
    padding: 0 6px;
    gap: 4px;
}

.user-chip {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.user-chip:hover {
    border-color: rgba(0, 191, 243, .45);
    box-shadow: 0 8px 22px rgba(0, 191, 243, .12);
}

.dark .action-label {
    color: #d1d5db;
}

.dark .user-chip {
    background: #00bff3;
    border-color: #00bff3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}

.dark .user-chip:hover {
    border-color: #0ea5b7;
}

.dark .user-chip .active-user__username{
    color: #ffffff;
}
.dark .user-chip .active-user__balance{
    color: #eceff0;
}
:root {
    --primary: #00BFF3;
    --track: #e5e7eb;
    --track-dark: #0b2a3a1a;
}

.mode-switch {
    gap: .35rem;
}

.mode-switch .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mode-switch .switch {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 9999px;
    background: var(--track);
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
    transition: background .2s ease, box-shadow .2s ease;
    outline: none;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.mode-switch .switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: #ffffffab;
    border: 1px solid #fff;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .06);
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), background .2s;
}

.mode-switch .switch .icon-sun {
    position: relative;
    left: 6px;
    opacity: 1;
    transform: scale(1.02);
    transition: opacity .2s, transform .2s;
}

.mode-switch .switch .icon-moon {
    position: relative;
    left: -6px;
    opacity: .45;
    transform: scale(.95);
    transition: opacity .2s, transform .2s;
}

.mode-switch:hover .switch {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 3px rgba(0, 191, 243, .12);
}

.mode-switch input:focus+.switch {
    box-shadow: 0 0 0 4px rgba(0, 191, 243, .25);
}

.mode-switch input:checked+.switch {
    background: color-mix(in srgb, var(--primary) 85%, white);
}

.mode-switch input:checked+.switch::after {
    transform: translateX(24px);
}

.mode-switch input:checked+.switch .icon-sun {
    opacity: .45;
    transform: scale(.95);
}

.mode-switch input:checked+.switch .icon-moon {
    opacity: 1;
    transform: scale(1.02);
}

html[dir="rtl"] .mode-switch .switch {
    padding-left: 0;
    padding-right: 8px;
}

html[dir="rtl"] .mode-switch .switch::after {
    left: auto;
    right: 4px;
}

html[dir="rtl"] .mode-switch input:checked+.switch::after {
    transform: translateX(-24px);
}

.dark .mode-switch .switch {
    background: var(--track-dark);
}

.dark .mode-switch input:checked+.switch {
    background: color-mix(in srgb, var(--primary) 78%, #0b0b0b);
}

.mode-switch .mode-label {
    font-size: 12px;
    color: #4c4c4c;
    line-height: 1;
}

.dark .mode-switch .mode-label {
    color: #d1d5db;
}

.platforms-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem; 
  max-height: 200px; 
  overflow-y: auto;
  padding: 0.5rem;
}

.card-tab {
  width: 100%;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(229, 231, 235, 0.7);
  background-color: #fff;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.card-tab:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-color: #d1d5db;
}

@media (max-width: 640px) {
  .platforms-section {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    max-height: 140px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.flag-emoji-text{
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",
               system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-variant-emoji: emoji;
}

img.emoji{
  height:1em;
  width:1em;
  margin:0 .05em 0 .1em;
  vertical-align:-0.1em;
}

#method-dropdown .methods-select {
    background-color: #f8fdff;
    border: 1px solid #00bff3;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

.a_link{
    color: #00bff3 !important;
}

.tab__content-wrapper [data-tab-content],
.info-block [data-tab-content] { display:none; }
.tab__content-wrapper [data-tab-content].active,
.info-block [data-tab-content].active { display:block; }

/* --- UI polish additions --- */
/* (tokens moved to top in Theme Tokens) */

/* Light cards to match dark styling */
.dash_card,
.order-form-card,
.order-desc-card {
  background-color: #ffffff;
  border: 1px solid #EEF0F3;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Tabs polish (light) */
.dash_card .tabs { gap: 8px; }
.dash_card .tab {
  background: #F8FDFF;
  border: 1px solid #E5EAF0;
  color: #0a2753;
  border-radius: 10px;
  transition: background .2s ease, border-color .2s ease, transform .1s ease;
}
.dash_card .tab:hover { transform: translateY(-1px); border-color: #cfeaf7; }
.dash_card .tab.active,
.dash_card .tab.active-tab {
  background: #EBFAFE;
  border-color: #00bff3;
  box-shadow: 0 0 0 2px rgba(0, 191, 243, 0.15);
}

/* Consistent focus rings */
.btn:focus-visible,
.form-control:focus-visible,
.select2-selection--single:focus,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--ring-primary);
  border-color: #00bff3;
}

/* Disabled buttons */
.btn[disabled],
.btn:disabled,
.btn.disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

/* NWO platform chips: stronger active states */
.nwo-cat-btn.is-active {
  border-color: #00bff3;
  outline: 2px solid rgba(0, 191, 243, 0.15);
  background: #F2FBFE;
}
.dark .nwo-cat-btn.is-active {
  background-color: rgba(0, 212, 166, 0.08);
  border-color: var(--color-accent);
  outline-color: rgba(0, 212, 166, 0.25);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto !important; }
  .badge, .new-indicator { animation: none !important; }
}

/* ========================================================================
   3) Components: Dashboard (migrated from bootstrap.css)
   ======================================================================== */
/* Service table tweaks */
table#service-table tbody td.fav { order: 999; }
table#service-table tbody td.service-name,
table#service-table tbody td:nth-child(2) { flex-basis: 100%; }
table#service-table tbody td { flex-basis: 33.333333%; }

/* Dashboard: API section */
.dash_card.api p { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.dash_card.api pre {
  border-radius: 0.75rem;
  border: 1px solid #85e0f9;
  background-color: #EBFAFE;
  padding: 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #3B5275;
}
.dark .dash_card.api pre { background-color: #0D0D0D; color: #F1F5F9; }
.dash_card.api h4,
.dash_card.api h4 strong { margin: 2rem 0; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.dash_card.api table {
  width: 100%;
  border: 1px solid #85e0f9;
  background-color: #EBFAFE;
  border-collapse: collapse;
  border-radius: 1rem;
  overflow: hidden;
}
.dark .dash_card.api table { background-color: transparent; }
.dash_card.api table td,
.dash_card.api table th {
  border: 1px solid #85e0f9;
  background-color: #EBFAFE;
  padding: 1rem;
  text-align: left;
}
.dark .dash_card.api table td,
.dark .dash_card.api table th { background-color: #0D0D0D; color: #F8FAFC; }
.dash_card.api select#service_type {
  width: 100%;
  background-color: #EBFAFE;
  border: none;
  padding: 19px;
  margin-bottom: 20px;
  background-position: 98%;
}
.dash_card.api .table-wrapper { margin-bottom: 1rem; border-radius: 1rem; border: 1px solid #85e0f9; }

/* Dashboard: Affiliate cards */
.affiliate-info {
  display: flex;
  flex-grow: 1;
  flex-basis: calc(33.33% - 4rem);
  gap: 0.75rem;
  border-radius: 0.75rem;
  background-color: #EBFAFE;
  padding: 1rem;
}
.dark .affiliate-info { background-color: #0D0D0D; }
.affiliate-info .icon-wrapper {
  display: flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 0.375rem; background-color: #00BFF3;
}
.affiliate-info .affiliate-data { display: flex; flex-direction: column; justify-content: center; }
.dark .affiliate-info .affiliate-data { color: #94A3B8; }
.affiliate-info .affiliate-data p + p { font-weight: 500; }
.dark .affiliate-info .affiliate-data p + p { color: #F8FAFC; }

/* Tickets category select group */
ul.nt-select-cats, ul.nt-sc { display: flex; justify-content: space-between; gap: 1rem; }
#ticketsend li { flex-grow: 1; }
#ticketsend label {
  margin-bottom: 0;
  display: flex; align-items: center; gap: .5rem;
  border-radius: .75rem; border: 1px solid #E2E5EA;
  padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem;
}
.dark #ticketsend label { border: none; background: #0D0D0D; }
#ticketsend label i { display: flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: .375rem; background: #fff; }
#ticketsend input[type="radio"] { display: none; }
#ticketsend input:checked + label { background: #0A2753; color: #fff; }
.dark #ticketsend input:checked + label { background: #45C356; }

/* Child panel status + upload button */
.status-data { display: flex; justify-content: space-between; border-bottom: 1px solid #e2e5ea; padding: 20px 0; }
button.imgbb-button {
  width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: transparent; border: 1px dashed #e2e5ea; border-radius: 9px; padding: 60px; font-size: 15px; font-weight: 200; color: #3b5275;
}
.imgbb-button:hover { background-color: #03bff3 !important; }
.imgbb-container { width: 100%; }
span.imgbb-button-icon { display: block; }
.imgbb-button-icon svg { width: 60px; font-size: 41px; margin-bottom: 10px; color: #03bff3; }
.imgbb-button:hover svg { color: #fff; }

/* ========================================================================
   Home: Achievements Section
   Usage HTML:
   <section class="achievements">
     <h2 class="achievements__title">Marketerum Achievements</h2>
     <div class="achievements__grid">
       <div class="stat">
         <span class="stat__icon">…</span>
         <div>
           <div class="stat__value">1575085</div>
           <div class="stat__label">Orders Completed</div>
         </div>
       </div>
       …
     </div>
   </section>
   ======================================================================== */
.achievements { padding: 2.5rem 0; }
.achievements__title {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0a2753;
  margin-bottom: 1.75rem;
}
.achievements__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
  align-items: center;
  justify-items: center;
}
.achievements .stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .25rem;
}
.achievements .stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: #3ab54b; /* legacy green used in site */
  color: #fff;
  box-shadow: 0 6px 16px rgba(58, 181, 74, 0.28);
}
.achievements .stat__value {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: #3ab54b;
}
.achievements .stat__label {
  font-size: .95rem;
  color: #3B5275;
  margin-top: .125rem;
}

/* Dark: achievements */
.dark .achievements__title { color: var(--color-text-primary); }
.dark .achievements .stat__icon {
  background: color-mix(in srgb, var(--color-success) 88%, #0b0f19);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}
.dark .achievements .stat__value { color: var(--color-success); }
.dark .achievements .stat__label { color: var(--color-text-secondary); }

/* Responsive */
@media (max-width: 1024px) {
  .achievements__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .achievements__grid { grid-template-columns: 1fr; }
  .achievements .stat { justify-content: center; }
}
