/**
 * VintageAuth — "Fluorite" design layer (Nov 2026).
 * Calm neutral dark UI: Inter type, compact sizing, hairline borders,
 * sectioned sidebar, breadcrumb topbar, sky-blue accent, dot status pills.
 *
 * Loaded last in app/layout.tsx so it overrides the older theme sheets.
 * REVERT: remove the va-fluorite.css <link> from app/layout.tsx.
 */

/* ───────────────────────── Tokens ───────────────────────── */
:root,
html[data-rp-theme="dark"] {
  /* Soft black — page #121212 (not void #0a0a0a) */
  --fx-bg: #121212;
  --fx-sidebar: #161616;
  --fx-surface: #1c1c1c;
  --fx-surface-2: #222222;
  --fx-surface-3: #282828;
  --fx-hover: #242424;
  --fx-border: #2e2e2e;
  --fx-border-strong: #3a3a3a;
  --fx-text: #fafafa;
  --fx-text-2: #e5e5e5;
  --fx-muted: #a3a3a3;
  --fx-dim: #737373;
  --fx-accent: #ffffff;
  --fx-accent-soft: rgba(255, 255, 255, 0.08);
  --fx-good: #22c55e;
  --fx-good-soft: rgba(34, 197, 94, 0.1);
  --fx-warn: #f59e0b;
  --fx-warn-soft: rgba(245, 158, 11, 0.1);
  --fx-bad: #ef4444;
  --fx-bad-soft: rgba(239, 68, 68, 0.1);
  --fx-btn-bg: #ffffff;
  --fx-btn-text: #0a0a0a;
  --fx-radius: 12px;
  --fx-radius-sm: 8px;
  --fx-font: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fx-money: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  --fx-mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fx-sidebar-w: 15rem;

  /* Feed the legacy variable systems so untouched components follow along */
  --va-bg: var(--fx-bg);
  --va-bg-elevated: var(--fx-surface);
  --va-surface: var(--fx-surface);
  --va-surface-2: var(--fx-surface-2);
  --va-surface-3: var(--fx-surface-3);
  --va-border: var(--fx-border);
  --va-border-soft: var(--fx-border);
  --va-text: var(--fx-text);
  --va-muted: var(--fx-muted);
  --va-muted-2: var(--fx-dim);
  --va-sidebar: var(--fx-sidebar);
  --va-radius: var(--fx-radius);
  --va-radius-lg: 12px;
  --va-font: var(--fx-font);
}

html[data-rp-theme="light"] {
  --fx-bg: #f4f4f5;
  --fx-sidebar: #ffffff;
  --fx-surface: #ffffff;
  --fx-surface-2: #f4f4f5;
  --fx-surface-3: #ececee;
  --fx-hover: #f0f0f2;
  --fx-border: #e4e4e7;
  --fx-border-strong: #d4d4d8;
  --fx-text: #09090b;
  --fx-text-2: #27272a;
  --fx-muted: #71717a;
  --fx-dim: #a1a1aa;
  --fx-accent: #09090b;
  --fx-accent-soft: rgba(9, 9, 11, 0.06);
  --fx-good: #16a34a;
  --fx-good-soft: rgba(22, 163, 74, 0.1);
  --fx-warn: #d97706;
  --fx-warn-soft: rgba(217, 119, 6, 0.1);
  --fx-bad: #dc2626;
  --fx-bad-soft: rgba(220, 38, 38, 0.1);
  --fx-btn-bg: #09090b;
  --fx-btn-text: #ffffff;

  --va-bg: var(--fx-bg);
  --va-bg-elevated: var(--fx-surface);
  --va-surface: var(--fx-surface);
  --va-surface-2: var(--fx-surface-2);
  --va-surface-3: var(--fx-surface-3);
  --va-border: var(--fx-border);
  --va-border-soft: var(--fx-border);
  --va-text: var(--fx-text);
  --va-muted: var(--fx-muted);
  --va-sidebar: var(--fx-sidebar);
}

.rp-root,
.va-shell--portal .rp-root,
html:not(#_) .rp-root.rp-monite {
  --rp-bg: var(--fx-bg);
  --rp-card: var(--fx-surface);
  --rp-card-2: var(--fx-surface-2);
  --rp-line: var(--fx-border);
  --rp-text: var(--fx-text);
  --rp-muted: var(--fx-muted);
  --rp-surface: var(--fx-surface);
  --rp-radius: var(--fx-radius);
  --rp-font: var(--fx-font);
  --rp-display: var(--fx-font);
  --rp-shadow: none;
  --rp-pro-card: var(--fx-surface);
  --rp-pro-line: var(--fx-border);
  --rp-pro-muted: var(--fx-muted);
  --rp-pro-soft: var(--fx-surface-2);
}

