/**
 * Shell: soft charcoal base; primary matches Metronic #009ef7.
 */
:root {
  /* Softer than pure black: neutral charcoal (tiny lift for eye strain) */
  --prox-bg: #0e0e12;
  --prox-bg-elevated: #15151c;
  --prox-border: rgba(255, 255, 255, 0.06);
  --prox-aside-collapsed-w: 78px;
  /* Metronic blue — shared tokens for scoped utilities */
  --prox-ui-primary: #009ef7;
  --prox-ui-primary-rgb: 0, 158, 247;
  --prox-ui-primary-active: #0086d1;
  --prox-ui-primary-light: rgba(0, 158, 247, 0.14);
  --prox-green: #6b8774;
  --prox-green-soft: rgba(107, 135, 116, 0.12);
  --prox-sidebar-w: 240px;
  --prox-nav-section: #52525b;
  --prox-nav-inactive: #8c8c96;
  --prox-nav-inactive-icon: #65656e;
  /* Sidebar row chrome — active row text softer than near-white */
  --prox-nav-active: #b8e0fb;
  --prox-nav-active-fill: rgba(0, 158, 247, 0.16);
  --prox-nav-active-border: rgba(0, 158, 247, 0.38);
  --prox-nav-hover-fill: rgba(0, 158, 247, 0.1);
  --prox-nav-hover-border: rgba(0, 158, 247, 0.28);
}

/* Metronic dark theme ships blue primaries on html; re-map for the logged-in shell only. */
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies {
  --bs-body-bg: #0e0e12;
  --bs-body-bg-rgb: 14, 14, 18;
  --bs-primary: #009ef7;
  --bs-primary-rgb: 0, 158, 247;
  --bs-primary-active: #0086d1;
  --bs-primary-light: rgba(0, 158, 247, 0.12);
  --bs-text-primary: #74c4f7;
  --bs-component-active-color: #ffffff;
  --bs-component-active-bg: #009ef7;
  --bs-primary-inverse: #ffffff;
  --bs-component-hover-color: #e4f6ff;
  --bs-component-hover-bg: rgba(0, 158, 247, 0.09);
  --bs-component-checked-color: #ffffff;
  --bs-component-checked-bg: #009ef7;
  --bs-menu-link-color-hover: #d4ecfc;
  --bs-menu-link-color-show: #d4ecfc;
  --bs-menu-link-color-here: #d4ecfc;
  --bs-menu-link-color-active: #f0f9ff;
  --bs-menu-link-bg-color-hover: rgba(0, 158, 247, 0.08);
  --bs-menu-link-bg-color-show: rgba(0, 158, 247, 0.1);
  --bs-menu-link-bg-color-here: rgba(0, 158, 247, 0.1);
  --bs-menu-link-bg-color-active: rgba(0, 158, 247, 0.14);
  --bs-page-bg: #0e0e12;
  --bs-app-blank-bg: #0e0e12;
  --bs-card-bg: #15151c;
  --bs-dropdown-bg: #15151c;
  --bs-drawer-bg-color: #0e0e12;
  --bs-aside-bg-color: #0e0e12;
  --bs-header-general-bg-color: #0e0e12;
  --bs-header-mobile-bg-color: #0e0e12;
  --bs-menu-dropdown-bg-color: #15151c;
  --bs-header-button-icon-color-active: #74c4f7;
  --bs-aside-menu-icon-bg-color: transparent;
  --bs-aside-menu-icon-bg-color-active: transparent;
  --bs-aside-menu-icon-color: #65656e;
  --bs-aside-menu-icon-icon-color: #65656e;
  --bs-aside-menu-icon-icon-color-active: #ffffff;
  --bs-aside-menu-icon-icon-color-hover: #009ef7;
  --bs-scrolltop-bg-color: #009ef7;
  --bs-scrolltop-bg-color-hover: #0086d1;
  --bs-ribbon-label-bg: #4a5c52;
  --bs-ribbon-label-border-color: rgba(255, 255, 255, 0.12);
  --bs-link-color: #009ef7;
  --bs-link-hover-color: #74c4f7;
  --bs-focus-ring-color: rgba(0, 158, 247, 0.35);
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-info: #009ef7;
  --bs-info-rgb: 0, 158, 247;
  --bs-info-active: #0086d1;
  --bs-nav-pills-link-active-bg: #009ef7;
  --bs-progress-bar-bg: #009ef7;
}

/* Apex/Flot read --bs-primary from documentElement; mirror shell primaries on html. */
html[data-bs-theme="dark"]:has(body#kt_body.app-shell-proxies) {
  --bs-primary: #009ef7;
  --bs-primary-rgb: 0, 158, 247;
  --bs-primary-active: #0086d1;
  --bs-primary-light: rgba(0, 158, 247, 0.12);
  --bs-primary-inverse: #ffffff;
  --bs-info: #009ef7;
  --bs-info-rgb: 0, 158, 247;
  --bs-info-active: #0086d1;
}

