/* --- Modern Title Bar Styles --- */
.modern-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 60%, #43cea2 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
    padding: 1.1rem 2.2rem 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    flex-wrap: wrap;
}
.m-portlet__head-title.custom-modern {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: #333;
    gap: 1.1rem;
    letter-spacing: 0.5px;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.modern-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd200 0%, #43cea2 100%);
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    margin-right: 0.7em;
}
.modern-title-icon svg {
    width: 32px;
    height: 32px;
}
.modern-title-text {
    font-size: 1.25em;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}
.modern-title-bar .darkmode-switch {
    margin-left: auto;
    min-width: 140px;
}
@media (max-width: 767px) {
    .modern-title-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.7rem 1rem 0.7rem;
        gap: 0.7rem;
    }
    .m-portlet__head-title.custom-modern {
        font-size: 1.2rem;
        gap: 0.7rem;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 8px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(226, 232, 240, 0.6);
    }
    .m-portlet__head-title.custom-modern .modern-title-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        margin-right: 0;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon svg {
        width: 28px;
        height: 28px;
    }
    .m-portlet__head-title.custom-modern .modern-title-text {
        font-size: 1.4rem;
        font-weight: 700;
        color: #374151;
        text-align: center;
        flex: 1;
        line-height: 1.3;
    }
    .modern-title-icon {
        width: 36px;
        height: 36px;
        margin-right: 0.5em;
    }
    .modern-title-icon svg {
        width: 24px;
        height: 24px;
    }
    .modern-title-bar .darkmode-switch {
        min-width: 100px;
        align-self: flex-end;
    }
}

/* Responsive DataTable for mobile */
@media (max-width: 767px) {
    #livecoin_exchanges thead {
        display: none;
    }
    #livecoin_exchanges tbody, #livecoin_exchanges tr, #livecoin_exchanges td {
        display: block;
        width: 100%;
    }
    #livecoin_exchanges tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
        background: #fff;
       // padding: 0.5rem 0.75rem;
    }
    #livecoin_exchanges td {
        text-align: left;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
        min-height: 40px;
        box-sizing: border-box;
    }
    #livecoin_exchanges td:last-child {
        border-bottom: none;
    }
    #livecoin_exchanges td:before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        top: 0;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        color: #333;
        font-size: 0.95em;
        display: block;
    }
    /* Remove left padding and align image left for the image column in mobile view */
    #livecoin_exchanges td:nth-child(2) {
        padding-left: 50% !important;
        text-align: left !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 40px;
    }
    #livecoin_exchanges td:nth-child(2) img,
    #livecoin_exchanges td:nth-child(2) .previewable-img {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block;
        width: 32px;
        height: 32px;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    }
    /* Remove data-label for image column (optional, if you want no label for image) */
    #livecoin_exchanges td:nth-child(2):before {
        content: '' !important;
        display: none !important;
    }
}

/* Custom DataTable Search Bar */
.dataTables_filter {
    width: 100%;
    max-width: 400px;
    margin-bottom: 18px;
    float: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.dataTables_filter .search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}
.dataTables_filter .search-icon {
    position: absolute;
    left: 16px;
    width: 22px;
    height: 22px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}
.dataTables_filter input[type="search"] {
    border-radius: 24px;
    border: 1.5px solid #ffd200;
    padding: 8px 44px 8px 44px;
    background: #fffbe7;
    transition: border 0.2s, box-shadow 0.2s;
    font-size: 15px;
    outline: none;
    color: #333;
    width: 100%;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
}
.dataTables_filter input[type="search"]:focus {
    border: 1.5px solid #f7971e;
    background: #fff;
    box-shadow: 0 2px 8px rgba(247,151,30,0.08);
}
.dataTables_filter #clear-search {
    margin-left: 8px;
    border: none;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff;
    border-radius: 16px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(221,36,118,0.12);
}
.dataTables_filter #clear-search:hover {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
}

