/* Modern DataTable and UI styles for Derivatives page (adapted from markets.css) */

/* --- Enhanced Modern Title Bar Styles --- */
.modern-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255,106,136,0.60) 0%, rgba(255,153,172,0.38) 30%, rgba(252,177,227,0.22) 60%, rgba(255,133,161,0.32) 85%, rgba(255,106,136,0.18) 100%);
    border-radius: 1.7em;
    box-shadow: 0 8px 32px 0 rgba(255, 106, 136, 0.22), 0 3px 12px 0 rgba(255, 153, 172, 0.18);
    padding: 2em 2.5em 2em 2.5em;
    margin-bottom: 2.2em;
    color: #fff;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
    border: 1.5px solid #ff99ac44;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}
.modern-title-bar:after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.7em;
    pointer-events: none;
    box-shadow: 0 0 32px 8px #ff99ac33 inset;
    opacity: 0.18;
}
.modern-title-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2.2em;
}
.modern-title-main {
    display: flex;
    align-items: center;
    gap: 1.2em;
}
.modern-title-icon {
    display: flex;
    align-items: center;
    margin-right: 1em;
    background: rgba(255,255,255,0.13);
    border-radius: 1.2em;
    padding: 0.5em 0.7em;
    box-shadow: 0 2px 8px rgba(255,106,136,0.10);
    transition: background 0.3s, box-shadow 0.3s;
}
.modern-title-icon:focus,
.modern-title-icon:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 4px 16px rgba(255,153,172,0.13);
}
/* --- Enhanced Modern Title Text Gradient --- */
.modern-title-text {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, #2d1e2f 0%, #ff6a88 60%, #ff99ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2d1e2f;
    text-shadow: 0 2px 12px #ff99ac33, 0 1px 2px #2d1e2f99;
    filter: drop-shadow(0 2px 8px #ff99ac33);
    transition: text-shadow 0.3s, filter 0.3s;
}
body.dark-mode .modern-title-text {
    background: linear-gradient(90deg, #ffd200 0%, #2d1e2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffd200;
    text-shadow: 0 2px 12px #ffd20055, 0 1px 2px #2d1e2f99;
    filter: drop-shadow(0 2px 8px #ffd20033);
}
/* --- End Enhanced Modern Title Text Gradient --- */
@media (max-width: 900px) {
    .modern-title-bar {
        padding: 1.2em 1em;
        border-radius: 1.2em;
    }
    .modern-title-bar-row {
        gap: 1em;
    }
    .modern-title-text {
        font-size: 1.5rem;
    }
}
@media (max-width: 700px) {
    .modern-title-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1em 0.7em;
        gap: 0.7em;
        text-align: left;
        border-radius: 0.8em;
    }
    .modern-title-bar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7em;
        width: 100%;
    }
    .modern-title-main {
        gap: 0.7em;
    }
    .modern-title-text {
        font-size: 1.2rem;
    }
}
body.dark-mode .modern-title-bar {
    background: linear-gradient(90deg, rgba(35,39,47,0.98) 0%, rgba(255,106,136,0.10) 100%);
    color: #ffd200;
    border: 1.5px solid #ffd20033;
    box-shadow: 0 8px 32px 0 rgba(255,153,172,0.13), 0 3px 12px 0 rgba(255, 153, 172, 0.10);
}
body.dark-mode .modern-title-bar:after {
    box-shadow: 0 0 32px 8px #ffd20033 inset;
}
body.dark-mode .modern-title-text {
    color: #ffd200;
    background: linear-gradient(90deg, #ffd200 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px #ffd20055, 0 1px 2px #fff2;
    filter: drop-shadow(0 2px 8px #ffd20033);
}
body.dark-mode .modern-title-icon {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(255,153,172,0.10);
}
body.dark-mode .modern-title-icon:focus,
body.dark-mode .modern-title-icon:hover {
    background: rgba(255,255,255,0.16);
    box-shadow: 0 4px 16px rgba(255,153,172,0.13);
}
/* --- End Enhanced Modern Title Bar Styles --- */

/* --- Enhanced Title Highlight and Actions Alignment --- */
.enhanced-title-highlight {
    background: rgba(255,255,255,0.22);
    border-radius: 1.2em;
    padding: 0.25em 1.2em 0.25em 1.2em;
    box-shadow: 0 2px 16px #ff99ac44, 0 1px 2px #ff6a8855;
    color: #d72660;
    font-weight: 900;
    text-shadow: 0 2px 16px #fff, 0 1px 2px #ff6a8855;
    display: inline-block;
    margin-left: 0.2em;
    margin-right: 0.2em;
    letter-spacing: -1.5px;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
body.dark-mode .enhanced-title-highlight {
    background: rgba(35,39,47,0.85);
    color: #ffd200;
    text-shadow: 0 2px 16px #ffd20055, 0 1px 2px #fff2;
    box-shadow: 0 2px 16px #ffd20044, 0 1px 2px #fff2;
}
.modern-title-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
}
.modern-title-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
@media (max-width: 900px) {
    .enhanced-title-highlight {
        font-size: 1.1rem;
        padding: 0.18em 0.7em;
    }
    .modern-title-actions-group {
        gap: 0.3em;
    }
}
@media (max-width: 700px) {
    .modern-title-actions {
        margin-top: 0.7em;
        justify-content: flex-end;
    }
    .modern-title-actions-group {
        gap: 0.2em;
    }
}
/* --- End Enhanced Title Highlight and Actions Alignment --- */

/* DataTable Section */
.m-portlet {
    background: #fff;
    border-radius: 1.5em;
    box-shadow: 0 4px 24px rgba(255, 106, 136, 0.10), 0 1.5px 6px rgba(255, 153, 172, 0.08);
    padding: 2em 1.5em;
    margin-bottom: 2em;
}
.table {
    background: #fff;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 106, 136, 0.06);
}
.table thead th {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #ab1717;
    font-weight: 700;
    border: none;
    vertical-align: middle;
    font-size: 1.08em;
    padding: 1.1em 0.7em;
}
.table tbody tr {
    transition: background 0.2s;
}
.table tbody tr:hover {
    background: #ffe0ec;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fff6fa;
}
.table-striped tbody tr:nth-of-type(even) {
    background-color: #fff;
}

/* DataTables Pagination, Length, Info, and Search Bar */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #fff !important;
    border-radius: 1em;
    border: none;
    margin: 0 0.2em;
    padding: 0.4em 1em;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff !important;
    color: #ff6a88 !important;
}
.dataTables_wrapper .dataTables_length {
    margin-bottom: 18px;
    float: left;
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    padding: 8px 18px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(255,106,136,0.08);
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: #fff;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 16px;
    border: 1.5px solid #ff6a88;
    padding: 6px 32px 6px 16px;
    background: #fff6fa;
    color: #ff6a88;
    font-size: 15px;
    margin-left: 8px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-weight: 600;
}
.dataTables_wrapper .dataTables_length select:focus {
    border: 1.5px solid #ff99ac;
    box-shadow: 0 2px 8px rgba(255,153,172,0.08);
}
.dataTables_wrapper .dataTables_info {
    color: #ff6a88;
    font-weight: 600;
    margin-top: 1em;
}

/* --- Enhanced DataTable Search Bar (EXACTLY matches markets page) --- */
.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;
}
.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 #ff6a88;
    padding: 8px 44px 8px 44px;
    background: #fff6fa;
    transition: border 0.2s, box-shadow 0.2s;
    font-size: 15px;
    outline: none;
    color: #ff6a88;
    width: 100%;
    box-shadow: 0 2px 8px rgba(255,106,136,0.08);
}
.dataTables_filter input[type="search"]:focus {
    border: 1.5px solid #ff99ac;
    background: #fff;
    box-shadow: 0 2px 8px rgba(255,153,172,0.08);
}
.dataTables_filter #clear-search {
    margin-left: 8px;
    border: none;
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 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(255,106,136,0.12);
}
.dataTables_filter #clear-search:hover {
    background: linear-gradient(90deg, #fff 0%, #ff6a88 100%);
    color: #ff6a88;
}