/* Light shell: cool gray page, white surfaces — Metronic primary */
html[data-bs-theme="light"] body#kt_body.app-shell-proxies {
  --prox-bg: #e2e8f0;
  --prox-bg-elevated: #ffffff;
  --prox-border: rgba(15, 23, 42, 0.08);
  --prox-nav-section: #64748b;
  --prox-nav-inactive: #475569;
  --prox-nav-inactive-icon: #64748b;
  --prox-nav-active: #0f3557;
  --prox-nav-active-fill: rgba(0, 158, 247, 0.1);
  --prox-nav-active-border: rgba(0, 158, 247, 0.32);
  --prox-nav-hover-fill: rgba(0, 158, 247, 0.08);
  --prox-nav-hover-border: rgba(0, 158, 247, 0.22);
  --bs-body-bg: #e2e8f0;
  --bs-body-bg-rgb: 226, 232, 240;
  --bs-primary: #009ef7;
  --bs-primary-rgb: 0, 158, 247;
  --bs-primary-active: #0086d1;
  --bs-primary-light: rgba(0, 158, 247, 0.12);
  --bs-text-primary: #0284c7;
  --bs-component-active-color: #ffffff;
  --bs-component-active-bg: #009ef7;
  --bs-primary-inverse: #ffffff;
  --bs-component-hover-color: #0c4a6e;
  --bs-component-hover-bg: rgba(0, 158, 247, 0.08);
  --bs-page-bg: #e2e8f0;
  --bs-app-blank-bg: #e2e8f0;
  --bs-card-bg: #ffffff;
  --bs-dropdown-bg: #ffffff;
  --bs-drawer-bg-color: #f8fafc;
  --bs-aside-bg-color: #f8fafc;
  --bs-header-general-bg-color: #f8fafc;
  --bs-header-mobile-bg-color: #f8fafc;
  --bs-menu-dropdown-bg-color: #ffffff;
  /* Metronic header / topbar tokens (Signal float + icon buttons resolve these) */
  --bs-header-button-icon-color: #1e293b;
  --bs-header-button-icon-color-active: #009ef7;
  --bs-header-search-font-color: #64748b;
  --bs-header-search-placeholder-color: #94a3b8;
  --bs-header-button-bg-color: #e2e8f0;
  --bs-aside-menu-icon-bg-color: transparent;
  --bs-aside-menu-icon-bg-color-active: transparent;
  --bs-aside-menu-icon-color: #64748b;
  --bs-aside-menu-icon-icon-color: #64748b;
  --bs-aside-menu-icon-icon-color-active: #0f172a;
  --bs-aside-menu-icon-icon-color-hover: #009ef7;
  --bs-scrolltop-bg-color: #009ef7;
  --bs-scrolltop-bg-color-hover: #0086d1;
  --bs-link-color: #0284c7;
  --bs-link-hover-color: #009ef7;
  --bs-focus-ring-color: rgba(0, 158, 247, 0.35);
  --bs-border-color: rgba(15, 23, 42, 0.1);
  --bs-info: #009ef7;
  --bs-info-rgb: 0, 158, 247;
  --bs-info-active: #0086d1;
  --bs-nav-pills-link-active-bg: #009ef7;
  --bs-progress-bar-bg: #009ef7;
  --bs-menu-link-color-hover: #0f172a;
  --bs-menu-link-color-show: #0f172a;
  --bs-menu-link-color-here: #0f172a;
  --bs-menu-link-color-active: #0369a1;
  color: #0f172a;
}

html[data-bs-theme="light"]:has(body#kt_body.app-shell-proxies) {
  --prox-bg: #e2e8f0;
  --prox-bg-elevated: #ffffff;
  --prox-border: rgba(15, 23, 42, 0.08);
  --bs-primary: #009ef7;
  --bs-primary-rgb: 0, 158, 247;
  --bs-primary-active: #0086d1;
  --bs-primary-light: rgba(0, 158, 247, 0.12);
  --bs-primary-inverse: #ffffff;
  --bs-info: #009ef7;
  --bs-info-rgb: 0, 158, 247;
  --bs-info-active: #0086d1;
  background-color: #e2e8f0;
  min-height: 100%;
}

/* Dark base behind transparent shell (light html bg set above with --prox-bg on html). */
html[data-bs-theme="dark"]:has(body#kt_body.app-shell-proxies) {
  background-color: var(--prox-bg);
  min-height: 100%;
}

/* Particles sit behind main layout; body / page chrome are transparent */
.app-shell-proxies #particles-js {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.app-shell-proxies #particles-js canvas {
  display: block;
  pointer-events: none !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  /* Softer fields / labels — aligned with plain API link rows (not heavy black slabs) */
  --prox-field-fill: rgba(255, 255, 255, 0.055);
  --prox-field-fill-focus: rgba(255, 255, 255, 0.075);
  --prox-field-edge: rgba(255, 255, 255, 0.065);
  --prox-field-text: rgba(255, 255, 255, 0.78);
  --prox-label-soft: rgba(255, 255, 255, 0.54);
  --prox-nav-inactive: rgba(255, 255, 255, 0.58);
  --prox-nav-inactive-icon: rgba(255, 255, 255, 0.42);
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies {
  /* Transparent so #particles-js (first body child) stays visible; gray wash is on <html>. */
  background: transparent !important;
  color: #1e293b;
  position: relative;
  --prox-field-fill: #f8fafc;
  --prox-field-fill-focus: #f1f5f9;
  --prox-field-edge: rgba(15, 23, 42, 0.1);
  --prox-field-text: #334155;
  --prox-label-soft: #64748b;
}