/* DataTables Length Selector */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 18px;
    float: left;
    background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
    padding: 8px 18px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 16px;
    border: 1.5px solid #ffd200;
    padding: 6px 32px 6px 16px;
}

/* === Modern Pagination Styles === */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 18px;
    float: right;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    border: none;
    border-radius: 8px;
    margin: 0 4px;
    color: #fff !important;
    padding: 8px 18px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(67,206,162,0.08);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(221,36,118,0.12);
}

/* DataTable Header Icons and Text */
.datatable-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4em;
    vertical-align: middle;
}
#livecoin_exchanges thead th .datatable-header-icon {
    width: 28px;
    height: 28px;
}
#livecoin_exchanges thead th .datatable-header-icon i {
    font-size: 1.2em;
    margin-right: 0.2em;
}
.datatable-header-text {
    vertical-align: middle;
    font-weight: 600;
    color: #333;
    font-size: 1.08em;
}
#livecoin_exchanges thead th.sorting,
#livecoin_exchanges thead th.sorting_asc,
#livecoin_exchanges thead th.sorting_desc {
    cursor: pointer;
    background: none;
    transition: background 0.2s;
}
#livecoin_exchanges thead th.sorting:hover,
#livecoin_exchanges thead th.sorting_asc:hover,
#livecoin_exchanges thead th.sorting_desc:hover {
    background: #fffbe7;
}