/* ───────────────────────── Base type ───────────────────────── */
html:not(#_) body {
  font-family: var(--fx-font) !important;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-weight: 400;
  letter-spacing: -0.006em;
  color: var(--fx-text);
  background: var(--fx-bg) !important;
}
html:not(#_) .va-shell {
  font-size: 13.5px !important;
  background: var(--fx-bg) !important;
  color: var(--fx-text);
}
html:not(#_) .va-shell,
html:not(#_) .va-shell button,
html:not(#_) .va-shell input,
html:not(#_) .va-shell select,
html:not(#_) .va-shell textarea,
html:not(#_) .va-shell h1,
html:not(#_) .va-shell h2,
html:not(#_) .va-shell h3,
html:not(#_) .va-shell h4,
html:not(#_) .rp-root,
html:not(#_) .rp-root * {
  font-family: var(--fx-font);
}
html:not(#_) .va-shell :is(h1, h2, h3, h4, p, a, button, input, select, textarea, label, td, th, strong, span, em, small, .va-nav-link, .va-brand) {
  font-family: var(--fx-font) !important;
}
html:not(#_) .va-shell :is(.lni, i[class*="lni-"]) {
  font-family: "lineicons" !important;
}
html:not(#_) .material-symbols-outlined,
html:not(#_) .va-shell .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
}
html:not(#_) .va-shell code,
html:not(#_) .va-shell kbd,
html:not(#_) .va-shell .rp-key-text,
html:not(#_) .va-shell .va-key,
html:not(#_) .va-shell .font-mono {
  font-family: var(--fx-mono) !important;
}

::selection {
  background: rgba(56, 189, 248, 0.28);
}
::-webkit-scrollbar-thumb {
  background: var(--fx-border-strong) !important;
}

/* ───────────────────────── Sidebar ───────────────────────── */
html:not(#_) #sidebar,
html:not(#_) .va-sidebar {
  --va-sidebar-bg: var(--fx-sidebar);
  width: var(--fx-sidebar-w) !important;
  background: var(--fx-sidebar) !important;
  border-right: 1px solid var(--fx-border) !important;
  box-shadow: none !important;
}
html:not(#_) .va-sidebar-top {
  padding: 0.95rem 0.75rem 0.4rem !important;
}
html:not(#_) .va-sidebar-brandrow {
  margin-bottom: 0.55rem !important;
}
html:not(#_) .va-brand {
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em !important;
  color: var(--fx-text) !important;
  gap: 0.55rem !important;
  padding: 0.2rem 0.25rem !important;
}
html:not(#_) .va-brand-mark {
  width: 1.6rem !important;
  height: 1.6rem !important;
  border-radius: 6px !important;
}
html:not(#_) .va-brand-role {
  margin: 0.15rem 0.3rem 0 !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--fx-dim) !important;
}

html:not(#_) .va-side-nav {
  padding-left: 0.6rem !important;
  padding-right: 0.6rem !important;
}
html:not(#_) .va-side-nav.space-y-2 > :not([hidden]) ~ .va-nav-link {
  margin-top: 1px !important;
}
html:not(#_) .va-side-nav .va-nav-section {
  margin: 1.1rem 0.6rem 0.35rem !important;
  padding: 0 !important;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fx-dim);
  user-select: none;
}
html:not(#_) .va-side-nav > .va-nav-section:first-child {
  margin-top: 0.6rem !important;
}

html:not(#_) .va-nav-link {
  gap: 0.65rem !important;
  padding: 0.48rem 0.65rem !important;
  margin: 0 !important;
  border-radius: var(--fx-radius-sm) !important;
  font-size: 0.86rem !important;
  font-weight: 450 !important;
  color: var(--fx-muted) !important;
  border: 1px solid transparent !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}
html:not(#_) .va-nav-link::before {
  display: none !important;
}
html:not(#_) .va-nav-link i {
  font-size: 0.95rem !important;
  width: 1.1rem !important;
  color: var(--fx-dim) !important;
}
html:not(#_) .va-nav-link:hover {
  background: var(--fx-hover) !important;
  color: var(--fx-text) !important;
}
html:not(#_) .va-nav-link:hover i {
  color: var(--fx-text-2) !important;
}
html:not(#_) .va-nav-link.active,
html:not(#_) .va-shell--portal .va-nav-link.active,
html[data-rp-theme="dark"]:not(#_) .va-shell--portal .va-nav-link.active {
  background: #101010 !important;
  border-color: #222222 !important;
  color: var(--fx-text) !important;
  font-weight: 500 !important;
}
html:not(#_) .va-nav-link.active i {
  color: var(--fx-text) !important;
}

html:not(#_) .va-side-nav-foot {
  border-top: 1px solid var(--fx-border) !important;
  background: var(--fx-sidebar) !important;
}

/* App switcher (developer sidebar) */
html:not(#_) .va-app-switcher,
html:not(#_) .va-app-select {
  background: var(--fx-surface) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: var(--fx-radius-sm) !important;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .va-app-switcher::before,
html:not(#_) .va-app-menu-item::before {
  display: none !important;
}
html:not(#_) .va-app-switcher:hover,
html:not(#_) .va-app-switcher.is-open {
  border-color: var(--fx-border-strong) !important;
  background: var(--fx-hover) !important;
}
html:not(#_) .va-app-menu {
  background: var(--fx-surface) !important;
  border-color: var(--fx-border) !important;
  border-radius: var(--fx-radius) !important;
}
html:not(#_) .va-app-menu-item {
  font-size: 0.84rem !important;
  color: var(--fx-text-2) !important;
}
html:not(#_) .va-app-menu-item:hover,
html:not(#_) .va-app-menu-item.is-selected {
  background: var(--fx-hover) !important;
  color: var(--fx-text) !important;
}

/* Sidebar user footer */
.va-sidebar-user {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fx-border);
  background: var(--fx-sidebar);
}
.va-side-nav-foot + .va-sidebar-user {
  margin-top: 0;
}
.va-sidebar-user-avatar {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--fx-surface-3);
  border: 1px solid var(--fx-border-strong);
  color: var(--fx-text-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.va-sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}
.va-sidebar-user-meta strong {
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--fx-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.va-sidebar-user-meta em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--fx-dim);
}
/* ───────────────────────── Layout / topbar ───────────────────────── */
@media (min-width: 1024px) {
  html .va-main-column {
    margin-left: var(--fx-sidebar-w) !important;
    transition: margin-left 0.2s ease;
  }
  html .va-topbar {
    left: var(--fx-sidebar-w) !important;
    transition: left 0.2s ease;
  }
  html body.va-sidebar-collapsed #sidebar {
    display: none !important;
  }
  html body.va-sidebar-collapsed .va-main-column {
    margin-left: 0 !important;
  }
  html body.va-sidebar-collapsed .va-topbar {
    left: 0 !important;
  }
}
html:not(#_) .va-main-column {
  padding-top: 3.25rem !important;
}
html:not(#_) #main-content {
  background: var(--fx-bg) !important;
}

html:not(#_) .va-topbar,
html[data-rp-theme="dark"]:not(#_) .va-topbar,
html[data-rp-theme="dark"]:not(#_) .va-shell--portal .va-topbar {
  background: color-mix(in srgb, var(--fx-bg) 88%, transparent) !important;
  border-bottom: 1px solid var(--fx-border) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}
html:not(#_) .va-topbar > div {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 3.25rem;
  display: flex;
  align-items: center;
}
html:not(#_) .va-topbar > div > div {
  width: 100%;
}

.va-topbar-collapse {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.6rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fx-muted);
  cursor: pointer;
}
@media (min-width: 1024px) {
  .va-topbar-collapse {
    display: inline-flex;
  }
}
.va-topbar-collapse svg {
  width: 1rem;
  height: 1rem;
}
.va-topbar-collapse:hover {
  background: var(--fx-hover);
  border-color: var(--fx-border);
  color: var(--fx-text);
}

.va-crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8rem;
  white-space: nowrap;
}
.va-crumb-root {
  color: var(--fx-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
.va-crumb-sep {
  color: var(--fx-dim);
  font-size: 0.85rem;
}
.va-crumb-current {
  color: var(--fx-text);
  font-weight: 500;
}
@media (max-width: 1023.98px) {
  .va-crumbs {
    margin-left: 0.6rem;
  }
  .va-crumb-root,
  .va-crumb-sep {
    display: none;
  }
}

.va-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.85rem;
  padding: 0 0.65rem;
  border-radius: 7px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  font-size: 0.74rem;
}
.va-live-pill strong {
  font-weight: 550;
  color: var(--fx-text);
}
.va-live-pill em {
  font-style: normal;
  color: var(--fx-dim);
}
.va-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--fx-good);
  box-shadow: 0 0 0 3px var(--fx-good-soft);
}
.va-topbar-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.85rem;
  padding: 0 0.7rem;
  border-radius: 7px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--fx-text);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.va-topbar-refresh svg {
  width: 0.9rem;
  height: 0.9rem;
}
.va-topbar-refresh:hover {
  background: var(--fx-hover);
  border-color: var(--fx-border-strong);
}
@media (max-width: 640px) {
  .va-live-pill em,
  .va-topbar-refresh span {
    display: none;
  }
}

html:not(#_) .va-search {
  height: 2rem !important;
  border-radius: var(--fx-radius-sm) !important;
  background: var(--fx-surface) !important;
  border: 1px solid var(--fx-border) !important;
  font-size: 0.8rem !important;
  color: var(--fx-text) !important;
}
html:not(#_) .va-search:focus {
  border-color: var(--fx-accent) !important;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}

html:not(#_) .va-menu-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: var(--fx-radius-sm) !important;
  border-color: var(--fx-border) !important;
  background: var(--fx-surface) !important;
}

/* Profile chip / menu */
html:not(#_) .va-profile-menu,
html:not(#_) .va-actions-btn + *,
html:not(#_) .rp-actions-panel {
  background: var(--fx-surface) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: var(--fx-radius) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}
html:not(#_) .va-profile-name {
  font-size: 0.84rem !important;
  font-weight: 550 !important;
}
html:not(#_) .va-profile-sub {
  font-size: 0.72rem !important;
  color: var(--fx-dim) !important;
}

html:not(#_) .va-support-tab {
  background: var(--fx-surface) !important;
  border: 1px solid var(--fx-border) !important;
  color: var(--fx-dim) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.12em !important;
  box-shadow: none !important;
}
html:not(#_) .va-support-tab:hover {
  color: var(--fx-text) !important;
}

/* ───────────────────────── Page shell ───────────────────────── */
html:not(#_) .va-page {
  max-width: 76rem !important;
  padding: 2rem 2.25rem 3rem !important;
  margin: 0 auto !important;
}
@media (max-width: 767.98px) {
  html .va-page {
    padding: 1.25rem 1rem 2.5rem !important;
  }
}

html:not(#_) .va-shell .va-page > h1,
html:not(#_) .va-shell .va-page h1.text-2xl,
html:not(#_) .rp-root .rp-toolbar h1,
html:not(#_) .rp-root h1 {
  font-size: 1.55rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
  color: var(--fx-text) !important;
  margin: 0 0 0.3rem !important;
}
html:not(#_) .rp-root .rp-toolbar {
  align-items: flex-start !important;
  margin-bottom: 1.5rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
/* Home / Keys: keep Generate Key tucked top-right (desktop + mobile) */
html:not(#_) .rp-root .rp-toolbar-actions .rp-btn-generate {
  gap: 0.4rem !important;
  white-space: nowrap !important;
  min-height: 2.35rem !important;
  padding: 0 0.95rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}
@media (max-width: 767.98px) {
  html:not(#_) .rp-root .rp-toolbar:not(:has(.rp-keys-actions)) {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar:not(:has(.rp-keys-actions)) > div:first-child {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  html:not(#_) .rp-root .rp-toolbar:not(:has(.rp-keys-actions)) .rp-toolbar-actions {
    width: auto !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  html:not(#_) .rp-root .rp-toolbar:not(:has(.rp-keys-actions)) .rp-btn-generate {
    width: auto !important;
    min-height: 2.2rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.78rem !important;
  }
}
html:not(#_) .rp-root .rp-hint,
html:not(#_) .rp-root .rp-muted,
html:not(#_) .va-shell .va-card-hint {
  color: var(--fx-muted) !important;
  font-size: 0.82rem !important;
}
html:not(#_) .rp-root .rp-toolbar .rp-hint {
  font-size: 0.85rem !important;
}
html:not(#_) .rp-root h2,
html:not(#_) .va-shell .va-card-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--fx-text) !important;
}

/* ───────────────────────── Cards ───────────────────────── */
html:not(#_) .rp-root .rp-card,
html:not(#_) .rp-root .rp-pro-panel,
html:not(#_) .rp-root .rp-table-card,
html:not(#_) .va-shell .va-card,
html:not(#_) .va-shell .va-card-soft,
html:not(#_) .va-shell .va-sr-stat-card,
html:not(#_) .va-shell .va-manage-apps-panel {
  background: var(--fx-surface) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* KPI tiles (Keys Manager + Home) */
html:not(#_) .rp-root .rp-pro-kpi {
  gap: 0.75rem !important;
  margin-bottom: 1.25rem !important;
}
html:not(#_) .rp-root .rp-pro-kpi-card,
html:not(#_) .rp-root .rp-stat,
html:not(#_) .rp-root .rp-stat--rich,
html:not(#_) .va-shell .va-stat-mini {
  min-height: 0 !important;
  padding: 1rem 1.1rem 1.05rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  gap: 0.4rem !important;
}
html:not(#_) .rp-root .rp-pro-kpi-card::before,
html:not(#_) .rp-root .rp-pro-kpi-card::after,
html:not(#_) .rp-root .rp-stat::before,
html:not(#_) .rp-root .rp-stat::after {
  display: none !important;
}
html:not(#_) .rp-root .rp-pro-kpi-label,
html:not(#_) .rp-root .rp-stat > span:first-child {
  font-size: 0.78rem !important;
  font-weight: 450 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--fx-muted) !important;
}
html:not(#_) .rp-root .rp-pro-kpi-ico {
  width: 1.75rem !important;
  height: 1.75rem !important;
  border-radius: 7px !important;
  background: transparent !important;
  border: 1px solid var(--fx-border-strong) !important;
  color: var(--fx-muted) !important;
  font-size: 0.8rem !important;
}
html:not(#_) .rp-root .rp-pro-kpi-value,
html:not(#_) .rp-root .rp-stat strong {
  font-size: 1.85rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: var(--fx-text) !important;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
html:not(#_) .rp-root .rp-pro-kpi-sub,
html:not(#_) .rp-root .rp-stat em,
html:not(#_) .rp-root .rp-stat small {
  font-size: 0.74rem !important;
  font-style: normal !important;
  color: var(--fx-dim) !important;
}
html:not(#_) .rp-root .rp-pro-spark path {
  stroke: var(--fx-accent) !important;
  opacity: 0.8;
}
html:not(#_) .rp-root .rp-trend {
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0.1rem 0.4rem !important;
}
html:not(#_) .rp-root .rp-trend.up {
  color: var(--fx-good) !important;
  background: var(--fx-good-soft) !important;
}
html:not(#_) .rp-root .rp-trend.down {
  color: var(--fx-bad) !important;
  background: var(--fx-bad-soft) !important;
}

/* Chart card */
html:not(#_) .rp-root .rp-chart-line,
html:not(#_) .rp-root .rp-chart path.rp-chart-line,
html:not(#_) .rp-root .rp-chart path[stroke]:not([stroke="none"]) {
  stroke: #ffffff !important;
}
html:not(#_) .rp-root .rp-chart-stop {
  stop-color: #ffffff !important;
}
html:not(#_) .rp-root .rp-chart-axis,
html:not(#_) .rp-root .rp-chart text {
  fill: var(--fx-dim) !important;
  color: var(--fx-dim) !important;
  font-size: 0.7rem !important;
}
html:not(#_) .rp-root .rp-chip,
html:not(#_) .va-shell .va-chip {
  border-radius: 7px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface-2) !important;
  color: var(--fx-muted) !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
}

/* ───────────────────────── Toolbar / inputs ───────────────────────── */
html:not(#_) .rp-root .rp-pro-toolbar,
html:not(#_) .rp-root .rp-table-head {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid var(--fx-border) !important;
  background: transparent !important;
  gap: 0.6rem !important;
}
html:not(#_) .rp-root .rp-pro-search,
html:not(#_) .rp-root .rp-search {
  background: var(--fx-bg) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: var(--fx-radius-sm) !important;
  height: 2.2rem !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-pro-search:focus-within,
html:not(#_) .rp-root .rp-search:focus-within {
  border-color: var(--fx-accent) !important;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}
html:not(#_) .rp-root .rp-pro-search i {
  color: var(--fx-dim) !important;
}
html:not(#_) .rp-root .rp-pro-search input,
html:not(#_) .rp-root .rp-search input {
  font-size: 0.82rem !important;
  color: var(--fx-text) !important;
  background: transparent !important;
}

html:not(#_) .rp-root input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html:not(#_) .rp-root select,
html:not(#_) .rp-root textarea,
html:not(#_) .rp-root .rp-pro-select,
html:not(#_) .va-shell .va-input,
html:not(#_) .va-shell .va-field input,
html:not(#_) .va-shell .va-field select,
html:not(#_) .va-shell .va-field textarea,
html:not(#_) .va-shell select.va-select {
  background-color: var(--fx-bg) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: var(--fx-radius-sm) !important;
  color: var(--fx-text) !important;
  font-size: 0.82rem !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-pro-search input,
html:not(#_) .rp-root .rp-search input,
html:not(#_) .rp-root .rp-input-icon input {
  border: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-input-icon {
  background: var(--fx-bg) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: var(--fx-radius-sm) !important;
}
html:not(#_) .rp-root .rp-pro-select,
html:not(#_) .va-shell select.va-select {
  height: 2.2rem !important;
  min-height: 0 !important;
  padding: 0 2rem 0 0.75rem !important;
  font-weight: 500 !important;
}
html:not(#_) .rp-root input:focus,
html:not(#_) .rp-root select:focus,
html:not(#_) .rp-root textarea:focus,
html:not(#_) .va-shell .va-input:focus,
html:not(#_) .va-shell .va-field input:focus,
html:not(#_) .va-shell .va-field select:focus,
html:not(#_) .va-shell .va-field textarea:focus {
  outline: none !important;
  border-color: var(--fx-accent) !important;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}
html:not(#_) .rp-root input::placeholder,
html:not(#_) .va-shell input::placeholder {
  color: var(--fx-dim) !important;
}
html:not(#_) .rp-root label,
html:not(#_) .va-shell .va-label,
html:not(#_) .va-shell .va-field > label {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: var(--fx-text-2) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html:not(#_) .rp-root input[type="checkbox"],
html:not(#_) .va-shell input[type="checkbox"] {
  accent-color: var(--fx-accent);
}

/* ───────────────────────── Buttons ───────────────────────── */
html:not(#_) .rp-root .rp-btn,
html:not(#_) .va-shell .va-btn {
  min-height: 2.1rem !important;
  padding: 0 0.85rem !important;
  border-radius: var(--fx-radius-sm) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  background-image: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
html:not(#_) .rp-root .rp-btn-sm {
  min-height: 2rem !important;
}
html:not(#_) .rp-root .rp-btn-primary,
html:not(#_) .rp-root .rp-btn-generate,
html:not(#_) .rp-root .rp-monite-go,
html:not(#_) .va-shell .va-btn-primary {
  background: var(--fx-btn-bg) !important;
  color: var(--fx-btn-text) !important;
  border: 1px solid var(--fx-btn-bg) !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-btn-primary:hover:not(:disabled),
html:not(#_) .rp-root .rp-btn-generate:hover:not(:disabled),
html:not(#_) .rp-root .rp-monite-go:hover:not(:disabled),
html:not(#_) .va-shell .va-btn-primary:hover:not(:disabled) {
  filter: none;
  opacity: 0.88;
}
html:not(#_) .rp-root .rp-btn-ghost,
html:not(#_) .va-shell .va-btn-secondary,
html:not(#_) .va-shell .va-btn-soft {
  background: var(--fx-surface) !important;
  color: var(--fx-text) !important;
  border: 1px solid var(--fx-border) !important;
}
html:not(#_) .rp-root .rp-btn-ghost:hover:not(:disabled),
html:not(#_) .va-shell .va-btn-secondary:hover:not(:disabled),
html:not(#_) .va-shell .va-btn-soft:hover:not(:disabled) {
  background: var(--fx-hover) !important;
  border-color: var(--fx-border-strong) !important;
}
html:not(#_) .rp-root .rp-btn-danger,
html:not(#_) .rp-root .rp-bulk-del,
html:not(#_) .va-shell .va-btn-danger,
html:not(#_) .va-shell .va-btn-danger-soft {
  background: var(--fx-bad-soft) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
html:not(#_) .rp-root .rp-btn-danger:hover:not(:disabled),
html:not(#_) .rp-root .rp-bulk-del:hover:not(:disabled),
html:not(#_) .va-shell .va-btn-danger:hover:not(:disabled),
html:not(#_) .va-shell .va-btn-danger-soft:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.18) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-btn-danger,
html[data-rp-theme="light"]:not(#_) .va-shell .va-btn-danger,
html[data-rp-theme="light"]:not(#_) .va-shell .va-btn-danger-soft {
  color: #dc2626 !important;
}

/* Row "⋯" actions trigger */
html:not(#_) .rp-root .rp-dots,
html:not(#_) .va-shell .va-actions-btn {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: var(--fx-radius-sm) !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface) !important;
  color: var(--fx-muted) !important;
}
html:not(#_) .rp-root .rp-dots:hover,
html:not(#_) .va-shell .va-actions-btn:hover {
  background: var(--fx-hover) !important;
  color: var(--fx-text) !important;
}

/* ───────────────────────── Tables ───────────────────────── */
html:not(#_) .rp-root .rp-table-wrap,
html:not(#_) .va-shell .va-table-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
html:not(#_) .rp-root .rp-table,
html:not(#_) .va-shell .va-table,
html:not(#_) .va-shell table.dataTable {
  border-collapse: collapse !important;
  font-size: 0.82rem !important;
  background: transparent !important;
}
html:not(#_) .rp-root .rp-table thead th,
html:not(#_) .va-shell .va-table thead th,
html:not(#_) .va-shell table.dataTable thead th {
  padding: 0.7rem 1rem !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--fx-dim) !important;
  background: transparent !important;
  border-bottom: 1px solid var(--fx-border) !important;
  white-space: nowrap;
}
html:not(#_) .rp-root .rp-table tbody td,
html:not(#_) .va-shell .va-table tbody td,
html:not(#_) .va-shell table.dataTable tbody td {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid var(--fx-border) !important;
  color: var(--fx-text-2) !important;
  background: transparent !important;
  vertical-align: middle;
}
html:not(#_) .rp-root .rp-table tbody tr:last-child td,
html:not(#_) .va-shell .va-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
html:not(#_) .rp-root .rp-table tbody tr,
html:not(#_) .va-shell .va-table tbody tr {
  transition: background-color 0.12s ease;
  background: transparent !important;
}
html:not(#_) .rp-root .rp-table tbody tr:hover td,
html:not(#_) .va-shell .va-table tbody tr:hover td,
html:not(#_) .va-shell table.dataTable tbody tr:hover td {
  background: var(--fx-surface-2) !important;
}
html:not(#_) .rp-root .rp-table tbody tr.rp-row-selected td {
  background: var(--fx-accent-soft) !important;
}
html:not(#_) .rp-root .rp-table td.rp-muted {
  color: var(--fx-muted) !important;
  font-size: 0.8rem !important;
}

/* Key / license string */
html:not(#_) .rp-root .rp-key-text,
html:not(#_) .rp-root .rp-key-copy {
  font-family: var(--fx-mono) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: var(--fx-text) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
html:not(#_) .rp-root .rp-key-copy:hover {
  color: var(--fx-accent) !important;
}

/* Seller cell */
html:not(#_) .rp-root .rp-avatar {
  width: 1.75rem !important;
  height: 1.75rem !important;
  border-radius: 7px !important;
  border: 1px solid var(--fx-border-strong) !important;
}
html:not(#_) .rp-root .rp-user-cell strong {
  font-size: 0.82rem !important;
  font-weight: 550 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-root .rp-pro-pkg strong {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--fx-text) !important;
}

/* Bulk bar + pager */
html:not(#_) .rp-root .rp-bulk-bar {
  padding: 0.6rem 1rem !important;
  border-bottom: 1px solid var(--fx-border) !important;
  background: transparent !important;
  font-size: 0.78rem !important;
  color: var(--fx-muted) !important;
}
html:not(#_) .rp-root .rp-pro-pager,
html:not(#_) .rp-root .rp-pager {
  padding: 0.75rem 1rem !important;
  border-top: 1px solid var(--fx-border) !important;
  font-size: 0.78rem !important;
  color: var(--fx-muted) !important;
}

/* ───────────────────────── Status pills ───────────────────────── */
html:not(#_) .rp-root .rp-pill,
html:not(#_) .va-shell .va-key-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  height: 1.4rem !important;
  padding: 0 0.5rem !important;
  border-radius: 6px !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  border: 1px solid var(--fx-border-strong) !important;
  background: var(--fx-surface-2) !important;
  color: var(--fx-text-2) !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-pill::before {
  width: 5px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: var(--fx-muted) !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-pill.used,
html:not(#_) .rp-root .rp-pill.ok,
html:not(#_) .rp-root .rp-pill.active {
  color: #4ade80 !important;
  background: var(--fx-good-soft) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
}
html:not(#_) .rp-root .rp-pill.used::before,
html:not(#_) .rp-root .rp-pill.ok::before,
html:not(#_) .rp-root .rp-pill.active::before {
  background: var(--fx-good) !important;
}
html:not(#_) .rp-root .rp-pill.unused {
  color: var(--fx-text-2) !important;
  background: var(--fx-surface-2) !important;
  border-color: var(--fx-border-strong) !important;
}
html:not(#_) .rp-root .rp-pill.unused::before {
  background: var(--fx-dim) !important;
}
html:not(#_) .rp-root .rp-pill.paused,
html:not(#_) .rp-root .rp-pill.warn {
  color: #fbbf24 !important;
  background: var(--fx-warn-soft) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
html:not(#_) .rp-root .rp-pill.paused::before,
html:not(#_) .rp-root .rp-pill.warn::before {
  background: var(--fx-warn) !important;
}
html:not(#_) .rp-root .rp-pill.banned,
html:not(#_) .rp-root .rp-pill.bad,
html:not(#_) .rp-root .rp-pill.expired {
  color: #f87171 !important;
  background: var(--fx-bad-soft) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}
html:not(#_) .rp-root .rp-pill.banned::before,
html:not(#_) .rp-root .rp-pill.bad::before,
html:not(#_) .rp-root .rp-pill.expired::before {
  background: var(--fx-bad) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.used,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.ok,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.active {
  color: #15803d !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.unused {
  color: #52525b !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.paused {
  color: #b45309 !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.banned,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.expired {
  color: #b91c1c !important;
}

/* ───────────────────────── Banners ───────────────────────── */
html:not(#_) .rp-root .rp-banner {
  border-radius: var(--fx-radius) !important;
  font-size: 0.8rem !important;
  padding: 0.6rem 0.85rem !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-banner.ok {
  background: var(--fx-good-soft) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
  color: #4ade80 !important;
}
html:not(#_) .rp-root .rp-banner.err {
  background: var(--fx-bad-soft) !important;
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
  color: #f87171 !important;
}
html:not(#_) .rp-root .rp-banner.notice {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(250, 204, 21, 0.12) !important;
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
  color: #fde68a !important;
}
html:not(#_) .rp-root .rp-notice-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
html:not(#_) .rp-root .rp-notice-title {
  margin-top: 0.35rem;
  font-weight: 700;
}

/* ───────────────────────── Modals ───────────────────────── */
html:not(#_) .rp-modal-backdrop,
html:not(#_) .va-shell .va-sr-modal,
html:not(#_) body > div[modal-backdrop] {
  background: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(4px);
}
html:not(#_) .rp-modal,
html:not(#_) .rp-modal-monite,
html:not(#_) .va-shell .va-modal-panel,
html:not(#_) .va-shell .va-sr-modal-dialog {
  background: var(--fx-surface) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
  background-image: none !important;
}
html:not(#_) .rp-modal-head {
  border-bottom: 1px solid var(--fx-border) !important;
}
html:not(#_) .rp-modal-head h2,
html:not(#_) .rp-modal-head h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
}
html:not(#_) .rp-modal-x {
  border-radius: 7px !important;
  border: 1px solid var(--fx-border) !important;
  background: transparent !important;
  color: var(--fx-muted) !important;
}
html:not(#_) .rp-modal-x:hover {
  background: var(--fx-hover) !important;
  color: var(--fx-text) !important;
}

/* Product / duration picker chips in modals */
html:not(#_) .rp-root .rp-product-pick,
html:not(#_) .rp-root .rp-duration-chip,
html:not(#_) .rp-root .rp-product-manage-row {
  border-radius: var(--fx-radius) !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-bg) !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-product-pick.is-on,
html:not(#_) .rp-root .rp-duration-chip.is-on {
  border-color: var(--fx-accent) !important;
  background: var(--fx-accent-soft) !important;
  color: var(--fx-text) !important;
  box-shadow: 0 0 0 1px var(--fx-accent) inset !important;
}
html:not(#_) .rp-root .rp-duration-chip.is-on strong,
html:not(#_) .rp-root .rp-product-pick.is-on .rp-product-pick-text strong {
  color: var(--fx-text) !important;
}
html:not(#_) .rp-root .rp-duration-chip.is-on em,
html:not(#_) .rp-root .rp-product-pick.is-on .rp-product-pick-text em {
  color: var(--fx-muted) !important;
}

/* ───────────────────────── Tabs / misc ───────────────────────── */
html:not(#_) .va-shell .va-tabs {
  border-bottom: 1px solid var(--fx-border) !important;
  gap: 0.25rem !important;
}
html:not(#_) .va-shell .va-tabs button,
html:not(#_) .va-shell .va-tabs a {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--fx-muted) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
html:not(#_) .va-shell .va-tabs .active,
html:not(#_) .va-shell .va-tabs [aria-selected="true"] {
  color: var(--fx-text) !important;
  box-shadow: inset 0 -2px 0 var(--fx-accent) !important;
}
html:not(#_) .va-shell .va-notice {
  border-radius: var(--fx-radius) !important;
  font-size: 0.8rem !important;
}

/* Custom table checkboxes */
html:not(#_) :is(.rp-bulk-select, .rp-th-check, .rp-td-check, .rp-card-check) input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  min-height: 1rem !important;
  border: 1px solid var(--fx-border-strong) !important;
  border-radius: 4px !important;
  background-color: var(--fx-bg) !important;
  box-shadow: none !important;
}
html:not(#_) :is(.rp-bulk-select, .rp-th-check, .rp-td-check, .rp-card-check) input[type="checkbox"]:hover {
  border-color: var(--fx-muted) !important;
  background-color: var(--fx-surface-2) !important;
}
html:not(#_) :is(.rp-bulk-select, .rp-th-check, .rp-td-check, .rp-card-check) input[type="checkbox"]:checked {
  border-color: var(--fx-accent) !important;
  background-color: var(--fx-accent) !important;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}

@media (max-width: 767.98px) {
  html:not(#_) .va-shell .rp-root {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html:not(#_) .va-page {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}

/* Auth pages keep Plus Jakarta — do NOT force Inter onto inputs */
html:not(#_) #vaauth,
html:not(#_) #vaauth :is(h1, h2, h3, p, a, button, label, span) {
  font-family: "Plus Jakarta Sans", var(--fx-font) !important;
}

/* ───────────────────────── Light theme polish ───────────────────────── */
html[data-rp-theme="light"] {
  --fx-bg: #f6f6f7;
  --fx-sidebar: #fbfbfb;
  --fx-surface: #ffffff;
  --fx-surface-2: #fafafa;
  --fx-surface-3: #ffffff;
  --fx-hover: #f1f1f3;
  --fx-border: #e7e7ea;
  --fx-border-strong: #d8d8dd;
  --fx-text: #0f0f11;
  --fx-text-2: #3a3a40;
  --fx-muted: #6e6e76;
  --fx-dim: #9a9aa2;
  --fx-accent: #0ea5e9;
  --fx-accent-soft: rgba(14, 165, 233, 0.1);
  --fx-shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.04), 0 1px 1px rgba(15, 15, 20, 0.02);
  --fx-shadow-md: 0 1px 3px rgba(15, 15, 20, 0.06), 0 8px 24px -12px rgba(15, 15, 20, 0.08);
}

html[data-rp-theme="light"]:not(#_) .va-shell,
html[data-rp-theme="light"]:not(#_) #main-content,
html[data-rp-theme="light"]:not(#_) body {
  background: var(--fx-bg) !important;
  color: var(--fx-text) !important;
}

/* Sidebar */
html[data-rp-theme="light"]:not(#_) #sidebar,
html[data-rp-theme="light"]:not(#_) .va-sidebar {
  background: var(--fx-sidebar) !important;
  border-right-color: var(--fx-border) !important;
}
html[data-rp-theme="light"]:not(#_) .va-brand {
  color: var(--fx-text) !important;
}
html[data-rp-theme="light"]:not(#_) .va-nav-link,
html[data-rp-theme="light"]:not(#_) #sidebar .va-nav-link {
  color: var(--fx-muted) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-rp-theme="light"]:not(#_) .va-nav-link i {
  color: var(--fx-dim) !important;
}
html[data-rp-theme="light"]:not(#_) .va-nav-link:hover,
html[data-rp-theme="light"]:not(#_) #sidebar .va-nav-link:hover {
  background: var(--fx-hover) !important;
  color: var(--fx-text) !important;
}
html[data-rp-theme="light"]:not(#_) .va-nav-link.active,
html[data-rp-theme="light"]:not(#_) #sidebar .va-nav-link.active,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-nav-link.active {
  background: #ffffff !important;
  color: var(--fx-text) !important;
  border-color: var(--fx-border) !important;
  box-shadow: var(--fx-shadow-sm) !important;
}
html[data-rp-theme="light"]:not(#_) .va-nav-link.active i {
  color: var(--fx-accent) !important;
}
html[data-rp-theme="light"]:not(#_) .va-sidebar-user {
  background: var(--fx-sidebar);
}
html[data-rp-theme="light"]:not(#_) .va-sidebar-user-avatar {
  background: #ffffff;
  box-shadow: var(--fx-shadow-sm);
}

/* Topbar */
html[data-rp-theme="light"]:not(#_) .va-topbar,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-topbar {
  background: rgba(255, 255, 255, 0.82) !important;
  border-bottom-color: var(--fx-border) !important;
}
html[data-rp-theme="light"] .va-live-pill,
html[data-rp-theme="light"] .va-topbar-refresh {
  background: #ffffff;
  box-shadow: var(--fx-shadow-sm);
}

/* Cards get a soft lift instead of relying on borders alone */
html[data-rp-theme="light"]:not(#_) .rp-root .rp-card,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pro-panel,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-table-card,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pro-kpi-card,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-stat,
html[data-rp-theme="light"]:not(#_) .va-shell .va-card,
html[data-rp-theme="light"]:not(#_) .va-shell .va-card-soft,
html[data-rp-theme="light"]:not(#_) .va-shell .va-manage-apps-panel {
  background: #ffffff !important;
  border-color: var(--fx-border) !important;
  box-shadow: var(--fx-shadow-md) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pro-kpi-ico {
  background: var(--fx-surface-2) !important;
  border-color: var(--fx-border) !important;
  color: var(--fx-text-2) !important;
}

/* Inputs: white fields on white cards, defined by border */
html[data-rp-theme="light"]:not(#_) .rp-root input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-rp-theme="light"]:not(#_) .rp-root select,
html[data-rp-theme="light"]:not(#_) .rp-root textarea,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pro-select,
html[data-rp-theme="light"]:not(#_) .va-shell .va-input,
html[data-rp-theme="light"]:not(#_) .va-shell .va-field input,
html[data-rp-theme="light"]:not(#_) .va-shell .va-field select,
html[data-rp-theme="light"]:not(#_) .va-shell .va-field textarea,
html[data-rp-theme="light"]:not(#_) .va-shell select.va-select,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pro-search,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-search,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-input-icon {
  background-color: #ffffff !important;
  border-color: var(--fx-border-strong) !important;
  color: var(--fx-text) !important;
  box-shadow: var(--fx-shadow-sm) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pro-search input,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-search input,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-input-icon input {
  background-color: transparent !important;
  box-shadow: none !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pro-search:focus-within,
html[data-rp-theme="light"]:not(#_) .rp-root input:focus,
html[data-rp-theme="light"]:not(#_) .rp-root select:focus {
  border-color: var(--fx-accent) !important;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}

/* Buttons — white/black primary (not accent blue) */
html[data-rp-theme="light"]:not(#_) .rp-root .rp-btn-primary,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-btn-generate,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-monite-go,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-btn.rp-btn-primary.rp-btn-sm,
html[data-rp-theme="light"]:not(#_) .va-shell .va-btn-primary {
  background: #111113 !important;
  border-color: #111113 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-btn-ghost,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-dots,
html[data-rp-theme="light"]:not(#_) .va-shell .va-btn-secondary,
html[data-rp-theme="light"]:not(#_) .va-shell .va-actions-btn {
  background: #ffffff !important;
  border-color: var(--fx-border-strong) !important;
  color: var(--fx-text-2) !important;
  box-shadow: var(--fx-shadow-sm) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-btn-ghost:hover:not(:disabled),
html[data-rp-theme="light"]:not(#_) .rp-root .rp-dots:hover {
  background: var(--fx-hover) !important;
}

/* Tables */
html[data-rp-theme="light"]:not(#_) .rp-root .rp-table thead th,
html[data-rp-theme="light"]:not(#_) .va-shell .va-table thead th {
  background: var(--fx-surface-2) !important;
  color: var(--fx-muted) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-table tbody td,
html[data-rp-theme="light"]:not(#_) .va-shell .va-table tbody td {
  color: var(--fx-text-2) !important;
  border-bottom-color: #efeff1 !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-table tbody tr:hover td,
html[data-rp-theme="light"]:not(#_) .va-shell .va-table tbody tr:hover td {
  background: #fafafb !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-key-text,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-key-copy {
  color: var(--fx-text) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill {
  background: var(--fx-surface-2) !important;
  border-color: var(--fx-border) !important;
  color: var(--fx-text-2) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.used,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.ok,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.active {
  background: #ecfdf3 !important;
  border-color: #c6f0d6 !important;
  color: #15803d !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.unused {
  background: #f0f9ff !important;
  border-color: #c7e8fb !important;
  color: #0369a1 !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.paused,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.warn {
  background: #fffbeb !important;
  border-color: #fde7b0 !important;
  color: #b45309 !important;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.banned,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.bad,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.expired {
  background: #fef2f2 !important;
  border-color: #fbd0d0 !important;
  color: #b91c1c !important;
}
html[data-rp-theme="light"]:not(#_) :is(.rp-bulk-select, .rp-th-check, .rp-td-check, .rp-card-check) input[type="checkbox"] {
  background-color: #ffffff !important;
}
html[data-rp-theme="light"]:not(#_) :is(.rp-bulk-select, .rp-th-check, .rp-td-check, .rp-card-check) input[type="checkbox"]:checked {
  background-color: var(--fx-accent) !important;
}

/* Modals & menus */
html[data-rp-theme="light"]:not(#_) .rp-modal-backdrop {
  background: rgba(15, 15, 20, 0.28) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-modal,
html[data-rp-theme="light"]:not(#_) .rp-modal-monite,
html[data-rp-theme="light"]:not(#_) .va-shell .va-modal-panel,
html[data-rp-theme="light"]:not(#_) .va-profile-menu,
html[data-rp-theme="light"]:not(#_) .rp-actions-panel {
  background: #ffffff !important;
  box-shadow: 0 24px 60px -12px rgba(15, 15, 20, 0.22) !important;
}
html[data-rp-theme="light"]:not(#_) .va-support-tab {
  background: #ffffff !important;
  box-shadow: var(--fx-shadow-sm) !important;
}

/* ───────────────────────── Sizing v2: larger type, full-width content ───────────────────────── */
/* Scale the whole panel up on large monitors (rem-based sizes follow). */
@media (min-width: 1900px) {
  html.va-shell-ready { font-size: 16.5px; }
}
@media (min-width: 2400px) {
  html.va-shell-ready { font-size: 17.5px; }
}

:root,
html[data-rp-theme] { --fx-sidebar-w: 15.5rem; }

html:not(#_) .va-shell { font-size: 0.9rem !important; }

html:not(#_) .va-page {
  max-width: 92rem !important;
  padding: 1.75rem clamp(1.25rem, 2.2vw, 2.5rem) 2.75rem !important;
}

/* Sidebar */
html:not(#_) .va-brand { font-size: 1rem !important; }
html:not(#_) .va-brand-mark { width: 1.7rem !important; height: 1.7rem !important; }
html:not(#_) .va-brand-role { font-size: 0.72rem !important; }
html:not(#_) .va-side-nav .va-nav-section { font-size: 0.72rem; }
html:not(#_) .va-nav-link {
  font-size: 0.9rem !important;
  padding: 0.52rem 0.7rem !important;
  gap: 0.7rem !important;
}
html:not(#_) .va-nav-link i { font-size: 1rem !important; width: 1.15rem !important; }
html:not(#_) .va-sidebar-user-avatar { width: 1.95rem; height: 1.95rem; font-size: 0.72rem; }
html:not(#_) .va-sidebar-user-meta strong { font-size: 0.84rem; }
html:not(#_) .va-sidebar-user-meta em { font-size: 0.72rem; }

/* Topbar */
html:not(#_) .va-main-column { padding-top: 3.4rem !important; }
html:not(#_) .va-topbar > div { height: 3.4rem; }
html:not(#_) .va-crumbs { font-size: 0.85rem; }
html:not(#_) .va-live-pill,
html:not(#_) .va-topbar-refresh { height: 1.95rem; font-size: 0.8rem; }
html:not(#_) .va-topbar-collapse { width: 1.95rem; height: 1.95rem; }

/* Headings */
html:not(#_) .va-shell .va-page > h1,
html:not(#_) .va-shell .va-page h1.text-2xl,
html:not(#_) .rp-root .rp-toolbar h1,
html:not(#_) .rp-root h1 { font-size: 1.7rem !important; }
html:not(#_) .rp-root .rp-toolbar .rp-hint { font-size: 0.88rem !important; }
html:not(#_) .rp-root .rp-hint,
html:not(#_) .rp-root .rp-muted,
html:not(#_) .va-shell .va-card-hint { font-size: 0.84rem !important; }
html:not(#_) .rp-root h2,
html:not(#_) .va-shell .va-card-title { font-size: 1rem !important; }

/* KPI / stat cards */
html:not(#_) .rp-root .rp-pro-kpi { gap: 0.85rem !important; margin-bottom: 1.25rem !important; }
html:not(#_) .rp-root .rp-pro-kpi-card,
html:not(#_) .rp-root .rp-stat,
html:not(#_) .rp-root .rp-stat--rich,
html:not(#_) .va-shell .va-stat-mini { padding: 1.05rem 1.2rem 1.1rem !important; }
html:not(#_) .rp-root .rp-pro-kpi-label,
html:not(#_) .rp-root .rp-stat > span:first-child { font-size: 0.84rem !important; }
html:not(#_) .rp-root .rp-pro-kpi-ico { width: 1.9rem !important; height: 1.9rem !important; font-size: 0.85rem !important; }
html:not(#_) .rp-root .rp-pro-kpi-value,
html:not(#_) .rp-root .rp-stat strong { font-size: 1.95rem !important; }
html:not(#_) .rp-root .rp-pro-kpi-sub,
html:not(#_) .rp-root .rp-stat em,
html:not(#_) .rp-root .rp-stat small { font-size: 0.77rem !important; }

/* Toolbar, inputs, buttons */
html:not(#_) .rp-root .rp-pro-toolbar,
html:not(#_) .rp-root .rp-table-head { padding: 0.9rem 1.1rem !important; }
html:not(#_) .rp-root .rp-pro-search,
html:not(#_) .rp-root .rp-search { height: 2.35rem !important; min-width: min(24rem, 100%); }
html:not(#_) .rp-root .rp-pro-search input,
html:not(#_) .rp-root .rp-search input,
html:not(#_) .rp-root input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html:not(#_) .rp-root select,
html:not(#_) .rp-root textarea,
html:not(#_) .rp-root .rp-pro-select,
html:not(#_) .va-shell .va-input,
html:not(#_) .va-shell .va-field input,
html:not(#_) .va-shell .va-field select,
html:not(#_) .va-shell .va-field textarea,
html:not(#_) .va-shell select.va-select { font-size: 0.86rem !important; }
html:not(#_) .rp-root .rp-pro-select,
html:not(#_) .va-shell select.va-select { height: 2.35rem !important; }
html:not(#_) .rp-root .rp-btn,
html:not(#_) .va-shell .va-btn { min-height: 2.3rem !important; font-size: 0.85rem !important; padding: 0.35rem 0.95rem !important; }
html:not(#_) .rp-root .rp-btn-sm { min-height: 2.2rem !important; }
html:not(#_) .rp-root label,
html:not(#_) .va-shell .va-label,
html:not(#_) .va-shell .va-field > label { font-size: 0.82rem !important; }
html:not(#_) .rp-root .rp-dots,
html:not(#_) .va-shell .va-actions-btn { width: 2.1rem !important; height: 2.1rem !important; }

/* Tables */
html:not(#_) .rp-root .rp-table,
html:not(#_) .va-shell .va-table,
html:not(#_) .va-shell table.dataTable { font-size: 0.86rem !important; width: 100% !important; }
html:not(#_) .rp-root .rp-table thead th,
html:not(#_) .va-shell .va-table thead th,
html:not(#_) .va-shell table.dataTable thead th { font-size: 0.78rem !important; padding: 0.75rem 1.1rem !important; }
html:not(#_) .rp-root .rp-table tbody td,
html:not(#_) .va-shell .va-table tbody td,
html:not(#_) .va-shell table.dataTable tbody td { padding: 0.85rem 1.1rem !important; }
html:not(#_) .rp-root .rp-table td.rp-muted { font-size: 0.84rem !important; }
html:not(#_) .rp-root .rp-key-text,
html:not(#_) .rp-root .rp-key-copy { font-size: 0.82rem !important; }
html:not(#_) .rp-root .rp-avatar { width: 1.85rem !important; height: 1.85rem !important; }
html:not(#_) .rp-root .rp-user-cell strong,
html:not(#_) .rp-root .rp-pro-pkg strong { font-size: 0.86rem !important; }
html:not(#_) .rp-root .rp-pill,
html:not(#_) .va-shell .va-key-status { height: 1.5rem !important; font-size: 0.74rem !important; padding: 0 0.55rem !important; }
html:not(#_) .rp-root .rp-bulk-bar,
html:not(#_) .rp-root .rp-pro-pager,
html:not(#_) .rp-root .rp-pager { font-size: 0.82rem !important; padding: 0.7rem 1.1rem !important; }
html:not(#_) :is(.rp-bulk-select, .rp-th-check, .rp-td-check, .rp-card-check) input[type="checkbox"] {
  width: 1.05rem !important; height: 1.05rem !important; min-width: 1.05rem !important; min-height: 1.05rem !important;
}

/* Modals */
html:not(#_) .rp-modal-head h2,
html:not(#_) .rp-modal-head h3 { font-size: 1.08rem !important; }

@media (max-width: 1500px) {
  html:not(#_) .rp-root .rp-table thead th,
  html:not(#_) .va-shell .va-table thead th { padding: 0.75rem 0.7rem !important; }
  html:not(#_) .rp-root .rp-table tbody td,
  html:not(#_) .va-shell .va-table tbody td { padding: 0.85rem 0.7rem !important; }
  html:not(#_) .rp-root .rp-table,
  html:not(#_) .va-shell .va-table { font-size: 0.86rem !important; }
  html:not(#_) .rp-root .rp-table td.rp-muted { font-size: 0.84rem !important; }
  html:not(#_) .rp-root .rp-key-text,
  html:not(#_) .rp-root .rp-key-copy { font-size: 0.82rem !important; }
}

/* ───────────────────────── Mobile & tablet ───────────────────────── */
@media (max-width: 1023.98px) {
  html:not(#_) .va-main-column { padding-top: 3.4rem !important; }
  html:not(#_) .va-topbar > div { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  html:not(#_) .va-page { padding: 1.25rem 1rem 2.5rem !important; }
  /* Drawer: full height column so the user footer stays reachable */
  html:not(#_) #sidebar.is-open,
  html:not(#_) .va-sidebar.is-open { width: min(17rem, 86vw) !important; }
}

@media (max-width: 640px) {
  .va-crumbs,
  .va-live-pill {
    display: none !important;
  }
  .va-topbar-refresh {
    width: 2.1rem;
    padding: 0 !important;
    justify-content: center;
  }
  html:not(#_) .va-page { padding: 1rem 0.75rem 2.25rem !important; }

  html:not(#_) .va-shell .va-page > h1,
  html:not(#_) .va-shell .va-page h1.text-2xl,
  html:not(#_) .rp-root .rp-toolbar h1,
  html:not(#_) .rp-root h1 { font-size: 1.4rem !important; }
  html:not(#_) .rp-root .rp-toolbar { gap: 0.75rem !important; margin-bottom: 1rem !important; }
  html:not(#_) .rp-root .rp-toolbar .rp-hint { font-size: 0.82rem !important; }

  html:not(#_) .rp-root .rp-pro-kpi { gap: 0.6rem !important; }
  html:not(#_) .rp-root .rp-pro-kpi-card,
  html:not(#_) .rp-root .rp-stat,
  html:not(#_) .rp-root .rp-stat--rich { padding: 0.85rem 0.9rem 0.9rem !important; }
  html:not(#_) .rp-root .rp-pro-kpi-value,
  html:not(#_) .rp-root .rp-stat strong { font-size: 1.5rem !important; }
  html:not(#_) .rp-root .rp-pro-kpi-label,
  html:not(#_) .rp-root .rp-stat > span:first-child { font-size: 0.78rem !important; }
  html:not(#_) .rp-root .rp-pro-spark { display: none; }

  html:not(#_) .rp-root .rp-pro-toolbar,
  html:not(#_) .rp-root .rp-table-head { padding: 0.75rem !important; }
  html:not(#_) .rp-root .rp-pro-search,
  html:not(#_) .rp-root .rp-search { min-width: 0 !important; width: 100%; }
  html:not(#_) .rp-root .rp-pro-filters {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
    margin-left: 0 !important;
  }
  html:not(#_) .rp-root .rp-pro-filters .rp-pro-select { width: 100% !important; min-width: 0 !important; }
  html:not(#_) .rp-root .rp-pro-filters .rp-pro-search-btn { grid-column: 1 / -1; width: 100%; }

  html:not(#_) .rp-root .rp-table thead th,
  html:not(#_) .va-shell .va-table thead th { padding: 0.65rem 0.6rem !important; font-size: 0.74rem !important; }
  html:not(#_) .rp-root .rp-table tbody td,
  html:not(#_) .va-shell .va-table tbody td { padding: 0.75rem 0.6rem !important; font-size: 0.84rem !important; }
  html:not(#_) .rp-root .rp-bulk-bar,
  html:not(#_) .rp-root .rp-pro-pager,
  html:not(#_) .rp-root .rp-pager { padding: 0.65rem 0.75rem !important; }

  html:not(#_) .rp-modal,
  html:not(#_) .rp-modal-monite,
  html:not(#_) .va-shell .va-modal-panel { border-radius: 14px !important; max-width: calc(100vw - 1.25rem) !important; }
}

/* ───────────────────────── Key status colours ─────────────────────────
   Unused / Unlinked → grey · Used → green · Banned / Expired / Deleted → red · Paused → amber */
html:not(#_) .rp-pill.unused,
html:not(#_) .rp-root .rp-pill.unused {
  color: var(--fx-text-2) !important;
  background: var(--fx-surface-2) !important;
  border-color: var(--fx-border-strong) !important;
}
html:not(#_) .rp-pill.unused::before,
html:not(#_) .rp-root .rp-pill.unused::before {
  background: var(--fx-dim) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-pill.unused,
html[data-rp-theme="light"]:not(#_) .rp-root .rp-pill.unused {
  color: #52525b !important;
  background: #f4f4f5 !important;
  border-color: #e4e4e7 !important;
}

/* ───────────────────────── Avatars: clean circles ───────────────────────── */
html:not(#_) .rp-avatar,
html:not(#_) .rp-root .rp-avatar,
html:not(#_) .rp-resellers-table .rp-avatar {
  border-radius: 999px !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-avatar {
  box-shadow: 0 0 0 1px rgba(15, 15, 20, 0.08) !important;
}
html:not(#_) .va-avatar,
html:not(#_) .va-shell--portal .va-avatar {
  border: 0 !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px var(--fx-border-strong) !important;
}
html:not(#_) .va-avatar img {
  border-radius: 999px;
  object-fit: cover;
}
html:not(#_) img.va-sidebar-user-avatar {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 0 0 1px var(--fx-border-strong);
}

/* ───────────────────────── Sidebar Log Out ───────────────────────── */
html:not(#_) .va-side-nav .va-nav-logout {
  margin-top: 0.25rem !important;
}
html:not(#_) .va-side-nav .va-nav-logout:hover {
  color: #f87171 !important;
  background: var(--fx-bad-soft) !important;
}
html:not(#_) .va-side-nav .va-nav-logout:hover i {
  color: #f87171 !important;
}

/* ───────────────────────── Modals (portaled to <body>, outside .rp-root) ───────────────────────── */
html:not(#_) .rp-modal,
html:not(#_) .rp-modal.rp-modal-monite,
html:not(#_) .rp-modal.rp-create-modal {
  background: var(--fx-surface) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: 16px !important;
  color: var(--fx-text) !important;
  font-family: var(--fx-font) !important;
}
html:not(#_) .rp-modal * {
  font-family: var(--fx-font);
}
html:not(#_) .rp-modal .lni {
  font-family: "lineicons" !important;
}
html:not(#_) .rp-modal .rp-modal-head h2 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-modal .rp-modal-head .rp-hint,
html:not(#_) .rp-modal .rp-hint {
  font-size: 0.8rem !important;
  color: var(--fx-muted) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html:not(#_) .rp-modal .rp-create-badge {
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 10px !important;
  background: var(--fx-surface-2) !important;
  border: 1px solid var(--fx-border) !important;
  color: var(--fx-text-2) !important;
  box-shadow: none !important;
}

/* Field labels */
html:not(#_) .rp-modal .rp-monite-field > span,
html:not(#_) .rp-modal .rp-monite-field > label,
html:not(#_) .rp-modal .rp-balance-field-label {
  font-size: 0.82rem !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--fx-text-2) !important;
  font-family: var(--fx-font) !important;
}

/* Inputs */
html:not(#_) .rp-modal .rp-input-icon {
  min-height: 2.6rem;
  background: var(--fx-bg) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html:not(#_) .rp-modal .rp-input-icon:focus-within {
  border-color: var(--fx-accent) !important;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}
html:not(#_) .rp-modal .rp-input-icon > i,
html:not(#_) .rp-modal .rp-money-prefix {
  color: var(--fx-dim) !important;
}
html:not(#_) .rp-modal .rp-input-icon input,
html:not(#_) .rp-modal input:not([type="checkbox"]):not([type="radio"]) {
  font-size: 0.9rem !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-modal .rp-input-icon input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html:not(#_) .rp-modal input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
html:not(#_) .rp-modal .rp-pass-toggle {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--fx-muted) !important;
  background: var(--fx-surface-2) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: 7px !important;
}

/* Product add/remove rows */
html:not(#_) .rp-modal .rp-product-manage-row {
  border-radius: 10px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-bg) !important;
  box-shadow: none !important;
  padding: 0.7rem 0.8rem !important;
}
html:not(#_) .rp-modal .rp-product-manage-row.is-on {
  border-color: rgba(34, 197, 94, 0.4) !important;
  background: var(--fx-good-soft) !important;
  box-shadow: inset 3px 0 0 var(--fx-good) !important;
}
html:not(#_) .rp-modal .rp-product-manage-info strong {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-modal .rp-product-manage-info em {
  font-size: 0.76rem !important;
  color: var(--fx-muted) !important;
}
html:not(#_) .rp-modal .rp-product-manage-row.is-on .rp-product-manage-info em {
  color: #4ade80 !important;
}
html:not(#_) .rp-modal .rp-product-manage-btn {
  min-height: 2rem !important;
  padding: 0 0.9rem !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 550 !important;
}
html:not(#_) .rp-modal .rp-product-manage-btn.is-add {
  background: var(--fx-surface-2) !important;
  border: 1px solid var(--fx-border-strong) !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-modal .rp-product-manage-btn.is-remove {
  background: var(--fx-bad-soft) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
}

/* Starting balance */
html:not(#_) .rp-modal .rp-balance-stack {
  gap: 0.85rem !important;
  padding: 0.9rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface-2) !important;
}
html:not(#_) .rp-modal .rp-balance-unified {
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.7rem 0.8rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-bg) !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
html:not(#_) .rp-modal .rp-balance-unified:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.45) !important;
  background: var(--fx-accent-soft) !important;
}
html:not(#_) .rp-modal .rp-balance-unified > span {
  order: 1;
  flex: 1;
  min-width: 0;
}
html:not(#_) .rp-modal .rp-balance-unified strong {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-modal .rp-balance-unified em {
  font-size: 0.76rem !important;
  color: var(--fx-muted) !important;
}
/* Native checkbox → toggle switch */
html:not(#_) .rp-modal .rp-balance-unified input[type="checkbox"] {
  order: 2;
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto;
  width: 2.4rem !important;
  min-width: 2.4rem !important;
  height: 1.35rem !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid var(--fx-border-strong) !important;
  background-color: var(--fx-surface-3) !important;
  background-image: radial-gradient(circle at center, #ffffff 0 0.42rem, transparent 0.45rem) !important;
  background-size: 1.35rem 1.35rem !important;
  background-repeat: no-repeat !important;
  background-position: left -1px center !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.18s ease, background-position 0.18s ease, border-color 0.18s ease;
}
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-balance-unified input[type="checkbox"] {
  background-color: #e4e4e7 !important;
}
html:not(#_) .rp-modal .rp-balance-unified input[type="checkbox"]:checked {
  background-color: var(--fx-accent) !important;
  border-color: var(--fx-accent) !important;
  background-position: right -1px center !important;
}
html:not(#_) .rp-modal .rp-balance-unified input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}

html:not(#_) .rp-modal .rp-create-balance {
  gap: 0.45rem !important;
}
html:not(#_) .rp-modal .rp-balance-chips {
  gap: 0.4rem !important;
}
html:not(#_) .rp-modal .rp-balance-chips button {
  min-height: 1.85rem;
  padding: 0 0.7rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-bg) !important;
  color: var(--fx-text-2) !important;
  font-size: 0.78rem !important;
  font-weight: 550 !important;
  box-shadow: none !important;
}
html:not(#_) .rp-modal .rp-balance-chips button:hover:not(:disabled) {
  border-color: var(--fx-border-strong) !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-modal .rp-balance-chips button.on {
  background: var(--fx-accent-soft) !important;
  border-color: var(--fx-accent) !important;
  color: var(--fx-text) !important;
}

/* Sticky footer so "Create reseller" never scrolls out of view */
html:not(#_) .rp-modal .rp-create-foot {
  position: sticky;
  bottom: -1.25rem;
  z-index: 3;
  margin: 0.5rem -1.25rem -1.25rem !important;
  padding: 0.9rem 1.25rem 1.1rem !important;
  background: var(--fx-surface) !important;
  border-top: 1px solid var(--fx-border);
}
html:not(#_) .rp-modal .rp-create-foot .rp-btn {
  min-height: 2.6rem !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}
html:not(#_) .rp-modal .rp-btn-primary {
  background: var(--fx-btn-bg) !important;
  color: var(--fx-btn-text) !important;
  border: 1px solid var(--fx-btn-bg) !important;
}
html:not(#_) .rp-modal .rp-btn-ghost {
  background: var(--fx-surface) !important;
  color: var(--fx-text) !important;
  border: 1px solid var(--fx-border-strong) !important;
}
html:not(#_) .rp-modal .rp-btn-ghost:hover:not(:disabled) {
  background: var(--fx-hover) !important;
}
@media (max-width: 640px) {
  html:not(#_) .rp-modal .rp-balance-stack {
    grid-template-columns: 1fr !important;
  }
}
html:not(#_) .rp-modal.rp-create-modal {
  padding: 1.25rem !important;
  max-height: min(92dvh, 960px) !important;
  overscroll-behavior: contain;
}
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-input-icon,
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-balance-unified:not(:has(input:checked)),
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-product-manage-row:not(.is-on),
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-balance-chips button:not(.on) {
  background: #ffffff !important;
}

/* ───────────────────────── Polish pass ───────────────────────── */

/* Search: one focus ring on the wrapper, none on the inner input */
html:not(#_) .rp-root .rp-pro-search input:focus,
html:not(#_) .rp-root .rp-search input:focus,
html:not(#_) .rp-root .rp-input-icon input:focus,
html:not(#_) .rp-modal .rp-input-icon input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Custom dropdowns (filters + modals) */
html:not(#_) .rp-pro-select-wrap {
  min-width: 9.5rem;
}
html:not(#_) .rp-bw-select {
  width: 100%;
}
html:not(#_) .rp-bw-select-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.6rem !important;
  width: 100% !important;
  min-height: 2.35rem !important;
  padding: 0 0.8rem !important;
  border-radius: var(--fx-radius-sm) !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-bg) !important;
  color: var(--fx-text) !important;
  font-family: var(--fx-font) !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html:not(#_) .rp-bw-select-trigger:hover {
  border-color: var(--fx-border-strong) !important;
}
html:not(#_) .rp-bw-select.is-open .rp-bw-select-trigger,
html:not(#_) .rp-bw-select-trigger:focus-visible {
  outline: none !important;
  border-color: var(--fx-accent) !important;
  box-shadow: 0 0 0 3px var(--fx-accent-soft) !important;
}
html:not(#_) .rp-bw-select-trigger > .lni {
  font-size: 0.7rem !important;
  color: var(--fx-dim) !important;
}
html:not(#_) .rp-bw-select-placeholder {
  color: var(--fx-dim) !important;
}
html:not(#_) .rp-modal .rp-bw-select-trigger {
  min-height: 2.6rem !important;
  border-radius: 10px !important;
}
html:not(#_) .rp-bw-select-menu,
html:not(#_) .rp-bw-select-menu--portal {
  padding: 0.3rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--fx-border-strong) !important;
  background: var(--fx-surface) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
  min-width: 10rem;
}
html:not(#_) .rp-bw-select-menu--portal {
  z-index: 200200 !important;
}
html:not(#_) .rp-bw-select-option {
  padding: 0.5rem 0.65rem !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--fx-text-2) !important;
  font-family: var(--fx-font) !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html:not(#_) .rp-bw-select-option:hover,
html:not(#_) .rp-bw-select-option:focus-visible {
  background: var(--fx-hover) !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-bw-select-option.is-on {
  background: var(--fx-accent-soft) !important;
  color: var(--fx-text) !important;
  box-shadow: inset 2px 0 0 var(--fx-accent) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-bw-select-trigger {
  background: #ffffff !important;
  border-color: var(--fx-border-strong) !important;
  box-shadow: var(--fx-shadow-sm) !important;
}
html[data-rp-theme="light"]:not(#_) .rp-bw-select-menu,
html[data-rp-theme="light"]:not(#_) .rp-bw-select-menu--portal {
  background: #ffffff !important;
  box-shadow: 0 16px 40px -8px rgba(15, 15, 20, 0.18) !important;
}

/* Native selects that remain elsewhere: dark popup list */
html[data-rp-theme="dark"] select,
html:not([data-rp-theme]) select {
  color-scheme: dark;
}
html:not(#_) select option {
  background: var(--fx-surface);
  color: var(--fx-text);
}

/* Sidebar footer: keep tidy even with an older cached page shell */
html:not(#_) .va-sidebar-user {
  min-height: 3.4rem;
}
html:not(#_) .va-sidebar-user .va-sidebar-logout {
  width: auto !important;
  flex-shrink: 0;
  padding: 0.4rem !important;
  margin: 0 !important;
}
html:not(#_) .va-sidebar-user .va-sidebar-logout span {
  display: none !important;
}
html:not(#_) .va-sidebar-user-meta {
  overflow: hidden;
}
html:not(#_) .va-sidebar-user-meta strong,
html:not(#_) .va-sidebar-user-meta em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SUPPORT tab: slimmer, and keep content clear of it */
html:not(#_) .va-support-tab {
  width: 1.35rem !important;
  padding: 0.7rem 0 !important;
  font-size: 0.55rem !important;
  border-right: 0 !important;
  border-radius: 8px 0 0 8px !important;
  opacity: 0.75;
}
html:not(#_) .va-support-tab:hover {
  opacity: 1;
}
@media (min-width: 1024px) {
  html:not(#_) .va-page {
    padding-right: max(2.25rem, clamp(1.25rem, 2.2vw, 2.5rem)) !important;
  }
}

/* Mobile filter grid now wraps custom dropdowns */
@media (max-width: 640px) {
  html:not(#_) .rp-pro-select-wrap {
    min-width: 0;
  }
}

/* ───────────────────────── Sidebar polish ───────────────────────── */
html:not(#_) .va-sidebar-top {
  padding: 0 0.75rem 0.35rem !important;
}
html:not(#_) .va-sidebar-brandrow {
  display: flex !important;
  align-items: center !important;
  height: 3.4rem;
  margin: 0 -0.75rem 0.85rem !important;
  padding: 0 1rem !important;
  border-bottom: 1px solid var(--fx-border);
}
html:not(#_) .va-brand {
  padding: 0 !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}
html:not(#_) .va-brand-role {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem !important;
  padding: 0.5rem 0.7rem !important;
  border: 1px solid var(--fx-border);
  border-radius: 9px;
  background: var(--fx-surface);
  font-size: 0.76rem !important;
  font-weight: 550 !important;
  color: var(--fx-text-2) !important;
}
html:not(#_) .va-brand-role::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fx-ok, #22c55e);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
html:not(#_) .va-nav-section {
  margin: 1.1rem 0.7rem 0.35rem !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--fx-dim) !important;
}
html:not(#_) .va-side-nav > .va-nav-section:first-child {
  margin-top: 0.6rem !important;
}
html:not(#_) .va-side-nav .va-nav-link {
  min-height: 2.35rem;
}
html:not(#_) .va-side-nav .va-nav-link i,
html:not(#_) .va-side-nav .va-nav-link svg {
  width: 1.1rem;
  font-size: 1rem !important;
  text-align: center;
  color: var(--fx-dim);
}
html:not(#_) .va-side-nav .va-nav-link.active i,
html:not(#_) .va-side-nav .va-nav-link:hover i {
  color: var(--fx-text) !important;
}
html:not(#_) .va-side-nav .va-nav-logout {
  position: relative;
  margin-top: 0.9rem !important;
}
html:not(#_) .va-side-nav .va-nav-logout::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: -0.5rem;
  height: 1px;
  background: var(--fx-border);
  pointer-events: none;
}
html[data-rp-theme="light"]:not(#_) .va-brand-role {
  background: #ffffff;
  box-shadow: var(--fx-shadow-sm);
}

/* ───────────────────────── Row "Manage" button ───────────────────────── */
html:not(#_) .va-shell .va-actions-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  width: auto !important;
  min-width: 0 !important;
  height: 2rem !important;
  padding: 0 0.7rem !important;
  white-space: nowrap !important;
  font-size: 0.8rem !important;
  font-weight: 550 !important;
  color: var(--fx-text-2) !important;
}
html:not(#_) .va-shell .va-actions-btn i {
  font-size: 0.85rem !important;
  margin: 0 !important;
}
html:not(#_) .va-shell .va-actions-btn span {
  display: inline !important;
}
html:not(#_) .rp-root td.rp-td-actions,
html:not(#_) .rp-root th.rp-td-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right !important;
}
html:not(#_) .rp-root td .rp-pill {
  white-space: nowrap;
}

/* ───────────────────────── Balance cards (create reseller) ───────────────────────── */
html:not(#_) .rp-modal .rp-balance-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.7rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html:not(#_) .rp-modal .rp-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
html:not(#_) .rp-modal .rp-balance-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface-2);
}
html:not(#_) .rp-modal .rp-balance-card.is-disabled {
  opacity: 0.6;
}
html:not(#_) .rp-modal .rp-balance-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
html:not(#_) .rp-modal .rp-balance-card-head > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
html:not(#_) .rp-modal .rp-balance-card-head strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fx-text);
}
html:not(#_) .rp-modal .rp-balance-card-head em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--fx-muted);
}
html:not(#_) .rp-modal .rp-balance-card-ico {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
  font-size: 0.95rem;
}
html:not(#_) .rp-modal .rp-balance-card .rp-input-icon {
  margin: 0 !important;
}
html:not(#_) .rp-modal .rp-balance-card .rp-balance-chips {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.3rem !important;
  margin: 0 !important;
}
html:not(#_) .rp-modal .rp-balance-card .rp-balance-chips button {
  min-width: 0;
  padding: 0 0.2rem !important;
  font-size: 0.74rem !important;
}
html:not(#_) .rp-modal .rp-balance-card-note {
  margin: 0 !important;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--fx-muted);
}
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-balance-card {
  background: #fafafa;
}
@media (max-width: 640px) {
  html:not(#_) .rp-modal .rp-balance-grid {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────── Wallet modal (manage → add balance) ───────────────────────── */
html:not(#_) .rp-modal .rp-wallet-chips {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
}
html:not(#_) .rp-modal .rp-wallet-chip-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.15rem !important;
  padding: 0.65rem 0.75rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface-2) !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: pointer;
}
html:not(#_) .rp-modal .rp-wallet-chip-btn strong {
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-modal .rp-wallet-chip-btn em {
  font-style: normal !important;
  font-size: 0.72rem !important;
  color: var(--fx-muted) !important;
}
html:not(#_) .rp-modal .rp-wallet-chip-btn:hover {
  border-color: var(--fx-border-strong) !important;
}
html:not(#_) .rp-modal .rp-wallet-chip-btn.is-on {
  border-color: var(--fx-accent) !important;
  background: var(--fx-accent-soft) !important;
}
html:not(#_) .rp-modal .rp-seg {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.25rem !important;
  padding: 0.25rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-bg) !important;
}
html:not(#_) .rp-modal .rp-seg button {
  min-height: 2.1rem !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--fx-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
html:not(#_) .rp-modal .rp-seg button.on {
  background: var(--fx-surface-3) !important;
  color: var(--fx-text) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
html:not(#_) .rp-modal .rp-wallet-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px dashed var(--fx-border-strong);
  background: var(--fx-surface-2);
}
html:not(#_) .rp-modal .rp-wallet-preview > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
html:not(#_) .rp-modal .rp-wallet-preview > div:last-child {
  align-items: flex-end;
}
html:not(#_) .rp-modal .rp-wallet-preview em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--fx-muted);
}
html:not(#_) .rp-modal .rp-wallet-preview strong {
  font-size: 1.05rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--fx-text);
}
html:not(#_) .rp-modal .rp-wallet-preview > div:last-child strong {
  color: var(--fx-accent);
}
html:not(#_) .rp-modal .rp-wallet-preview > i {
  color: var(--fx-dim);
}
html:not(#_) .rp-modal .rp-wallet-preview.is-bad {
  border-color: rgba(239, 68, 68, 0.5);
}
html:not(#_) .rp-modal .rp-wallet-preview.is-bad > div:last-child strong {
  color: #f87171;
}
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-wallet-chip-btn:not(.is-on),
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-wallet-preview {
  background: #ffffff !important;
}
html[data-rp-theme="light"]:not(#_) .rp-modal .rp-seg button.on {
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 15, 20, 0.12) !important;
}
@media (max-width: 420px) {
  html:not(#_) .rp-modal .rp-wallet-chip-btn em {
    display: none !important;
  }
}

/* Reseller portal: sub-seller starting balance */
html:not(#_) .rp-root .rp-balance-stack {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)) !important;
  gap: 0.7rem !important;
  margin-top: 0.45rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html:not(#_) .rp-root .rp-balance-stack > .rp-monite-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  margin: 0 !important;
  padding: 0.85rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface-2) !important;
}
html:not(#_) .rp-root .rp-balance-stack > .rp-monite-field > span {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--fx-text-2) !important;
}
html:not(#_) .rp-root .rp-balance-chips {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.3rem !important;
}
html:not(#_) .rp-root .rp-balance-chips button {
  min-height: 1.85rem;
  padding: 0 0.2rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-bg) !important;
  color: var(--fx-text-2) !important;
  font-size: 0.76rem !important;
  font-weight: 550 !important;
}
html:not(#_) .rp-root .rp-balance-chips button.on {
  background: var(--fx-accent-soft) !important;
  border-color: var(--fx-accent) !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-root .rp-balance-chips button:disabled {
  opacity: 0.4;
}
html[data-rp-theme="light"]:not(#_) .rp-root .rp-balance-stack > .rp-monite-field {
  background: #fafafa !important;
}

/* ───────────────────────── Consistent casing ───────────────────────── */
html:not(#_) :is(.rp-root, .rp-modal, .va-page) :is(
  label, .rp-field, .rp-hint, th, h2, h3, h4,
  .rp-monite-field > span, .rp-product-manage-info strong,
  .rp-product-manage-info em, .rp-stat > span, .rp-stat > em,
  .rp-stat > small, .va-card-title, .rp-acct-tab, .rp-acct-title
) {
  text-transform: none !important;
  letter-spacing: normal !important;
}
html:not(#_) .va-nav-section {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 0.74rem !important;
}
html:not(#_) .rp-root .rp-field {
  font-size: 0.82rem !important;
  font-weight: 550 !important;
  color: var(--fx-text-2) !important;
}
html:not(#_) .rp-root .rp-product-manage-info strong {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-root .rp-product-manage-info em,
html:not(#_) .rp-root .rp-product-manage-info span {
  font-style: normal !important;
  font-size: 0.75rem !important;
  color: var(--fx-muted) !important;
}

/* Create Sub Seller: match white/black primary CTAs */
html:not(#_) .rp-root .rp-create-sub-form .rp-btn-primary {
  min-height: 2.6rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--fx-btn-bg) !important;
  background: var(--fx-btn-bg) !important;
  color: var(--fx-btn-text) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-create-sub-form .rp-btn-primary:hover:not(:disabled) {
  opacity: 0.88;
}

/* ───────────────────────── Starting balance (va-sb) ───────────────────────── */
html:not(#_) .va-sb {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
html:not(#_) .va-sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
html:not(#_) .va-sb-title {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--fx-text-2) !important;
}
html:not(#_) .va-sb-seg {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
}
html:not(#_):not(#__) .va-sb .va-sb-seg button {
  min-height: 0 !important;
  padding: 0.3rem 0.8rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--fx-muted) !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
html:not(#_):not(#__) .va-sb .va-sb-seg button.on {
  background: var(--fx-accent) !important;
  color: #04131c !important;
}
html:not(#_) .va-sb-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--fx-border);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 55%),
    var(--fx-surface-2);
}
html:not(#_) .va-sb-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fx-accent), transparent);
  opacity: 0.6;
}
html:not(#_) .va-sb-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
}
html:not(#_) .va-sb-row + .va-sb-row {
  border-top: 1px solid var(--fx-border);
}
html:not(#_) .va-sb-row-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
html:not(#_) .va-sb-ico {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: var(--fx-accent-soft);
  color: var(--fx-accent);
  font-size: 1rem;
}
html:not(#_) .va-sb-name {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
html:not(#_) .va-sb-name strong {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .va-sb-name em {
  font-style: normal !important;
  font-size: 0.74rem !important;
  color: var(--fx-muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html:not(#_) .va-sb-amount {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  width: 8.5rem;
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html:not(#_) .va-sb-amount:focus-within {
  border-color: var(--fx-accent);
  box-shadow: 0 0 0 3px var(--fx-accent-soft);
}
html:not(#_) .va-sb-amount > span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fx-dim);
}
html:not(#_):not(#__) .va-sb .va-sb-amount input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fx-text) !important;
  font-family: var(--fx-font) !important;
  font-size: 1.2rem !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  -moz-appearance: textfield;
}
html:not(#_) .va-sb-amount input::-webkit-outer-spin-button,
html:not(#_) .va-sb-amount input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
html:not(#_) .va-sb-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
html:not(#_):not(#__) .va-sb .va-sb-chips button {
  min-height: 1.9rem !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px dashed var(--fx-border-strong) !important;
  background: transparent !important;
  color: var(--fx-text-2) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
html:not(#_):not(#__) .va-sb .va-sb-chips button:hover:not(:disabled) {
  border-style: solid !important;
  border-color: var(--fx-accent) !important;
  color: var(--fx-text) !important;
}
html:not(#_):not(#__) .va-sb .va-sb-chips button.on {
  border-style: solid !important;
  border-color: var(--fx-accent) !important;
  background: var(--fx-accent-soft) !important;
  color: var(--fx-text) !important;
}
html:not(#_):not(#__) .va-sb .va-sb-chips button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
html:not(#_) .va-sb-row.is-disabled .va-sb-ico {
  border-color: var(--fx-border);
  background: var(--fx-surface-3);
  color: var(--fx-dim);
}
html:not(#_) .va-sb-row.is-disabled .va-sb-name strong {
  color: var(--fx-muted) !important;
}
html:not(#_) .va-sb-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  color: var(--fx-dim);
  font-size: 0.72rem;
  font-weight: 600;
}
html:not(#_) .va-sb-note {
  margin: 0 0 0 2.8rem !important;
  font-size: 0.74rem !important;
  color: var(--fx-dim) !important;
}
html:not(#_) .va-sb-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px dashed var(--fx-border-strong);
  background: rgba(0, 0, 0, 0.18);
}
html:not(#_) .va-sb-total span {
  font-size: 0.78rem;
  color: var(--fx-muted);
}
html:not(#_) .va-sb-total strong {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fx-text);
}
html[data-rp-theme="light"]:not(#_) .va-sb-panel {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(14, 165, 233, 0.07), transparent 55%),
    #ffffff;
  box-shadow: var(--fx-shadow-sm);
}
html[data-rp-theme="light"]:not(#_) .va-sb-amount,
html[data-rp-theme="light"]:not(#_) .va-sb-seg {
  background: #f6f6f7;
}
html[data-rp-theme="light"]:not(#_) .va-sb-total {
  background: #fafafa;
}
html[data-rp-theme="light"]:not(#_):not(#__) .va-sb .va-sb-seg button.on {
  color: #ffffff !important;
}
@media (max-width: 480px) {
  html:not(#_) .va-sb-amount {
    width: 7rem;
  }
  html:not(#_) .va-sb-note {
    margin-left: 0 !important;
  }
}

/* ───────────────────────── Instant tab feedback ───────────────────────── */
html:not(#_) body.va-nav-pending .va-side-nav .va-nav-link.active:not(.is-pending) {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--fx-muted) !important;
  box-shadow: none !important;
}
html:not(#_) body.va-nav-pending .va-side-nav .va-nav-link.active:not(.is-pending) i {
  color: var(--fx-dim) !important;
}
html:not(#_) .va-side-nav .va-nav-link.is-pending,
html[data-rp-theme]:not(#_) .va-shell--portal .va-side-nav .va-nav-link.is-pending {
  background: var(--fx-surface-3) !important;
  border-color: var(--fx-border) !important;
  color: var(--fx-text) !important;
}
html:not(#_) .va-side-nav .va-nav-link.is-pending i {
  color: var(--fx-text) !important;
}
body.va-nav-pending::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--fx-accent), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: vaNavPending 0.9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vaNavPending {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}
body.va-nav-pending #main-content > main {
  cursor: progress;
}

/* ───────────────────────── Home / Account / Audit polish ───────────────────────── */
html:not(#_) .rp-root .rp-home .rp-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)) !important;
  gap: 0.85rem !important;
}
html:not(#_) .rp-root .rp-stat--rich {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  padding: 1rem 1.1rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface) !important;
}
html:not(#_) .rp-root .rp-stat--rich > span {
  font-size: 0.78rem !important;
  font-weight: 550 !important;
  color: var(--fx-muted) !important;
  text-transform: none !important;
}
html:not(#_) .rp-root .rp-stat--rich > strong {
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: var(--fx-text) !important;
  font-variant-numeric: tabular-nums;
}
html:not(#_) .rp-root .rp-stat--rich > em,
html:not(#_) .rp-root .rp-stat--rich > small {
  font-style: normal !important;
  font-size: 0.74rem !important;
  color: var(--fx-dim) !important;
}
html:not(#_) .rp-account .rp-acct-title,
html:not(#_) .va-page .rp-acct-title {
  font-size: 1.45rem !important;
  font-weight: 650 !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-account .rp-acct-sub,
html:not(#_) .va-page .rp-acct-sub {
  color: var(--fx-muted) !important;
}
html:not(#_) .rp-account .rp-acct-tabs,
html:not(#_) .va-page .rp-acct-tabs {
  border-bottom: 1px solid var(--fx-border) !important;
  gap: 0.35rem !important;
}
html:not(#_) .rp-account .rp-acct-tab,
html:not(#_) .va-page .rp-acct-tab {
  padding: 0.45rem 0.85rem !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--fx-muted) !important;
  font-size: 0.86rem !important;
  font-weight: 550 !important;
  text-transform: none !important;
}
html:not(#_) .rp-account .rp-acct-tab.on,
html:not(#_) .va-page .rp-acct-tab.on {
  background: var(--fx-surface-3) !important;
  border-color: var(--fx-border) !important;
  color: var(--fx-text) !important;
}
html:not(#_) .rp-account .va-card,
html:not(#_) .va-page .va-card {
  border-radius: 12px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface) !important;
  box-shadow: none !important;
}
html:not(#_) .rp-account .va-card-title,
html:not(#_) .va-page .va-card-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--fx-text) !important;
  text-transform: none !important;
}
html:not(#_) .rp-account .va-field label,
html:not(#_) .va-page .va-field label {
  font-size: 0.8rem !important;
  font-weight: 550 !important;
  color: var(--fx-text-2) !important;
  text-transform: none !important;
}
html:not(#_) .rp-account img.rounded-full,
html:not(#_) .va-page .rp-account img.rounded-full {
  border: 0 !important;
  box-shadow: 0 0 0 1px var(--fx-border);
  background: transparent !important;
}

/* ───────────────────────── Licenses / Team / Audit / Auth ───────────────────────── */
html:not(#_) .va-page .va-modal-panel,
html:not(#_) .va-shell .va-modal-panel {
  border-radius: 14px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface) !important;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55) !important;
}
html:not(#_) .va-page .va-modal-panel h3,
html:not(#_) .va-shell .va-modal-panel h3 {
  color: var(--fx-text) !important;
  font-weight: 650 !important;
  text-transform: none !important;
}
html:not(#_) .va-page .va-table,
html:not(#_) .va-shell .va-table,
html:not(#_) .va-page table.va-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
html:not(#_) .va-page .va-table th,
html:not(#_) .va-shell .va-table th {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: var(--fx-muted) !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  border-bottom: 1px solid var(--fx-border) !important;
  background: var(--fx-surface-2) !important;
}
html:not(#_) .va-page .va-table td,
html:not(#_) .va-shell .va-table td {
  border-bottom: 1px solid var(--fx-border) !important;
  color: var(--fx-text-2) !important;
  font-size: 0.84rem !important;
}
html:not(#_) .va-page .va-chip,
html:not(#_) .va-shell .va-chip {
  border-radius: 999px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface-3) !important;
  color: var(--fx-text-2) !important;
  font-size: 0.72rem !important;
  font-weight: 550 !important;
  text-transform: none !important;
}
html:not(#_) .va-page select.va-input,
html:not(#_) .va-page select.va-select,
html:not(#_) .va-shell select.va-input,
html:not(#_) .va-shell select.va-select {
  appearance: none !important;
  background-color: var(--fx-surface-2) !important;
  border: 1px solid var(--fx-border) !important;
  border-radius: var(--fx-radius-sm) !important;
  color: var(--fx-text) !important;
  min-height: 2.25rem !important;
  padding: 0.35rem 2rem 0.35rem 0.7rem !important;
}
/* Login CTA: keep auth.css zinc/white look — do not force accent blue */

/* KPI tint: Used green · Unused grey · Banned red */
html:not(#_) .rp-root .rp-pro-kpi-card--used .rp-pro-kpi-value,
html:not(#_) .rp-root .rp-stat--used strong {
  color: #4ade80 !important;
}
html:not(#_) .rp-root .rp-pro-kpi-card--used .rp-pro-kpi-ico {
  color: #4ade80 !important;
  background: var(--fx-good-soft) !important;
}
html:not(#_) .rp-root .rp-pro-kpi-card--unused .rp-pro-kpi-value,
html:not(#_) .rp-root .rp-stat--unused strong {
  color: var(--fx-text-2) !important;
}
html:not(#_) .rp-root .rp-pro-kpi-card--unused .rp-pro-kpi-ico {
  color: var(--fx-muted) !important;
  background: var(--fx-surface-3) !important;
}
html:not(#_) .rp-root .rp-pro-kpi-card--banned .rp-pro-kpi-value,
html:not(#_) .rp-root .rp-stat--banned strong {
  color: #f87171 !important;
}
html:not(#_) .rp-root .rp-pro-kpi-card--banned .rp-pro-kpi-ico {
  color: #f87171 !important;
  background: var(--fx-bad-soft) !important;
}

/* Search / filters: breathing room above the table */
html:not(#_) .rp-root .rp-pro-toolbar,
html:not(#_) .rp-root .rp-keys-toolbar,
html:not(#_) .rp-root .rp-table-head.rp-pro-toolbar {
  margin-bottom: 0.85rem !important;
  padding-bottom: 0.95rem !important;
  border-bottom: 1px solid var(--fx-border) !important;
  gap: 0.65rem !important;
}
html:not(#_) .rp-root .rp-pro-filters {
  margin-top: 0.15rem !important;
}

html:not(#_) .rp-modal-backdrop {
  z-index: 200100 !important;
}

/* ───────────────────────── Mobile: Resellers cards + Keys ───────────────────────── */
/* Columns: 1 user · 2 role · 3 products · 4 vintage · 5 fluorite · 6 shared ·
   7 ipa · 8 proxy · 9 fluorite keys · 10 subs · 11 status · 12 manage */
@media (max-width: 767.98px) {
  html:not(#_) .rp-root .rp-resellers-wrap,
  html:not(#_) .rp-root .rp-table-wrap.rp-resellers-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  html:not(#_) .rp-root .rp-resellers-legend {
    display: none !important;
  }

  html:not(#_) .rp-root .rp-resellers-table,
  html:not(#_) .rp-root .rp-resellers-table thead,
  html:not(#_) .rp-root .rp-resellers-table tbody,
  html:not(#_) .rp-root .rp-resellers-table tr,
  html:not(#_) .rp-root .rp-resellers-table th,
  html:not(#_) .rp-root .rp-resellers-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html:not(#_) .rp-root .rp-resellers-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  html:not(#_) .rp-root .rp-resellers-table thead {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody tr {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0.55rem 0.45rem !important;
    margin: 0 0 0.7rem !important;
    padding: 0.95rem 0.9rem 0.85rem !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 14px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%),
      #141414 !important;
    box-sizing: border-box !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody tr.va-reseller-section-row,
  html:not(#_) .rp-root .rp-resellers-table tbody tr.rp-resellers-group-row {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
    width: auto !important;
  }

  /* 1 user — full width header */
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(1) {
    grid-column: 1 / -1 !important;
    padding-right: 5.6rem !important;
    margin: 0 !important;
  }
  /* 2 role + 11 status — chips row */
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(2),
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(11) {
    display: inline-flex !important;
    grid-column: auto !important;
    width: auto !important;
    margin: 0 !important;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(2) {
    grid-column: 1 / span 2 !important;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(11) {
    grid-column: 3 / 4 !important;
    justify-content: flex-end !important;
  }
  /* 3 products — full width */
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(3) {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
  }
  /* Hide separate vintage/fluorite/proxy columns — show shared + totals cleanly */
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(4),
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(5),
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(8) {
    display: none !important;
  }
  /* 6 Shared/balance · 7 IPA · 9 Flu keys · 10 Subs — 2x2 stats */
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(6),
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(7),
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(9),
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(10) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    min-height: 3.1rem !important;
    padding: 0.55rem 0.6rem !important;
    border-radius: 10px !important;
    background: #0e0e0e !important;
    border: 1px solid #242424 !important;
    font-size: 0.95rem !important;
    font-weight: 750 !important;
    color: #fafafa !important;
    white-space: nowrap !important;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(6)::before {
    content: "Balance";
    color: #888;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(7)::before {
    content: "IPA keys";
    color: #888;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(9)::before {
    content: "Fluorite";
    color: #888;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(10)::before {
    content: "Subs";
    color: #888;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  /* 12 Manage */
  html:not(#_) .rp-root .rp-resellers-table tbody td.rp-td-actions,
  html:not(#_) .rp-root .rp-resellers-table tbody td:nth-child(12) {
    position: absolute !important;
    top: 0.85rem !important;
    right: 0.85rem !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 2 !important;
    border: 0 !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .va-actions-btn {
    min-height: 2.15rem !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    border: 1px solid #333 !important;
    background: #1c1c1c !important;
    color: #f0f0f0 !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .rp-user-cell {
    max-width: 100% !important;
    gap: 0.55rem !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .rp-avatar {
    width: 2.35rem !important;
    height: 2.35rem !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .rp-user-meta strong {
    font-size: 1rem !important;
    font-weight: 750 !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .rp-user-meta > .rp-muted {
    max-width: 100% !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html:not(#_) .rp-root .rp-prod-assign {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
  }
  html:not(#_) .rp-root .rp-prod-mark {
    min-width: 0 !important;
    padding: 0.28rem 0.5rem !important;
    font-size: 0.65rem !important;
    border-radius: 7px !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .rp-bal,
  html:not(#_) .rp-root .rp-resellers-table .va-bal-cell strong {
    font-size: 0.92rem !important;
    font-weight: 750 !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .rp-pill {
    font-size: 0.66rem !important;
    padding: 0.22rem 0.5rem !important;
  }
  html:not(#_) .rp-root .rp-resellers-table .rp-pill.ok {
    margin-left: 0.25rem !important;
  }

  /* Keys Manager — mobile cards (hide cramped table) */
  html:not(#_) .rp-root .rp-table-wrap.rp-desktop-only {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-key-cards.rp-mobile-only,
  html:not(#_) .rp-root .rp-key-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    padding: 0.75rem 0.85rem 1rem !important;
  }
  html:not(#_) .rp-root .rp-key-card {
    background: linear-gradient(180deg, #1c1c1c, #161616) !important;
    border: 1px solid #2e2e2e !important;
    border-radius: 14px !important;
  }
  html:not(#_) .rp-root .rp-key-card-top .rp-key-text {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace !important;
    font-size: 0.84rem !important;
    font-weight: 650 !important;
    color: #fafafa !important;
  }
  html:not(#_) .rp-root .rp-keys-table .rp-pill {
    white-space: nowrap !important;
  }

  html:not(#_) .rp-root .rp-pro-toolbar,
  html:not(#_) .rp-root .rp-keys-toolbar {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Compact KPIs so keys show sooner */
  html:not(#_) .rp-root .rp-pro-kpi,
  html:not(#_) .rp-root .rp-keys-kpi.rp-pro-kpi {
    gap: 0.5rem !important;
    margin-bottom: 0.7rem !important;
  }
  html:not(#_) .rp-root .rp-pro-kpi-card {
    min-height: 0 !important;
    padding: 0.75rem 0.8rem !important;
  }
  html:not(#_) .rp-root .rp-pro-kpi-value {
    font-size: 1.35rem !important;
  }
  html:not(#_) .rp-root .rp-pro-kpi-sub,
  html:not(#_) .rp-root .rp-pro-spark {
    display: none !important;
  }
}

/* ───────────────────────── Brand version pill (retired) ───────────────────────── */
html:not(#_) .va-brand-ver {
  display: none !important;
}
html:not(#_) .va-brand-text {
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Sidebar theme toggle in user badge */
html:not(#_) .va-sidebar-theme {
  margin-left: auto;
  flex-shrink: 0;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--fx-border) !important;
  background: var(--fx-surface-2) !important;
  color: var(--fx-muted) !important;
}
html:not(#_) .va-sidebar-theme:hover {
  color: var(--fx-text) !important;
  border-color: var(--fx-border-strong) !important;
}

/* Role preview floating control */
.va-role-preview {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.va-role-preview-label {
  padding: 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-dim);
}
.va-role-preview-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: transparent;
  color: var(--fx-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.va-role-preview-btn.is-on {
  background: #fff;
  color: #09090b;
}

/* Page crumbs + mono */
.va-page-crumb {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--fx-muted);
}
.va-page-crumb span {
  margin: 0 0.35rem;
  color: var(--fx-dim);
}
.va-mono,
html:not(#_) .va-mono {
  font-family: var(--fx-mono) !important;
  font-variant-numeric: tabular-nums;
}

/* Resellers summary cards */
.va-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0 1.1rem;
}
.va-summary-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
}
.va-summary-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--fx-muted);
  margin-bottom: 0.45rem;
}
.va-summary-card strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--fx-text);
  line-height: 1.15;
}
.va-summary-products {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}
.va-reseller-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.va-reseller-filters select {
  height: 2.35rem;
  padding: 0 2rem 0 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface-2);
  color: var(--fx-text);
  font-size: 0.82rem;
}
.va-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--fx-text-2);
}
.va-status-dot i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--fx-muted);
}
.va-status-dot.ok i {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.va-status-dot.bad i {
  background: #ef4444;
}
html:not(#_) .rp-resellers-table--ref th,
html:not(#_) .rp-resellers-table--ref td {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .va-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .va-summary-grid {
    grid-template-columns: 1fr;
  }
  .va-reseller-filters {
    width: 100%;
  }
  .va-reseller-filters select {
    flex: 1;
    min-width: 0;
  }
}

/* Developer pages shared */
.va-dev-page .rp-toolbar {
  align-items: flex-start;
}
.va-role-chip {
  display: inline-flex;
  align-items: center;
  height: 1.85rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted);
  background: var(--fx-surface);
}
.va-role-chip.admin {
  color: var(--fx-text);
}
.va-role-chip.reseller {
  color: var(--fx-text-2);
}
.va-warn-banner {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: var(--fx-text-2);
  font-size: 0.88rem;
}
.va-warn-banner strong {
  color: #fecaca;
}
.va-warn-banner--inline {
  margin-top: 0.75rem;
}
.va-reset-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.va-reset-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  font-family: var(--fx-mono);
  font-size: 0.72rem;
  color: var(--fx-text-2);
}
.va-reset-badge.is-last {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}
.va-reset-badge.is-ban {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

/* API page */
.va-api-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1rem;
}
.va-api-products {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.va-api-product {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--fx-muted);
  cursor: pointer;
}
.va-api-product strong {
  display: block;
  color: var(--fx-text);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.va-api-product span {
  font-size: 0.72rem;
}
.va-api-product.is-on {
  border-color: var(--fx-border-strong);
  background: var(--fx-surface-3);
  color: var(--fx-text-2);
}
.va-api-main {
  display: grid;
  gap: 1rem;
}
.va-api-card {
  padding: 1.15rem 1.2rem !important;
}
.va-api-card h2 {
  margin: 0;
  font-size: 1.05rem;
}
.va-api-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.va-api-secret {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface-2);
  margin-bottom: 0.85rem;
}
.va-api-secret > span {
  font-size: 0.75rem;
  color: var(--fx-muted);
}
.va-api-secret code {
  flex: 1;
  min-width: 10rem;
  font-size: 0.82rem;
  color: var(--fx-text);
}
.va-api-endpoints {
  display: grid;
  gap: 0.45rem;
}
.va-api-endpoint {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
}
.va-api-endpoint-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}
.va-api-method {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #fff;
  color: #09090b;
}
.va-api-path {
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  color: var(--fx-text);
}
.va-api-endpoint-label {
  font-size: 0.75rem;
  color: var(--fx-muted);
}
.va-api-note {
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  border: 1px dashed var(--fx-border-strong);
  font-size: 0.82rem;
  color: var(--fx-muted);
  line-height: 1.55;
}
.va-webhook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.va-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--fx-muted);
}
.va-field input {
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
  color: var(--fx-text);
}
.va-webhook-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.va-webhook-events li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
}
.va-webhook-events code {
  font-family: var(--fx-mono);
  font-size: 0.74rem;
  color: var(--fx-text-2);
}
.va-webhook-events strong {
  display: block;
  color: var(--fx-text);
  font-size: 0.86rem;
}
.va-webhook-events span {
  display: block;
  color: var(--fx-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.va-api-card-foot {
  margin-top: 0.9rem;
}
.va-api-limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.va-api-limits article {
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
}
.va-api-limits strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--fx-text);
}
.va-api-limits span {
  color: var(--fx-muted);
  font-size: 0.8rem;
}
@media (max-width: 900px) {
  .va-api-layout {
    grid-template-columns: 1fr;
  }
  .va-webhook-grid,
  .va-api-limits {
    grid-template-columns: 1fr;
  }
  .va-webhook-events li {
    grid-template-columns: 1fr;
  }
}

/* Docs layout */
.va-docs-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.va-docs-nav {
  position: sticky;
  top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
}
.va-docs-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--fx-muted);
  font-size: 0.84rem;
  text-decoration: none;
}
.va-docs-nav a:hover,
.va-docs-nav a.is-on {
  background: var(--fx-surface-3);
  color: var(--fx-text);
}
.va-docs-body {
  display: grid;
  gap: 1.25rem;
}
.va-docs-section {
  padding: 1.15rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
}
.va-docs-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.va-docs-section p,
.va-docs-section li {
  color: var(--fx-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}
.va-docs-section ul,
.va-docs-section ol {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}
.va-doc-pre {
  margin: 0.75rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: #050506;
  color: #e4e4e7;
  font-family: var(--fx-mono);
  font-size: 0.78rem;
  overflow: auto;
  white-space: pre;
}
@media (max-width: 900px) {
  .va-docs-layout {
    grid-template-columns: 1fr;
  }
  .va-docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Setup guide */
.va-setup-cards {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.va-setup-steps {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  display: grid;
  gap: 0.25rem;
}
.va-setup-steps button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fx-muted);
  cursor: pointer;
}
.va-setup-steps em {
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.va-setup-steps .is-on button {
  background: var(--fx-surface-3);
  color: var(--fx-text);
}
.va-setup-steps .is-done em {
  background: #fff;
  color: #09090b;
  border-color: #fff;
}
.va-setup-panel {
  padding: 1.25rem 1.35rem !important;
}
.va-setup-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}
.va-setup-panel > p {
  color: var(--fx-muted);
  line-height: 1.6;
}
.va-setup-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.va-setup-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.va-setup-node {
  min-width: 7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
}
.va-setup-node strong {
  display: block;
  color: var(--fx-text);
}
.va-setup-node span {
  color: var(--fx-muted);
  font-size: 0.78rem;
}
.va-setup-arrow {
  color: var(--fx-dim);
  font-size: 1.1rem;
}
.va-setup-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.va-money-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
}
.va-money-input em {
  font-style: normal;
  color: var(--fx-muted);
}
.va-money-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fx-text);
  font-family: var(--fx-mono);
  font-size: 0.95rem;
}
.va-setup-margin {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
}
.va-setup-margin strong {
  font-size: 1.15rem;
  color: var(--fx-text);
}
.va-setup-margin em {
  font-style: normal;
  color: var(--fx-muted);
  font-size: 0.85rem;
}
.va-setup-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.va-setup-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  background: var(--fx-bg);
  color: var(--fx-muted);
  cursor: pointer;
  font-size: 0.84rem;
}
.va-setup-toggles label.is-on {
  background: #fff;
  color: #09090b;
  border-color: #fff;
}
.va-setup-rules {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fx-muted);
  line-height: 1.65;
}
.va-setup-rules strong {
  color: var(--fx-text);
}
@media (max-width: 900px) {
  .va-setup-cards {
    grid-template-columns: 1fr;
  }
  .va-setup-calc {
    grid-template-columns: 1fr;
  }
}

/* Anchor buttons used in Resellers toolbar */
html:not(#_) .rp-root a.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* Hide retired brand version pill if cached markup still has it */
html:not(#_) .va-brand-ver { display: none !important; }

/* Hide Live pill everywhere in portal */
html:not(#_) .va-shell--portal .va-live-pill,
html:not(#_) .va-live-pill {
  display: none !important;
}

/* Reseller / Sub-Seller portal polish — match reference cards */
html:not(#_) .va-shell--portal .rp-root.rp-monite .rp-toolbar h1 {
  font-family: var(--fx-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: var(--fx-text) !important;
}
html:not(#_) .va-shell--portal .rp-card,
html:not(#_) .va-shell--portal .rp-stat,
html:not(#_) .va-shell--portal .rp-pro-kpi-card,
html:not(#_) .va-shell--portal .rp-balance-hero,
html:not(#_) .va-shell--portal .va-summary-card {
  background: #121214 !important;
  border-color: #1e1e22 !important;
  border-radius: 10px !important;
}
html:not(#_) .va-shell--portal .rp-table th {
  color: var(--fx-muted) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
}
html:not(#_) .va-shell--portal .rp-table td {
  border-color: #1e1e22 !important;
  color: var(--fx-text-2) !important;
}
html:not(#_) .va-shell--portal .rp-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
}
html:not(#_) .va-shell--portal .rp-btn-primary {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #ffffff !important;
  font-weight: 650 !important;
}
html:not(#_) .va-shell--portal .rp-btn-ghost {
  background: #161618 !important;
  border-color: #1e1e22 !important;
  color: #fafafa !important;
}
html:not(#_) .va-shell--portal .va-mono,
html:not(#_) .va-shell--portal .rp-bal,
html:not(#_) .va-shell--portal .rp-td-num,
html:not(#_) .va-shell--portal .rp-balance-hero-value {
  font-family: var(--fx-mono) !important;
  font-variant-numeric: tabular-nums;
}

/* Brand version pill stays hidden */

/* Reseller reset rules card */
.va-reset-rules-card {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}
.va-reset-rules-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.va-reset-rules-head strong {
  color: #fafafa;
  font-size: 0.95rem;
}
.va-reset-count-pill {
  font-family: var(--fx-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}
.va-reset-rules-card p {
  margin: 0;
  color: var(--fx-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.va-reset-progress {
  display: flex;
  gap: 0.35rem;
  margin: 0.75rem 0;
}
.va-reset-progress i {
  width: 2rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #2a2a2e;
}
.va-reset-progress i.is-on {
  background: #f59e0b;
}
.va-reset-warn {
  margin-top: 0.7rem !important;
  color: #fcd34d !important;
}

/* Sub-seller generator card */
.va-subseller-gen {
  margin: 0 0 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #1e1e22;
  background: #121214;
}
.va-subseller-gen-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.va-subseller-gen h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fafafa;
}
.va-subseller-cap {
  min-width: 9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #1e1e22;
  background: #09090b;
  text-align: right;
}
.va-subseller-cap span {
  display: block;
  font-size: 0.72rem;
  color: #a1a1aa;
  margin-bottom: 0.25rem;
}
.va-subseller-cap strong {
  font-size: 1.25rem;
  color: #fafafa;
}
.va-subseller-gen-body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.va-subseller-label {
  display: block;
  font-size: 0.75rem;
  color: #a1a1aa;
}
.va-subseller-gen-btn {
  min-height: 2.6rem !important;
  padding: 0 1.15rem !important;
  font-size: 0.92rem !important;
}

/* ───────────── Mobile responsiveness ───────────── */
@media (max-width: 900px) {
  html:not(#_) .va-page {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar-actions {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar-actions .rp-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .va-summary-grid,
  html:not(#_) .rp-root .rp-pro-kpi,
  html:not(#_) .rp-root .rp-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .va-api-layout,
  .va-docs-layout,
  .va-setup-cards {
    grid-template-columns: 1fr !important;
  }
  .va-api-products {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  .va-api-product {
    flex: 1 1 8rem;
  }
}

@media (max-width: 640px) {
  html:not(#_) .va-sidebar.is-open {
    width: min(18rem, 92vw) !important;
  }
  html:not(#_) .va-brand-text {
    font-size: 0.86rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar h1 {
    font-size: 1.45rem !important;
  }
  .va-summary-grid:not(.rp-resellers-summary),
  html:not(#_) .rp-root .rp-pro-kpi:not(.rp-keys-kpi),
  html:not(#_) .rp-root .rp-stat-grid,
  html:not(#_) .rp-root .rp-stat-grid--home,
  html:not(#_) .rp-root .rp-stat-grid--products {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
  }
  html:not(#_) .rp-root .rp-balance-hero {
    flex-direction: column !important;
  }
  html:not(#_) .rp-root .rp-balance-hero-value {
    font-size: 1.85rem !important;
  }
  html:not(#_) .rp-root .rp-resellers-toolbar,
  html:not(#_) .rp-root .rp-keys-toolbar,
  html:not(#_) .rp-root .rp-pro-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html:not(#_) .rp-root .rp-pro-filters {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  html:not(#_) .rp-root .rp-pro-select-wrap {
    width: 100% !important;
  }
  /* Resellers cards handled in 767.98px block — don't flatten columns here */
  html:not(#_) .rp-root .rp-table-wrap.rp-desktop-only {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-key-cards {
    display: flex !important;
  }
  .va-subseller-gen-body,
  .va-subseller-gen-top {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .va-subseller-cap {
    text-align: left;
  }
  .va-subseller-gen-btn {
    width: 100%;
  }
  .va-webhook-grid,
  .va-api-limits,
  .va-setup-calc {
    grid-template-columns: 1fr !important;
  }
  .va-role-preview {
    right: 0.5rem;
    bottom: 0.5rem;
    transform: scale(0.92);
    transform-origin: bottom right;
  }
  html:not(#_) .va-topbar-refresh span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .va-summary-grid,
  html:not(#_) .rp-root .rp-pro-kpi,
  html:not(#_) .rp-root .rp-stat-grid--home {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════ Mockup monochrome system (Obsidian) ═══════════ */
html[data-rp-theme="dark"]:not(#_) .va-shell--portal,
html[data-rp-theme="dark"]:not(#_) .va-shell {
  background: #121212 !important;
}
html:not(#_) .va-shell--portal .va-sidebar {
  background: #121212 !important;
  border-color: #262626 !important;
}
html:not(#_) .va-shell--portal .rp-card,
html:not(#_) .va-shell--portal .rp-stat,
html:not(#_) .va-shell--portal .rp-pro-kpi-card,
html:not(#_) .va-shell--portal .rp-balance-hero,
html:not(#_) .va-shell--portal .va-summary-card,
html:not(#_) .va-shell--portal .va-api-card,
html:not(#_) .va-shell--portal .va-setup-panel,
html:not(#_) .va-shell--portal .va-docs-section,
html:not(#_) .va-shell--portal .va-subseller-gen {
  background: #161616 !important;
  border: 1px solid #262626 !important;
  border-radius: 14px !important;
}
html:not(#_) .va-shell--portal .rp-btn-primary {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border: 1px solid #ffffff !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
}
html:not(#_) .va-shell--portal .rp-btn-ghost,
html:not(#_) .va-shell--portal .va-actions-btn {
  background: #1a1a1a !important;
  color: #fafafa !important;
  border: 1px solid #262626 !important;
  border-radius: 8px !important;
}

/* Monochrome product pills — kill green/colorful marks */
html:not(#_) .rp-root .rp-prod-mark,
html:not(#_) .rp-root .rp-prod-mark.is-on,
html:not(#_) .rp-root .rp-prod-mark[data-p] {
  background: #1a1a1a !important;
  color: #e5e5e5 !important;
  border: 1px solid #333333 !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-prod-mark:not(.is-on) {
  opacity: 0.45;
  color: #737373 !important;
  border-color: #262626 !important;
}
html:not(#_) .rp-root .rp-pill.role-reseller,
html:not(#_) .rp-root .rp-pill.role-sub {
  background: #1a1a1a !important;
  color: #e5e5e5 !important;
  border: 1px solid #262626 !important;
}
html:not(#_) .rp-root .rp-avatar,
html:not(#_) img.rp-avatar {
  background: #1a1a1a !important;
  border: 1px solid #333333 !important;
  filter: grayscale(1) contrast(1.05);
  border-radius: 999px !important;
}
html:not(#_) .va-setup-toggles label.is-on {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border-color: #ffffff !important;
}
html:not(#_) .va-setup-toggles label:not(.is-on) {
  background: #1a1a1a !important;
  color: #a3a3a3 !important;
  border-color: #262626 !important;
}

/* API page layout */
.va-api-config-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.va-api-params {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.va-api-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.va-reset-threshold {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
}
.va-reset-used {
  margin: 0 0 0.65rem;
  color: #a1a1aa;
  font-size: 0.88rem;
}
.va-reset-used em {
  font-style: normal;
  color: #71717a;
}
.va-toggle-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.va-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #e4e4e7;
  font-size: 0.86rem;
  cursor: pointer;
}
.va-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #ffffff;
}
.va-profit,
.va-profit-line .va-profit {
  color: #86efac !important;
}
.va-profit-line {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: #a1a1aa;
}
.va-margin-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.va-margin-cards article {
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid #27272a;
  background: #09090b;
}
.va-margin-cards span {
  display: block;
  font-size: 0.72rem;
  color: #a1a1aa;
  margin-bottom: 0.35rem;
}
.va-margin-cards strong {
  font-size: 0.95rem;
  color: #fafafa;
}
.va-setup-subhead {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #fafafa;
}
.va-reset-inline-card {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
  display: grid;
  gap: 0.25rem;
}
.va-reset-inline-card strong {
  color: #fafafa;
}
.va-reset-inline-card span {
  color: #fcd34d;
  font-size: 0.84rem;
}
.va-live-preview {
  border: 1px solid #27272a;
  border-radius: 12px;
  background: #09090b;
  overflow: hidden;
}
.va-live-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #27272a;
}
.va-live-preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
}
.va-live-preview-controls select {
  height: 2.35rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #18181b;
  color: #fafafa;
}

/* Mobile chrome: top bar + hamburger only (sidebar drawer for all links) */
.va-mobile-top,
.va-mobile-pills,
.va-mobile-bottom {
  display: none;
}
@media (max-width: 767.98px) {
  /* Portal mobile shell — scroll inside main; allow refresh */
  html:has(.va-shell--portal),
  body:has(.va-shell--portal) {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    touch-action: manipulation;
  }
  html:not(#_) .va-shell--portal {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    height: 100svh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    position: relative !important;
  }
  html:not(#_) .va-shell--portal .va-main-column {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 100% !important;
    padding-top: 0 !important; /* kill desktop topbar offset */
    margin-left: 0 !important;
    overflow: hidden !important;
  }
  html:not(#_) .va-shell--portal #main-content,
  html:not(#_) .va-shell--portal .va-main-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: auto; /* allow pull-to-refresh */
    touch-action: pan-y !important;
    pointer-events: auto !important;
  }
  html:not(#_) .va-shell--portal .va-page {
    pointer-events: auto !important;
    padding: 0.55rem 0.8rem calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .va-shell--portal .va-mobile-top,
  .va-shell--portal .va-mobile-top--minimal {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #2e2e2e;
    background: #121212;
    position: relative;
    z-index: 60;
    flex: 0 0 auto;
    pointer-events: auto !important;
  }
  /* Brand + refresh removed — hamburger only */
  .va-shell--portal .va-mobile-brand,
  .va-shell--portal .va-mobile-refresh {
    display: none !important;
  }
  .va-shell--portal .va-mobile-brand img {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
  }
  .va-shell--portal .va-mobile-brand strong {
    font-size: 0.88rem;
    letter-spacing: -0.02em;
    font-weight: 650;
  }
  .va-shell--portal .va-mobile-brand em {
    display: none !important;
  }
  .va-shell--portal .va-mobile-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid #262626;
    background: #161616;
    color: #fafafa;
    flex: 0 0 auto;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    position: relative;
    z-index: 61;
  }
  .va-shell--portal .va-mobile-icon-btn .va-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5px;
    width: 1rem;
    height: 0.85rem;
    pointer-events: none;
  }
  .va-shell--portal .va-mobile-icon-btn .va-burger > span {
    display: block;
    height: 1.5px;
    width: 100%;
    border-radius: 2px;
    background: #fafafa;
  }
  /* Kill pills + bottom dock — sidebar only */
  .va-shell--portal .va-mobile-pills,
  .va-shell--portal .va-mobile-bottom {
    display: none !important;
  }
  .va-shell--portal .va-topbar {
    display: none !important;
    pointer-events: none !important;
  }

  /* Backdrop must never eat taps when closed */
  html:not(#_) .va-shell--portal #sidebarBackdrop.hidden,
  html:not(#_) #sidebarBackdrop.hidden {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
  html:not(#_) .va-shell--portal #sidebarBackdrop.is-open,
  html:not(#_) #sidebarBackdrop.is-open {
    display: block !important;
    pointer-events: auto !important;
    z-index: 10065 !important;
  }

  /* Compact home / cards on phone */
  html:not(#_) .va-shell--portal .rp-toolbar h1 {
    font-size: 1.45rem !important;
  }
  html:not(#_) .va-shell--portal .rp-balance-hero-value,
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero strong {
    font-size: 1.85rem !important;
  }
  html:not(#_) .va-shell--portal .rp-stat-grid--home,
  html:not(#_) .va-shell--portal .rp-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .rp-stat strong {
    font-size: 1.35rem !important;
  }

  .va-api-config-grid,
  .va-api-params,
  .va-api-two-col,
  .va-margin-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) {
  .va-shell--portal .va-mobile-top,
  .va-shell--portal .va-mobile-pills,
  .va-shell--portal .va-mobile-bottom {
    display: none !important;
  }
}

/* ═══════════ Overview Home (mockup charcoal) ═══════════ */
html:not(#_) .va-shell--portal .rp-root.va-overview,
html:not(#_) .va-shell--portal .rp-home.va-overview {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
html:not(#_) .va-shell--portal .rp-root.rp-monite:has(.va-overview) .rp-toolbar h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #f5f5f5;
}
html:not(#_) .va-shell--portal .rp-root.rp-monite:has(.va-overview) .rp-toolbar .rp-hint {
  color: #8b8b93;
  font-size: 0.84rem;
}
html:not(#_) .va-shell--portal .va-overview .rp-btn-generate:not(.rp-cta-blacklight) {
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0a0a0b !important;
  border: 0 !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
  padding: 0.55rem 1rem !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}
html:not(#_) .va-shell--portal .va-overview .rp-btn-generate:not(.rp-cta-blacklight):hover {
  background: #f4f4f5 !important;
}

.va-overview .va-hero-balance {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.35rem 1.45rem;
  margin-bottom: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #1a1a1e 0%, #141417 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.va-hero-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #9a9aa3;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.va-hero-value {
  display: block;
  font-size: 2.55rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.va-overview .va-hero-balance .rp-hint {
  margin-top: 0.45rem;
  color: #7c7c86 !important;
  font-size: 0.8rem;
}
.va-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.va-mono-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #c8c8d0;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.va-hero-spark {
  height: 5.25rem;
  color: #fafafa;
  opacity: 0.95;
}
.va-hero-spark svg {
  width: 100%;
  height: 100%;
}
.va-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.va-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.va-metric-card {
  padding: 1.1rem 1.15rem 1.05rem;
  border-radius: 14px;
  border: 1px solid #262626;
  background:
    linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.va-metric-card > span {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: #9a9aa3;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.va-metric-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.va-metric-card em {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.72rem;
  color: #6e6e78;
}
.va-metric-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.va-chart-card {
  border-radius: 14px !important;
  border: 1px solid #262626 !important;
  background: #161616 !important;
  padding: 1.15rem 1.2rem 1rem !important;
  box-shadow: none;
}
.va-chart-card .rp-chart-head h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f5f5f5 !important;
}
.va-chart-card .rp-chart-sub {
  color: #7c7c86 !important;
  font-size: 0.78rem;
}
.va-chart-card .rp-chart {
  color: #ffffff !important;
  margin-top: 0.65rem;
}
.va-chart-card .rp-chart-line {
  stroke: #ffffff !important;
}
.va-activity-plot {
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0.15rem 0 0;
  contain: layout paint;
}
.va-activity-chart svg {
  width: 100%;
  height: 240px;
  display: block;
}
.va-chart-grid {
  stroke: #2a2a2e;
  stroke-width: 1;
  stroke-dasharray: none;
}
.va-chart-y {
  fill: #6e6e78;
  font-size: 11px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
}
.va-chart-card .rp-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  padding: 0 0.35rem 0 0.55rem;
  color: #6e6e78;
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.va-range-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}
.va-range-tabs button {
  border: 0;
  background: transparent;
  color: #8b8b93;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.va-range-tabs button.is-on {
  background: #ffffff;
  color: #0a0a0b;
}

/* Kill bright green trend badges on portal */
html:not(#_) .va-shell--portal .rp-trend,
html:not(#_) .va-shell--portal .rp-trend.up,
html:not(#_) .va-shell--portal .rp-trend.down {
  background: #18181b !important;
  color: #d4d4d8 !important;
  border: 1px solid #27272a !important;
  box-shadow: none !important;
}

/* ═══ Unified stat boxes — Home / Keys / Resellers same size ═══ */
html:not(#_) .va-shell--portal .va-metric-grid,
html:not(#_) .va-shell--portal .va-summary-grid,
html:not(#_) .va-shell--portal .rp-pro-kpi,
html:not(#_) .va-shell--portal .rp-keys-kpi.rp-pro-kpi {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  align-items: stretch !important;
  margin-bottom: 0.85rem !important;
}
html:not(#_) .va-shell--portal .va-product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  align-items: stretch !important;
}
html:not(#_) .va-shell--portal .va-metric-card,
html:not(#_) .va-shell--portal .va-summary-card,
html:not(#_) .va-shell--portal .rp-pro-kpi-card,
html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-card {
  min-height: 7.35rem !important;
  height: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 1.1rem 1.15rem 1.05rem !important;
  border-radius: 14px !important;
  border: 1px solid #262626 !important;
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
}
html:not(#_) .va-shell--portal .va-metric-card > span,
html:not(#_) .va-shell--portal .va-summary-card > span,
html:not(#_) .va-shell--portal .rp-pro-kpi-label {
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #9a9aa3 !important;
  margin: 0 !important;
}
html:not(#_) .va-shell--portal .va-metric-card strong,
html:not(#_) .va-shell--portal .va-metric-card .va-mono,
html:not(#_) .va-shell--portal .va-summary-card strong,
html:not(#_) .va-shell--portal .rp-pro-kpi-value {
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums !important;
  margin: 0 !important;
}
html:not(#_) .va-shell--portal .va-metric-card em,
html:not(#_) .va-shell--portal .rp-pro-kpi-sub {
  margin-top: auto !important;
  font-size: 0.72rem !important;
  color: #6e6e78 !important;
  font-style: normal !important;
}
html:not(#_) .va-shell--portal .va-summary-products {
  font-size: 1.15rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
}

/* Used keys → green (Home + Keys) */
html:not(#_) .va-shell--portal .va-metric-card--used strong,
html:not(#_) .va-shell--portal .va-metric-card--used .va-mono,
html:not(#_) .va-shell--portal .rp-pro-kpi-card--used .rp-pro-kpi-value {
  color: #4ade80 !important;
}
html:not(#_) .va-shell--portal .va-metric-card--used .va-mono-pill,
html:not(#_) .va-shell--portal .va-metric-card--used .va-pill-good {
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.35) !important;
  background: rgba(34, 197, 94, 0.12) !important;
}
html:not(#_) .va-shell--portal .rp-pro-kpi-card--used .rp-pro-kpi-ico {
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
  background: rgba(34, 197, 94, 0.1) !important;
}

@media (max-width: 900px) {
  html:not(#_) .va-shell--portal .va-metric-grid,
  html:not(#_) .va-shell--portal .va-summary-grid,
  html:not(#_) .va-shell--portal .rp-pro-kpi,
  html:not(#_) .va-shell--portal .rp-keys-kpi.rp-pro-kpi,
  html:not(#_) .va-shell--portal .va-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  html:not(#_) .va-shell--portal .va-metric-card,
  html:not(#_) .va-shell--portal .va-summary-card,
  html:not(#_) .va-shell--portal .rp-pro-kpi-card {
    min-height: 6.4rem !important;
    padding: 0.9rem 0.85rem !important;
  }
  html:not(#_) .va-shell--portal .va-metric-card strong,
  html:not(#_) .va-shell--portal .va-metric-card .va-mono,
  html:not(#_) .va-shell--portal .va-summary-card strong,
  html:not(#_) .va-shell--portal .rp-pro-kpi-value {
    font-size: 1.45rem !important;
  }
}

@media (max-width: 900px) {
  .va-overview .va-hero-balance {
    grid-template-columns: 1fr;
  }
  .va-metric-grid,
  .va-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .va-metric-grid,
  .va-product-grid {
    grid-template-columns: 1fr;
  }
  .va-hero-value {
    font-size: 1.85rem;
  }
}

/* Brand name — Vintage Auth (not all-caps lock) */
html:not(#_) .va-brand-text {
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  font-weight: 700 !important;
}
html:not(#_) .va-mobile-brand strong {
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

/* iOS / mobile — no pinch-zoom jank; portal scrolls inside #main-content */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
html:not(#_) .va-shell--portal,
html:not(#_) .va-shell {
  max-width: 100vw;
}
@media (max-width: 767.98px) {
  html:not(#_) input,
  html:not(#_) select,
  html:not(#_) textarea {
    font-size: 16px !important; /* prevents iOS focus zoom */
  }
}

/* ═══════════ Light mode — match overall site (zinc/white) ═══════════ */
html[data-rp-theme="light"]:not(#_) .va-shell--portal,
html[data-rp-theme="light"]:not(#_) .va-shell {
  background: #f4f4f5 !important;
  color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-sidebar {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-nav-link {
  color: #71717a !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-nav-link:hover,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-nav-link.active {
  background: #f4f4f5 !important;
  color: #09090b !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-card,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-stat,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-pro-kpi-card,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-balance-hero,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-summary-card,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-api-card,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-setup-panel,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-docs-section,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-subseller-gen,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-metric-card,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-hero-balance {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
  color: #09090b !important;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-btn-primary {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-btn-ghost,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-actions-btn {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-mono-pill,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-trend,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-prod-mark,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-prod-mark.is-on {
  background: #f4f4f5 !important;
  color: #3f3f46 !important;
  border-color: #d4d4d8 !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-prod-mark:not(.is-on) {
  opacity: 0.55;
  color: #a1a1aa !important;
}
html[data-rp-theme="light"]:not(#_) .va-hero-value,
html[data-rp-theme="light"]:not(#_) .va-metric-card strong,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-toolbar h1 {
  color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-hero-spark,
html[data-rp-theme="light"]:not(#_) .va-chart-card .rp-chart {
  color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-hero-spark path[stroke],
html[data-rp-theme="light"]:not(#_) .va-chart-card .rp-chart-line {
  stroke: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-chart-card {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-chart-grid {
  stroke: #e4e4e7;
}
html[data-rp-theme="light"]:not(#_) .va-chart-y,
html[data-rp-theme="light"]:not(#_) .va-chart-card .rp-chart-axis {
  fill: #71717a;
  color: #71717a;
}
html[data-rp-theme="light"]:not(#_) #rpAdminArea stop {
  stop-color: #09090b;
}
html[data-rp-theme="light"]:not(#_) .va-range-tabs {
  background: #f4f4f5 !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-range-tabs button {
  color: #71717a !important;
}
html[data-rp-theme="light"]:not(#_) .va-range-tabs button.is-on {
  background: #09090b !important;
  color: #ffffff !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-top,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-pills,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-bottom {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-brand {
  color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-brand em,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-icon-btn,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-pills a {
  background: #f4f4f5 !important;
  border-color: #e4e4e7 !important;
  color: #52525b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-pills a.is-on {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-bottom a,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-bottom button {
  color: #a1a1aa !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-bottom .is-on,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-mobile-bottom a.is-on {
  color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-api-secret,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-field input,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-field select,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-money-input,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-search input,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .rp-pro-search,
html[data-rp-theme="light"]:not(#_) .va-reseller-filters select {
  background: #f4f4f5 !important;
  border-color: #e4e4e7 !important;
  color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-doc-pre,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-live-preview {
  background: #fafafa !important;
  border-color: #e4e4e7 !important;
  color: #27272a !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-setup-steps,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-docs-nav,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-api-product {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-setup-steps .is-on button,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-api-product.is-on,
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-docs-nav a.is-on {
  background: #f4f4f5 !important;
  color: #09090b !important;
}
html[data-rp-theme="light"]:not(#_) .va-shell--portal .va-sidebar-user {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
}
html[data-rp-theme="light"]:not(#_) .va-brand-ver {
  background: #f4f4f5 !important;
  border-color: #e4e4e7 !important;
  color: #71717a !important;
}
html[data-rp-theme="light"] .va-role-preview {
  background: rgba(255, 255, 255, 0.95);
  border-color: #e4e4e7;
}
html[data-rp-theme="light"] .va-role-preview-btn.is-on {
  background: #09090b;
  color: #ffffff;
}

/* Dark-only: hide theme toggle + neutralize light theme if cached */
html:not(#_) .va-theme-toggle,
html:not(#_) .va-sidebar-theme,
html:not(#_) .va-auth-theme-slot,
html:not(#_) #vaauth .va-auth-theme-slot,
html:not(#_) #vaauth button[aria-label*="theme" i],
html:not(#_) #vaauth button[aria-label*="Theme" i] {
  display: none !important;
}
/* Safety: never show retired mobile pills/dock */
html:not(#_) .va-shell--portal .va-mobile-pills,
html:not(#_) .va-shell--portal .va-mobile-bottom {
  display: none !important;
}
html[data-rp-theme="light"] {
  color-scheme: dark !important;
  background: #09090b !important;
  color: #fafafa !important;
}

/* Shared wallet tag + reseller sections + hide role preview */
html:not(#_) .va-role-preview { display: none !important; }
.va-bal-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.va-bal-cell > strong {
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fafafa;
}
.va-shared-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid #3f3f46;
  background: #18181b;
  color: #a1a1aa;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.va-reseller-section-row td {
  padding: 0.85rem 1rem 0.45rem !important;
  background: transparent !important;
  border-bottom: 0 !important;
}
.va-reseller-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}
.va-api-products--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.va-api-products--row .va-api-product {
  min-width: 9rem;
}
.va-activity-chart svg {
  height: 300px;
}

/* Force no brand version anywhere */
html:not(#_) .va-brand-ver,
html:not(#_) .va-mobile-brand em {
  display: none !important;
}

/* Hide leftovers + faster paint */
html:not(#_) .va-page-crumb { display: none !important; }
html:not(#_) .va-nav-section:empty { display: none !important; }
.va-overview .va-metric-card,
.va-overview .va-hero-balance,
.va-chart-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}
.va-bal-cell {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.4rem !important;
  white-space: nowrap;
}
.va-shared-tag {
  flex: 0 0 auto;
}
.rp-resellers-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 56px;
}

/* Account action buttons — compact */
html:not(#_) .va-acct-action,
html:not(#_) .va-shell--portal .va-acct-action.rp-btn,
html:not(#_) .va-shell--portal .va-acct-action.va-btn {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content;
  padding: 0.45rem 0.9rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
  height: auto !important;
}
/* Help contact button smaller */
html:not(#_) .va-shell--portal .va-help-card .va-btn,
html:not(#_) .va-shell--portal .va-card-soft a.va-btn {
  width: auto !important;
  padding: 0.5rem 0.95rem !important;
  font-size: 0.82rem !important;
}
/* Webhooks list layout */
.va-webhook-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.65rem;
  border: 1px solid #27272a;
  border-radius: 10px;
  overflow: hidden;
}
.va-webhook-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) minmax(0, 1.6fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #222222;
  background: #161616;
}
.va-webhook-row:last-child { border-bottom: 0; }
.va-webhook-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}
@media (max-width: 720px) {
  .va-webhook-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
/* Activity plot — soft Obsidian (match mockup cards) */
.va-activity-plot {
  background: transparent !important;
  border-color: transparent !important;
}
.va-chart-card {
  background: #161616 !important;
}
.va-chart-grid {
  stroke: rgba(255, 255, 255, 0.06) !important;
}
.va-range-tabs { display: none !important; }
/* Docs clickable + headings */
.va-docs-nav a {
  cursor: pointer;
  pointer-events: auto;
}
.va-docs-section h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #e4e4e7;
}
.va-docs-section {
  scroll-margin-top: 5.5rem;
}
/* Create reseller modal — tighter actions */
html:not(#_) .rp-create-modal .rp-modal-foot .rp-btn,
html:not(#_) .rp-modal.rp-create-modal .rp-btn-primary,
html:not(#_) .rp-modal.rp-create-modal .rp-btn-ghost {
  padding: 0.5rem 0.95rem !important;
  font-size: 0.82rem !important;
  min-height: 0 !important;
  height: auto !important;
}
html:not(#_) .rp-create-modal .rp-create-title-wrap p,
html:not(#_) .rp-create-modal .rp-hint {
  font-size: 0.75rem !important;
  line-height: 1.35;
}

/* Overview: Obsidian cards (mockup match) + readable numbers */
html:not(#_) .va-shell--portal .va-overview .va-hero-balance,
html:not(#_) .va-shell--portal .va-overview .va-metric-card {
  background:
    linear-gradient(180deg, #1a1a1a 0%, #141414 100%) !important;
  border: 1px solid #262626 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  content-visibility: visible !important;
  contain: none !important;
}
html:not(#_) .va-shell--portal .va-overview .va-hero-value,
html:not(#_) .va-shell--portal .va-overview .va-metric-card:not(.va-metric-card--used) strong,
html:not(#_) .va-shell--portal .va-overview .va-metric-card:not(.va-metric-card--used) .va-mono {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
}
html:not(#_) .va-shell--portal .va-overview .va-hero-value {
  font-size: clamp(2rem, 3.2vw, 2.6rem) !important;
}
html:not(#_) .va-shell--portal .va-overview .va-metric-card > span,
html:not(#_) .va-shell--portal .va-overview .va-hero-label {
  color: #a3a3a3 !important;
  font-weight: 500 !important;
}
html:not(#_) .va-shell--portal .va-overview .va-metric-card em,
html:not(#_) .va-shell--portal .va-overview .va-hero-balance .rp-hint {
  color: #737373 !important;
}
html:not(#_) .va-shell--portal .va-overview .va-mono-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e5e5e5 !important;
}
html:not(#_) .va-shell--portal .va-overview .va-metric-card--used strong,
html:not(#_) .va-shell--portal .va-overview .va-metric-card--used .va-mono {
  color: #4ade80 !important;
  -webkit-text-fill-color: #4ade80 !important;
}
html:not(#_) .va-shell--portal .va-overview .va-metric-card--used .va-mono-pill,
html:not(#_) .va-shell--portal .va-overview .va-metric-card--used .va-pill-good {
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.35) !important;
  background: rgba(34, 197, 94, 0.12) !important;
}
html:not(#_) .va-shell--portal .va-chart-card {
  background: #161616 !important;
  border: 1px solid #262626 !important;
  content-visibility: visible !important;
  contain: none !important;
}
html:not(#_) .va-shell--portal .va-activity-plot {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.15rem 0 0 !important;
}
html:not(#_) .va-shell--portal .va-chart-card .rp-chart.va-activity-chart svg,
html:not(#_) .va-shell--portal .va-activity-plot svg,
html:not(#_) .va-shell--portal .rp-chart.va-activity-chart svg {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html:not(#_) .va-shell--portal .va-chart-grid {
  stroke: rgba(255, 255, 255, 0.06) !important;
}
html:not(#_) .va-shell--portal .va-chart-y {
  fill: #737373 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}
html:not(#_) .va-shell--portal .va-chart-card .rp-chart-axis {
  color: #737373 !important;
  font-size: 0.72rem !important;
}
html:not(#_) .va-shell--portal .va-chart-card .rp-chart-line {
  stroke: #ffffff !important;
  stroke-width: 2 !important;
}

/* ═══════════ Global Obsidian — all portal pages ═══════════ */
html:not(#_) .va-shell--portal,
html:not(#_) .va-shell--portal .va-main,
html:not(#_) .va-shell--portal .va-page,
html:not(#_) .va-shell--portal #main-content,
html:not(#_) .va-shell--portal .rp-root {
  background: #121212 !important;
  color: #fafafa !important;
}
html:not(#_) .va-shell--portal .va-sidebar {
  background: #121212 !important;
  border-color: #262626 !important;
}
html:not(#_) .va-shell--portal .va-topbar,
html:not(#_) .va-shell--portal header.va-header {
  background: rgba(10, 10, 10, 0.92) !important;
  border-color: #262626 !important;
}

/* Cards / KPI / panels — same as Overview */
html:not(#_) .va-shell--portal .rp-card,
html:not(#_) .va-shell--portal .rp-table-card,
html:not(#_) .va-shell--portal .rp-pro-kpi-card,
html:not(#_) .va-shell--portal .va-card,
html:not(#_) .va-shell--portal .va-card-soft,
html:not(#_) .va-shell--portal .va-sr-stat-card,
html:not(#_) .va-shell--portal .rp-panel,
html:not(#_) .va-shell--portal .rp-panel-soft,
html:not(#_) .va-shell--portal .va-docs-card,
html:not(#_) .va-shell--portal .va-help-card,
html:not(#_) .va-shell--portal .va-setup-card,
html:not(#_) .va-shell--portal .va-acct-card,
html:not(#_) .va-shell--portal .rp-pro-toolbar,
html:not(#_) .va-shell--portal .rp-pro-pager,
html:not(#_) .va-shell--portal .rp-bulk-bar,
html:not(#_) .va-shell--portal .rp-empty,
html:not(#_) .va-shell--portal .rp-chart-card,
html:not(#_) .va-shell--portal .va-chart-card {
  background: #161616 !important;
  border-color: #262626 !important;
  box-shadow: none !important;
}

html:not(#_) .va-shell--portal .rp-pro-kpi-card,
html:not(#_) .va-shell--portal .va-sr-stat-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%) !important;
  border: 1px solid #262626 !important;
  border-radius: 14px !important;
}

html:not(#_) .va-shell--portal .rp-pro-kpi-value,
html:not(#_) .va-shell--portal .va-sr-stat-card strong,
html:not(#_) .va-shell--portal .va-card-title {
  color: #ffffff !important;
}
html:not(#_) .va-shell--portal .rp-pro-kpi-label,
html:not(#_) .va-shell--portal .rp-pro-kpi-sub,
html:not(#_) .va-shell--portal .va-card-hint,
html:not(#_) .va-shell--portal .rp-hint,
html:not(#_) .va-shell--portal .rp-muted {
  color: #a3a3a3 !important;
}

/* Tables */
html:not(#_) .va-shell--portal .rp-table-wrap,
html:not(#_) .va-shell--portal .rp-table {
  background: transparent !important;
  border-color: #262626 !important;
}
html:not(#_) .va-shell--portal .rp-table thead th {
  background: #141414 !important;
  color: #a3a3a3 !important;
  border-color: #262626 !important;
}
html:not(#_) .va-shell--portal .rp-table tbody td {
  background: #161616 !important;
  color: #f5f5f5 !important;
  border-color: #222222 !important;
}
html:not(#_) .va-shell--portal .rp-table tbody tr:hover td {
  background: #1a1a1a !important;
}

/* Inputs / selects / search */
html:not(#_) .va-shell--portal .rp-search,
html:not(#_) .va-shell--portal .rp-pro-search,
html:not(#_) .va-shell--portal input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html:not(#_) .va-shell--portal select,
html:not(#_) .va-shell--portal textarea,
html:not(#_) .va-shell--portal .rp-pro-select,
html:not(#_) .va-shell--portal .rp-bw-select-trigger,
html:not(#_) .va-shell--portal .rp-monite-field input,
html:not(#_) .va-shell--portal .rp-per-page select {
  background: #121212 !important;
  border-color: #262626 !important;
  color: #fafafa !important;
}
html:not(#_) .va-shell--portal .rp-bw-select-menu,
html:not(#_) .rp-bw-select-menu--portal {
  background: #141414 !important;
  border: 1px solid #2a2a2a !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55) !important;
  padding: 0.28rem !important;
}
/* Kill harsh white focus ring / left bar on dropdowns */
html:not(#_) .va-shell--portal .rp-bw-select.is-open .rp-bw-select-trigger,
html:not(#_) .va-shell--portal .rp-bw-select-trigger:focus-visible,
html:not(#_) .rp-modal .rp-bw-select.is-open .rp-bw-select-trigger,
html:not(#_) .rp-modal .rp-bw-select-trigger:focus-visible {
  border-color: #3a3a3a !important;
  box-shadow: none !important;
  outline: none !important;
}
html:not(#_) .va-shell--portal .rp-bw-select-option:hover,
html:not(#_) .rp-bw-select-menu--portal .rp-bw-select-option:hover,
html:not(#_) .rp-bw-select-option:focus-visible {
  background: #1c1c1c !important;
  color: #fafafa !important;
  box-shadow: none !important;
}
html:not(#_) .va-shell--portal .rp-bw-select-option.is-on,
html:not(#_) .rp-bw-select-menu--portal .rp-bw-select-option.is-on,
html:not(#_) .rp-bw-select-option.is-on {
  background: #222222 !important;
  color: #ffffff !important;
  box-shadow: none !important; /* was white left bar */
  font-weight: 600 !important;
}
html:not(#_) .rp-modal input:not([type="checkbox"]):not([type="radio"]):focus,
html:not(#_) .rp-modal input:not([type="checkbox"]):not([type="radio"]):focus-visible,
html:not(#_) .rp-modal .rp-monite-field input:focus,
html:not(#_) .rp-modal .rp-monite-field input:focus-visible {
  border-color: #3a3a3a !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Modals */
html:not(#_) .rp-modal,
html:not(#_) .rp-modal-monite,
html:not(#_) .va-shell--portal .rp-modal {
  background: #161616 !important;
  border-color: #262626 !important;
  color: #fafafa !important;
}
html:not(#_) .rp-modal-backdrop {
  background: rgba(0, 0, 0, 0.72) !important;
}

/* Docs / Setup / Account / API extras */
html:not(#_) .va-shell--portal .va-docs-nav,
html:not(#_) .va-shell--portal .va-docs-panel,
html:not(#_) .va-shell--portal .va-setup-step,
html:not(#_) .va-shell--portal .va-api-product,
html:not(#_) .va-shell--portal .va-webhook-list {
  background: #161616 !important;
  border-color: #262626 !important;
}
html:not(#_) .va-shell--portal .va-webhook-row {
  background: #161616 !important;
  border-bottom-color: #222222 !important;
}
html:not(#_) .va-shell--portal .va-docs-nav a:hover,
html:not(#_) .va-shell--portal .va-docs-nav a.is-on {
  background: #1a1a1a !important;
  color: #ffffff !important;
}
html:not(#_) .va-shell--portal pre,
html:not(#_) .va-shell--portal code.va-code,
html:not(#_) .va-shell--portal .va-code-block {
  background: #121212 !important;
  border-color: #262626 !important;
  color: #e5e5e5 !important;
}

/* Chips / pills / badges stay monochrome */
html:not(#_) .va-shell--portal .rp-duration-chip,
html:not(#_) .va-shell--portal .rp-product-pick,
html:not(#_) .va-shell--portal .rp-product-manage-row,
html:not(#_) .va-shell--portal .va-mono-pill,
html:not(#_) .va-shell--portal .rp-trend {
  background: #1a1a1a !important;
  border-color: #333333 !important;
  color: #e5e5e5 !important;
}
html:not(#_) .va-shell--portal .rp-duration-chip.is-on,
html:not(#_) .va-shell--portal .rp-product-manage-row.is-on {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #0a0a0a !important;
}
html:not(#_) .va-shell--portal .rp-duration-chip.is-on strong,
html:not(#_) .va-shell--portal .rp-duration-chip.is-on em {
  color: #0a0a0a !important;
}

/* Profile / footer */
html:not(#_) .va-shell--portal .va-profile,
html:not(#_) .va-shell--portal .va-sidebar-foot {
  background: transparent !important;
  border-color: #262626 !important;
}
html:not(#_) .va-shell--portal .va-profile-menu {
  background: #161616 !important;
  border-color: #262626 !important;
}

/* Money display — Sora (cleaner than mono for $ amounts) */
html:not(#_) .va-shell--portal .va-money,
html:not(#_) .va-shell--portal .rp-balance-hero-value.va-money,
html:not(#_) .va-shell--portal .rp-wallet-chip .va-money {
  font-family: var(--fx-money) !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  color: #ffffff !important;
}
html:not(#_) .va-shell--portal .va-money-cur {
  font-weight: 500 !important;
  opacity: 0.55;
  margin-right: 0.06em;
  letter-spacing: 0 !important;
}
html:not(#_) .va-shell--portal .va-money-amt {
  font-weight: 650 !important;
}

/* ═══════════ Mobile polish — sidebar + home ═══════════ */
@media (max-width: 767.98px) {
  html:not(#_) .va-shell--portal .va-sidebar.is-open,
  html:not(#_) .va-shell--portal #sidebar.is-open {
    width: min(17.5rem, 86vw) !important;
    background: #121212 !important;
    border-right: 1px solid #262626 !important;
  }
  html:not(#_) .va-shell--portal .va-side-nav {
    gap: 0.15rem !important;
    padding-bottom: 0.75rem !important;
  }
  html:not(#_) .va-shell--portal .va-side-nav.space-y-2 {
    row-gap: 0.15rem;
  }
  html:not(#_) .va-shell--portal .va-side-nav .va-nav-section {
    margin: 0.95rem 0.55rem 0.3rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #737373 !important;
  }
  html:not(#_) .va-shell--portal .va-nav-link {
    min-height: 2.55rem !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
  }
  html:not(#_) .va-shell--portal .va-nav-link i {
    font-size: 1.05rem !important;
    width: 1.2rem !important;
  }
  html:not(#_) .va-shell--portal .va-nav-logout {
    margin-top: 0.55rem !important;
    border-top: 1px solid #262626 !important;
    border-radius: 0 0 10px 10px !important;
    padding-top: 0.75rem !important;
    color: #a3a3a3 !important;
  }
  html:not(#_) .va-shell--portal .va-sidebar-user {
    border-top: 1px solid #262626 !important;
    padding: 0.85rem 0.9rem !important;
    background: #0f0f0f !important;
  }
  html:not(#_) .va-shell--portal .va-mobile-top {
    background: #121212 !important;
    border-bottom-color: #262626 !important;
  }
  /* Home cards — tighter, less “huge” */
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero {
    padding: 1rem 1.05rem !important;
    border-radius: 14px !important;
    margin-bottom: 0.7rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.06em !important;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-value {
    font-size: 1.75rem !important;
    letter-spacing: -0.03em !important;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-hint {
    font-size: 0.72rem !important;
  }
  html:not(#_) .va-shell--portal .rp-stat-grid--home {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .rp-stat-grid--home .rp-stat,
  html:not(#_) .va-shell--portal .rp-stat-grid--home .rp-stat--rich {
    min-height: 0 !important;
    padding: 0.85rem 0.8rem !important;
    border-radius: 12px !important;
  }
  html:not(#_) .va-shell--portal .rp-stat-grid--home .rp-stat strong {
    font-size: 1.35rem !important;
  }
  html:not(#_) .va-shell--portal .rp-toolbar {
    margin-bottom: 0.75rem !important;
  }
  html:not(#_) .va-shell--portal .rp-toolbar h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.15rem !important;
  }
  html:not(#_) .va-shell--portal .rp-toolbar .rp-hint {
    font-size: 0.75rem !important;
  }
  html:not(#_) .va-shell--portal .rp-chart-card,
  html:not(#_) .va-shell--portal .va-chart-card {
    padding: 0.9rem !important;
    border-radius: 14px !important;
  }

  /* Kill leftover desktop topbar padding on portal mobile */
  html:not(#_) .va-shell--portal .va-main-column {
    padding-top: 0 !important;
  }
  html:not(#_) .va-shell--portal .va-page {
    padding-top: 0.45rem !important;
  }
  html:not(#_) .va-shell--portal .rp-toolbar {
    margin: 0 0 0.55rem !important;
    gap: 0.2rem !important;
  }
  html:not(#_) .va-shell--portal .rp-toolbar h1 {
    font-size: 1.28rem !important;
    margin: 0 !important;
    line-height: 1.15 !important;
  }
  html:not(#_) .va-shell--portal .rp-toolbar .rp-hint {
    font-size: 0.72rem !important;
    margin: 0.1rem 0 0 !important;
    line-height: 1.3 !important;
  }

  /* ── Home redesign ── */
  html:not(#_) .va-shell--portal .rp-home {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.2rem !important;
    padding: 0.9rem 1rem !important;
    border-radius: 14px !important;
    border: 1px solid #2a2a2a !important;
    background: linear-gradient(165deg, #1c1c1c 0%, #141414 100%) !important;
    margin: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
  }
  /* flex:1 was stretching the card empty — keep content-sized */
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-main {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-label {
    font-size: 0.65rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #8a8a8a !important;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-value,
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-value.va-money {
    font-family: var(--fx-money) !important;
    font-size: 2.05rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.05em !important;
    font-variant-numeric: tabular-nums !important;
    color: #fff !important;
    line-height: 1.05 !important;
    margin-top: 0.22rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home .va-money-cur {
    font-size: 0.7em !important;
    font-weight: 500 !important;
    opacity: 0.5 !important;
    vertical-align: 0.06em;
    margin-right: 0.05em;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-hint {
    font-size: 0.7rem !important;
    color: #737373 !important;
    margin: 0.2rem 0 0 !important;
    line-height: 1.35 !important;
  }
  html:not(#_) .va-shell--portal .rp-home .rp-balance-hero-side {
    margin-top: 0.45rem !important;
    padding: 0.55rem 0.7rem !important;
    border-top: 1px solid #2a2a2a !important;
    align-self: stretch !important;
  }

  .va-home-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }
  .va-home-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .va-home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 650;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .va-home-action i {
    font-size: 1rem;
  }
  .va-home-action--primary {
    width: 100%;
    background: #ffffff !important;
    color: #0a0a0a !important;
    border-color: #ffffff !important;
  }
  .va-home-action--primary:disabled {
    opacity: 0.45;
  }
  .va-home-action--ghost {
    background: #161616 !important;
    color: #f5f5f5 !important;
    border-color: #2e2e2e !important;
  }
  .va-home-action--ghost:active,
  .va-home-action--primary:active {
    transform: scale(0.985);
  }

  html:not(#_) .va-shell--portal .va-home-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
    margin: 0 !important;
  }
  html:not(#_) .va-shell--portal .va-home-stats .rp-stat,
  html:not(#_) .va-shell--portal .va-home-stats .rp-stat--rich {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    min-height: 0 !important;
    padding: 0.9rem 0.85rem !important;
    border-radius: 14px !important;
    border: 1px solid #2a2a2a !important;
    background: #161616 !important;
  }
  html:not(#_) .va-shell--portal .va-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
  }
  html:not(#_) .va-shell--portal .va-stat-head span {
    font-size: 0.72rem !important;
    color: #9a9a9a !important;
    font-weight: 550 !important;
  }
  html:not(#_) .va-shell--portal .va-stat-head i {
    color: #5c5c5c !important;
    font-size: 0.95rem !important;
  }
  html:not(#_) .va-shell--portal .va-home-stats .rp-stat strong {
    font-family: var(--fx-mono), "JetBrains Mono", ui-monospace, monospace !important;
    font-size: 1.65rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.04em !important;
    font-variant-numeric: tabular-nums !important;
    color: #fff !important;
    line-height: 1.1 !important;
  }
  html:not(#_) .va-shell--portal .va-home-stats .rp-stat--used strong {
    color: #4ade80 !important;
  }
  html:not(#_) .va-shell--portal .va-home-stats .rp-stat--banned strong {
    color: #f87171 !important;
  }
  html:not(#_) .va-shell--portal .va-mono-pill {
    font-family: var(--fx-mono), "JetBrains Mono", ui-monospace, monospace !important;
    font-variant-numeric: tabular-nums !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
  }
  html:not(#_) .va-shell--portal .va-home-stats .rp-stat em,
  html:not(#_) .va-shell--portal .va-home-stats .rp-stat small {
    display: none !important; /* cleaner mobile cards */
  }
  html:not(#_) .va-shell--portal .va-pill-good {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #4ade80 !important;
  }
  html:not(#_) .va-shell--portal .va-home-chart {
    margin-top: 0.15rem !important;
  }
  html:not(#_) .va-shell--portal .va-home-chart .rp-chart svg,
  html:not(#_) .va-shell--portal .va-home-chart .va-activity-chart svg {
    height: 160px !important;
  }

  /* ── Keys Manager redesign ── */
  html:not(#_) .va-shell--portal .rp-toolbar:has(.rp-keys-actions) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-bottom: 0.85rem !important;
  }
  html:not(#_) .va-shell--portal .rp-toolbar:has(.rp-keys-actions) > div:first-child {
    width: 100% !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    width: 100% !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-balance-row {
    display: flex !important;
    width: 100% !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-balance-row .rp-wallet-chip {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 2.75rem !important;
    padding: 0.7rem 0.95rem !important;
    border-radius: 12px !important;
    border: 1px solid #2a2a2a !important;
    background: #161616 !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-balance-row .rp-wallet-chip span {
    font-size: 0.68rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: #8a8a8a !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-balance-row .rp-wallet-chip strong,
  html:not(#_) .va-shell--portal .rp-keys-balance-row .va-money {
    font-family: var(--fx-money) !important;
    font-size: 1.18rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.04em !important;
    font-variant-numeric: tabular-nums !important;
    color: #fff !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-balance-row .va-money-cur {
    font-size: 0.72em !important;
    opacity: 0.5 !important;
    font-weight: 500 !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-actions .rp-btn-generate {
    width: 100% !important;
    min-height: 2.9rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #0a0a0a !important;
    border: 0 !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-actions .rp-gen-label-full {
    display: none !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-actions .rp-gen-label-short {
    display: inline !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
    margin-bottom: 0.85rem !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-card {
    padding: 0.9rem 0.85rem !important;
    border-radius: 14px !important;
    border: 1px solid #2a2a2a !important;
    background: #161616 !important;
    min-height: 0 !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.45rem !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-label {
    font-size: 0.72rem !important;
    color: #9a9a9a !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-ico {
    width: 1.55rem !important;
    height: 1.55rem !important;
    border-radius: 8px !important;
    background: #1f1f1f !important;
    border: 1px solid #2e2e2e !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0.78rem !important;
    color: #a3a3a3 !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-value {
    font-family: var(--fx-money) !important;
    font-size: 1.55rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.04em !important;
    font-variant-numeric: tabular-nums !important;
    color: #fff !important;
    line-height: 1.1 !important;
  }
  html:not(#_) .va-shell--portal .va-mobile-refresh {
    pointer-events: auto !important;
    z-index: 80 !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-value-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-card--used .rp-pro-kpi-value {
    color: #4ade80 !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-card--banned .rp-pro-kpi-value {
    color: #f87171 !important;
  }
  html:not(#_) .va-shell--portal .va-keys-stats .rp-pro-kpi-sub {
    font-size: 0.68rem !important;
    color: #6e6e6e !important;
    margin-top: 0.2rem !important;
  }
  html:not(#_) .va-shell--portal .va-subseller-gen {
    margin-bottom: 0.75rem !important;
    border-radius: 14px !important;
  }

  /* Reseller overview mobile — hide desktop side actions */
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-home-actions--desktop {
    display: none !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-home-actions--mobile {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    margin: 0 0 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-home-actions--mobile .va-home-action-row {
    display: contents;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-hero-balance {
    display: block !important;
    padding: 0.95rem 1rem !important;
    margin-bottom: 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-hero-value {
    font-family: var(--fx-money) !important;
    font-size: 2rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-metric-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .va-home-action {
    min-height: 2.7rem !important;
    border-radius: 11px !important;
    font-size: 0.86rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home {
    gap: 0.55rem !important;
  }

  /* Keys filters side-by-side */
  html:not(#_) .va-shell--portal .rp-keys-panel .rp-pro-toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    margin: 0 0 0.55rem !important;
    padding: 0.75rem !important;
    border-bottom: 1px solid #222 !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-panel .rp-pro-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-panel .rp-pro-search {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Keys rows → mobile cards (no sideways scroll) */
  html:not(#_) .va-shell--portal .rp-keys-panel {
    border-radius: 14px !important;
    border: 1px solid #2a2a2a !important;
    background: #121212 !important;
    overflow: hidden !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-panel .rp-table-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 0.65rem 0.65rem !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table thead {
    display: none !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody {
    display: block !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody tr {
    display: block !important;
    margin: 0 0 0.5rem !important;
    padding: 0.75rem 2.35rem 0.75rem 0.8rem !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    background: #161616 !important;
    position: relative !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    white-space: normal !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table .rp-col-extra {
    display: inline !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(1) {
    display: block !important;
    font-family: var(--fx-mono) !important;
    font-size: 0.78rem !important;
    font-weight: 550 !important;
    color: #f4f4f5 !important;
    word-break: break-all !important;
    margin-bottom: 0.4rem !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(1) .rp-key-text {
    font: inherit !important;
    color: inherit !important;
    text-align: left !important;
    word-break: break-all !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td.rp-td-actions {
    display: block !important;
    position: absolute !important;
    top: 0.55rem !important;
    right: 0.45rem !important;
    width: auto !important;
    padding: 0 !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(2),
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(3),
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(4),
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(5),
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(6) {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    margin: 0 0.4rem 0.15rem 0 !important;
    font-size: 0.72rem !important;
    color: #8a8a8a !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(2) {
    color: #e5e5e5 !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(2) .rp-pro-pkg {
    display: inline !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(2) .rp-pro-pkg strong {
    font-size: inherit !important;
    font-weight: inherit !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-table tbody td:nth-child(7) {
    display: none !important;
  }
  html:not(#_) .va-shell--portal .rp-pro-pager {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.72rem !important;
  }
}

/* Reseller overview — match admin desktop cards */
@media (min-width: 768px) {
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-hero-balance {
    display: grid !important;
    grid-template-columns: 1.4fr auto !important;
    gap: 1rem !important;
    align-items: center !important;
    margin-bottom: 0.95rem !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-hero-value,
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-hero-value.va-money {
    font-family: var(--fx-money) !important;
    font-size: 2.45rem !important;
    font-weight: 650 !important;
    letter-spacing: -0.05em !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-home-actions--mobile {
    display: none !important;
  }
  html:not(#_) .va-shell--portal .rp-home.va-overview .va-home-actions--desktop {
    display: flex !important;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 10.5rem;
  }
  .va-home-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.65rem;
    margin: 0.85rem 0 1rem;
    align-items: stretch;
  }
  .va-home-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .va-home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 650;
    border: 1px solid transparent;
    cursor: pointer;
  }
  .va-home-action--primary {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
  }
  .va-home-action--ghost {
    background: #161616;
    color: #f5f5f5;
    border-color: #2e2e2e;
  }
  .va-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .va-stat-head i {
    color: #525252;
    font-size: 0.9rem;
  }
  .rp-pro-kpi-value-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .va-pill-good {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #4ade80 !important;
  }
}

/* ═══ Keys Manager mobile polish — compact, readable, more keys visible ═══ */
@media (max-width: 768px) {
  /* Title: drop long subtitle */
  html:not(#_) .rp-root .rp-toolbar:has(.rp-keys-actions) .rp-hint,
  html:not(#_) .rp-root .rp-toolbar:has(.rp-btn-generate) .rp-hint {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-toolbar:has(.rp-keys-actions),
  html:not(#_) .rp-root .rp-toolbar:has(.rp-btn-generate) {
    margin-bottom: 0.55rem !important;
    gap: 0.55rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar:has(.rp-keys-actions) h1,
  html:not(#_) .rp-root .rp-toolbar:has(.rp-btn-generate) h1 {
    font-size: 1.28rem !important;
    margin: 0 !important;
  }

  /* Balance + Generate on ONE row */
  html:not(#_) .rp-root .rp-toolbar-actions.rp-keys-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.45rem !important;
    align-items: stretch !important;
    position: static !important;
    padding: 0 !important;
    background: none !important;
  }
  html:not(#_) .rp-root .rp-keys-balance-row {
    display: flex !important;
    min-width: 0 !important;
  }
  html:not(#_) .rp-root .rp-keys-actions .rp-wallet-chip {
    width: 100% !important;
    min-height: 2.4rem !important;
    padding: 0.45rem 0.7rem !important;
    border-radius: 10px !important;
  }
  html:not(#_) .rp-root .rp-keys-actions .rp-wallet-chip strong,
  html:not(#_) .rp-root .rp-keys-actions .rp-wallet-chip .va-money-amt {
    font-size: 0.95rem !important;
  }
  html:not(#_) .rp-root .rp-keys-actions .rp-btn-generate {
    width: auto !important;
    min-width: 6.6rem !important;
    min-height: 2.4rem !important;
    max-height: none !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
  }

  /* Admin: keep Generate compact top-right */
  html:not(#_) .rp-root .rp-toolbar-actions:not(.rp-keys-actions) .rp-btn-generate {
    min-height: 2.4rem !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  /* KPI strip: 4 tiny cells in one row (override unified big cards) */
  html:not(#_) .va-shell--portal .rp-keys-kpi.rp-pro-kpi,
  html:not(#_) .rp-root .rp-keys-kpi.rp-pro-kpi,
  html:not(#_) .rp-root .rp-pro-kpi.rp-keys-kpi {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    margin: 0 0 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-card,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-card {
    min-height: 0 !important;
    height: auto !important;
    padding: 0.45rem 0.4rem 0.4rem !important;
    border-radius: 10px !important;
    gap: 0.1rem !important;
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
    box-shadow: none !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-ico,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-ico,
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-sub,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-sub,
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-spark,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-spark,
  html:not(#_) .va-shell--portal .rp-keys-kpi .va-mono-pill,
  html:not(#_) .rp-root .rp-keys-kpi .va-mono-pill {
    display: none !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-label,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-label {
    font-size: 0.52rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #8a8a8a !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-value,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-value {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-card--used .rp-pro-kpi-value,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-card--used .rp-pro-kpi-value {
    color: #4ade80 !important;
  }
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-value-row {
    gap: 0.2rem !important;
  }

  /* Search + filters tighter */
  html:not(#_) .rp-root .rp-keys-panel {
    border-radius: 12px !important;
    overflow: visible !important;
  }
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-toolbar,
  html:not(#_) .rp-root .rp-keys-panel .rp-keys-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    margin: 0 !important;
    padding: 0.7rem 0.7rem 0.65rem !important;
    border-bottom: 1px solid #2a2a2a !important;
  }
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-search {
    width: 100% !important;
    max-width: none !important;
  }
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-search input {
    min-height: 2.35rem !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
  }
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-search-btn {
    grid-column: 1 / -1;
    min-height: 2.2rem !important;
  }
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-select-wrap,
  html:not(#_) .rp-root .rp-keys-panel .rp-bw-select,
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-select {
    min-height: 2.35rem !important;
    font-size: 0.78rem !important;
    border-radius: 10px !important;
  }

  /* Key cards: denser list */
  html:not(#_) .rp-root .rp-key-cards,
  html:not(#_) .rp-root .rp-key-cards.rp-mobile-only {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    padding: 0.55rem 0.6rem 0.75rem !important;
  }
  html:not(#_) .rp-root .rp-key-card {
    padding: 0.7rem 0.75rem !important;
    border-radius: 11px !important;
    background: #101010 !important;
    border: 1px solid #222222 !important;
  }
  html:not(#_) .rp-root .rp-key-card-top {
    margin-bottom: 0.4rem !important;
    gap: 0.4rem !important;
  }
  html:not(#_) .rp-root .rp-key-card-top .rp-key-text {
    font-size: 0.8rem !important;
    letter-spacing: 0.01em !important;
  }
  html:not(#_) .rp-root .rp-key-card-meta {
    gap: 0.3rem 0.4rem !important;
    font-size: 0.72rem !important;
    margin-bottom: 0.15rem;
  }
  html:not(#_) .rp-root .rp-key-card-meta .rp-pill {
    font-size: 0.62rem !important;
    padding: 0.14rem 0.4rem !important;
  }
  html:not(#_) .rp-root .rp-key-card-date {
    margin-top: 0.28rem !important;
    font-size: 0.66rem !important;
    color: #777 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html:not(#_) .rp-root .rp-keys-panel .rp-bulk-bar {
    padding: 0.45rem 0.7rem !important;
  }
  html:not(#_) .rp-root .rp-keys-panel .rp-pro-pager {
    padding: 0.55rem 0.7rem !important;
    gap: 0.45rem !important;
  }
}

@media (max-width: 380px) {
  html:not(#_) .va-shell--portal .rp-keys-kpi.rp-pro-kpi,
  html:not(#_) .rp-root .rp-keys-kpi.rp-pro-kpi {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-value,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-value {
    font-size: 0.95rem !important;
  }
  html:not(#_) .va-shell--portal .rp-keys-kpi .rp-pro-kpi-label,
  html:not(#_) .rp-root .rp-keys-kpi .rp-pro-kpi-label {
    font-size: 0.48rem !important;
  }
}

/* ═══ Admin Resellers tab — mobile polish ═══ */
@media (max-width: 768px) {
  /* Compact title + Create */
  html:not(#_) .rp-root .rp-toolbar:has(+ .rp-banner) .rp-hint,
  html:not(#_) .rp-root:has(.rp-resellers-panel) > .rp-toolbar .rp-hint {
    display: none !important;
  }
  html:not(#_) .rp-root:has(.rp-resellers-panel) > .rp-toolbar {
    margin-bottom: 0.55rem !important;
    gap: 0.5rem !important;
  }
  html:not(#_) .rp-root:has(.rp-resellers-panel) > .rp-toolbar h1 {
    font-size: 1.28rem !important;
    margin: 0 !important;
  }
  html:not(#_) .rp-root:has(.rp-resellers-panel) > .rp-toolbar .rp-btn-sm {
    min-height: 2.35rem !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  /* Summary strip — 4 tiny cells */
  html:not(#_) .va-shell--portal .rp-resellers-summary.va-summary-grid,
  html:not(#_) .rp-root .rp-resellers-summary.va-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    margin: 0 0 0.55rem !important;
  }
  html:not(#_) .va-shell--portal .rp-resellers-summary .va-summary-card,
  html:not(#_) .rp-root .rp-resellers-summary .va-summary-card {
    min-height: 0 !important;
    padding: 0.45rem 0.4rem 0.4rem !important;
    border-radius: 10px !important;
    gap: 0.1rem !important;
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: none !important;
  }
  html:not(#_) .va-shell--portal .rp-resellers-summary .va-summary-card > span,
  html:not(#_) .rp-root .rp-resellers-summary .va-summary-card > span {
    font-size: 0.5rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #8a8a8a !important;
  }
  html:not(#_) .va-shell--portal .rp-resellers-summary .va-summary-card strong,
  html:not(#_) .va-shell--portal .rp-resellers-summary .va-summary-card .va-mono,
  html:not(#_) .rp-root .rp-resellers-summary .va-summary-card strong,
  html:not(#_) .rp-root .rp-resellers-summary .va-summary-products {
    font-size: 0.92rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }

  /* Toolbar: search + filters */
  html:not(#_) .rp-root .rp-resellers-panel {
    border-radius: 12px !important;
    background: #161616 !important;
    border-color: #2a2a2a !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  html:not(#_) .rp-root .rp-resellers-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    padding: 0.7rem 0.7rem 0.65rem !important;
    background: #161616 !important;
    border-bottom-color: #2a2a2a !important;
  }
  html:not(#_) .rp-root .rp-resellers-search {
    max-width: none !important;
    flex: 1 1 auto !important;
    width: 100% !important;
  }
  html:not(#_) .rp-root .rp-resellers-search input {
    min-height: 2.35rem !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
    background: #121212 !important;
  }
  html:not(#_) .rp-root .rp-resellers-panel .va-reseller-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }
  html:not(#_) .rp-root .rp-resellers-panel .va-reseller-filters select {
    width: 100% !important;
    min-height: 2.35rem !important;
    font-size: 0.76rem !important;
    border-radius: 10px !important;
    padding: 0.35rem 0.55rem !important;
    background: #121212 !important;
    border: 1px solid #2e2e2e !important;
    color: #e8e8e8 !important;
  }
  html:not(#_) .rp-root .rp-resellers-panel .va-reseller-filters select:last-child {
    grid-column: 1 / -1;
  }

  html:not(#_) .rp-root .rp-resellers-wrap {
    padding: 0.55rem 0.55rem 0.65rem !important;
  }
  html:not(#_) .rp-root .va-reseller-section-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.06em !important;
    color: #8a8a8a !important;
  }
}

@media (max-width: 380px) {
  html:not(#_) .va-shell--portal .rp-resellers-summary.va-summary-grid,
  html:not(#_) .rp-root .rp-resellers-summary.va-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  html:not(#_) .va-shell--portal .rp-resellers-summary .va-summary-card strong,
  html:not(#_) .rp-root .rp-resellers-summary .va-summary-card strong {
    font-size: 0.82rem !important;
  }
}

/* Set prices modal — keep compact $ inputs (Windows Chrome) */
html:not(#_) .rp-prices-modal .rp-price-row-input,
html:not(#_) .rp-modal.rp-prices-modal .rp-price-row-input {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  width: 6.5rem !important;
  min-height: 2.35rem !important;
  padding: 0 0.65rem !important;
  border: 1px solid #333 !important;
  border-radius: 9px !important;
  background: #121212 !important;
  box-sizing: border-box !important;
}
html:not(#_) .rp-prices-modal .rp-price-row-input input,
html:not(#_) .rp-modal.rp-prices-modal .rp-price-row-input input,
html:not(#_) .va-shell--portal .rp-prices-modal .rp-price-row-input input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-align: left !important;
  appearance: textfield !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
}
html:not(#_) .rp-prices-modal .rp-price-row-input input:hover,
html:not(#_) .rp-prices-modal .rp-price-row-input input:focus,
html:not(#_) .rp-prices-modal .rp-price-row-input input:focus-visible,
html:not(#_) .rp-modal.rp-prices-modal .rp-price-row-input input:focus,
html:not(#_) .rp-modal.rp-prices-modal .rp-price-row-input input:focus-visible {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
html:not(#_) .rp-prices-modal .rp-price-row {
  background: #1a1a1a !important;
  border-color: #2a2a2a !important;
}

/* Black-light Generate / Create CTA — beat white primary overrides */
html:not(#_) .rp-root .rp-cta-blacklight,
html:not(#_) .va-shell--portal .rp-cta-blacklight,
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%),
    #0a0a0a !important;
  color: #f4fff9 !important;
  border: 1px solid rgba(180, 255, 220, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(74, 222, 128, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
}
html:not(#_) .rp-root .rp-cta-blacklight:hover:not(:disabled),
html:not(#_) .va-shell--portal .rp-cta-blacklight:hover:not(:disabled),
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight:hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 55%),
    #0d0d0d !important;
  color: #ffffff !important;
  border-color: rgba(190, 255, 230, 0.45) !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 26px rgba(74, 222, 128, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
html:not(#_) .rp-root .rp-cta-blacklight .lni {
  display: none !important;
}

/* Mobile shell polish — admin + reseller */
@media (max-width: 767.98px) {
  html:not(#_) .va-shell--portal .va-page {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar {
    gap: 0.7rem !important;
    margin-bottom: 0.85rem !important;
  }
  html:not(#_) .rp-root .rp-toolbar h1 {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
  }
  html:not(#_) .rp-root .rp-cta-blacklight {
    min-height: 2.7rem !important;
    padding: 0.55rem 1.05rem !important;
  }
  html:not(#_) .rp-root .rp-pro-kpi-card--used .rp-pro-kpi-value {
    color: #4ade80 !important;
  }
}

/* Beat mobile white Generate overrides (keys row + toolbar) */
@media (max-width: 767.98px) {
  html:not(#_) .va-shell--portal .rp-keys-actions .rp-btn-generate.rp-cta-blacklight,
  html:not(#_) .rp-root .rp-keys-actions .rp-btn-generate.rp-cta-blacklight,
  html:not(#_) .rp-root .rp-toolbar-actions .rp-btn-generate.rp-cta-blacklight,
  html:not(#_) .rp-root .rp-toolbar-actions .rp-cta-blacklight {
    width: auto !important;
    min-width: 7.2rem !important;
    min-height: 2.65rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 999px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%),
      #0a0a0a !important;
    color: #f4fff9 !important;
    border: 1px solid rgba(180, 255, 220, 0.28) !important;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.65),
      0 0 18px rgba(74, 222, 128, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }
}

/* Soft black-light wash on mobile admin/reseller pages */
@media (max-width: 767.98px) {
  html:not(#_) .va-shell--portal .va-page {
    background:
      radial-gradient(ellipse 80% 40% at 50% -10%, rgba(74, 222, 128, 0.06), transparent 55%),
      #000000 !important;
  }
  html:not(#_) .rp-root .rp-search,
  html:not(#_) .rp-root .rp-filters,
  html:not(#_) .rp-root .rp-card-panel {
    border-color: #2a2a2a !important;
    background: #121212 !important;
  }
  html:not(#_) .rp-root .rp-reseller-card,
  html:not(#_) .rp-root .rp-key-card {
    border: 1px solid #2c2c2c !important;
    background:
      linear-gradient(165deg, rgba(74, 222, 128, 0.035), transparent 42%),
      #141414 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
  }
}

/* Home Used count → green (admin + reseller) */
html:not(#_) .rp-root .rp-stat-grid--home .rp-stat--used strong,
html:not(#_) .va-shell--portal .rp-stat-grid--home .rp-stat--used strong,
html:not(#_) .va-shell--portal .rp-home .rp-stat--used strong {
  color: #4ade80 !important;
}

/* Generate / Create — classic dark pill, text only (no +) */
html:not(#_) .rp-root .rp-cta-blacklight,
html:not(#_) .va-shell--portal .rp-cta-blacklight,
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight,
html:not(#_) .va-shell--portal .va-overview .rp-btn-generate.rp-cta-blacklight {
  gap: 0 !important;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(74, 222, 128, 0.22), transparent 48%),
    linear-gradient(180deg, #161616, #0a0a0a) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(74, 222, 128, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  padding: 0.55rem 1.2rem !important;
  font-weight: 700 !important;
}
html:not(#_) .rp-root .rp-cta-blacklight .lni,
html:not(#_) .rp-root .rp-cta-blacklight svg,
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight .lni,
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight::before,
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight::after {
  display: none !important;
  content: none !important;
}

/* Numbers — clean JetBrains Mono tabular (balances, keys, KPIs, home) */
html:not(#_) .rp-root .rp-bal,
html:not(#_) .rp-root .rp-td-num,
html:not(#_) .rp-root .rp-th-num,
html:not(#_) .rp-root .rp-pro-kpi-value,
html:not(#_) .rp-root .rp-stat strong,
html:not(#_) .rp-root .rp-stat-row > strong,
html:not(#_) .rp-root .rp-balance-hero-value,
html:not(#_) .rp-root .rp-wallet-chip strong,
html:not(#_) .rp-root .va-money-amt,
html:not(#_) .va-shell--portal .rp-bal,
html:not(#_) .va-shell--portal .rp-td-num,
html:not(#_) .va-shell--portal .rp-pro-kpi-value,
html:not(#_) .va-shell--portal .rp-stat strong,
html:not(#_) .va-shell--portal .rp-balance-hero-value,
html:not(#_) .va-shell--portal .va-money-amt,
html:not(#_) .rp-root .rp-reseller-card .rp-bal,
html:not(#_) .rp-root .rp-reseller-bals strong,
html:not(#_) .rp-root .rp-key-card strong {
  font-family: "JetBrains Mono", var(--fx-mono), ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
}

/* Create / Generate — kill any leftover + / key icon (all CTAs) */
html:not(#_) .rp-root .rp-cta-blacklight::before,
html:not(#_) .rp-root .rp-cta-blacklight::after,
html:not(#_) .va-shell--portal .rp-cta-blacklight::before,
html:not(#_) .va-shell--portal .rp-cta-blacklight::after,
html:not(#_) .rp-root .rp-toolbar-actions .rp-cta-blacklight .lni,
html:not(#_) .va-shell--portal .rp-toolbar-actions .rp-cta-blacklight .lni,
html:not(#_) .rp-root .rp-cta-blacklight > i {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Generate / Create → solid white pill, black text, no + */
html:not(#_) .rp-root .rp-cta-blacklight,
html:not(#_) .va-shell--portal .rp-cta-blacklight,
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight,
html:not(#_) .va-shell--portal .va-overview .rp-btn-generate.rp-cta-blacklight,
html:not(#_) .va-shell--portal .rp-keys-actions .rp-btn-generate.rp-cta-blacklight {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
}
html:not(#_) .rp-root .rp-cta-blacklight:hover:not(:disabled),
html:not(#_) .va-shell--portal .rp-cta-blacklight:hover:not(:disabled),
html:not(#_) .rp-root .rp-btn-generate.rp-cta-blacklight:hover:not(:disabled),
html:not(#_) .va-shell--portal .va-overview .rp-btn-generate.rp-cta-blacklight:hover:not(:disabled) {
  background: #f4f4f5 !important;
  color: #0a0a0a !important;
  border: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}
html:not(#_) .rp-root .rp-cta-blacklight-glow {
  display: none !important;
}
html:not(#_) .rp-root .rp-cta-blacklight .lni,
html:not(#_) .rp-root .rp-cta-blacklight svg {
  display: none !important;
}

@media (max-width: 767.98px) {
  html:not(#_) .va-shell--portal .rp-keys-actions .rp-btn-generate.rp-cta-blacklight,
  html:not(#_) .rp-root .rp-keys-actions .rp-btn-generate.rp-cta-blacklight,
  html:not(#_) .rp-root .rp-toolbar-actions .rp-btn-generate.rp-cta-blacklight,
  html:not(#_) .rp-root .rp-toolbar-actions .rp-cta-blacklight {
    background: #ffffff !important;
    color: #0a0a0a !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* Numbers → clean Inter (normal), tabular */
html:not(#_) .rp-root .rp-stat strong,
html:not(#_) .rp-root .rp-pro-kpi-value,
html:not(#_) .rp-root .rp-balance-hero-value,
html:not(#_) .va-shell--portal .rp-stat strong,
html:not(#_) .va-shell--portal .rp-pro-kpi-value,
html:not(#_) .va-shell--portal .va-money,
html:not(#_) .va-shell--portal .va-money-amt,
html:not(#_) .rp-root .rp-wallet-chip strong,
html:not(#_) .rp-root .rp-sellers-table td,
html:not(#_) .rp-root .rp-sellers-table .rp-bal,
html:not(#_) .rp-root .rp-sellers-table .rp-keys-cell,
html:not(#_) .rp-root .rp-reseller-card .rp-metric strong,
html:not(#_) .rp-root .rp-reseller-mstat strong,
html:not(#_) .rp-root .rp-key-card .rp-key-code {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  letter-spacing: -0.02em !important;
}
html:not(#_) .rp-root .rp-stat strong,
html:not(#_) .rp-root .rp-pro-kpi-value,
html:not(#_) .va-shell--portal .rp-stat strong,
html:not(#_) .va-shell--portal .rp-pro-kpi-value {
  font-weight: 650 !important;
}

/* ═══ Keys Manager — phone + “Request desktop site” still use card UI ═══
   Real desktops (fine pointer + hover) keep the table.
   Phones/tablets (coarse pointer / no hover) always get mobile cards,
   even when the browser reports a wide desktop viewport. */
html:not(#_) .rp-root .rp-keys-manager .rp-key-cards.rp-mobile-only {
  display: none !important;
}
html:not(#_) .rp-root .rp-keys-manager .rp-table-wrap.rp-desktop-only {
  display: block !important;
}

@media (max-width: 900px), ((hover: none) and (pointer: coarse)) {
  html:not(#_) .rp-root .rp-keys-manager {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Compact KPI strip */
  html:not(#_) .rp-root .rp-keys-manager .rp-keys-kpi.rp-pro-kpi {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    margin: 0 0 0.35rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-kpi-card {
    min-height: 0 !important;
    padding: 0.5rem 0.4rem !important;
    border-radius: 10px !important;
    gap: 0.1rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-kpi-ico,
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-kpi-sub,
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-spark {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-kpi-label {
    font-size: 0.52rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-kpi-value {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
  }

  /* Filters stack cleanly */
  html:not(#_) .rp-root .rp-keys-manager .rp-keys-panel {
    border-radius: 14px !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-search {
    width: 100% !important;
    max-width: none !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
    width: 100% !important;
    margin: 0 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-search-btn {
    grid-column: 1 / -1 !important;
    min-height: 2.25rem !important;
  }

  /* Force cards — hide desktop table (also for Request Desktop Site) */
  html:not(#_) .rp-root .rp-keys-manager .rp-table-wrap.rp-desktop-only,
  html:not(#_) .rp-root .rp-keys-manager .rp-table-wrap.rp-desktop-only .rp-keys-table {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-cards.rp-mobile-only,
  html:not(#_) .rp-root .rp-keys-manager .rp-key-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.55rem 0.65rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html:not(#_) .rp-root .rp-keys-manager .rp-key-card {
    display: block !important;
    position: relative !important;
    padding: 0.75rem 2.4rem 0.75rem 2.35rem !important;
    border-radius: 12px !important;
    background: #101010 !important;
    border: 1px solid #222222 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card.is-selected {
    border-color: #333333 !important;
    background: #0c0c0c !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-check {
    position: absolute !important;
    top: 0.85rem !important;
    left: 0.7rem !important;
    z-index: 2 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-check input {
    width: 1.05rem !important;
    height: 1.05rem !important;
    accent-color: #e5e5e5 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-top {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
    margin: 0 0 0.55rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-top .rp-key-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-family: var(--fx-mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #f4f4f5 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
    line-height: 1.35 !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-top .rp-dots-wrap {
    flex: 0 0 auto !important;
    margin: -0.15rem -0.35rem 0 0 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-user {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 0 0.45rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-user .rp-avatar {
    width: 1.55rem !important;
    height: 1.55rem !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-user-text {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.35rem 0.45rem !important;
    min-width: 0 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-user-text strong {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #eee !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.25rem 0.4rem !important;
    font-size: 0.74rem !important;
    color: #9a9a9a !important;
    margin: 0 0 0.2rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-meta .rp-dot {
    color: #555 !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-meta .rp-pill,
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-user-text .rp-pill {
    font-size: 0.62rem !important;
    padding: 0.12rem 0.4rem !important;
    border-radius: 999px !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-key-card-date {
    margin-top: 0.25rem !important;
    font-size: 0.68rem !important;
    color: #777 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Bulk bar + pager fit phone / desktop-site width */
  html:not(#_) .rp-root .rp-keys-manager .rp-bulk-bar {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    padding: 0.55rem 0.75rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-bulk-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-bulk-actions .rp-btn {
    flex: 1 1 calc(33.33% - 0.35rem) !important;
    min-width: 4.5rem !important;
    justify-content: center !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-pager {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    padding: 0.75rem !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-pro-pager .rp-bulk-actions {
    justify-content: space-between !important;
  }
}

/* True desktop with mouse: never show the mobile card list */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  html:not(#_) .rp-root .rp-keys-manager .rp-key-cards.rp-mobile-only {
    display: none !important;
  }
  html:not(#_) .rp-root .rp-keys-manager .rp-table-wrap.rp-desktop-only {
    display: block !important;
  }
}