/* Do not set z-index here: Bootstrap appends .modal-backdrop to body; a low stacking
   context on this root would trap modals under the backdrop and block all clicks. */
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies > .d-flex.flex-column.flex-root {
  position: relative;
  background: transparent !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies > .d-flex.flex-column.flex-root {
  position: relative;
  background: transparent !important;
}

.app-shell-proxies .page,
.app-shell-proxies #kt_wrapper,
.app-shell-proxies .wrapper,
.app-shell-proxies #kt_content,
.app-shell-proxies .content,
.app-shell-proxies #kt_post {
  background-color: transparent !important;
}

/* ——— Sidebar: flat nav, Metronic blue hover/active (icon pills removed) ——— */
.app-shell-proxies #kt_aside.app-panel-sidebar {
  width: var(--prox-sidebar-w) !important;
  max-width: var(--prox-sidebar-w);
  background: var(--prox-bg) !important;
  border-right: 1px solid var(--prox-border) !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column;
  transition:
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.app-shell-proxies #kt_aside .aside-logo.prox-aside-logo,
.app-shell-proxies #kt_aside .aside-logo {
  border-bottom: 1px solid var(--prox-border) !important;
  padding-top: 1.35rem !important;
  padding-bottom: 1.35rem !important;
}

.app-shell-proxies .prox-aside-logo-link {
  min-height: 2.5rem;
}

.app-shell-proxies .prox-brand-main {
  color: #fff !important;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-shell-proxies .prox-brand-sub {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-brand-sub {
  color: #74c4f7 !important;
}

.app-shell-proxies .prox-aside-brand-text {
  min-width: 0;
  white-space: nowrap;
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-aside-collapse-btn,
html[data-bs-theme="dark"] .app-shell-proxies .prox-aside-mobile-toggle {
  color: rgba(255, 255, 255, 0.45) !important;
  z-index: 5;
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-aside-collapse-btn:hover,
html[data-bs-theme="dark"] .app-shell-proxies .prox-aside-collapse-btn:focus,
html[data-bs-theme="dark"] .app-shell-proxies .prox-aside-mobile-toggle:hover,
html[data-bs-theme="dark"] .app-shell-proxies .prox-aside-mobile-toggle:focus {
  color: var(--prox-ui-primary) !important;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-aside-collapse-btn,
html[data-bs-theme="light"] .app-shell-proxies .prox-aside-mobile-toggle {
  color: #64748b !important;
  z-index: 5;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-aside-collapse-btn:hover,
html[data-bs-theme="light"] .app-shell-proxies .prox-aside-collapse-btn:focus,
html[data-bs-theme="light"] .app-shell-proxies .prox-aside-mobile-toggle:hover,
html[data-bs-theme="light"] .app-shell-proxies .prox-aside-mobile-toggle:focus {
  color: var(--prox-ui-primary) !important;
}

.app-shell-proxies #kt_aside .aside-menu {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start !important;
}

/* Metronic aside menu defaults to vertical centering — pin links to the top */
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu {
  justify-content: flex-start !important;
  align-items: stretch !important;
}

.app-shell-proxies #kt_aside .aside-menu .hover-scroll-overlay-y {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
}

.app-shell-proxies .prox-aside-menu .menu-item > .menu-content {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.app-shell-proxies .prox-aside-menu .prox-nav-section-spacer {
  margin-top: 0.65rem !important;
}

.app-shell-proxies .prox-aside-menu .prox-nav-section-spacer:first-child {
  margin-top: 0 !important;
}

.app-shell-proxies .prox-aside-menu .menu-section {
  color: var(--prox-label-soft, var(--prox-nav-section)) !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
}

/* Kill Metronic aside icon “pills” (58×58 + border-radius) — must beat .aside .aside-menu … */
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item {
  margin-bottom: 0.2rem !important;
  justify-content: flex-start !important;
}

.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link .menu-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 1.5rem !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin-right: 0.65rem !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
  transition: color 0.15s ease !important;
}

.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link.active .menu-icon,
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item.here > .menu-link .menu-icon {
  background: transparent !important;
  background-color: transparent !important;
}

.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link:not(.active):not(:hover) .menu-icon i,
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link:not(.active):not(:hover) .menu-icon .svg-icon {
  color: var(--prox-nav-inactive-icon) !important;
  font-size: 1.35rem !important;
}

.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link {
  justify-content: flex-start !important;
}

.app-shell-proxies #kt_aside .prox-aside-menu .menu-link {
  border-radius: 0.625rem;
  padding: 0.55rem 0.7rem !important;
  margin: 0.1rem 0;
  color: var(--prox-nav-inactive) !important;
  border: 1px solid transparent;
  font-weight: 400;
  font-size: 0.875rem;
}

html[data-bs-theme="dark"] .app-shell-proxies #kt_aside .prox-aside-menu .menu-link:hover:not(.active) {
  background: var(--prox-nav-hover-fill) !important;
  color: #d4ecfc !important;
  border-color: var(--prox-nav-hover-border) !important;
}

html[data-bs-theme="light"] .app-shell-proxies #kt_aside .prox-aside-menu .menu-link:hover:not(.active) {
  background: var(--prox-nav-hover-fill) !important;
  color: #0f172a !important;
  border-color: var(--prox-nav-hover-border) !important;
}

.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link:hover:not(.active) .menu-icon i,
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link:hover:not(.active) .menu-icon .svg-icon {
  color: var(--prox-ui-primary) !important;
  font-size: 1.35rem !important;
}