/* Modern Tabs */
.modern-tabs-container {
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 60%, #43cea2 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}
.modern-tabs {
    display: flex;
    gap: 0.7rem;
    background: none;
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: none;
}
.modern-tab {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.5em;
    border-radius: 18px;
    background: #fffbe7;
    color: #333;
    font-weight: 600;
    font-size: 1.08em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
    cursor: pointer;
    border: none;
}
.modern-tab:hover {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #fff;
}
.modern-tab.active {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(67,206,162,0.10);
}
@media (max-width: 767px) {
    .modern-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .modern-tab {
        width: 100%;
        justify-content: flex-start;
    }
    .modern-tab.active {
        box-shadow: 0 2px 8px rgba(67,206,162,0.10);
    }
}

/* Action Buttons Row */
.action-buttons-row {
    margin-bottom: 1.2rem;
}
.fullscreen-switch {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.5em;
    border-radius: 18px;
    background: #fffbe7;
    color: #333;
    font-weight: 600;
    font-size: 1.08em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
    cursor: pointer;
    border: none;
}
.fullscreen-switch:focus {
    outline: 2px solid #ffd200;
}
.fullscreen-switch:hover {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #fff;
}
.fullscreen-switch.active {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(67,206,162,0.10);
}
.fullscreen-switch-icon {
    display: flex;
    align-items: center;
    margin-right: 0.5em;
}
.fullscreen-switch-label {
    font-size: 1em;
    font-weight: 500;
}
@media (max-width: 600px) {
    .fullscreen-switch {
        padding: 0.7em 1em;
    }
    .fullscreen-switch-label {
        display: none;
    }
}

/* DataTable Loading Spinner */
.datatable-loading {
    text-align: center;
    margin: 2em;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* m-portlet overrides for modern look */
.m-portlet {
    background: linear-gradient(135deg, #fffbe7 0%, #f7faff 100%);
    /* fallback for old browsers */
    box-shadow: 0 2px 16px rgba(255,215,0,0.04);
    border-radius: 18px;
    padding: 1.5rem 1.2rem;
    margin-bottom: 2rem;
}
.m-portlet__body.mt-5 {
    margin-top: 2rem;
}

/* --- Dark Mode Styles --- */
.dark-mode {
    background: #181a1b !important;
    color: #e0e0e0 !important;
}
.dark-mode body,
.dark-mode .m-content,
.dark-mode .m-portlet,
.dark-mode .m-portlet__body,
.dark-mode .modern-title-bar,
.dark-mode .modern-tabs,
.dark-mode .modern-tab,
.dark-mode .action-buttons-row,
.dark-mode .fullscreen-switch,
.dark-mode .table-responsive,
.dark-mode #livecoin_exchanges,
.dark-mode #livecoin_exchanges thead th,
.dark-mode #livecoin_exchanges tbody tr {
    background: #23272a !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}
.dark-mode .modern-title-bar,
.dark-mode .modern-tabs,
.dark-mode .action-buttons-row {
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
}
.dark-mode .modern-title-text,
.dark-mode .datatable-header-text,
.dark-mode .modern-tab,
.dark-mode .fullscreen-switch-label {
    color: #ffd200 !important;
}
.dark-mode .modern-tab.active,
.dark-mode .modern-tab:hover,
.dark-mode .fullscreen-switch.active,
.dark-mode .fullscreen-switch:hover {
    background: linear-gradient(90deg, #23272a 0%, #185a9d 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
}
.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(90deg, #ffd200 0%, #23272f 100%) !important;
    color: #23272f !important;
}
.dark-mode .dataTables_filter input[type="search"] {
    background: #23272a !important;
    color: #ffd200 !important;
    border: 1.5px solid #185a9d !important;
}
.dark-mode .dataTables_filter input[type="search"]:focus {
    border: 1.5px solid #ffd200 !important;
    background: #181a1b !important;
}
.dark-mode .dataTables_filter #clear-search {
    background: linear-gradient(90deg, #185a9d 0%, #ffd200 100%) !important;
    color: #fff !important;
}
.dark-mode .dataTables_filter #clear-search:hover {
    background: linear-gradient(90deg, #ffd200 0%, #185a9d 100%) !important;
    color: #23272a !important;
}
.dark-mode .m-portlet {
    background: linear-gradient(135deg, #23272f 0%, #23272f 100%) !important;
    /* keep it subtle in dark mode */
}

/* --- Fullscreen Styles --- */
#datatableFullscreenContainer:fullscreen {
    background: #fff;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    padding: 2vw !important;
    box-sizing: border-box;
    overflow: auto;
}
.dark-mode #datatableFullscreenContainer:fullscreen {
    background: #181a1b !important;
}

/* Highlighted search term */
.highlight {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #222;
    border-radius: 4px;
    padding: 0 2px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(67,206,162,0.10);
}
/* Highlighted row for search match */
.highlight-row {
    background: #fffbe7 !important;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
}

.datatable-info-beautiful {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(90deg, #e0eafc 0%, #cfdef3 100%);
    color: #4a4e69;
    border-radius: 18px;
    padding: 12px 28px;
    margin: 18px 0 0 0;
    font-size: 1.15rem;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(106,17,203,0.08);
    font-weight: 500;
    gap: 16px;
    min-height: 48px;
}
.datatable-info-beautiful .datatable-info-icon {
    font-size: 1.7rem;
    margin-right: 10px;
    color: #6a11cb;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(106,17,203,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.datatable-info-beautiful .datatable-info-text {
    color: #5f6caf;
    font-size: 1.15rem;
    font-weight: 600;
}
.datatable-info-beautiful strong {
    color: #f7971e;
    font-weight: 700;
    font-size: 1.1em;
}
@media (max-width: 600px) {
    .datatable-info-beautiful {
        font-size: 1rem;
        padding: 10px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .datatable-info-beautiful .datatable-info-icon {
        font-size: 1.2rem;
        padding: 6px;
        margin-right: 0;
        margin-bottom: 4px;
    }
}
.dark-mode .datatable-info-beautiful {
    background: linear-gradient(90deg, #23272f 0%, #23272f 100%) !important;
    color: #ffd200 !important;
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
}
.dark-mode .datatable-info-beautiful .datatable-info-icon {
    color: #ffd200;
    background: linear-gradient(135deg, #23272f 0%, #ffd200 100%);
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
}
.dark-mode .datatable-info-beautiful .datatable-info-text {
    color: #ffd200;
}
.dark-mode .datatable-info-beautiful strong {
    color: #f7971e;
}

/* === Image Preview Popup === */
#img-hover-preview {
    position: fixed;
    z-index: 9999;
    display: none;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    border: 2px solid #e2e8f0;
    transition: transform 0.15s cubic-bezier(.4,2,.6,1), opacity 0.15s;
    opacity: 0;
}
#img-hover-preview img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.dark-mode .modern-tabs-container {
    background: linear-gradient(90deg, #23272a 0%, #185a9d 100%) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
}

/* Highlight first column header and cells */
#livecoin_exchanges th:first-child,
#livecoin_exchanges td:first-child,
#livecoin_exchanges .datatable-highlight-first {
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 100%) !important;
    color: #333;
    font-weight: bold;
    border-right: 2px solid #ffd200;
}
.dark-mode #livecoin_exchanges th:first-child,
.dark-mode #livecoin_exchanges td:first-child,
.dark-mode #livecoin_exchanges .datatable-highlight-first {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
    border-right: 2px solid #ffd200 !important;
}
/* Gradient background for modern-tabs-container */
.modern-tabs-container,
.gradient-tabs-bg {
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 60%, #43cea2 100%) !important;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
}
.dark-mode .modern-tabs-container,
.dark-mode .gradient-tabs-bg {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
}

/* --- DataTable Header Styles (matching history.css) --- */
#livecoin_exchanges thead th {
    background-color: #f4f6f9;
    color: #525f7f;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}
#livecoin_exchanges thead th .datatable-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd200 0%, #f7971e 100%);
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    margin-right: 0.5em;
    font-size: 1.35em;
    color: #fff;
    border: 2px solid #fffbe7;
    transition: background 0.2s, box-shadow 0.2s;
}
#livecoin_exchanges thead th .datatable-header-icon i {
    color: #fff;
    font-size: 1.25em;
}
#livecoin_exchanges .datatable-header-text {
    font-size: 1.15em;
    vertical-align: middle;
    margin-left: 0.35em;
}
#livecoin_exchanges thead th.sorting,
#livecoin_exchanges thead th.sorting_asc,
#livecoin_exchanges thead th.sorting_desc {
    cursor: pointer;
}
#livecoin_exchanges thead th.sorting:hover,
#livecoin_exchanges thead th.sorting_asc:hover,
#livecoin_exchanges thead th.sorting_desc:hover {
    background-color: #e9ecef;
}