/* Dark mode overrides for search bar (matches markets) */
body.dark-mode .dataTables_filter input[type="search"] {
    background: #2c2f3a !important;
    color: #ff99ac !important;
    border: 1.5px solid #ff99ac !important;
}
body.dark-mode .dataTables_filter input[type="search"]:focus {
    border: 1.5px solid #ff6a88 !important;
    background: #23272f !important;
    box-shadow: 0 2px 8px rgba(255,106,136,0.08);
}
body.dark-mode .dataTables_filter #clear-search {
    background: linear-gradient(90deg, #23272f 0%, #ff6a88 100%) !important;
    color: #ff99ac !important;
}
body.dark-mode .dataTables_filter #clear-search:hover {
    background: #ff99ac !important;
    color: #fff !important;
}

/* Highlight first column in datatable (pinky modern gradient) */
.table th:first-child,
.table td:first-child {
    background: linear-gradient(90deg, #ffdde1 0%, #ff6a88 100%);
    color: #d72660;
    font-weight: bold;
    border-right: 2px solid #ff6a88;
}

/* Highlight search results (CoinMarketCal style, matches markets) */
.dataTables_wrapper .highlight {
    background: #fffbe7 !important;
    color: #ff512f !important;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 2px;
    box-shadow: 0 1px 4px rgba(255,215,0,0.08);
    transition: background 0.2s, color 0.2s;
}
body.dark-mode .dataTables_wrapper .highlight {
    background: #333 !important;
    color: #ffd200 !important;
}
.highlight-row {
    background: linear-gradient(90deg, #fffbe7 0%, #ffd20022 100%) !important;
    transition: background 0.2s;
}
body.dark-mode .highlight-row {
    background: #23272f !important;
}

/* Responsive DataTable for mobile (pinky modern gradient) */
@media (max-width: 767px) {
    .table thead {
        display: none !important;
    }
    #coingecko_derivatives tbody, #coingecko_derivatives tr, #coingecko_derivatives td {
        display: block;
        width: 100%;
    }
    #coingecko_derivatives tr {
        margin-bottom: 1rem;
        border: 1.5px solid #ff99ac;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(255,106,136,0.10), 0 1.5px 6px rgba(255,153,172,0.08);
        background: linear-gradient(90deg, #fff6fa 0%, #ffdde1 100%);
        padding: 0.7rem 1rem;
    }
    #coingecko_derivatives td {
        text-align: left;
        padding-left: 48%;
        position: relative;
        border: none;
        border-bottom: 1px solid #ffdde1;
        min-height: 44px;
        box-sizing: border-box;
        font-size: 1em;
        color: #d72660;
        background: none;
    }
    #coingecko_derivatives td:last-child {
        border-bottom: none;
    }
    #coingecko_derivatives td:before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        top: 0;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        color: #ff6a88;
        font-size: 0.98em;
        letter-spacing: 0.01em;
    }
}

/* Add more styles as needed for buttons, status bar, etc. */