.app-shell-proxies #kt_aside .prox-aside-menu .menu-link.active,
.app-shell-proxies #kt_aside .prox-aside-menu .menu-item.here > .menu-link {
  background: var(--prox-nav-active-fill) !important;
  color: var(--prox-nav-active) !important;
  border-color: var(--prox-nav-active-border) !important;
  box-shadow: none !important;
  font-weight: 500;
}

.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link.active .menu-icon i,
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link.active .menu-icon .svg-icon,
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item.here > .menu-link .menu-icon i,
.app-shell-proxies #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item.here > .menu-link .menu-icon .svg-icon {
  color: var(--prox-nav-active) !important;
  font-size: 1.35rem !important;
}

.app-shell-proxies #kt_aside .prox-aside-menu .menu-title {
  font-weight: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.app-shell-proxies .prox-nav-badge--ext {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
  background: #27272a;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Optional: louder promo badge (not used on external link in ref pic 1) */
.app-shell-proxies .prox-nav-badge--hot {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(120, 113, 108, 0.35);
  color: #e7e5e4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Metronic KTToggle: data-kt-toggle-name="aside-minimize" → body[data-kt-aside-minimize="on"] */
body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] #kt_aside.app-panel-sidebar,
body#kt_body.app-shell-proxies.aside-minimize #kt_aside.app-panel-sidebar {
  width: var(--prox-aside-collapsed-w) !important;
  max-width: var(--prox-aside-collapsed-w) !important;
}

.app-shell-proxies .app-panel-sidebar .menu-title,
.app-shell-proxies .app-panel-sidebar .menu-section,
.app-shell-proxies .app-panel-sidebar .aside-logo .prox-aside-brand-text {
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.2s ease;
}

body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] .app-panel-sidebar .menu-title,
body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] .app-panel-sidebar .menu-section,
body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] .app-panel-sidebar .aside-logo .prox-aside-brand-text,
body#kt_body.app-shell-proxies.aside-minimize .app-panel-sidebar .menu-title,
body#kt_body.app-shell-proxies.aside-minimize .app-panel-sidebar .menu-section,
body#kt_body.app-shell-proxies.aside-minimize .app-panel-sidebar .aside-logo .prox-aside-brand-text {
  opacity: 0;
  max-width: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-6px);
}

body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] .prox-aside-logo-link,
body#kt_body.app-shell-proxies.aside-minimize .prox-aside-logo-link {
  justify-content: center !important;
}

body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] #kt_aside .prox-aside-menu .menu-link,
body#kt_body.app-shell-proxies.aside-minimize #kt_aside .prox-aside-menu .menu-link {
  justify-content: center !important;
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
}

body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link .menu-icon,
body#kt_body.app-shell-proxies.aside-minimize #kt_aside.aside .aside-menu .prox-aside-menu.menu > .menu-item > .menu-link .menu-icon {
  margin-right: 0 !important;
}

body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] .prox-aside-collapse-btn,
body#kt_body.app-shell-proxies.aside-minimize .prox-aside-collapse-btn {
  opacity: 0.55;
}

body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] .prox-nav-badge--ext,
body#kt_body.app-shell-proxies.aside-minimize .prox-nav-badge--ext {
  display: none;
}

/* ——— Primary utilities: Metronic blue ——— */
.app-shell-proxies .text-primary,
.app-shell-proxies .link-primary {
  color: var(--prox-ui-primary) !important;
}

.app-shell-proxies a.link-primary:hover {
  color: #009ef7 !important;
}

.app-shell-proxies .border-primary {
  border-color: rgba(0, 158, 247, 0.45) !important;
}

.app-shell-proxies .bg-primary,
.app-shell-proxies .badge-primary {
  background-color: var(--prox-ui-primary) !important;
  color: #ffffff !important;
}

.app-shell-proxies .badge-light-primary {
  background: var(--prox-ui-primary-light) !important;
  color: #74c4f7 !important;
  border: 1px solid rgba(0, 158, 247, 0.28);
}

.app-shell-proxies .spinner-border.text-primary,
.app-shell-proxies .spinner-grow.text-primary {
  color: var(--prox-ui-primary) !important;
}

.app-shell-proxies i.ki-duotone.text-primary,
.app-shell-proxies .text-primary i.ki-duotone {
  color: var(--prox-ui-primary) !important;
}

