/* CMS Theme Contrast Fix — shared final readability layer.
 * Loaded after theme-polish.css in every admin/user layout.
 * Uses the active theme variables so light/dark mode and every accent color
 * keep their own visual identity while controls, tables and nested panels
 * maintain readable foreground/background contrast.
 */
:root {
    --contrast-surface: var(--chip-bg, #ffffff);
    --contrast-ink: var(--chip-text, #334155);
    --contrast-muted: var(--text-muted, #64748b);
    --contrast-line: var(--box-line, var(--line, #e2e8f0));
    --contrast-soft: var(--box-soft, #f8fafc);
}

/* Main content surfaces */
.stat-card,
.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.table-responsive,
.promo-form-card,
.promo-table-card {
    color: var(--contrast-ink);
    border-color: var(--contrast-line);
}

/* Keep nested panels tied to the active skin rather than Bootstrap's
   light-only defaults. */
.stat-card,
.card,
.modal-content,
.promo-form-card,
.promo-table-card {
    --bs-body-color: var(--contrast-ink);
    --bs-secondary-color: var(--contrast-muted);
    --bs-border-color: var(--contrast-line);
}

/* Forms */
.form-label,
.form-check-label,
.input-group-text {
    color: var(--contrast-ink);
}
.form-text,
.form-label small,
.form-check-label small {
    color: var(--contrast-muted);
}
.form-control,
.form-select,
.input-group-text {
    background-color: var(--contrast-surface);
    color: var(--contrast-ink);
    border-color: var(--contrast-line);
}
.form-control::placeholder {
    color: var(--contrast-muted);
    opacity: .82;
}
.form-control:focus,
.form-select:focus {
    background-color: var(--contrast-surface);
    color: var(--contrast-ink);
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb, 99,102,241), .16);
}
.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background-color: var(--contrast-soft);
    color: var(--contrast-muted);
}
.form-select option {
    background: var(--contrast-surface);
    color: var(--contrast-ink);
}

/* Tables */
.table {
    --bs-table-color: var(--contrast-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--contrast-line);
    color: var(--contrast-ink);
}
.table > :not(caption) > * > * {
    color: inherit;
    border-bottom-color: var(--contrast-line);
}
.table thead th {
    color: var(--contrast-ink);
}
.table .text-muted {
    color: var(--contrast-muted) !important;
}
.table code {
    color: var(--contrast-ink);
    background: var(--contrast-soft);
    border-radius: 5px;
    padding: .1rem .3rem;
}

/* Bootstrap light/dark utility combinations inside themed panels are a
   frequent source of unreadable text in dark mode. Keep buttons untouched. */
.stat-card .bg-light:not(.btn),
.card .bg-light:not(.btn),
.modal-content .bg-light:not(.btn),
.promo-form-card .bg-light:not(.btn),
.promo-table-card .bg-light:not(.btn) {
    background: var(--contrast-soft) !important;
    color: var(--contrast-ink) !important;
}
.stat-card .text-dark,
.card .text-dark,
.modal-content .text-dark,
.promo-form-card .text-dark,
.promo-table-card .text-dark {
    color: var(--contrast-ink) !important;
}
.stat-card .border,
.card .border,
.modal-content .border,
.promo-form-card .border,
.promo-table-card .border {
    border-color: var(--contrast-line) !important;
}

/* Links keep the selected theme accent but remain readable. */
.stat-card a:not(.btn),
.card a:not(.btn),
.modal-content a:not(.btn),
.promo-form-card a:not(.btn),
.promo-table-card a:not(.btn) {
    color: var(--primary-dark, var(--primary));
}
body.px-dark .stat-card a:not(.btn),
body.px-dark .card a:not(.btn),
body.px-dark .modal-content a:not(.btn),
body.px-dark .promo-form-card a:not(.btn),
body.px-dark .promo-table-card a:not(.btn) {
    color: var(--primary);
}

/* Alerts remain Bootstrap semantic colors, but their close buttons and text
   should not inherit an unrelated panel color. */
.alert {
    --bs-alert-color: inherit;
}

/* Theme-aware Promotion Center. The accent/luma-aware --btn-ink is supplied
   by each layout, so light accent colors do not get white-on-yellow text. */
.promo-admin-hero {
    color: var(--btn-ink, #fff) !important;
}
.promo-admin-hero .opacity-75 {
    opacity: .82 !important;
}
.promo-admin-hero .btn-light {
    color: #0f172a !important;
    background: rgba(255,255,255,.94) !important;
    border-color: rgba(255,255,255,.94) !important;
}
.promo-form-card,
.promo-table-card {
    background: var(--contrast-surface) !important;
}
.file-chip {
    color: var(--contrast-ink);
    background: rgba(var(--primary-rgb,99,102,241), .11);
    border: 1px solid rgba(var(--primary-rgb,99,102,241), .18);
}

/* Settings / Web3-EVM nested cards and compact configuration tables */
.settings-content .card,
.settings-content .stat-card,
.settings-panel .card,
.settings-panel .stat-card,
#settingsContent .card,
#settingsContent .stat-card,
.web3-settings .card,
.web3-settings .stat-card,
.evm-settings .card,
.evm-settings .stat-card {
    color: var(--contrast-ink);
    background: var(--contrast-surface);
    border-color: var(--contrast-line);
}
.settings-content .text-muted,
.settings-panel .text-muted,
#settingsContent .text-muted,
.web3-settings .text-muted,
.evm-settings .text-muted {
    color: var(--contrast-muted) !important;
}

/* Network/currency chips and badges that use generic light utilities. */
.network-chip,
.compact-currency-table .network-chip {
    color: var(--contrast-ink);
    background: var(--contrast-soft);
    border-color: var(--contrast-line);
}
.network-chip .text-danger {
    color: var(--bs-danger-text-emphasis, #b02a37) !important;
}

/* Modal headers/footers and close controls follow the skin. */
.modal-header,
.modal-footer {
    border-color: var(--contrast-line);
}
.modal-title {
    color: var(--contrast-ink);
}
body.px-dark .btn-close {
    filter: invert(1) grayscale(1);
}

/* Dark translucent skins: preserve their glass/luxe visual language while
   keeping muted copy bright enough against transparent surfaces. */
body.layout-glass .form-text,
body.layout-luxe .form-text,
body.layout-glass .text-muted,
body.layout-luxe .text-muted {
    color: rgba(226,232,240,.82) !important;
}
body.layout-glass .form-control::placeholder,
body.layout-luxe .form-control::placeholder {
    color: rgba(226,232,240,.62);
}
/* ============================================================
   FINAL ADMIN PROMOTIONS + CURRENCIES CONTRAST HARDENING
   ------------------------------------------------------------
   This layer is intentionally last in the file so it wins over
   Bootstrap utility colors and per-view inline styling.
   It uses the active CMS theme variables and works in:
   - light mode
   - dark mode
   - dark-pro / glass / luxe skins
   - custom primary/accent colors
   ============================================================ */

:root {
    --admin-contrast-ink: var(--chip-text, var(--polish-ink, #334155));
    --admin-contrast-muted: var(--text-muted, #64748b);
    --admin-contrast-surface: var(--chip-bg, #ffffff);
    --admin-contrast-soft: var(--box-soft, #f8fafc);
    --admin-contrast-line: var(--box-line, var(--line, #e2e8f0));
    --admin-contrast-primary: var(--primary, #667eea);
    --admin-contrast-primary-dark: var(--primary-dark, var(--primary, #5568d3));
    --admin-contrast-rgb: var(--primary-rgb, 99, 102, 241);
}

/* ---------- Shared panel typography ---------- */
.promo-form-card,
.promo-table-card,
.stat-card {
    color: var(--admin-contrast-ink);
}

.promo-form-card h1,
.promo-form-card h2,
.promo-form-card h3,
.promo-form-card h4,
.promo-form-card h5,
.promo-form-card h6,
.promo-table-card h1,
.promo-table-card h2,
.promo-table-card h3,
.promo-table-card h4,
.promo-table-card h5,
.promo-table-card h6,
.stat-card h1,
.stat-card h2,
.stat-card h3,
.stat-card h4,
.stat-card h5,
.stat-card h6 {
    color: var(--admin-contrast-ink);
}

.promo-form-card .text-muted,
.promo-table-card .text-muted,
.stat-card .text-muted {
    color: var(--admin-contrast-muted) !important;
}

/* ---------- Promotions ---------- */
.promo-admin-hero {
    color: var(--btn-ink, #fff) !important;
}

.promo-admin-hero h1,
.promo-admin-hero h2,
.promo-admin-hero h3,
.promo-admin-hero h4,
.promo-admin-hero h5,
.promo-admin-hero h6 {
    color: inherit !important;
}

.promo-admin-hero .opacity-75 {
    color: inherit !important;
    opacity: .86 !important;
}

.promo-admin-hero .btn-light {
    color: #0f172a !important;
    background: #fff !important;
    border-color: #fff !important;
}

.promo-form-card,
.promo-table-card {
    background: var(--admin-contrast-surface) !important;
    border-color: var(--admin-contrast-line) !important;
}

.promo-form-card .form-label,
.promo-form-card label,
.promo-table-card th,
.promo-table-card td,
.promo-table-card strong {
    color: var(--admin-contrast-ink);
}

.promo-form-card .form-label small,
.promo-form-card .form-text,
.promo-form-card small.text-muted,
.promo-table-card small.text-muted {
    color: var(--admin-contrast-muted) !important;
}

.promo-form-card .form-control,
.promo-form-card .form-select,
.promo-form-card textarea,
.promo-form-card input[type="file"] {
    background-color: var(--admin-contrast-surface) !important;
    color: var(--admin-contrast-ink) !important;
    border-color: var(--admin-contrast-line) !important;
}

.promo-form-card .form-control::placeholder,
.promo-form-card textarea::placeholder {
    color: var(--admin-contrast-muted) !important;
    opacity: .82 !important;
}

.promo-form-card .form-control:focus,
.promo-form-card .form-select:focus,
.promo-form-card textarea:focus {
    color: var(--admin-contrast-ink) !important;
    background-color: var(--admin-contrast-surface) !important;
    border-color: var(--admin-contrast-primary) !important;
    box-shadow: 0 0 0 .2rem rgba(var(--admin-contrast-rgb), .16) !important;
}

.promo-table-card .table {
    --bs-table-color: var(--admin-contrast-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--admin-contrast-line);
    color: var(--admin-contrast-ink) !important;
}

.promo-table-card .table thead th {
    color: var(--admin-contrast-muted) !important;
}

.promo-table-card .table tbody td {
    color: var(--admin-contrast-ink) !important;
}

.promo-table-card .table tbody td .small,
.promo-table-card .table tbody td small {
    color: var(--admin-contrast-muted) !important;
}

.file-chip {
    color: var(--admin-contrast-ink) !important;
    background: rgba(var(--admin-contrast-rgb), .11) !important;
    border-color: rgba(var(--admin-contrast-rgb), .22) !important;
}

.promo-form-card .btn-outline-primary,
.promo-table-card .btn-outline-primary {
    color: var(--admin-contrast-primary-dark) !important;
    border-color: var(--admin-contrast-primary) !important;
    background: transparent !important;
}

.promo-form-card .btn-outline-primary:hover,
.promo-form-card .btn-outline-primary:focus,
.promo-table-card .btn-outline-primary:hover,
.promo-table-card .btn-outline-primary:focus {
    color: var(--btn-ink, #fff) !important;
    background: var(--admin-contrast-primary) !important;
    border-color: var(--admin-contrast-primary) !important;
}

.promo-form-card .btn-outline-secondary,
.promo-table-card .btn-outline-secondary {
    color: var(--admin-contrast-ink) !important;
    border-color: var(--admin-contrast-line) !important;
}

.promo-form-card .btn-outline-secondary:hover,
.promo-form-card .btn-outline-secondary:focus,
.promo-table-card .btn-outline-secondary:hover,
.promo-table-card .btn-outline-secondary:focus {
    color: var(--admin-contrast-ink) !important;
    background: var(--admin-contrast-soft) !important;
    border-color: var(--admin-contrast-ink) !important;
}

/* ---------- Currency page ---------- */
.compact-currency-table,
.compact-currency-table tbody,
.compact-currency-table tr,
.compact-currency-table td {
    color: var(--admin-contrast-ink) !important;
}

.compact-currency-table .fw-semibold {
    color: var(--admin-contrast-ink) !important;
}

.compact-currency-table .text-muted {
    color: var(--admin-contrast-muted) !important;
}

.compact-currency-table .text-info {
    color: #0ea5e9 !important;
}

.compact-currency-table code {
    color: var(--admin-contrast-ink) !important;
    background: var(--admin-contrast-soft) !important;
    border: 1px solid var(--admin-contrast-line);
    border-radius: 5px;
    padding: .1rem .32rem;
}

.network-chip,
.compact-currency-table .network-chip {
    color: var(--admin-contrast-ink) !important;
    background: var(--admin-contrast-soft) !important;
    border-color: var(--admin-contrast-line) !important;
}

.network-chip .network-name {
    color: var(--admin-contrast-ink) !important;
    font-weight: 650;
}

.network-chip .text-danger {
    color: #dc2626 !important;
}

.network-chip .badge,
.compact-currency-table .badge {
    vertical-align: middle;
}

/* Replace Bootstrap's light-only text/background utilities when they are
   used inside the currency cards/chips. */
.compact-currency-table .bg-light,
.stat-card .bg-light,
.compact-currency-table .badge.bg-light,
.stat-card .badge.bg-light {
    background: var(--admin-contrast-soft) !important;
    color: var(--admin-contrast-ink) !important;
    border-color: var(--admin-contrast-line) !important;
}

.compact-currency-table .text-dark,
.stat-card .text-dark {
    color: var(--admin-contrast-ink) !important;
}

/* Bootstrap 5 "subtle" utilities can become unreadable on custom dark
   skins. Explicitly bind them to accessible semantic colors. */
.stat-card .bg-primary-subtle,
.compact-currency-table .bg-primary-subtle {
    background: rgba(var(--admin-contrast-rgb), .16) !important;
    color: var(--admin-contrast-primary-dark) !important;
    border-color: rgba(var(--admin-contrast-rgb), .28) !important;
}

.stat-card .text-primary,
.compact-currency-table .text-primary {
    color: var(--admin-contrast-primary-dark) !important;
}

.stat-card .bg-warning-subtle,
.compact-currency-table .bg-warning-subtle {
    background: rgba(245, 158, 11, .16) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, .30) !important;
}

.stat-card .text-warning-emphasis,
.compact-currency-table .text-warning-emphasis {
    color: #b45309 !important;
}

.stat-card .bg-success-subtle,
.compact-currency-table .bg-success-subtle {
    background: rgba(34, 197, 94, .14) !important;
    color: #15803d !important;
    border-color: rgba(34, 197, 94, .26) !important;
}

.stat-card .text-success-emphasis,
.compact-currency-table .text-success-emphasis {
    color: #15803d !important;
}

/* Dark mode: all status/subtle colors remain readable without changing
   the user's selected accent/theme. */
body.px-dark .compact-currency-table .text-info,
body.admin-skin-dark-pro .compact-currency-table .text-info,
body.layout-glass .compact-currency-table .text-info,
body.layout-luxe .compact-currency-table .text-info {
    color: #67e8f9 !important;
}

body.px-dark .stat-card .bg-primary-subtle,
body.px-dark .compact-currency-table .bg-primary-subtle,
body.admin-skin-dark-pro .stat-card .bg-primary-subtle,
body.admin-skin-dark-pro .compact-currency-table .bg-primary-subtle,
body.layout-glass .stat-card .bg-primary-subtle,
body.layout-glass .compact-currency-table .bg-primary-subtle,
body.layout-luxe .stat-card .bg-primary-subtle,
body.layout-luxe .compact-currency-table .bg-primary-subtle {
    color: #c4b5fd !important;
    background: rgba(var(--admin-contrast-rgb), .20) !important;
    border-color: rgba(var(--admin-contrast-rgb), .34) !important;
}

body.px-dark .stat-card .text-primary,
body.px-dark .compact-currency-table .text-primary,
body.admin-skin-dark-pro .stat-card .text-primary,
body.admin-skin-dark-pro .compact-currency-table .text-primary,
body.layout-glass .stat-card .text-primary,
body.layout-glass .compact-currency-table .text-primary,
body.layout-luxe .stat-card .text-primary,
body.layout-luxe .compact-currency-table .text-primary {
    color: #c4b5fd !important;
}

body.px-dark .stat-card .bg-warning-subtle,
body.px-dark .compact-currency-table .bg-warning-subtle,
body.admin-skin-dark-pro .stat-card .bg-warning-subtle,
body.admin-skin-dark-pro .compact-currency-table .bg-warning-subtle,
body.layout-glass .stat-card .bg-warning-subtle,
body.layout-glass .compact-currency-table .bg-warning-subtle,
body.layout-luxe .stat-card .bg-warning-subtle,
body.layout-luxe .compact-currency-table .bg-warning-subtle {
    color: #fde68a !important;
    background: rgba(245, 158, 11, .20) !important;
    border-color: rgba(245, 158, 11, .34) !important;
}

body.px-dark .stat-card .text-warning-emphasis,
body.px-dark .compact-currency-table .text-warning-emphasis,
body.admin-skin-dark-pro .stat-card .text-warning-emphasis,
body.admin-skin-dark-pro .compact-currency-table .text-warning-emphasis,
body.layout-glass .stat-card .text-warning-emphasis,
body.layout-glass .compact-currency-table .text-warning-emphasis,
body.layout-luxe .compact-currency-table .text-warning-emphasis,
body.layout-luxe .stat-card .text-warning-emphasis {
    color: #fde68a !important;
}

/* Network ON/OFF controls: never let generic button text inherit a
   low-contrast Bootstrap color. */
.network-switch {
    color: var(--admin-contrast-ink) !important;
    border-color: var(--admin-contrast-line) !important;
}

.network-switch.on {
    color: #15803d !important;
    background: rgba(34, 197, 94, .12) !important;
    border-color: rgba(34, 197, 94, .28) !important;
}

.network-switch.off {
    color: #b45309 !important;
    background: rgba(245, 158, 11, .12) !important;
    border-color: rgba(245, 158, 11, .28) !important;
}

body.px-dark .network-switch.on,
body.admin-skin-dark-pro .network-switch.on,
body.layout-glass .network-switch.on,
body.layout-luxe .network-switch.on {
    color: #86efac !important;
    background: rgba(34, 197, 94, .16) !important;
    border-color: rgba(34, 197, 94, .34) !important;
}

body.px-dark .network-switch.off,
body.admin-skin-dark-pro .network-switch.off,
body.layout-glass .network-switch.off,
body.layout-luxe .network-switch.off {
    color: #fcd34d !important;
    background: rgba(245, 158, 11, .18) !important;
    border-color: rgba(245, 158, 11, .34) !important;
}

.network-switch:disabled {
    opacity: .62 !important;
    color: var(--admin-contrast-muted) !important;
    background: var(--admin-contrast-soft) !important;
}

/* Currency edit modal follows exactly the same theme colors. */
#editCurModal .modal-content,
#editCurModal .modal-header,
#editCurModal .modal-body,
#editCurModal .modal-footer {
    color: var(--admin-contrast-ink);
}

#editCurModal .modal-content {
    background: var(--admin-contrast-surface);
    border-color: var(--admin-contrast-line);
}

#editCurModal .text-muted,
#editCurModal .form-text {
    color: var(--admin-contrast-muted) !important;
}

#editCurModal .form-control,
#editCurModal .form-select,
#editCurModal .input-group-text {
    background-color: var(--admin-contrast-surface) !important;
    color: var(--admin-contrast-ink) !important;
    border-color: var(--admin-contrast-line) !important;
}

#editCurModal .form-control::placeholder {
    color: var(--admin-contrast-muted) !important;
}

#editCurModal .form-label,
#editCurModal .form-check-label {
    color: var(--admin-contrast-ink) !important;
}

#editCurModal .border {
    border-color: var(--admin-contrast-line) !important;
}

/* ---------- Dark/translucent skins: strengthen muted text ---------- */
body.px-dark .promo-form-card .text-muted,
body.px-dark .promo-table-card .text-muted,
body.admin-skin-dark-pro .promo-form-card .text-muted,
body.admin-skin-dark-pro .promo-table-card .text-muted,
body.layout-glass .promo-form-card .text-muted,
body.layout-glass .promo-table-card .text-muted,
body.layout-luxe .promo-form-card .text-muted,
body.layout-luxe .promo-table-card .text-muted {
    color: #cbd5e1 !important;
}

body.px-dark .promo-form-card .form-text,
body.px-dark .promo-form-card .form-label small,
body.admin-skin-dark-pro .promo-form-card .form-text,
body.admin-skin-dark-pro .promo-form-card .form-label small,
body.layout-glass .promo-form-card .form-text,
body.layout-glass .promo-form-card .form-label small,
body.layout-luxe .promo-form-card .form-text,
body.layout-luxe .promo-form-card .form-label small {
    color: #cbd5e1 !important;
}

/* Avoid OS/browser forced dark-mode inversion producing a second,
   inconsistent palette when the CMS theme is already in control. */
@media (prefers-color-scheme: dark) {
    .promo-form-card input,
    .promo-form-card textarea,
    .promo-form-card select,
    #editCurModal input,
    #editCurModal textarea,
    #editCurModal select {
        color-scheme: dark;
    }
}

@media (prefers-color-scheme: light) {
    .promo-form-card input,
    .promo-form-card textarea,
    .promo-form-card select,
    #editCurModal input,
    #editCurModal textarea,
    #editCurModal select {
        color-scheme: light;
    }
}

/* ============================================================
   PROMOTIONS + CURRENCIES — FINAL READABILITY PASS (dark only)
   ------------------------------------------------------------
   "Dark contexts" below = the client day/night toggle (body.px-dark)
   plus the three always-dark admin skins (dark-pro, glass, luxe).
   Light mode is untouched: every rule here is scoped to those
   contexts, so the plain light templates/colors stay exactly as
   they were.

   1. Bootstrap semantic utility colors (.text-success / .text-danger /
      .text-warning / .text-info) ship with dark "emphasis" shades that
      are tuned for light surfaces. On the dark cards used by the admin
      Promotions and Currencies pages those small hints ("Current banner
      uploaded", "no contract", ...) drop below readable contrast. Only
      brighten them inside a dark context.
   2. Native form controls (file picker, date/time, number inputs,
      selects) should render with the OS dark widget palette on dark
      cards instead of the OS light palette.
   3. Promo cards explicitly bind their surface to the active theme chip
      token so they always repaint together with the rest of the theme.
   ============================================================ */

/* ---------- 1. Semantic text colors stay readable in dark ---------- */
body.px-dark .text-success,
body.admin-sd-theme .text-success,
body.admin-skin-dark-pro .text-success,
body.layout-glass .text-success,
body.layout-luxe .text-success {
    color: #86efac !important;
}

body.px-dark .text-danger,
body.admin-sd-theme .text-danger,
body.admin-skin-dark-pro .text-danger,
body.layout-glass .text-danger,
body.layout-luxe .text-danger {
    color: #fca5a5 !important;
}

body.px-dark .text-warning,
body.admin-sd-theme .text-warning,
body.admin-skin-dark-pro .text-warning,
body.layout-glass .text-warning,
body.layout-luxe .text-warning {
    color: #fcd34d !important;
}

body.px-dark .text-info,
body.admin-sd-theme .text-info,
body.admin-skin-dark-pro .text-info,
body.layout-glass .text-info,
body.layout-luxe .text-info {
    color: #7dd3fc !important;
}

/* Currencies: the red "no contract" status sits inside network chips. */
body.px-dark .network-chip .text-danger,
body.admin-sd-theme .network-chip .text-danger,
body.admin-skin-dark-pro .network-chip .text-danger,
body.layout-glass .network-chip .text-danger,
body.layout-luxe .network-chip .text-danger,
body.px-dark .compact-currency-table .text-danger,
body.admin-sd-theme .compact-currency-table .text-danger,
body.admin-skin-dark-pro .compact-currency-table .text-danger,
body.layout-glass .compact-currency-table .text-danger,
body.layout-luxe .compact-currency-table .text-danger {
    color: #fca5a5 !important;
}

/* ---------- 2. Native form controls follow the dark theme ---------- */
body.px-dark input,
body.px-dark textarea,
body.px-dark select,
body.admin-sd-theme input,
body.admin-sd-theme textarea,
body.admin-sd-theme select,
body.admin-skin-dark-pro input,
body.admin-skin-dark-pro textarea,
body.admin-skin-dark-pro select,
body.layout-glass input,
body.layout-glass textarea,
body.layout-glass select,
body.layout-luxe input,
body.layout-luxe textarea,
body.layout-luxe select {
    color-scheme: dark !important;
}

/* ---------- 3. Promo cards bind to the active theme chip surface ----------
   Keeps them in sync with the rest of the panel: solid #111827 when the
   client toggle forces px-dark on a light template, and the theme's own
   translucent chip token on the always-dark glass/luxe skins. */
body.px-dark .promo-form-card,
body.admin-sd-theme .promo-form-card,
body.layout-glass .promo-form-card,
body.layout-luxe .promo-form-card,
body.admin-skin-dark-pro .promo-form-card,
body.px-dark .promo-table-card,
body.admin-sd-theme .promo-table-card,
body.layout-glass .promo-table-card,
body.layout-luxe .promo-table-card,
body.admin-skin-dark-pro .promo-table-card {
    background-color: var(--chip-bg, #111827) !important;
    border-color: var(--admin-contrast-line, #1f2937) !important;
}

/* ============================================================
   FINAL READABILITY PASS — PART 2
   Covers the remaining reports: the currencies ON/OFF switches,
   the "chain off" warning badge, the Promotions file inputs, and
   the "No promotions yet" empty row. "Dark contexts" now include
   the server-side dark mode on the classic template
   (body.admin-sd-theme) in addition to the client toggle and the
   always-dark skins. Light mode stays untouched.
   ============================================================ */

/* ---------- ON/OFF switches: bright chip colors in dark ---------- */
body.px-dark .network-switch.on,
body.admin-sd-theme .network-switch.on,
body.admin-skin-dark-pro .network-switch.on,
body.layout-glass .network-switch.on,
body.layout-luxe .network-switch.on {
    color: #86efac !important;
    background: rgba(34, 197, 94, .18) !important;
    border-color: rgba(34, 197, 94, .36) !important;
}

body.px-dark .network-switch.off,
body.admin-sd-theme .network-switch.off,
body.admin-skin-dark-pro .network-switch.off,
body.layout-glass .network-switch.off,
body.layout-luxe .network-switch.off {
    color: #fcd34d !important;
    background: rgba(245, 158, 11, .2) !important;
    border-color: rgba(245, 158, 11, .36) !important;
}

/* ---------- "chain off" / "deposit unavailable" warning badges ---------- */
body.px-dark .badge.bg-warning-subtle,
body.px-dark .badge.bg-warning-subtle.text-warning-emphasis,
body.admin-sd-theme .badge.bg-warning-subtle,
body.admin-sd-theme .badge.bg-warning-subtle.text-warning-emphasis,
body.admin-skin-dark-pro .badge.bg-warning-subtle,
body.admin-skin-dark-pro .badge.bg-warning-subtle.text-warning-emphasis,
body.layout-glass .badge.bg-warning-subtle,
body.layout-glass .badge.bg-warning-subtle.text-warning-emphasis,
body.layout-luxe .badge.bg-warning-subtle,
body.layout-luxe .badge.bg-warning-subtle.text-warning-emphasis {
    background-color: rgba(245, 158, 11, .16) !important;
    color: #fde68a !important;
    border-color: rgba(245, 158, 11, .34) !important;
}

/* ---------- Promotions file pickers: themed surface + button ---------- */
body.px-dark .promo-form-card input[type="file"],
body.admin-sd-theme .promo-form-card input[type="file"],
body.admin-skin-dark-pro .promo-form-card input[type="file"],
body.layout-glass .promo-form-card input[type="file"],
body.layout-luxe .promo-form-card input[type="file"] {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

body.px-dark .promo-form-card input[type="file"]::-webkit-file-upload-button,
body.px-dark .promo-form-card input[type="file"]::file-selector-button,
body.admin-sd-theme .promo-form-card input[type="file"]::-webkit-file-upload-button,
body.admin-sd-theme .promo-form-card input[type="file"]::file-selector-button,
body.admin-skin-dark-pro .promo-form-card input[type="file"]::-webkit-file-upload-button,
body.admin-skin-dark-pro .promo-form-card input[type="file"]::file-selector-button,
body.layout-glass .promo-form-card input[type="file"]::-webkit-file-upload-button,
body.layout-glass .promo-form-card input[type="file"]::file-selector-button,
body.layout-luxe .promo-form-card input[type="file"]::-webkit-file-upload-button,
body.layout-luxe .promo-form-card input[type="file"]::file-selector-button {
    color: #e2e8f0 !important;
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.currency-admin-page {
    --currency-ink: var(--chip-text, #334155);
    --currency-muted: var(--text-muted, #64748b);
    --currency-surface: var(--chip-bg, #ffffff);
    --currency-soft: var(--box-soft, #f8fafc);
    --currency-line: var(--box-line, #e2e8f0);
    --currency-primary: var(--primary, #667eea);
    --currency-primary-dark: var(--primary-dark, var(--primary, #5568d3));
    --currency-primary-rgb: var(--primary-rgb, 99, 102, 241);
    --currency-btn-ink: var(--btn-ink, #ffffff);
    min-width: 0;
}

.currency-admin-page .currency-create-card,
.currency-admin-page .currency-list-card {
    height: auto !important;
    min-width: 0;
    max-width: 100%;
    align-self: flex-start;
    overflow: hidden;
    color: var(--currency-ink) !important;
    border-color: var(--currency-line) !important;
}

.currency-admin-page .currency-section-header {
    min-width: 0;
    gap: 1rem;
}

.currency-admin-page .currency-section-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.currency-admin-page .currency-section-heading h6,
.currency-admin-page .currency-section-heading .form-label {
    color: var(--currency-ink) !important;
}

.currency-admin-page .currency-section-heading small,
.currency-admin-page .form-text {
    color: var(--currency-muted) !important;
}

.currency-admin-page .currency-section-heading small {
    display: block;
    max-width: 70ch;
    line-height: 1.45;
}

.currency-admin-page .currency-config-count,
.currency-admin-page .currency-view-badge {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.currency-admin-page .currency-config-count {
    color: var(--currency-btn-ink) !important;
    background: linear-gradient(135deg, var(--currency-primary), var(--currency-primary-dark)) !important;
    border-color: transparent !important;
}

.currency-admin-page .currency-view-badge {
    color: var(--currency-ink) !important;
    background: var(--currency-soft) !important;
    border-color: var(--currency-line) !important;
}

.currency-admin-page #addCurrencyForm,
.currency-admin-page #addCurrencyForm > *,
.currency-admin-page #addCurrencyForm form,
.currency-admin-page .currency-chain-config {
    min-width: 0;
}

.currency-admin-page .form-control,
.currency-admin-page .form-select {
    background-color: var(--currency-surface) !important;
    color: var(--currency-ink) !important;
    border-color: var(--currency-line) !important;
}

.currency-admin-page .form-control::placeholder {
    color: var(--currency-muted) !important;
    opacity: .84;
}

.currency-admin-page .form-control:focus,
.currency-admin-page .form-select:focus {
    background-color: var(--currency-surface) !important;
    color: var(--currency-ink) !important;
    border-color: var(--currency-primary) !important;
    box-shadow: 0 0 0 .2rem rgba(var(--currency-primary-rgb), .18) !important;
}

.currency-admin-page .form-select option {
    background: var(--currency-surface);
    color: var(--currency-ink);
}

.currency-admin-page .currency-chain-list {
    min-width: 0;
    max-height: min(52vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: .65rem !important;
    background: var(--currency-soft);
    border-color: var(--currency-line) !important;
}

.currency-admin-page .currency-chain-list .add-chain-card {
    min-width: 0;
    margin: 0 0 .55rem;
    padding: .75rem;
    border: 1px solid var(--currency-line) !important;
    border-radius: 12px;
    background: var(--currency-surface);
    color: var(--currency-ink) !important;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.currency-admin-page .currency-chain-list .add-chain-card:last-child {
    margin-bottom: 0;
}

.currency-admin-page .currency-chain-list .add-chain-card.is-unavailable {
    border-left: 3px solid rgba(245, 158, 11, .72);
}

.currency-admin-page .currency-chain-list .add-chain-card.selected-chain {
    background-color: var(--currency-surface);
    background-image: linear-gradient(rgba(var(--currency-primary-rgb), .14), rgba(var(--currency-primary-rgb), .14));
    border-color: rgba(var(--currency-primary-rgb), .58) !important;
    box-shadow: inset 3px 0 0 var(--currency-primary), 0 4px 14px rgba(var(--currency-primary-rgb), .08);
}

.currency-admin-page .add-chain-card > .d-flex,
.currency-admin-page .add-chain-card .flex-grow-1 {
    min-width: 0;
}

.currency-admin-page .add-chain-card .form-check {
    flex: 0 0 1rem;
    min-width: 1rem;
}

.currency-admin-page .add-chain-card .form-check-input {
    flex: 0 0 auto;
    margin-top: .28rem;
}

.currency-admin-page .add-chain-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    min-width: 0;
    color: var(--currency-ink) !important;
    line-height: 1.35;
}

.currency-admin-page .add-chain-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.currency-admin-page .add-chain-card .badge {
    flex: 0 1 auto;
    max-width: 100%;
}

.currency-admin-page .chain-availability-badge {
    white-space: normal;
}

.currency-admin-page .add-chain-fields {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: .65rem;
    min-width: 0;
    margin: .75rem 0 0;
    padding: .75rem;
    border: 1px solid var(--currency-line);
    border-radius: 10px;
    background: var(--currency-soft);
}

.currency-admin-page .add-chain-fields.d-none {
    display: none;
}

.currency-admin-page .currency-field {
    min-width: 0;
}

.currency-admin-page .currency-field-hint {
    grid-column: 1 / -1;
}

.currency-admin-page .currency-field-label {
    margin-bottom: .25rem;
    color: var(--currency-ink) !important;
    font-size: .75rem;
    line-height: 1.3;
}

.currency-admin-page .add-chain-fields .form-text {
    margin: 0;
    line-height: 1.4;
}

.currency-admin-page .currency-list-card .currency-table-wrap {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--currency-line);
    border-radius: 12px;
    background: var(--currency-surface);
}

/* All Currencies follows the same card/surface/token combination as Add Currency.
 * Keep the table fluid so the four columns fit the available card width before
 * falling back to a small horizontal scroll on very narrow screens. */
.currency-admin-page .currency-list-card {
    background: var(--currency-surface) !important;
}

.currency-admin-page .currency-list-card .currency-actions {
    min-width: 0;
}

.currency-admin-page .currency-list-card .currency-actions .btn {
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .currency-admin-page .currency-col-name { width: 27%; min-width: 0; }
    .currency-admin-page .currency-col-status { width: 12%; min-width: 80px; }
    .currency-admin-page .currency-col-actions { width: 22%; min-width: 150px; }
}

@media (max-width: 767.98px) {
    .currency-admin-page .currency-section-header {
        flex-wrap: wrap;
    }
    .currency-admin-page .currency-col-name { width: 31%; }
    .currency-admin-page .currency-col-status { width: 15%; min-width: 72px; }
    .currency-admin-page .currency-col-actions { width: 24%; min-width: 138px; }
    .currency-admin-page .compact-currency-table th,
    .currency-admin-page .compact-currency-table td {
        padding: .55rem .45rem;
    }
    .currency-admin-page .currency-actions {
        gap: .3rem !important;
    }
}

@media (max-width: 575.98px) {
    .currency-admin-page .currency-col-name { width: 34%; }
    .currency-admin-page .currency-col-status { width: 14%; min-width: 68px; }
    .currency-admin-page .currency-col-actions { width: 27%; min-width: 132px; }
    .currency-admin-page .currency-actions .btn {
        font-size: .72rem;
        padding: .3rem .45rem;
    }
}

.currency-admin-page .compact-currency-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    --bs-table-color: var(--currency-ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--currency-line);
    color: var(--currency-ink) !important;
}

.currency-admin-page .compact-currency-table th,
.currency-admin-page .compact-currency-table td {
    border-color: var(--currency-line) !important;
    color: var(--currency-ink) !important;
    vertical-align: top;
}

.currency-admin-page .compact-currency-table th {
    color: var(--currency-muted) !important;
}

.currency-admin-page .currency-col-name {
    width: 25%;
    min-width: 220px;
}

.currency-admin-page .currency-col-networks {
    width: auto;
}

.currency-admin-page .currency-col-status {
    width: 100px;
}

.currency-admin-page .currency-col-actions {
    width: 210px;
}

.currency-admin-page .currency-name-layout {
    min-width: 0;
    align-items: flex-start !important;
}

.currency-admin-page .currency-name-copy {
    min-width: 0;
}

.currency-admin-page .currency-name-line {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .35rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.currency-admin-page .currency-meta {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.currency-admin-page .currency-network-list {
    align-items: flex-start;
    gap: .4rem !important;
}

.currency-admin-page .network-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    max-width: 100%;
    min-width: 0;
    padding: .25rem .4rem .25rem .6rem;
    border: 1px solid var(--currency-line) !important;
    border-radius: 999px;
    background: var(--currency-soft) !important;
    color: var(--currency-ink) !important;
    font-size: .76rem;
    line-height: 1.35;
    white-space: normal;
}

.currency-admin-page .network-chip.is-off {
    opacity: 1;
}

.currency-admin-page .network-chip .network-name {
    min-width: 0;
    color: var(--currency-ink) !important;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.currency-admin-page .network-chip code {
    max-width: 100%;
    color: var(--currency-ink) !important;
    background: var(--currency-surface) !important;
    border: 1px solid var(--currency-line);
    border-radius: 5px;
    padding: .1rem .3rem;
    font-size: .68rem;
    overflow-wrap: anywhere;
}

.currency-admin-page .network-chip form {
    flex: 0 0 auto;
    margin: 0;
}

.currency-admin-page .network-switch {
    flex: 0 0 auto;
    min-height: 24px;
    border: 1px solid var(--currency-line) !important;
    border-radius: 999px;
    padding: .12rem .42rem;
    color: var(--currency-ink) !important;
    background: var(--currency-soft) !important;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.currency-admin-page .network-switch.on {
    color: #15803d !important;
    background: rgba(34, 197, 94, .13) !important;
    border-color: rgba(34, 197, 94, .32) !important;
}

.currency-admin-page .network-switch.off {
    color: #b45309 !important;
    background: rgba(245, 158, 11, .13) !important;
    border-color: rgba(245, 158, 11, .32) !important;
}

.currency-admin-page .network-switch:disabled {
    color: var(--currency-muted) !important;
    background: var(--currency-soft) !important;
    border-color: var(--currency-line) !important;
    cursor: not-allowed;
    opacity: .72;
}

.currency-admin-page .currency-chip-badge,
.currency-admin-page .currency-chain-warning {
    white-space: normal;
}

.currency-admin-page .currency-actions {
    align-items: center;
    gap: .35rem !important;
}

.currency-admin-page .currency-actions form {
    margin: 0;
}

.currency-admin-page .currency-actions .btn {
    white-space: nowrap;
}

.currency-admin-page .badge.bg-light {
    background: var(--currency-soft) !important;
    color: var(--currency-ink) !important;
    border-color: var(--currency-line) !important;
}

.currency-admin-page .badge.bg-primary-subtle {
    background: rgba(var(--currency-primary-rgb), .13) !important;
    color: var(--currency-primary-dark) !important;
    border-color: rgba(var(--currency-primary-rgb), .28) !important;
}

.currency-admin-page .badge.bg-warning-subtle {
    background: rgba(245, 158, 11, .15) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, .3) !important;
}

.currency-admin-page .text-info {
    color: #0284c7 !important;
}

.currency-admin-page .text-danger {
    color: #b91c1c !important;
}

#chainMappingRows .chain-off {
    opacity: .68;
}

#chainMappingRows .mapping-contract {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
}

#chainMappingRows .chain-meta {
    font-size: .74rem;
}

@media (max-width: 767.98px) {
    .currency-admin-page .currency-section-header {
        flex-wrap: wrap;
    }

    .currency-admin-page .currency-section-heading {
        flex: 1 1 100%;
    }

    .currency-admin-page .add-chain-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .currency-admin-page .currency-field-hint {
        grid-column: auto;
    }

    .currency-admin-page .compact-currency-table {
        min-width: 860px;
    }
}

@media (max-width: 575.98px) {
    .currency-admin-page .currency-config-count,
    .currency-admin-page .currency-view-badge {
        width: 100%;
    }

    .currency-admin-page .currency-chain-list {
        padding: .5rem !important;
    }

    .currency-admin-page .currency-chain-list .add-chain-card {
        padding: .65rem;
    }
}

/* Currency admin: targeted night-mode correction.
 * Only Classic, Modern Pro and Corporate are touched here.
 * Glass, Dark Pro and Luxe keep their existing theme surfaces.
 */
body.px-dark .currency-admin-page.currency-theme-classic,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic,
body.px-dark .currency-admin-page.currency-theme-modern,
body.px-dark .currency-admin-page.currency-theme-corporate {
    --currency-ink: #e5e7eb;
    --currency-muted: #cbd5e1;
    --currency-surface: #111827;
    --currency-soft: #0f172a;
    --currency-line: #334155;
    --currency-primary: var(--primary, #818cf8);
    --currency-primary-dark: var(--primary, #818cf8);
}

/* Keep the list/table surface locked to the same light/dark token set as Add Currency. */
body.px-dark .currency-admin-page.currency-theme-classic .currency-table-wrap,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .currency-table-wrap,
body.px-dark .currency-admin-page.currency-theme-modern .currency-table-wrap,
body.px-dark .currency-admin-page.currency-theme-corporate .currency-table-wrap {
    background: var(--currency-surface) !important;
    border-color: var(--currency-line) !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .compact-currency-table,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .compact-currency-table,
body.px-dark .currency-admin-page.currency-theme-modern .compact-currency-table,
body.px-dark .currency-admin-page.currency-theme-corporate .compact-currency-table {
    --bs-table-bg: var(--currency-surface) !important;
    --bs-table-color: var(--currency-ink) !important;
    --bs-table-border-color: var(--currency-line) !important;
    background: var(--currency-surface) !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .currency-create-card,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .currency-create-card,
body.px-dark .currency-admin-page.currency-theme-classic .currency-list-card,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .currency-list-card,
body.px-dark .currency-admin-page.currency-theme-modern .currency-create-card,
body.px-dark .currency-admin-page.currency-theme-modern .currency-list-card,
body.px-dark .currency-admin-page.currency-theme-corporate .currency-create-card,
body.px-dark .currency-admin-page.currency-theme-corporate .currency-list-card {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
    background-image: none !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .form-control,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .form-control,
body.px-dark .currency-admin-page.currency-theme-modern .form-control,
body.px-dark .currency-admin-page.currency-theme-corporate .form-control,
body.px-dark .currency-admin-page.currency-theme-classic .form-select,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .form-select,
body.px-dark .currency-admin-page.currency-theme-modern .form-select,
body.px-dark .currency-admin-page.currency-theme-corporate .form-select {
    background-color: #0f172a !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .form-control::placeholder,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .form-control::placeholder,
body.px-dark .currency-admin-page.currency-theme-modern .form-control::placeholder,
body.px-dark .currency-admin-page.currency-theme-corporate .form-control::placeholder {
    color: #94a3b8 !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .table-responsive,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .table-responsive,
body.px-dark .currency-admin-page.currency-theme-modern .table-responsive,
body.px-dark .currency-admin-page.currency-theme-corporate .table-responsive,
body.px-dark .currency-admin-page.currency-theme-classic .compact-currency-table,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .compact-currency-table,
body.px-dark .currency-admin-page.currency-theme-modern .compact-currency-table,
body.px-dark .currency-admin-page.currency-theme-corporate .compact-currency-table {
    background: #111827 !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .compact-currency-table tbody tr,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .compact-currency-table tbody tr,
body.px-dark .currency-admin-page.currency-theme-modern .compact-currency-table tbody tr,
body.px-dark .currency-admin-page.currency-theme-corporate .compact-currency-table tbody tr {
    background: transparent !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .badge.bg-primary-subtle,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .badge.bg-primary-subtle,
body.px-dark .currency-admin-page.currency-theme-modern .badge.bg-primary-subtle,
body.px-dark .currency-admin-page.currency-theme-corporate .badge.bg-primary-subtle {
    color: var(--currency-primary) !important;
    background: rgba(var(--currency-primary-rgb), .2) !important;
    border-color: rgba(var(--currency-primary-rgb), .38) !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .badge.bg-warning-subtle,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .badge.bg-warning-subtle,
body.px-dark .currency-admin-page.currency-theme-modern .badge.bg-warning-subtle,
body.px-dark .currency-admin-page.currency-theme-corporate .badge.bg-warning-subtle,
body.px-dark .currency-admin-page.currency-theme-classic .currency-chain-warning,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .currency-chain-warning,
body.px-dark .currency-admin-page.currency-theme-modern .currency-chain-warning,
body.px-dark .currency-admin-page.currency-theme-corporate .currency-chain-warning {
    color: #fde68a !important;
    background: rgba(245, 158, 11, .18) !important;
    border-color: rgba(245, 158, 11, .36) !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .text-info,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .text-info,
body.px-dark .currency-admin-page.currency-theme-modern .text-info,
body.px-dark .currency-admin-page.currency-theme-corporate .text-info {
    color: #7dd3fc !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .text-danger,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .text-danger,
body.px-dark .currency-admin-page.currency-theme-modern .text-danger,
body.px-dark .currency-admin-page.currency-theme-corporate .text-danger {
    color: #fca5a5 !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .network-switch.on,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .network-switch.on,
body.px-dark .currency-admin-page.currency-theme-modern .network-switch.on,
body.px-dark .currency-admin-page.currency-theme-corporate .network-switch.on {
    color: #86efac !important;
    background: rgba(34, 197, 94, .18) !important;
    border-color: rgba(34, 197, 94, .38) !important;
}

body.px-dark .currency-admin-page.currency-theme-classic .network-switch.off,
body.admin-sd-theme.theme-dark .currency-admin-page.currency-theme-classic .network-switch.off,
body.px-dark .currency-admin-page.currency-theme-modern .network-switch.off,
body.px-dark .currency-admin-page.currency-theme-corporate .network-switch.off {
    color: #fcd34d !important;
    background: rgba(245, 158, 11, .2) !important;
    border-color: rgba(245, 158, 11, .38) !important;
}