/* --- Dark Mode Toggle Styles --- */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    background: linear-gradient(90deg, #fff6fa 0%, #ffdde1 100%);
    border-radius: 24px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(255,106,136,0.10);
    outline: none;
    margin-left: auto;
}
.dark-mode-toggle:focus {
    box-shadow: 0 0 0 3px #ff99ac55;
}
.dark-mode-toggle .toggle-track {
    width: 44px;
    height: 24px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
    transition: background 0.3s;
}
.dark-mode-toggle .toggle-thumb {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
    box-shadow: 0 2px 8px rgba(255,106,136,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s, background 0.3s;
    z-index: 2;
}
.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}
.dark-mode-toggle .icon-sun {
    left: 2px;
    opacity: 1;
}
.dark-mode-toggle .icon-moon {
    right: 2px;
}
.dark-mode-toggle.dark .toggle-thumb {
    left: 22px;
    background: linear-gradient(135deg, #23272f 0%, #ff99ac 100%);
}
.dark-mode-toggle.dark .icon-sun {
    opacity: 0;
}
.dark-mode-toggle.dark .icon-moon {
    opacity: 1;
}
.dark-mode-toggle .icon-sun {
    opacity: 1;
}
.dark-mode-toggle.dark .icon-sun {
    opacity: 0;
}
.dark-mode-toggle .icon-moon {
    opacity: 0;
}
.dark-mode-toggle.dark .icon-moon {
    opacity: 1;
}
@media (max-width: 700px) {
    .dark-mode-toggle {
        width: 40px;
        height: 28px;
    }
    .dark-mode-toggle .toggle-track {
        width: 36px;
        height: 18px;
    }
    .dark-mode-toggle .toggle-thumb {
        width: 16px;
        height: 16px;
        left: 1px;
        top: 1px;
    }
    .dark-mode-toggle.dark .toggle-thumb {
        left: 17px;
    }
    .dark-mode-toggle .icon-sun,
    .dark-mode-toggle .icon-moon {
        width: 16px;
        height: 16px;
    }
}
/* --- End Dark Mode Toggle Styles --- */

/* --- Enhanced Dark Mode Styles for Derivatives Page --- */
body.dark-mode {
    background: #181a20 !important;
    color: #e5e7eb !important;
    transition: background 0.3s, color 0.3s;
}
body.dark-mode .m-content,
body.dark-mode .enhanced-portlet,
body.dark-mode .m-portlet {
    background: linear-gradient(135deg, #23272f 0%, #181a20 100%) !important;
    color: #e5e7eb !important;
    box-shadow: 0 4px 32px rgba(24, 26, 32, 0.18) !important;
    border-color: #23272f !important;
}
body.dark-mode .modern-title-bar {
    background: #23272f !important;
    color: #ffd200 !important;
    border-bottom: 2px solid #ff99ac !important;
}
body.dark-mode .modern-title-text,
body.dark-mode .modern-title-icon svg {
    color: #ffd200 !important;
    filter: brightness(1.1) drop-shadow(0 0 2px #ffd200);
}
body.dark-mode .enhanced-table,
body.dark-mode .table {
    background: #23272f !important;
    color: #e5e7eb !important;
}
body.dark-mode .enhanced-thead,
body.dark-mode .table thead th {
    background: linear-gradient(135deg, #23272f 0%, #181a20 100%) !important;
    color: #ffd200 !important;
}
body.dark-mode .enhanced-th,
body.dark-mode .datatable-header-text {
    color: #ffd200 !important;
}
body.dark-mode .dataTables_wrapper,
body.dark-mode .dataTables_paginate,
body.dark-mode .dataTables_info,
body.dark-mode .dataTables_length,
body.dark-mode .dataTables_filter {
    color: #e5e7eb !important;
}
body.dark-mode .dataTables_filter input,
body.dark-mode .dataTables_length select {
    background: #23272f !important;
    color: #ffd200 !important;
    border: 1px solid #ff99ac !important;
}
body.dark-mode .table-hover tbody tr:hover {
    background: #23272f !important;
    color: #ffd200 !important;
}
body.dark-mode .enhanced-table td, body.dark-mode .enhanced-table th {
    border-color: #ff99ac !important;
}
body.dark-mode .enhanced-table tr {
    border-bottom: 1px solid #23272f !important;
}
body.dark-mode .enhanced-table tr:last-child {
    border-bottom: none !important;
}
body.dark-mode .datatable-header-icon svg {
    filter: brightness(1.2) drop-shadow(0 0 2px #ffd200);
}
body.dark-mode .modern-title-bar-row svg {
    filter: brightness(1.2) drop-shadow(0 0 2px #ffd200);
}
body.dark-mode .modern-title-bar {
    border-bottom: 2px solid #ff99ac !important;
}
body.dark-mode .m-portlet {
    border: 1px solid #23272f !important;
}
body.dark-mode .enhanced-table .datatable-header-text {
    color: #ffd200 !important;
}
body.dark-mode .enhanced-table .datatable-header-icon svg {
    filter: brightness(1.2) drop-shadow(0 0 2px #ffd200);
}
body.dark-mode .dataTables_wrapper .highlight {
    background: #333 !important;
    color: #ffd200 !important;
}
body.dark-mode .highlight-row {
    background: #23272f !important;
}

/* --- Enhanced Dark Mode Toggle Button Styles --- */
.dark-mode-container {
    display: flex;
    align-items: center;
    margin-left: 1em;
}
.darkmode-switch {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    border: none;
    border-radius: 2em;
    padding: 0.4em 1.2em;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 0.7em;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s, transform 0.15s;
    box-shadow: 0 2px 8px 0 rgba(255,106,136,0.10);
    position: relative;
    outline: none;
}
.darkmode-switch:active, .darkmode-switch:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ff99ac, 0 4px 16px rgba(255,106,136,0.15);
    transform: scale(0.98);
}
.enhanced-darkmode:hover, .enhanced-darkmode:focus {
    background: linear-gradient(90deg, #ff99ac 0%, #ff6a88 100%);
    color: #ffd200;
    box-shadow: 0 4px 24px 0 rgba(255,106,136,0.18), 0 2px 8px rgba(255, 153, 172, 0.13);
    outline: none;
    transform: scale(1.045);
}
.darkmode-switch-track {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    width: 48px;
    height: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}
.enhanced-darkmode:hover .darkmode-switch-track {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}
.darkmode-switch-thumb {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.enhanced-darkmode:hover .darkmode-switch-thumb {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}
.darkmode-switch-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.darkmode-switch-icon svg {
    transition: all 0.3s ease;
}
.enhanced-darkmode:hover .darkmode-switch-icon svg {
    transform: scale(1.1);
}
.darkmode-switch-label {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.enhanced-darkmode:hover .darkmode-switch-label {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.darkmode-status-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.darkmode-status-indicator.active {
    opacity: 1;
    transform: scale(1);
}
@media (max-width: 700px) {
    .dark-mode-container {
        margin-left: 0;
        margin-top: 1em;
        justify-content: flex-end;
    }
    .darkmode-switch {
        font-size: 0.95em;
        padding: 0.3em 0.8em;
    }
    .darkmode-switch-track {
        width: 36px;
        height: 18px;
    }
    .darkmode-switch-thumb {
        width: 14px;
        height: 14px;
        top: 2px;
        left: 2px;
    }
}
/* --- End Enhanced Dark Mode Styles --- */

/* --- Make DataTable Text Readable in Dark Mode --- */
body.dark-mode .table,
body.dark-mode .enhanced-table,
body.dark-mode .dataTables_wrapper,
body.dark-mode .dataTables_wrapper .dataTables_info,
body.dark-mode .dataTables_wrapper .dataTables_paginate,
body.dark-mode .dataTables_wrapper .dataTables_length,
body.dark-mode .dataTables_wrapper .dataTables_filter {
    color: #f3f3f3 !important;
}
body.dark-mode .table th,
body.dark-mode .enhanced-table th,
body.dark-mode .table td,
body.dark-mode .enhanced-table td {
    color: #f3f3f3 !important;
    background: transparent !important;
}
body.dark-mode .table thead th,
body.dark-mode .enhanced-thead th {
    color: #ffd200 !important;
    background: linear-gradient(135deg, #23272f 0%, #181a20 100%) !important;
}
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #ffd200 !important;
    background: #23272f !important;
}
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #ffd200 !important;
    color: #23272f !important;
}
body.dark-mode .dataTables_wrapper .dataTables_length label,
body.dark-mode .dataTables_wrapper .dataTables_filter label {
    color: #ffd200 !important;
}
body.dark-mode .dataTables_wrapper .dataTables_length select {
    color: #ffd200 !important;
    background: #23272f !important;
    border: 1.5px solid #ffd200 !important;
}
body.dark-mode .dataTables_filter input[type="search"] {
    color: #ffd200 !important;
    background: #23272f !important;
    border: 1.5px solid #ffd200 !important;
}
body.dark-mode .dataTables_filter input[type="search"]::placeholder {
    color: #bdbdbd !important;
    opacity: 1;
}
body.dark-mode .dataTables_info {
    color: #ffd200 !important;
}
body.dark-mode .dataTables_wrapper .highlight {
    background: #333 !important;
    color: #ffd200 !important;
}
body.dark-mode .highlight-row {
    background: #23272f !important;
}
/* --- End DataTable Readability in Dark Mode --- */

/* --- Force coingecko_derivatives DataTable text black in Dark Mode --- */
body.dark-mode #coingecko_derivatives,
body.dark-mode #coingecko_derivatives th,
body.dark-mode #coingecko_derivatives td {
    color: #111 !important;
}
/* --- End Force coingecko_derivatives DataTable text black in Dark Mode --- */

/* --- Force #coingecko_derivatives th column color white in Dark Mode --- */
body.dark-mode #coingecko_derivatives th {
    color: #fff !important;
}
/* --- End Force #coingecko_derivatives th column color white in Dark Mode --- */

/* --- coingecko_derivatives td: black by default, white on hover in Dark Mode --- */
body.dark-mode #coingecko_derivatives td {
    color: #111 !important;
    transition: color 0.2s;
}
body.dark-mode #coingecko_derivatives tbody tr:hover td {
    color: #fff !important;
}
/* --- End coingecko_derivatives td hover color in Dark Mode --- */

/* --- Fullscreen Button and Table Styles --- */
.modern-fullscreen-btn {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.5em 1.5em;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(255,106,136,0.10);
    position: relative;
    outline: none;
}
.modern-fullscreen-btn:active, .modern-fullscreen-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ff99ac;
}
.fullscreen-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
}
.fullscreen-switch-label {
    font-size: 1em;
    font-weight: 500;
}
.ripple-effect {
    display: none;
}
.fullscreen-active {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 9999 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: auto !important;
    padding: 2vw 2vw 2vw 2vw !important;
    transition: all 0.3s;
}
body.dark-mode .fullscreen-active {
    background: #23272f !important;
}
/* Fullscreen DataTables wrapper */
.fullscreen-active .dataTables_wrapper {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
/* Fullscreen table styling */
.fullscreen-active .enhanced-table {
    width: 100% !important;
    max-width: none !important;
    font-size: 16px !important;
    flex: 1 !important;
}
/* Fullscreen header styling */
.fullscreen-active .enhanced-thead {
    background: linear-gradient(135deg, rgba(255,106,136,0.15) 0%, rgba(255,153,172,0.15) 100%) !important;
    font-weight: bold !important;
    font-size: 18px !important;
}
/* Fullscreen DataTables controls - ensure they're visible */
.fullscreen-active .dataTables_length,
.fullscreen-active .dataTables_filter,
.fullscreen-active .dataTables_info,
.fullscreen-active .dataTables_paginate,
.fullscreen-active .datatable-toolbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 10px 0 !important;
    position: static !important;
}
/* Fullscreen pagination styling */
.fullscreen-active .dataTables_paginate {
    font-size: 16px !important;
    margin-top: 20px !important;
    text-align: center !important;
}
/* Fullscreen buttons styling */
.fullscreen-active .datatable-btn {
    font-size: 14px !important;
    padding: 8px 16px !important;
    margin: 2px !important;
}
/* Fullscreen search and length controls */
.fullscreen-active .dataTables_filter input,
.fullscreen-active .dataTables_length select {
    font-size: 16px !important;
    padding: 8px !important;
}
@media (max-width: 700px) {
    .modern-fullscreen-btn {
        font-size: 0.95em;
        padding: 0.3em 0.8em;
    }
    .fullscreen-active {
        padding: 0.5em !important;
    }
}
/* --- End Fullscreen Button and Table Styles --- */

/* --- Enhanced Fullscreen Button Icon and UX --- */
.modern-fullscreen-btn {
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.5em 1.5em;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px 0 rgba(255,106,136,0.13), 0 1.5px 6px rgba(255, 153, 172, 0.10);
    position: relative;
    outline: none;
    will-change: transform, box-shadow;
    overflow: hidden;
}
.modern-fullscreen-btn .fullscreen-icon-bg {
    background: linear-gradient(135deg, #fff6fa 0%, #ffdde1 100%);
    border-radius: 50%;
    width: 2.4em;
    height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5em;
    box-shadow: 0 2px 8px rgba(255,106,136,0.10);
    transition: background 0.3s, box-shadow 0.3s;
}
.modern-fullscreen-btn .icon-fullscreen,
.modern-fullscreen-btn .icon-exit-fullscreen {
    width: 1.5em;
    height: 1.5em;
    display: block;
    transition: filter 0.3s, transform 0.2s;
    filter: drop-shadow(0 1px 2px #ff99ac33);
}
.modern-fullscreen-btn:hover .fullscreen-icon-bg,
.modern-fullscreen-btn:focus .fullscreen-icon-bg {
    background: linear-gradient(135deg, #ffdde1 0%, #ff6a88 100%);
    box-shadow: 0 4px 16px 0 rgba(255,106,136,0.18), 0 2px 8px rgba(255, 153, 172, 0.13);
}
.modern-fullscreen-btn:hover .icon-fullscreen,
.modern-fullscreen-btn:focus .icon-fullscreen,
.modern-fullscreen-btn:hover .icon-exit-fullscreen,
.modern-fullscreen-btn:focus .icon-exit-fullscreen {
    filter: drop-shadow(0 0 8px #ff99ac88) brightness(1.15);
    transform: scale(1.12);
}
.modern-fullscreen-btn:active .fullscreen-icon-bg {
    background: linear-gradient(135deg, #ff99ac 0%, #ff6a88 100%);
    box-shadow: 0 2px 8px rgba(255,106,136,0.10);
}
.modern-fullscreen-btn:active .icon-fullscreen,
.modern-fullscreen-btn:active .icon-exit-fullscreen {
    filter: drop-shadow(0 0 4px #ff6a88cc) brightness(0.95);
    transform: scale(0.97);
}
.modern-fullscreen-btn:focus-visible {
    outline: 2px solid #ffd200;
    box-shadow: 0 0 0 4px #ffd20055, 0 8px 24px 0 rgba(255,106,136,0.18);
}
.modern-fullscreen-btn .fullscreen-switch-label {
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(255,106,136,0.08);
    transition: color 0.3s, text-shadow 0.3s;
}
.modern-fullscreen-btn:hover .fullscreen-switch-label,
.modern-fullscreen-btn:focus .fullscreen-switch-label {
    color: #ffd200;
    text-shadow: 0 2px 4px rgba(255,153,172,0.15);
}
/* Pulse effect for accessibility */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 #ff99ac55; }
    70% { box-shadow: 0 0 0 10px #ff99ac00; }
    100% { box-shadow: 0 0 0 0 #ff99ac00; }
}
.modern-fullscreen-btn:focus .fullscreen-icon-bg {
    animation: pulse-glow 1.2s infinite;
}
body.dark-mode .modern-fullscreen-btn {
    background: linear-gradient(90deg, #23272f 0%, #ff99ac 100%);
    color: #ffd200;
}
body.dark-mode .modern-fullscreen-btn .fullscreen-icon-bg {
    background: linear-gradient(135deg, #23272f 0%, #ffdde1 100%);
    box-shadow: 0 2px 8px rgba(255,153,172,0.10);
}
body.dark-mode .modern-fullscreen-btn:hover .fullscreen-icon-bg,
body.dark-mode .modern-fullscreen-btn:focus .fullscreen-icon-bg {
    background: linear-gradient(135deg, #ffdde1 0%, #23272f 100%);
    box-shadow: 0 4px 16px 0 rgba(255,153,172,0.18), 0 2px 8px rgba(255, 153, 172, 0.13);
}
body.dark-mode .modern-fullscreen-btn .icon-fullscreen,
body.dark-mode .modern-fullscreen-btn .icon-exit-fullscreen {
    filter: drop-shadow(0 1px 2px #ffd20055);
}
body.dark-mode .modern-fullscreen-btn:hover .icon-fullscreen,
body.dark-mode .modern-fullscreen-btn:focus .icon-fullscreen,
body.dark-mode .modern-fullscreen-btn:hover .icon-exit-fullscreen,
body.dark-mode .modern-fullscreen-btn:focus .icon-exit-fullscreen {
    filter: drop-shadow(0 0 8px #ffd20088) brightness(1.15);
}
body.dark-mode .modern-fullscreen-btn .fullscreen-switch-label {
    color: #ffd200;
    text-shadow: 0 1px 2px #23272f;
}
body.dark-mode .modern-fullscreen-btn:hover .fullscreen-switch-label,
body.dark-mode .modern-fullscreen-btn:focus .fullscreen-switch-label {
    color: #fff;
    text-shadow: 0 2px 4px #ffd20055;
}
/* --- End Enhanced Fullscreen Button Icon and UX --- */

/* --- Further Enhanced Title Highlight for Maximum Visibility (Dark Text, Smaller Font) --- */
.enhanced-title-highlight {
    border-radius: 1.5em;
    padding: 0.18em 1em 0.18em 1em;
    box-shadow: 0 2px 8px #ff99ac33, 0 1px 2px #ff6a8833;
    color: #23272f;
    font-weight: 800;
    text-shadow: 0 1px 2px #fff, 0 1px 2px #ff6a8833;
    display: inline-block;
    margin-left: 0.2em;
    margin-right: 0.2em;
    letter-spacing: -1px;
    font-size: 1.25rem;
    border: 1.5px solid #ff99ac33;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s, font-size 0.3s;
}
body.dark-mode .enhanced-title-highlight {
    background: rgba(35,39,47,0.98);
    color: #fff;
    text-shadow: 0 1px 2px #ffd20033, 0 1px 2px #fff2;
    box-shadow: 0 2px 8px #ffd20033, 0 1px 2px #ffd20033;
    border: 1.5px solid #ffd20033;
}
@media (max-width: 900px) {
    .enhanced-title-highlight {
        font-size: 1.05rem;
        padding: 0.13em 0.7em;
    }
}
@media (max-width: 700px) {
    .enhanced-title-highlight {
        font-size: 0.98rem;
        padding: 0.09em 0.4em;
    }
}
/* --- End Further Enhanced Title Highlight --- */

/* --- Modern Reload Button & Icon --- */
.modern-reload-btn {
    background: rgba(255,255,255,0.18);
    color: #ff6a88;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px 0 rgba(255,106,136,0.10), 0 1.5px 6px rgba(255, 153, 172, 0.10);
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.25s, background 0.25s, transform 0.18s;
    overflow: hidden;
    outline: none;
}
.modern-reload-btn:focus-visible {
    outline: 2px solid #ffd200;
    box-shadow: 0 0 0 4px #ffd20055, 0 8px 24px 0 rgba(255,106,136,0.18);
}
.modern-reload-btn:hover, .modern-reload-btn:focus {
    background: rgba(255,255,255,0.32);
    box-shadow: 0 4px 24px 0 rgba(255,106,136,0.18), 0 2px 8px rgba(255, 153, 172, 0.13), 0 0 0 6px #ff99ac33;
    transform: scale(1.09);
}
.modern-reload-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px 0 rgba(255,106,136,0.10);
}
.reload-icon-bg {
    background: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.icon-reload {
    width: 28px;
    height: 28px;
    display: block;
    stroke: url(#reloadGradient);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    filter: drop-shadow(0 1px 2px #ff99ac33);
    transition: filter 0.3s, transform 0.2s;
    will-change: filter, transform;
}
.modern-reload-btn:hover .icon-reload,
.modern-reload-btn:focus .icon-reload {
    filter: drop-shadow(0 0 8px #ff99ac88) brightness(1.15);
    transform: scale(1.13) rotate(-18deg);
}
.modern-reload-btn:active .icon-reload {
    filter: drop-shadow(0 0 4px #ff6a88cc) brightness(0.95);
    transform: scale(0.97) rotate(0deg);
}
.modern-reload-btn[aria-busy="true"] .icon-reload,
.modern-reload-btn[aria-busy="true"] .reload-spinner svg {
    animation: reload-spin 0.8s linear infinite;
}
@keyframes reload-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.reload-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    display: none;
    z-index: 2;
}
.modern-reload-btn[aria-busy="true"] .reload-spinner {
    display: block;
}
.modern-reload-btn[aria-busy="true"] .icon-reload {
    visibility: hidden;
}
.modern-reload-btn .reload-switch-label {
    display: none;
}
.modern-reload-btn:after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, #ff99ac55 0%, transparent 80%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.modern-reload-btn:active:after {
    width: 80px;
    height: 80px;
    opacity: 0.25;
    transition: width 0.1s, height 0.1s, opacity 0.1s;
}
body.dark-mode .modern-reload-btn {
    background: rgba(35,39,47,0.18);
    color: #ffd200;
}
body.dark-mode .modern-reload-btn:hover, body.dark-mode .modern-reload-btn:focus {
    background: rgba(35,39,47,0.32);
    box-shadow: 0 4px 24px 0 rgba(255,153,172,0.18), 0 2px 8px rgba(255, 153, 172, 0.13), 0 0 0 6px #ffd20033;
}
body.dark-mode .icon-reload {
    stroke: #ffd200;
    filter: drop-shadow(0 1px 2px #ffd20055);
}
body.dark-mode .modern-reload-btn:hover .icon-reload,
body.dark-mode .modern-reload-btn:focus .icon-reload {
    filter: drop-shadow(0 0 8px #ffd20088) brightness(1.15);
}
body.dark-mode .modern-reload-btn:active .icon-reload {
    filter: drop-shadow(0 0 4px #ffd200cc) brightness(0.95);
}
/* --- End Modern Reload Button & Icon --- */

/* --- Enhanced m-portlet enhanced-portlet Background --- */
.m-portlet.enhanced-portlet {
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,246,250,0.85) 60%, rgba(255,221,225,0.80) 100%);
    border-radius: 1.7em;
    box-shadow: 0 8px 32px 0 rgba(255, 106, 136, 0.13), 0 3px 12px 0 rgba(255, 153, 172, 0.10);
    border: 1.5px solid #ff99ac33;
    backdrop-filter: blur(7px);
    padding: 2em 1.5em;
    margin-bottom: 2em;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
    position: relative;
    z-index: 1;
}
.m-portlet.enhanced-portlet:after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.7em;
    pointer-events: none;
    box-shadow: 0 0 32px 8px #ff99ac33 inset;
    opacity: 0.10;
}
body.dark-mode .m-portlet.enhanced-portlet {
    background: linear-gradient(135deg, rgba(35,39,47,0.98) 0%, rgba(255,106,136,0.10) 100%);
    border: 1.5px solid #ffd20033;
    box-shadow: 0 8px 32px 0 rgba(255,153,172,0.10), 0 3px 12px 0 rgba(255, 153, 172, 0.08);
}
body.dark-mode .m-portlet.enhanced-portlet:after {
    box-shadow: 0 0 32px 8px #ffd20033 inset;
}
/* --- End Enhanced m-portlet enhanced-portlet Background --- */

/* --- Derivatives Info Block Styles --- */
.derivatives-info-block {
    margin: 2.5em 0 1.5em 0;
    padding: 2em 1.5em;
    border-radius: 1.5em;
    background: linear-gradient(120deg, #fff6fa 0%, #ffdde1 100%);
    box-shadow: 0 4px 32px rgba(255, 106, 136, 0.10), 0 1.5px 6px rgba(255, 153, 172, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2em;
    font-size: 1.08em;
}
.derivatives-info-section {
    display: flex;
    align-items: flex-start;
    gap: 1.2em;
    margin-bottom: 0.5em;
}
.info-icon-bg {
    background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
    border-radius: 1.2em;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255,106,136,0.10);
    flex-shrink: 0;
}
.info-title {
    font-size: 1.25em;
    font-weight: 800;
    margin-bottom: 0.5em;
    color: #ff6a88;
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.datatable-columns-list {
    margin: 0.7em 0 0 0;
    padding-left: 1.2em;
    list-style: none;
    font-size: 1em;
    line-height: 1.7;
}
.datatable-columns-list li {
    margin-bottom: 0.3em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.col-icon {
    font-size: 1.2em;
    margin-right: 0.4em;
    display: inline-block;
}
@media (max-width: 700px) {
    .derivatives-info-block {
        padding: 1.1em 0.5em;
        font-size: 0.98em;
        border-radius: 1em;
    }
    .derivatives-info-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7em;
    }
    .info-icon-bg {
        width: 40px;
        height: 40px;
        border-radius: 0.7em;
    }
    .info-title {
        font-size: 1.08em;
    }
}
body.dark-mode .derivatives-info-block {
    background: linear-gradient(120deg, #23272f 0%, #ffdde1 100%);
    box-shadow: 0 4px 32px rgba(255,153,172,0.10), 0 1.5px 6px rgba(255, 153, 172, 0.08);
}
body.dark-mode .info-title {
    color: #ffd200;
    background: linear-gradient(90deg, #ffd200 0%, #ff6a88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* --- End Derivatives Info Block Styles --- */

/* --- Modern Navigation Tabs Styles --- */
.modern-tabs-container {
    width: 100%;
    margin-bottom: 1.5em;
    border-radius: 1.5em;
    overflow-x: auto;
    background: none;
    position: relative;
    z-index: 3;
}
.gradient-tabs-bg {
    background: linear-gradient(90deg, #fff6fa 0%, #ffdde1 100%);
    border-radius: 1.5em;
    box-shadow: 0 2px 12px rgba(255,106,136,0.08);
    padding: 0.5em 1.2em;
}
.modern-tabs {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
    width: 100%;
    overflow-x: auto;
    padding: 0.2em 0;
}
.beautiful-tabs {
    background: none;
    border-radius: 1.5em;
    box-shadow: none;
}
.modern-tab.beautiful-tab {
    display: flex;
    align-items: center;
    gap: 0.6em;
    background: linear-gradient(90deg, #ff6a88 0%, #ff99ac 100%);
    color: #fff;
    border: none;
    border-radius: 1.2em;
    padding: 0.55em 1.3em;
    font-size: 1.08em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255,106,136,0.08);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.15s;
    text-decoration: none;
    outline: none;
    position: relative;
    min-width: 110px;
    justify-content: center;
}
.modern-tab.beautiful-tab:focus-visible {
    outline: 2px solid #ffd200;
    box-shadow: 0 0 0 4px #ffd20055, 0 8px 24px 0 rgba(255,106,136,0.18);
}
.modern-tab.beautiful-tab:hover, .modern-tab.beautiful-tab:focus {
    background: linear-gradient(90deg, #ff99ac 0%, #ff6a88 100%);
    color: #ffd200;
    box-shadow: 0 4px 16px 0 rgba(255,106,136,0.18), 0 2px 8px rgba(255, 153, 172, 0.13);
    transform: scale(1.045);
    text-decoration: none;
}
.modern-tab.beautiful-tab.active, .modern-tab.beautiful-tab[aria-current="page"] {
    background: linear-gradient(90deg, #ffd200 0%, #ff6a88 100%);
    color: #fff;
    box-shadow: 0 4px 24px 0 rgba(255,106,136,0.18), 0 2px 8px rgba(255, 153, 172, 0.13);
    transform: scale(1.07);
    z-index: 2;
}
.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.2em;
}
.tab-label {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(255,106,136,0.08);
    transition: color 0.3s, text-shadow 0.3s;
}
@media (max-width: 900px) {
    .modern-tabs-container {
        padding: 0.2em 0.2em;
        border-radius: 1em;
    }
    .gradient-tabs-bg {
        padding: 0.3em 0.5em;
        border-radius: 1em;
    }
    .modern-tab.beautiful-tab {
        font-size: 0.98em;
        padding: 0.45em 0.8em;
        min-width: 90px;
    }
}
@media (max-width: 700px) {
    .modern-tabs-container {
        margin-bottom: 1em;
        border-radius: 0.7em;
        padding: 0;
        overflow-x: unset;
        -webkit-overflow-scrolling: touch;
    }
    .gradient-tabs-bg {
        padding: 0.2em 0.2em;
        border-radius: 0.7em;
        min-width: 0;
        overflow-x: unset;
        width: 100%;
        background: linear-gradient(90deg, #fff6fa 0%, #ffdde1 100%);
    }
    .modern-tabs, .beautiful-tabs {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.5em;
        overflow-x: unset;
        padding: 0.1em 0;
        min-width: 0;
        width: 100%;
    }
    .modern-tab.beautiful-tab {
        font-size: 1em;
        padding: 0.7em 1em;
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
        white-space: normal;
        border-radius: 1em;
        margin-right: 0;
        justify-content: flex-start;
        text-align: left;
        box-sizing: border-box;
    }
}
.modern-tabs::-webkit-scrollbar, .gradient-tabs-bg::-webkit-scrollbar {
    height: 6px;
    background: #fff6fa;
    border-radius: 3px;
}
.modern-tabs::-webkit-scrollbar-thumb, .gradient-tabs-bg::-webkit-scrollbar-thumb {
    background: #ff99ac;
    border-radius: 3px;
}
/* --- End Responsive Modern Tabs for Mobile --- */

/* --- Derivatives Review Block Styles --- */
.derivatives-review-block {
    background: linear-gradient(135deg, #fff6fa 0%, #e0e7ff 100%);
    border-radius: 1.2em;
    box-shadow: 0 2px 16px rgba(255,106,136,0.08);
    padding: 2em 1.5em;
    margin: 2.5em 0 1.5em 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Poppins', 'Roboto', Arial, Helvetica, sans-serif;
}
.review-block-header {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 1.2em;
}
.review-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6a88 0%, #ffd200 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255,106,136,0.13);
    width: 2.5em;
    height: 2.5em;
}
.review-block-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #ff6a88;
    letter-spacing: 0.01em;
}
.modern-review-form {
    background: rgba(255,255,255,0.85);
    border-radius: 1em;
    box-shadow: 0 2px 8px rgba(255,106,136,0.07);
    padding: 1.2em 1em 1em 1em;
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}
.review-form-row {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.review-form-group {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    margin-bottom: 0.5em;
}
.review-form-group-full {
    flex: 1 1 100%;
}
.review-form-group-submit {
    align-self: flex-end;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.modern-review-form label {
    font-weight: 600;
    color: #ff6a88;
    font-size: 1em;
    margin-bottom: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.3em;
}
.modern-review-form input,
.modern-review-form select,
.modern-review-form textarea {
    border: 1px solid #ffdde1;
    border-radius: 0.6em;
    padding: 0.5em 0.9em;
    font-size: 1em;
    background: #fff;
    color: #232946;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(255,106,136,0.04);
}
.modern-review-form input:focus,
.modern-review-form select:focus,
.modern-review-form textarea:focus {
    border: 1.5px solid #ff6a88;
    outline: none;
    box-shadow: 0 0 0 2px #ffd20055;
}
.modern-review-form textarea {
    min-height: 70px;
    resize: vertical;
}
.modern-review-submit {
    background: linear-gradient(90deg, #ff6a88 0%, #ffd200 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 0.7em;
    padding: 0.7em 1.5em;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(255,106,136,0.13);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.modern-review-submit:hover, .modern-review-submit:focus {
    background: linear-gradient(90deg, #ffd200 0%, #ff6a88 100%);
    color: #ff6a88;
    transform: scale(1.04);
}
.submit-icon {
    font-size: 1.2em;
}
.form-icon {
    font-size: 1.1em;
    vertical-align: middle;
}
#reviewFormMsg {
    margin-top: 0.5em;
    min-height: 1.2em;
}
.reviews-list-block {
    margin-top: 2em;
    background: rgba(255,255,255,0.7);
    border-radius: 1em;
    box-shadow: 0 1px 6px rgba(255,106,136,0.06);
    padding: 1.2em 1em 0.5em 1em;
}
.reviews-list-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #ff6a88;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 0.4em;
}
#reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
.modern-review-card {
    display: flex;
    gap: 1em;
    background: linear-gradient(90deg, #fff6fa 0%, #e0e7ff 100%);
    border-radius: 0.8em;
    box-shadow: 0 1px 8px rgba(255,106,136,0.07);
    padding: 1em 1.2em;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}
.modern-review-avatar {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd200 0%, #ff6a88 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(255,106,136,0.09);
    flex-shrink: 0;
}
.modern-review-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}
.modern-review-header {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1em;
    font-weight: 600;
    color: #ff6a88;
}
.modern-review-name {
    color: #232946;
    font-weight: 700;
}
.modern-review-date {
    color: #888;
    font-size: 0.98em;
    display: flex;
    align-items: center;
    gap: 0.2em;
}
.modern-review-rating {
    color: #ffd200;
    font-size: 1.1em;
    letter-spacing: 0.05em;
}
.modern-review-title {
    font-size: 1.08em;
    font-weight: 600;
    color: #ff6a88;
    margin-top: 0.2em;
}
.modern-review-comment {
    color: #232946;
    font-size: 1em;
    margin: 0.2em 0 0.1em 0;
    line-height: 1.6;
}
.modern-review-extra {
    font-size: 0.98em;
    color: #888;
    margin-top: 0.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
}
@media (max-width: 700px) {
    .derivatives-review-block {
        padding: 1.2em 0.7em;
    }
    .modern-review-form {
        padding: 0.7em 0.3em 0.7em 0.3em;
    }
    .review-form-row {
        flex-direction: column;
        gap: 0.3em;
    }
    .modern-review-card {
        flex-direction: column;
        gap: 0.5em;
        padding: 0.7em 0.5em;
    }
    .modern-review-avatar {
        width: 2em;
        height: 2em;
        font-size: 1em;
    }
}
@media (max-width: 480px) {
    .derivatives-review-block {
        padding: 0.7em 0.2em;
    }
}
/* --- End Derivatives Review Block Styles --- */


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

    .review-form-group {
        flex: none; /* or flex: 0 0 auto; */
        width: 100%; /* Optional: ensure full width on small screens */
    }

    td {
        text-align: center !important;
    }
}