.app-shell-proxies i.ki-duotone.text-primary .path1,
.app-shell-proxies i.ki-duotone.text-primary .path2,
.app-shell-proxies .text-primary i.ki-duotone .path1,
.app-shell-proxies .text-primary i.ki-duotone .path2 {
  fill: currentColor !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .nav-line-tabs .nav-link.active,
html[data-bs-theme="dark"] .app-shell-proxies .nav-tabs .nav-link.active {
  border-color: var(--prox-ui-primary) !important;
  color: #f4f4f5 !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .nav-line-tabs .nav-link.active:hover,
html[data-bs-theme="dark"] .app-shell-proxies .nav-tabs .nav-link.active:hover {
  border-color: #009ef7 !important;
}

html[data-bs-theme="light"] .app-shell-proxies .nav-line-tabs .nav-link:not(.active),
html[data-bs-theme="light"] .app-shell-proxies .nav-tabs .nav-link:not(.active) {
  color: #475569 !important;
}

html[data-bs-theme="light"] .app-shell-proxies .nav-line-tabs .nav-link:not(.active):hover,
html[data-bs-theme="light"] .app-shell-proxies .nav-tabs .nav-link:not(.active):hover {
  color: #0f172a !important;
}

.app-shell-proxies .form-control:focus,
.app-shell-proxies .form-select:focus {
  border-color: rgba(0, 158, 247, 0.5) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.12) !important;
}

/*
 * Solid + plain fields: light tint on elevated cards (same family as API Links copy rows).
 */
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-control.form-control-solid,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-select.form-select-solid,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies select.form-select-solid {
  background-color: var(--prox-field-fill) !important;
  background-image: none !important;
  border: 1px solid var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies #kt_content .card .form-control:not(.form-control-solid):not(.form-control-flush):not(.form-control-transparent),
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies #kt_content .card .form-select:not(.form-select-solid):not(.form-select-transparent),
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .form-control:not(.form-control-solid):not(.form-control-flush):not(.form-control-transparent),
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .form-select:not(.form-select-solid):not(.form-select-transparent) {
  background-color: var(--prox-field-fill) !important;
  border: 1px solid var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-control.form-control-solid::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-control.form-control-solid::-moz-placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
  opacity: 1;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-control.form-control-solid:focus,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-control.form-control-solid:active,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-select.form-select-solid:focus,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-select.form-select-solid:active,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies select.form-select-solid:focus,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies select.form-select-solid:active {
  background-color: var(--prox-field-fill-focus) !important;
  border-color: rgba(0, 158, 247, 0.45) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.1) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-control.form-control-solid[readonly],
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .form-control.form-control-solid:disabled {
  background-color: var(--prox-field-fill) !important;
  border-color: var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
  opacity: 1;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .input-group.input-group-solid .form-control,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .input-group.input-group-solid .input-group-text {
  background-color: var(--prox-field-fill) !important;
  border-color: var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .input-group.input-group-solid .input-group-text + .form-control,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .input-group.input-group-solid .form-control + .input-group-text {
  border-left-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .input-group.input-group-solid .form-control:focus {
  border-color: rgba(0, 158, 247, 0.45) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .input-group-text.form-select-solid {
  background-color: var(--prox-field-fill) !important;
  border-color: var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .select2-container .select2-selection--single {
  background-color: var(--prox-field-fill) !important;
  border: 1px solid var(--prox-field-edge) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .select2-container .select2-selection--single:focus,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .select2-container.select2-container--focus .select2-selection--single {
  border-color: rgba(0, 158, 247, 0.45) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .select2-container .select2-selection--single .select2-selection__rendered {
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .select2-container .select2-selection--single .select2-selection__placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .select2-container .select2-selection--single .select2-selection__arrow b {
  border-color: rgba(255, 255, 255, 0.38) transparent transparent transparent !important;
}

/* Field labels: tame Metronic fw-bolder + text-dark (reads harsh on dark cards). */
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies #kt_content .form-label,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies #kt_content label.col-form-label,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .form-label {
  color: var(--prox-label-soft) !important;
  font-weight: 500 !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies #kt_content .form-label,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies #kt_content label.col-form-label,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .form-label {
  color: var(--prox-label-soft) !important;
  font-weight: 500 !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .form-control.form-control-solid,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .form-select.form-select-solid,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies select.form-select-solid {
  background-color: var(--prox-field-fill) !important;
  border: 1px solid var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies #kt_content .card .form-control:not(.form-control-solid):not(.form-control-flush):not(.form-control-transparent),
html[data-bs-theme="light"] body#kt_body.app-shell-proxies #kt_content .card .form-select:not(.form-select-solid):not(.form-select-transparent),
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .form-control:not(.form-control-solid):not(.form-control-flush):not(.form-control-transparent),
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .form-select:not(.form-select-solid):not(.form-select-transparent) {
  background-color: var(--prox-field-fill) !important;
  border: 1px solid var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .input-group.input-group-solid .form-control,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .input-group.input-group-solid .input-group-text {
  background-color: var(--prox-field-fill) !important;
  border-color: var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .input-group.input-group-solid .input-group-text + .form-control,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .input-group.input-group-solid .form-control + .input-group-text {
  border-left-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .input-group-text.form-select-solid {
  background-color: var(--prox-field-fill) !important;
  border-color: var(--prox-field-edge) !important;
  color: var(--prox-field-text) !important;
}

/* Help / FAQ — method group headers used Metronic .bg-light (washes out on dark). */
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .prox-help-page table tbody th[colspan] {
  background-color: var(--prox-field-fill) !important;
  color: var(--prox-label-soft) !important;
  font-weight: 500 !important;
  border-bottom-color: var(--prox-field-edge) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .prox-help-page table tbody th[colspan] {
  background-color: var(--prox-field-fill) !important;
  color: var(--prox-label-soft) !important;
  font-weight: 500 !important;
  border-bottom-color: var(--prox-field-edge) !important;
}

.app-shell-proxies .form-check-input:checked {
  background-color: var(--prox-ui-primary) !important;
  border-color: var(--prox-ui-primary) !important;
}

/* ——— Metronic header row (notifications etc.) ——— */
.app-shell-proxies #kt_header {
  background: transparent !important;
  border-bottom: 1px solid var(--prox-border);
}

.app-shell-proxies .header-mobile {
  background: transparent !important;
}

html[data-bs-theme="dark"] .app-shell-proxies #kt_header .text-dark,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .text-white {
  color: #fff !important;
}

.app-shell-proxies #kt_header.header {
  border-bottom: none !important;
}

/*
 * Header chips (Support / Signal / online / wallet): same shell as home stat cards
 * (.prox-card.prox-stat-card — var(--prox-bg-elevated) + var(--prox-border)) and the same
 * icon treatment as those widgets (ki-duotone + .text-primary → var(--prox-ui-primary)).
 */
html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary {
  background-color: var(--prox-bg-elevated) !important;
  border: 1px solid var(--prox-border) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
  /* Lighter than slate-500 (#64748b) so labels don’t read muddy on white chips */
  color: #7c8aa0 !important;
  font-weight: 500 !important;
}

html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary {
  background-color: var(--prox-bg-elevated) !important;
  border: 1px solid var(--prox-border) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500 !important;
}

html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary:hover,
html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary:focus,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary:hover,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
}

html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone {
  color: var(--prox-ui-primary) !important;
}

html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path1,
html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path2,
html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path3,
html[data-bs-theme="light"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path4,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path1,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path2,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path3,
html[data-bs-theme="dark"] .app-shell-proxies #kt_header .prox-header-surface.btn-light-primary .ki-duotone .path4 {
  fill: currentColor !important;
}

/* Header balance: tabular amount; weight matches chip (not bold) */
.app-shell-proxies #kt_header .prox-header-balance__amt {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.app-shell-proxies #kt_header .prox-header-surface #onlineCounter {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Sticky JS disabled on #kt_header — keep stock Metronic header block (240px + offset) and content overlap. */
@media (min-width: 992px) {
  body#kt_body.app-shell-proxies .wrapper#kt_wrapper {
    padding-left: var(--prox-sidebar-w) !important;
    transition: padding-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body#kt_body.app-shell-proxies[data-kt-aside-minimize="on"] .wrapper#kt_wrapper,
  body#kt_body.app-shell-proxies.aside-minimize .wrapper#kt_wrapper {
    padding-left: var(--prox-aside-collapsed-w) !important;
  }
}

/* Short pages (e.g. store): pin footer to viewport bottom without flex-grow on #kt_content
   (flex:1 on content creates a huge empty band on long pages like home). */
body#kt_body.app-shell-proxies .page.d-flex.flex-row.flex-column-fluid {
  min-height: 100dvh;
}

body#kt_body.app-shell-proxies #kt_wrapper.wrapper.d-flex.flex-column {
  min-height: 100dvh;
}

body#kt_body.app-shell-proxies #kt_footer {
  margin-top: auto !important;
}

/* Bootstrap modals: set dialog tokens on .modal so light/dark track theme (vars on body alone can miss). */
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal {
  --bs-modal-color: #0f172a;
  --bs-modal-bg: #ffffff;
  --bs-modal-border-color: rgba(15, 23, 42, 0.12);
  --bs-modal-header-border-color: rgba(15, 23, 42, 0.1);
  --bs-modal-footer-border-color: rgba(15, 23, 42, 0.1);
  --bs-modal-footer-bg: #f8fafc;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal {
  --bs-modal-color: rgba(255, 255, 255, 0.88);
  --bs-modal-bg: #15151c;
  --bs-modal-border-color: rgba(255, 255, 255, 0.08);
  --bs-modal-header-border-color: rgba(255, 255, 255, 0.08);
  --bs-modal-footer-border-color: rgba(255, 255, 255, 0.08);
  --bs-modal-footer-bg: #121218;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal-header .modal-title,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal-body {
  color: #0f172a;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal-header .modal-title,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal-body {
  color: rgba(255, 255, 255, 0.88);
}

/* Metronic plugins.bundle: .highlight uses fixed #1e1e3f — restyle inside panel modals per theme */
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight {
  background: #12121a !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .highlight-copy {
  background-color: #e2e8f0 !important;
  color: #334155 !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .highlight-copy:hover,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .highlight-copy:focus {
  background-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .highlight-copy {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .highlight-copy:hover,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .highlight-copy:focus {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre code,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre code[class*="language-"] {
  color: #0f172a !important;
  background: transparent !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre code,
html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre code[class*="language-"] {
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent !important;
}

/* Prism / token spans if present */
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .token {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .token {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: none !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre::-webkit-scrollbar-thumb {
  background-color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] body#kt_body.app-shell-proxies .modal .highlight .highlight-code pre::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Attack panel: replace harsh red ribbon pills with muted theme-aware chips */
.app-shell-proxies .ribbon-label.prox-attack-status-badge {
  box-shadow: none !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.4rem 0.65rem !important;
  line-height: 1.2 !important;
}

.app-shell-proxies .ribbon.ribbon-end .ribbon-label.prox-attack-status-badge:after {
  display: none;
}

html[data-bs-theme="dark"] .app-shell-proxies .ribbon-label.prox-attack-status-badge--live,
html[data-bs-theme="dark"] .app-shell-proxies .ribbon-label.prox-attack-status-badge--running {
  background: rgba(0, 158, 247, 0.18) !important;
  color: #74c4f7 !important;
  border: 1px solid rgba(0, 158, 247, 0.35) !important;
}

html[data-bs-theme="light"] .app-shell-proxies .ribbon-label.prox-attack-status-badge--live,
html[data-bs-theme="light"] .app-shell-proxies .ribbon-label.prox-attack-status-badge--running {
  background: rgba(0, 158, 247, 0.1) !important;
  color: #0c4a6e !important;
  border: 1px solid rgba(0, 158, 247, 0.28) !important;
}

/* Metronic dropdowns default z-index 107; drawer overlay is 109 — bump menus only */
body#kt_body.app-shell-proxies .menu-sub-dropdown.menu.show,
body#kt_body.app-shell-proxies .menu-sub-dropdown.show[data-popper-placement],
body#kt_body.app-shell-proxies .show.menu-dropdown > .menu-sub-dropdown {
  z-index: 120 !important;
}

body#kt_body.app-shell-proxies .select2-container--open {
  z-index: 120 !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .app-breadcrumb {
  color: rgba(255, 255, 255, 0.35) !important;
  letter-spacing: 0.08em;
}

html[data-bs-theme="light"] .app-shell-proxies .app-breadcrumb {
  color: #64748b !important;
  letter-spacing: 0.08em;
}

/* ——— Cards ——— */
.app-shell-proxies .prox-card,
.app-shell-proxies .card,
.app-shell-proxies .card.card-custom {
  background: var(--prox-bg-elevated) !important;
  border: 1px solid var(--prox-border) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.app-shell-proxies .card .card-header {
  border-bottom-color: var(--prox-border) !important;
  background: transparent !important;
}

.app-shell-proxies .prox-stat-card .card-body {
  padding: 1.5rem 1.35rem !important;
  min-height: 11.5rem;
}

.app-shell-proxies .prox-stat-card .prox-stat-block {
  margin-top: 1.75rem;
  margin-bottom: 1.15rem;
}

.app-shell-proxies .prox-stat-card .prox-stat-block--plain {
  margin-bottom: 1.75rem;
}

.app-shell-proxies .prox-stat-card .fw-semibold.fs-3x {
  font-size: 1.75rem !important;
}

.app-shell-proxies .prox-stat-meta {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-gray-500);
  font-variant-numeric: tabular-nums;
}

.app-shell-proxies .prox-dash-intro-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 158, 247, 0.1);
  color: var(--prox-ui-primary);
}

.app-shell-proxies .prox-plan-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem !important;
}

.app-shell-proxies .prox-plan-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.app-shell-proxies .prox-plan-hero .card-body {
  padding-top: 1.75rem;
}

.app-shell-proxies .prox-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
}

.app-shell-proxies .prox-pill--active {
  background: var(--prox-green-soft);
  color: var(--prox-green);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-pill--muted {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--prox-border);
}

html[data-bs-theme="light"] .app-shell-proxies .prox-pill--muted {
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-bs-theme="dark"] .app-shell-proxies .btn-prox-green {
  background: rgba(90, 110, 98, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ecebe8 !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

html[data-bs-theme="dark"] .app-shell-proxies .btn-prox-green:hover {
  background: rgba(100, 120, 108, 0.65) !important;
  color: #fafaf9 !important;
}

html[data-bs-theme="light"] .app-shell-proxies .btn-prox-green {
  background: rgba(71, 85, 105, 0.12) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

html[data-bs-theme="light"] .app-shell-proxies .btn-prox-green:hover {
  background: rgba(71, 85, 105, 0.18) !important;
  color: #0f172a !important;
}

.app-shell-proxies .ribbon-label.bg-danger {
  background: var(--prox-green-soft) !important;
  color: var(--prox-green) !important;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

/* Buttons: use theme bundle defaults (.btn.btn-primary, .btn-light-primary, etc.) — no overrides */

html[data-bs-theme="dark"] .app-shell-proxies .text-gray-900 {
  color: rgba(255, 255, 255, 0.92) !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .text-gray-800 {
  color: rgba(255, 255, 255, 0.88) !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .text-muted,
html[data-bs-theme="dark"] .app-shell-proxies .text-gray-400,
html[data-bs-theme="dark"] .app-shell-proxies .text-gray-600 {
  color: rgba(255, 255, 255, 0.45) !important;
}

html[data-bs-theme="light"] .app-shell-proxies .text-gray-900 {
  color: #0f172a !important;
}

html[data-bs-theme="light"] .app-shell-proxies .text-gray-800 {
  color: #1e293b !important;
}

html[data-bs-theme="light"] .app-shell-proxies .text-muted,
html[data-bs-theme="light"] .app-shell-proxies .text-gray-400,
html[data-bs-theme="light"] .app-shell-proxies .text-gray-600 {
  color: #64748b !important;
}

.app-shell-proxies .footer {
  border-top: 1px solid var(--prox-border);
  background: transparent !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .footer .text-gray-400 {
  color: rgba(255, 255, 255, 0.35) !important;
}

html[data-bs-theme="light"] .app-shell-proxies .footer .text-gray-400 {
  color: #64748b !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-footer-pills .menu-link {
  border: 1px solid var(--prox-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55) !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-footer-pills .menu-link:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: #d4d4d8 !important;
  background: rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="light"] .app-shell-proxies .prox-footer-pills .menu-link {
  border: 1px solid var(--prox-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem !important;
  font-size: 0.75rem;
  color: #475569 !important;
  background: #ffffff;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-footer-pills .menu-link:hover {
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a !important;
  background: #f8fafc;
}

/* Store / purchase: tabs + price badges (no harsh green) */
html[data-bs-theme="dark"] .app-shell-proxies .prox-store-page .badge-light-success {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #b4b0be !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-store-page .nav-group.nav-group-outline .btn {
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-store-page .nav-group.nav-group-outline .btn.active {
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f4f4f5 !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

html[data-bs-theme="dark"] .app-shell-proxies .prox-store-page .nav-group.nav-group-outline .btn:not(.active):hover {
  color: #d4d4d8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.035);
}

html[data-bs-theme="light"] .app-shell-proxies .prox-store-page .badge-light-success {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #15803d !important;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

html[data-bs-theme="light"] .app-shell-proxies .prox-store-page .nav-group.nav-group-outline .btn {
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #475569 !important;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-store-page .nav-group.nav-group-outline .btn.active {
  border-color: rgba(0, 158, 247, 0.35) !important;
  color: #0f172a !important;
  background: rgba(0, 158, 247, 0.08) !important;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-store-page .nav-group.nav-group-outline .btn:not(.active):hover {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  background: rgba(15, 23, 42, 0.04);
}

/* Login / register */
body#kt_body.app-auth-skin #particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
}

body#kt_body.app-auth-skin > .flex-root {
  position: relative;
  z-index: 1;
}

/* Landing-like white particles over the marketing column */
.auth-marketing-column {
  position: relative;
  overflow: hidden;
}

.auth-band-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-band-particles canvas {
  display: block;
}

.auth-marketing-column > .auth-marketing-inner {
  position: relative;
  z-index: 1;
}

body#kt_body.app-auth-skin,
body#kt_body.app-auth-skin[data-bs-theme="dark"] {
  background-image: none !important;
  background: var(--prox-bg) !important;
}

.app-auth-skin .bg-body {
  background: var(--prox-bg-elevated) !important;
  border: 1px solid var(--prox-border) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.app-auth-skin .form-control.bg-transparent {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--prox-border) !important;
  color: rgba(255, 255, 255, 0.92);
}

/* Select2 inside Bootstrap modals: attach dropdown to modal + stack above dialog */
.app-shell-proxies .modal .select2-container {
  z-index: 1;
}

.app-shell-proxies .modal .select2-container--open,
.app-shell-proxies .modal .select2-dropdown {
  z-index: 3005 !important;
}

/* ——— Light theme: chrome (text utilities handled above with html[data-bs-theme=light] scope) ——— */
html[data-bs-theme="light"] body#kt_body.app-shell-proxies #kt_header .text-white,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies #kt_header .text-dark {
  color: #0f172a !important;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-brand-main {
  color: #0f172a !important;
  font-weight: 500;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-brand-sub {
  color: #0284c7 !important;
  font-weight: 500;
}

/* Headings / copy still using .text-white from Metronic templates */
html[data-bs-theme="light"] .app-shell-proxies #kt_content .text-white,
html[data-bs-theme="light"] .app-shell-proxies .content .text-white {
  color: #0f172a !important;
}

html[data-bs-theme="light"] .app-shell-proxies .btn-primary .text-white,
html[data-bs-theme="light"] .app-shell-proxies .btn.btn-primary .ki-duotone,
html[data-bs-theme="light"] .app-shell-proxies .btn.btn-success .text-white {
  color: #ffffff !important;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-card,
html[data-bs-theme="light"] .app-shell-proxies .card,
html[data-bs-theme="light"] .app-shell-proxies .card.card-custom {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
}

html[data-bs-theme="light"] .app-shell-proxies .badge-light-primary {
  background: rgba(0, 158, 247, 0.12) !important;
  color: #0369a1 !important;
  border: 1px solid rgba(0, 158, 247, 0.28);
}

html[data-bs-theme="light"] .app-shell-proxies .badge-light-success {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #15803d !important;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

html[data-bs-theme="light"] .app-shell-proxies .badge-light-warning {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

html[data-bs-theme="light"] .app-shell-proxies .nav-line-tabs .nav-link.active,
html[data-bs-theme="light"] .app-shell-proxies .nav-tabs .nav-link.active {
  color: #0f172a !important;
}

html[data-bs-theme="light"] .app-shell-proxies .footer .text-gray-400 {
  color: #64748b !important;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-footer-pills .menu-link {
  color: #475569 !important;
  background: #ffffff;
}

html[data-bs-theme="light"] .app-shell-proxies .prox-nav-badge--ext {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Signal float: above drawer/content; light mode uses explicit text (vars can stay white from bundle). */
body#kt_body.app-shell-proxies .kt-signal-float {
  z-index: 1090 !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__inner {
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__title {
  color: #0f172a !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__sub,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__hint,
html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__section-label {
  color: #64748b !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__row {
  color: #64748b !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__row strong {
  color: #009ef7 !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__section {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__track {
  background-color: #e2e8f0 !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__cta {
  color: #1e293b !important;
  background-color: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-bs-theme="light"] body#kt_body.app-shell-proxies .kt-signal-float__cta:hover {
  color: #0369a1 !important;
  background-color: #e0f2fe !important;
  border-color: rgba(0, 158, 247, 0.35) !important;
}

html[data-bs-theme="light"] body#kt_body.app-auth-skin {
  background: #e2e8f0 !important;
}

html[data-bs-theme="light"] body#kt_body.app-auth-skin .bg-body {
  background: #ffffff !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08) !important;
}

html[data-bs-theme="light"] body#kt_body.app-auth-skin .form-control.bg-transparent {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a;
}