#livecoin_exchanges th:first-child,
#livecoin_exchanges td:first-child,
#livecoin_exchanges .datatable-highlight-first {
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 100%);
    color: #333;
    font-weight: bold;
    border-right: 2px solid #ffd200;
}

/* --- Modern Tabs Container Gradient (matching history.css) --- */
.modern-tabs-container,
.gradient-tabs-bg {
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 60%, #43cea2 100%) !important;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,215,0,0.08);
    margin-bottom: 1.5rem;
}

/* --- Dark Mode Overrides (matching history.css) --- */
.dark-mode #livecoin_exchanges thead th {
    background-color: #23272f !important;
    color: #ffd200 !important;
    border-bottom: 2px solid #23272f !important;
    border-top: 1px solid #23272f !important;
}
.dark-mode #livecoin_exchanges th:first-child,
.dark-mode #livecoin_exchanges td:first-child,
.dark-mode #livecoin_exchanges .datatable-highlight-first {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    color: #ffd200 !important;
    border-right: 2px solid #ffd200 !important;
}
.dark-mode .modern-tabs-container,
.dark-mode .gradient-tabs-bg {
    background: linear-gradient(90deg, #23272f 0%, #ffd200 100%) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
}

/* DataTable Custom Button Styles (from history.css) */
.datatable-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}
.datatable-btn {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #333;
    border: none;
    border-radius: 24px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255,215,0,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
}
.datatable-btn:hover, .datatable-btn:focus {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
}
.datatable-btn-icon {
    display: flex;
    align-items: center;
    margin-right: 6px;
}
@media (max-width: 600px) {
    .datatable-toolbar {
        flex-direction: column;
        gap: 6px;
    }
    .datatable-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.98rem;
        padding: 10px 10px;
    }
}
@media (max-width: 400px) {
    .datatable-btn span:not(.datatable-btn-icon) {
        display: none;
    }
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: linear-gradient(90deg, #fffbe7 0%, #ffd200 60%, #43cea2 100%);
    color: #0d6efd;
    border: none;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
    padding: 0.5em 1.4em;
    font-size: 1.08em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    position: relative;
    outline: none;
}
.refresh-btn[aria-disabled="true"], .refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.refresh-btn:hover, .refresh-btn:focus {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #185a9d;
    box-shadow: 0 4px 16px rgba(13,110,253,0.12);
}
.refresh-btn-icon {
    display: flex;
    align-items: center;
    position: relative;
}
.refresh-spinner {
    display: inline-flex;
    align-items: center;
    margin-left: 0.3em;
}
.refresh-spinner svg {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
.refresh-btn-label {
    margin-left: 0.2em;
}

.modern-refresh-btn {
    padding: 0.7em 2.2em !important;
    border-radius: 32px !important;
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%) !important;
    color: #fff !important;
    font-size: 1.13em !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 18px rgba(67, 206, 162, 0.18), 0 1.5px 6px rgba(24, 90, 157, 0.10);
    border: none !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}
.modern-refresh-btn:hover, .modern-refresh-btn:focus {
    background: linear-gradient(90deg, #185a9d 0%, #43cea2 100%) !important;
    color: #ffd200 !important;
    box-shadow: 0 6px 24px rgba(24, 90, 157, 0.18), 0 2px 8px rgba(67, 206, 162, 0.10);
}
.modern-refresh-btn .refresh-btn-label {
    font-size: 1.08em;
    font-weight: 600;
    margin-left: 0.3em;
    letter-spacing: 0.02em;
}
.modern-refresh-btn .refresh-btn-icon {
    display: flex;
    align-items: center;
    margin-right: 0.1em;
}

/* --- Moved from exchanges.blade.php --- */
.modern-refresh-btn-upgraded {
    padding: 0.9em 2.6em 0.9em 1.5em;
    border: none;
    border-radius: 2.2em;
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.15em;
    box-shadow: 0 6px 24px 0 rgba(67, 206, 162, 0.18), 0 2px 8px 0 rgba(24, 90, 157, 0.13);
    display: flex;
    align-items: center;
    gap: 1em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    outline: none;
}
.modern-refresh-btn-upgraded:hover, .modern-refresh-btn-upgraded:focus {
    background: linear-gradient(90deg, #185a9d 0%, #43cea2 100%);
    box-shadow: 0 8px 32px 0 rgba(67, 206, 162, 0.25), 0 3px 12px 0 rgba(24, 90, 157, 0.18);
    transform: translateY(-2px) scale(1.04);
}
.modern-refresh-btn-upgraded:active {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    box-shadow: 0 2px 8px 0 rgba(67, 206, 162, 0.10);
    transform: scale(0.97);
}
.modern-refresh-btn-upgraded:focus-visible {
    outline: 3px solid #ffd200;
    outline-offset: 2px;
}
.icon-refresh-upgraded {
    width: 2.1em;
    height: 2.1em;
    stroke-width: 4.5;
    filter: drop-shadow(0 2px 4px rgba(24,90,157,0.18));
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), stroke 0.2s;
}
.modern-refresh-btn-upgraded.spinning .icon-refresh-upgraded {
    animation: spin-refresh 0.7s linear;
}
@keyframes spin-refresh {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.refresh-btn-label {
    font-size: 1.13em;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.refresh-icon-bg {
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.7em;
    height: 2.7em;
    box-shadow: 0 2px 8px 0 rgba(24, 90, 157, 0.10);
    margin-right: 0.5em;
}
.ripple-effect.show {
    transform: scale(4);
    opacity: 0;
    animation: ripple-animate 0.5s linear;
}
/* Modern Fullscreen Button Styles */
.modern-fullscreen-btn {
    padding: 0.9em 2.2em 0.9em 1.2em;
    border: none;
    border-radius: 2.2em;
    background: linear-gradient(90deg, #0d6efd 0%, #43cea2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.08em;
    box-shadow: 0 6px 24px 0 rgba(13, 110, 253, 0.13), 0 2px 8px 0 rgba(67, 206, 162, 0.10);
    display: flex;
    align-items: center;
    gap: 1em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    outline: none;
    position: relative;
}
.modern-fullscreen-btn:hover, .modern-fullscreen-btn:focus {
    background: linear-gradient(90deg, #43cea2 0%, #0d6efd 100%);
    box-shadow: 0 8px 32px 0 rgba(13, 110, 253, 0.18), 0 3px 12px 0 rgba(67, 206, 162, 0.18);
    transform: translateY(-2px) scale(1.04);
}
.modern-fullscreen-btn:active {
    background: linear-gradient(90deg, #0d6efd 0%, #43cea2 100%);
    box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.10);
    transform: scale(0.97);
}
.modern-fullscreen-btn:focus-visible {
    outline: 3px solid #ffd200;
    outline-offset: 2px;
}
.fullscreen-btn-label {
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.fullscreen-icon-bg {
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.10);
    margin-right: 0.5em;
    transition: background 0.2s;
}
.modern-fullscreen-btn[aria-pressed="true"] .fullscreen-icon-bg {
    background: #ff512f;
}
.icon-fullscreen, .icon-exit-fullscreen {
    width: 2em;
    height: 2em;
    transition: opacity 0.2s, transform 0.2s;
}
.icon-exit-fullscreen {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
}
.modern-fullscreen-btn[aria-pressed="true"] .icon-fullscreen {
    opacity: 0;
    pointer-events: none;
}
.modern-fullscreen-btn[aria-pressed="true"] .icon-exit-fullscreen {
    opacity: 1;
    pointer-events: auto;
    position: static;
}
@media (max-width: 600px) {
    .modern-fullscreen-btn {
        font-size: 0.98em;
        padding: 0.7em 1.2em 0.7em 0.8em;
    }
    .fullscreen-btn-label {
        display: none;
    }
    .fullscreen-icon-bg {
        margin-right: 0;
    }
}
.modern-info-block-upgraded.upgraded-gradient-bg {
    background: linear-gradient(120deg, #43cea2 0%, #ffd200 40%, #ff512f 100%);
    color: #fff;
    border-radius: 1.5em;
    box-shadow: 0 8px 32px 0 rgba(67, 206, 162, 0.18), 0 3px 12px 0 rgba(24, 90, 157, 0.13);
    padding: 2.2em 2em 2.2em 2em;
    margin-top: 2.5em;
    margin-bottom: 2.5em;
}
/* --- Modern Reviews Section --- */
.modern-reviews-section {
    margin-top: 3em;
    margin-bottom: 3em;
    background: linear-gradient(120deg, #43cea2 0%, #185a9d 100%);
    border-radius: 2em;
    box-shadow: 0 4px 32px rgba(67, 206, 162, 0.10), 0 1.5px 6px rgba(67, 206, 162, 0.08);
    padding: 2.5em 1.5em;
    max-width: 100%;
}
.modern-reviews-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1.5em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.modern-reviews-title svg {
    width: 2.2em;
    height: 2.2em;
    flex-shrink: 0;
}
.modern-review-card {
    background: linear-gradient(100deg, #fffbe6 0%, #eafff7 100%);
    border-radius: 1.2em;
    margin-bottom: 1.5em;
    padding: 1.5em 1.7em;
    box-shadow: 0 2px 12px rgba(67,206,162,0.08);
    display: flex;
    gap: 1.2em;
    align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.2s;
}
.modern-review-card:hover {
    box-shadow: 0 6px 24px rgba(67,206,162,0.13);
    transform: translateY(-2px) scale(1.01);
}
.modern-review-avatar {
    width: 3.2em;
    height: 3.2em;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd200 0%, #43cea2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5em;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(67,206,162,0.10);
    flex-shrink: 0;
}
.modern-review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}
.modern-review-header {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 0.2em;
}
.modern-review-name {
    font-weight: 700;
    color: #43cea2;
    font-size: 1.1em;
}
.modern-review-date {
    color: #888;
    font-size: 0.98em;
}
.modern-review-rating {
    margin-left: auto;
    color: #ffd200;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 0.1em;
}
.modern-review-title {
    font-weight: 600;
    font-size: 1.15em;
    margin-bottom: 0.2em;
    color: #222;
}
.modern-review-comment {
    color: #222;
    font-size: 1.05em;
    line-height: 1.6;
}
.modern-review-extra {
    font-size: 0.98em;
    color: #185a9d;
    margin-top: 0.2em;
}
.modern-review-form-container {
    max-width: 700px;
    margin: 2.5em auto 0 auto;
    background: linear-gradient(100deg, #fffbe6 0%, #eafff7 100%);
    border-radius: 1.2em;
    box-shadow: 0 2px 12px rgba(67,206,162,0.08);
    padding: 2em 2em 1.5em 2em;
}
.modern-review-form-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.2em;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.modern-form-group {
    margin-bottom: 1.1em;
    position: relative;
}
.modern-form-group label {
    font-weight: 600;
    color: #185a9d;
    margin-bottom: 0.3em;
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.modern-form-group svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
}
.modern-form-group input,
.modern-form-group select,
.modern-form-group textarea {
    width: 100%;
    border-radius: 1.2em;
    border: 1.5px solid #43cea2;
    padding: 0.7em 1.1em;
    font-size: 1.05em;
    background: #fff;
    color: #222;
    transition: border 0.2s;
    box-shadow: 0 1px 4px rgba(67,206,162,0.04);
}
.modern-form-group input:focus,
.modern-form-group select:focus,
.modern-form-group textarea:focus {
    border: 1.5px solid #ffd200;
    outline: none;
}
.modern-review-form-btn {
    background: linear-gradient(90deg, #ffd200 0%, #43cea2 100%);
    color: #222;
    font-weight: 700;
    border: none;
    border-radius: 2em;
    padding: 0.7em 2em;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(34,34,34,0.08);
    transition: background 0.2s, color 0.2s;
}
.modern-review-form-btn:hover {
    background: #222;
    color: #ffd200;
}
@media (max-width: 700px) {
    .modern-reviews-section {
        padding: 1.2em 0.3em;
        border-radius: 1em;
    }
    .modern-review-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.1em 1em;
        gap: 0.7em;
    }
    .modern-review-avatar {
        width: 2.2em;
        height: 2.2em;
        font-size: 1.1em;
    }
    .modern-review-form-container {
        padding: 1.2em 0.7em 1em 0.7em;
        border-radius: 1em;
    }
}

@media (max-width: 480px) {
    /* Enhanced mobile styles for custom-modern block */
    .m-portlet__head-title.custom-modern {
        font-size: 1.2rem;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px;
        margin-bottom: 6px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon {
        width: 24px;
        height: 24px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon svg {
        width: 24px;
        height: 24px;
    }
    .m-portlet__head-title.custom-modern .modern-title-text {
        font-size: 1.2rem;
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .m-portlet__head-title.custom-modern {
        font-size: 1.1rem;
        gap: 6px;
        padding: 8px 4px;
        border-radius: 8px;
        margin-bottom: 4px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon {
        width: 22px;
        height: 22px;
    }
    .m-portlet__head-title.custom-modern .modern-title-icon svg {
        width: 22px;
        height: 22px;
    }
    .m-portlet__head-title.custom-modern .modern-title-text {
        font-size: 1.1rem;
        line-height: 1.1;
    }
}




/* Optional: Full-width buttons on mobile */
@media (max-width: 768px) {
    .dt-buttons {
        display: none;
    }

    .m-portlet {
        padding: 0 !important;
    }

    .m-portlet .m-portlet__body {
        padding: 0 !important;
    }
}

