/**
 * VintageAuth portal themes — charcoal / slate dark + clean light.
 * Driven by html[data-rp-theme="dark"|"light"] (persisted in localStorage).
 */

html {
  color-scheme: dark;
  transition: background-color 0.28s ease, color 0.28s ease;
}
html[data-rp-theme="light"] {
  color-scheme: light;
}

html[data-rp-theme="dark"],
html:not([data-rp-theme]),
.va-shell--portal[data-rp-theme="dark"],
.va-shell--portal:not([data-rp-theme]) {
  color-scheme: dark;
}

/* —— Dark: Obsidian (match Overview) —— */
.rp-root,
.va-shell--portal .rp-root {
  --rp-bg: #121212;
  --rp-card: #1c1c1c;
  --rp-card-2: #222222;
  --rp-line: #2e2e2e;
  --rp-text: #fafafa;
  --rp-muted: #a3a3a3;
  --rp-accent: #e5e5e5;
  --rp-accent-2: #ffffff;
  --rp-good: #22c55e;
  --rp-warn: #a3a3a3;
  --rp-bad: #ef4444;
  --rp-surface: #1c1c1c;
  --rp-chip-on-bg: #222222;
  --rp-chip-on-text: #f5f5f5;
  --rp-chip-on-muted: #a3a3a3;
  --rp-chip-on-border: #3a3a3a;
  --rp-btn-primary-bg: #ffffff;
  --rp-btn-primary-text: #0a0a0a;
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --rp-font: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --rp-display: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html[data-rp-theme="dark"] .va-shell--portal,
.va-shell--portal[data-rp-theme="dark"],
.va-shell--portal:not([data-rp-theme]),
html[data-rp-theme="dark"] .va-shell {
  background: #121212 !important;
  background-color: #121212 !important;
  color: #fafafa;
  transition: background-color 0.28s ease, color 0.28s ease;
}

html[data-rp-theme="dark"] .va-shell--portal .va-sidebar,
.va-shell--portal[data-rp-theme="dark"] .va-sidebar,
.va-shell--portal:not([data-rp-theme]) .va-sidebar,
html[data-rp-theme="dark"] .va-sidebar {
  background: #121212 !important;
  border-color: #262626 !important;
}

html[data-rp-theme="dark"] .va-shell--portal .va-nav-link.active,
.va-shell--portal[data-rp-theme="dark"] .va-nav-link.active,
.va-shell--portal:not([data-rp-theme]) .va-nav-link.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f5 !important;
}
html[data-rp-theme="dark"] .va-shell--portal .va-nav-link.active::before,
.va-shell--portal[data-rp-theme="dark"] .va-nav-link.active::before,
.va-shell--portal:not([data-rp-theme]) .va-nav-link.active::before {
  background: #e8e8e8 !important;
}

html[data-rp-theme="dark"] .va-shell--portal .va-main,
.va-shell--portal[data-rp-theme="dark"] .va-main,
.va-shell--portal:not([data-rp-theme]) .va-main,
html[data-rp-theme="dark"] #main-content,
html[data-rp-theme="dark"] .va-page {
  background: transparent !important;
}

html[data-rp-theme="dark"] .va-shell--portal .va-topbar,
html[data-rp-theme="dark"] .va-topbar {
  background: rgba(10, 10, 10, 0.92) !important;
  border-color: #262626 !important;
  backdrop-filter: blur(12px);
}

/* Selected product / duration chips */
.rp-root .rp-product-manage-row,
.rp-root .rp-product-pick,
.rp-root .rp-duration-chip {
  border-color: var(--rp-line);
  background: var(--rp-card);
}
/* Selected product rows stay dark + green (readable), not white-on-white */
.rp-root .rp-product-manage-row.is-on {
  border-color: rgba(34, 197, 94, 0.5) !important;
  background: rgba(22, 163, 74, 0.12) !important;
  box-shadow: inset 3px 0 0 #22c55e !important;
  color: #f5f5f5 !important;
}
.rp-root .rp-product-pick.is-on,
.rp-root .rp-duration-chip.is-on {
  border-color: #f0f0f0;
  background: #f3f3f3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #0b0b0b;
}
.rp-root .rp-duration-chip.is-on strong {
  color: #0b0b0b;
}
.rp-root .rp-duration-chip.is-on em {
  color: #444;
}
.rp-root .rp-product-manage-info strong,
.rp-root .rp-product-pick-text strong {
  color: var(--rp-text);
}
.rp-root .rp-product-manage-row.is-on .rp-product-manage-info strong {
  color: #f5f5f5 !important;
}
.rp-root .rp-product-pick.is-on .rp-product-pick-text strong {
  color: #0b0b0b !important;
}
.rp-root .rp-product-manage-info em,
.rp-root .rp-product-pick-text em {
  color: var(--rp-muted);
}
.rp-root .rp-product-manage-row.is-on .rp-product-manage-info em {
  color: #86efac !important;
}
.rp-root .rp-product-pick.is-on .rp-product-pick-text em {
  color: #444 !important;
}
.rp-root .rp-product-manage-btn.is-add {
  border: 1px solid #444;
  background: #1a1a1a;
  color: #e8e8e8;
}
.rp-root .rp-product-manage-btn.is-remove {
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}
.rp-root .rp-btn-primary,
.rp-root .rp-monite-go {
  background: var(--rp-btn-primary-bg) !important;
  color: var(--rp-btn-primary-text) !important;
  border-color: transparent !important;
  font-weight: 650 !important;
}
.rp-root .rp-card,
.rp-root .rp-table-card,
.rp-root .rp-pro-panel,
.rp-root .rp-pro-kpi-card,
.rp-root .rp-stat--rich {
  background: var(--rp-card) !important;
  border-color: var(--rp-line) !important;
  box-shadow: var(--rp-shadow);
}
.rp-root .rp-pro-search,
.rp-root .rp-pro-select,
.rp-root .rp-bw-select-trigger,
.rp-root .rp-monite-field input,
.rp-root .rp-monite-field select {
  background: var(--rp-card-2) !important;
  border-color: var(--rp-line) !important;
  color: var(--rp-text) !important;
}
.rp-root .rp-bw-select-menu {
  background: #141414 !important;
  border-color: #2a2a2a !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
}
.rp-modal.rp-modal-monite,
.rp-root .rp-modal {
  background: #111111 !important;
  border-color: #262626 !important;
  color: #f4f4f5 !important;
}
.rp-modal-backdrop {
  background: rgba(0, 0, 0, 0.82) !important;
}

/* —— Light mode —— */
html[data-rp-theme="light"] .va-shell--portal,
html[data-rp-theme="light"] .va-shell,
.va-shell--portal[data-rp-theme="light"] {
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(148, 163, 184, 0.12), transparent 45%),
    #f4f6f8 !important;
  background-color: #f4f6f8 !important;
  color: #0f172a;
}

html[data-rp-theme="light"] .va-shell--portal .va-sidebar,
html[data-rp-theme="light"] .va-sidebar,
.va-shell--portal[data-rp-theme="light"] .va-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}
html[data-rp-theme="light"] .va-shell--portal .va-nav-link,
html[data-rp-theme="light"] .va-nav-link,
.va-shell--portal[data-rp-theme="light"] .va-nav-link {
  color: #334155 !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-nav-link:hover,
html[data-rp-theme="light"] .va-shell--portal .va-nav-link.active,
html[data-rp-theme="light"] .va-nav-link:hover,
html[data-rp-theme="light"] .va-nav-link.active,
.va-shell--portal[data-rp-theme="light"] .va-nav-link:hover,
.va-shell--portal[data-rp-theme="light"] .va-nav-link.active {
  color: #0f172a !important;
  background: #eef2f6 !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-nav-link.active::before,
html[data-rp-theme="light"] .va-nav-link.active::before,
.va-shell--portal[data-rp-theme="light"] .va-nav-link.active::before {
  background: #475569 !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-brand-role,
.va-shell--portal[data-rp-theme="light"] .va-brand-role {
  color: #64748b !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-profile,
html[data-rp-theme="light"] .va-shell--portal button.va-profile,
html[data-rp-theme="light"] .va-profile,
.va-shell--portal[data-rp-theme="light"] .va-profile {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-profile-name,
html[data-rp-theme="light"] .va-profile-name { color: #0f172a !important; }
html[data-rp-theme="light"] .va-shell--portal .va-profile-sub,
html[data-rp-theme="light"] .va-profile-sub { color: #64748b !important; }
html[data-rp-theme="light"] .va-shell--portal .va-profile-menu,
html[data-rp-theme="light"] .va-profile-menu,
.va-shell--portal[data-rp-theme="light"] .va-profile-menu {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-profile-item,
html[data-rp-theme="light"] .va-profile-item { color: #1e293b !important; }
html[data-rp-theme="light"] .va-shell--portal .va-profile-item:hover,
html[data-rp-theme="light"] .va-profile-item:hover {
  background: #f1f5f9 !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-topbar,
html[data-rp-theme="light"] .va-topbar,
html[data-rp-theme="light"] .va-shell--portal header.va-header,
.va-shell--portal[data-rp-theme="light"] .va-topbar {
  background: rgba(244, 246, 248, 0.92) !important;
  border-color: #e2e8f0 !important;
}
html[data-rp-theme="light"] #main-content,
html[data-rp-theme="light"] .va-page,
html[data-rp-theme="light"] .va-main {
  background: transparent !important;
  color: #0f172a;
}

html[data-rp-theme="light"] .rp-root,
.va-shell--portal[data-rp-theme="light"] .rp-root {
  --rp-bg: #f4f6f8;
  --rp-card: #ffffff;
  --rp-card-2: #f8fafc;
  --rp-line: #e2e8f0;
  --rp-text: #0f172a;
  --rp-muted: #64748b;
  --rp-accent: #334155;
  --rp-accent-2: #0f172a;
  --rp-good: #059669;
  --rp-warn: #b45309;
  --rp-bad: #dc2626;
  --rp-surface: #f8fafc;
  --rp-chip-on-bg: #1e293b;
  --rp-chip-on-text: #ffffff;
  --rp-chip-on-muted: #cbd5e1;
  --rp-chip-on-border: #0f172a;
  --rp-btn-primary-bg: #0f172a;
  --rp-btn-primary-text: #ffffff;
  --rp-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: var(--rp-text);
}

html[data-rp-theme="light"] .rp-root .rp-btn-primary,
html[data-rp-theme="light"] .rp-root .rp-monite-go {
  background: #0f172a !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}
html[data-rp-theme="light"] .rp-root .rp-btn-ghost {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html[data-rp-theme="light"] .rp-root .rp-search input,
html[data-rp-theme="light"] .rp-root .rp-pro-search input,
html[data-rp-theme="light"] .rp-root .rp-pro-select,
html[data-rp-theme="light"] .rp-root .rp-monite-field input,
html[data-rp-theme="light"] .rp-root .rp-bw-select-trigger,
html[data-rp-theme="light"] .rp-root .rp-per-page select,
html[data-rp-theme="light"] .rp-root .rp-duration-chip {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html[data-rp-theme="light"] .rp-root .rp-duration-chip.is-on {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}
html[data-rp-theme="light"] .rp-root .rp-duration-chip.is-on strong {
  color: #fff !important;
}
html[data-rp-theme="light"] .rp-root .rp-duration-chip.is-on em {
  color: #cbd5e1 !important;
}
html[data-rp-theme="light"] .rp-root .rp-bw-select-menu {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12) !important;
}
html[data-rp-theme="light"] .rp-root .rp-bw-select-option { color: #0f172a !important; }
html[data-rp-theme="light"] .rp-root .rp-bw-select-option.is-on,
html[data-rp-theme="light"] .rp-root .rp-bw-select-option:hover {
  background: #f1f5f9 !important;
}
html[data-rp-theme="light"] .rp-modal.rp-modal-monite,
html[data-rp-theme="light"] .rp-root .rp-modal {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16) !important;
}
html[data-rp-theme="light"] .rp-modal.rp-modal-monite .rp-modal-head h2,
html[data-rp-theme="light"] .rp-modal.rp-modal-monite h2 {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-modal-backdrop {
  background: rgba(15, 23, 42, 0.4) !important;
}
html[data-rp-theme="light"] .rp-root .rp-table thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}
html[data-rp-theme="light"] .rp-root .rp-table tbody td {
  border-color: #eef2f7 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-table tbody tr:hover td {
  background: #f8fafc !important;
}
html[data-rp-theme="light"] .rp-root .rp-key-text,
html[data-rp-theme="light"] .rp-root .rp-key-copy {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-toolbar,
html[data-rp-theme="light"] .rp-root .rp-pro-pager,
html[data-rp-theme="light"] .rp-root .rp-bulk-bar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-kpi-card,
html[data-rp-theme="light"] .rp-root .rp-stat--rich,
html[data-rp-theme="light"] .rp-root .rp-card {
  background: linear-gradient(165deg, #fff, #f8fafc) !important;
  box-shadow: var(--rp-shadow) !important;
  border-color: #e2e8f0 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-kpi-ico {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
html[data-rp-theme="light"] .rp-root .rp-wallet-chip {
  background: #fff !important;
  border-color: #e2e8f0 !important;
}
html[data-rp-theme="light"] .rp-root .rp-api-pre {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #1e293b !important;
}
html[data-rp-theme="light"] .rp-root .rp-product-manage-row.is-on,
html[data-rp-theme="light"] .rp-root .rp-product-pick.is-on {
  background: #0f172a !important;
  border-color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-hint,
html[data-rp-theme="light"] .rp-root .rp-muted,
html[data-rp-theme="light"] .rp-root .rp-toolbar .rp-hint {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-root .rp-toolbar h1,
html[data-rp-theme="light"] .rp-root h1,
html[data-rp-theme="light"] .rp-root h2 {
  color: #0f172a !important;
}

.rp-modal.rp-modal-gen { max-width: 440px; }
.rp-root .rp-monite-balance { color: var(--rp-muted); }
.rp-root .rp-monite-balance strong { color: var(--rp-text); }

.rp-per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--rp-muted);
}
.rp-per-page select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2.15rem;
  padding: 0.35rem 1.85rem 0.35rem 0.65rem;
  border-radius: 9px;
  border: 1px solid var(--rp-line);
  background-color: var(--rp-card-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  color: var(--rp-text);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Theme toggle — top right */
.va-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.va-theme-toggle:hover {
  background: #1c1c1c;
  border-color: #444;
  transform: translateY(-1px);
}
.va-theme-toggle .lni {
  font-size: 1.05rem;
}
html[data-rp-theme="light"] .va-theme-toggle {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
html[data-rp-theme="light"] .va-theme-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Auth pages follow theme */
#vaauth .va-auth-theme-slot {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 20;
}
html[data-rp-theme="light"] #vaauth,
html[data-rp-theme="light"] body:has(#vaauth) {
  background: #f4f6f8 !important;
  color: #475569;
}
html[data-rp-theme="light"] #vaauth {
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(148, 163, 184, 0.18), transparent 55%),
    radial-gradient(900px 600px at 100% 10%, rgba(100, 116, 139, 0.1), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 45%, #f4f6f8 100%) !important;
  color: #475569;
}
html[data-rp-theme="light"] #vaauth .card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.08),
    0 28px 80px rgba(15, 23, 42, 0.1) !important;
  color: #334155;
}
html[data-rp-theme="light"] #vaauth .card-head h2,
html[data-rp-theme="light"] #vaauth .mark span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
html[data-rp-theme="light"] #vaauth .card-head p,
html[data-rp-theme="light"] #vaauth .more,
html[data-rp-theme="light"] #vaauth .lab-row {
  color: #64748b !important;
}
html[data-rp-theme="light"] #vaauth input,
html[data-rp-theme="light"] #vaauth .field input {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] #vaauth .go {
  background: #0f172a !important;
  color: #fff !important;
}
html[data-rp-theme="light"] #vaauth .bg-mesh {
  opacity: 0.35;
}
html[data-rp-theme="light"] #vaauth .shell::before,
html[data-rp-theme="light"] #vaauth .shell::after {
  background: rgba(148, 163, 184, 0.18) !important;
}

.va-shell--themed,
.va-main-scroll {
  background-color: #0c0c0c;
  transition: background-color 0.28s ease, color 0.28s ease;
}
html[data-rp-theme="light"] .va-shell--themed,
html[data-rp-theme="light"] .va-main-scroll {
  background-color: #f4f6f8 !important;
}

/*
 * Light mode repair.
 * vintage-theme.css forces #0c0c0c on .va-main-column / #sidebar with !important,
 * so light text landed on a black page and the drawer stayed black.
 */
html[data-rp-theme="light"],
html[data-rp-theme="light"].bg-black,
html[data-rp-theme="light"] body {
  background: #f4f6f8 !important;
  background-color: #f4f6f8 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell,
html[data-rp-theme="light"] .va-shell--portal,
html[data-rp-theme="light"] .va-shell--themed,
html[data-rp-theme="light"] .va-main-column,
html[data-rp-theme="light"] #main-content,
html[data-rp-theme="light"] .va-main-scroll,
html[data-rp-theme="light"] .va-page,
html[data-rp-theme="light"] .va-shell:has(.rp-root) .va-page {
  background: #f4f6f8 !important;
  background-color: #f4f6f8 !important;
  background-image: none !important;
  color: #0f172a;
}

html[data-rp-theme="light"] #sidebar,
html[data-rp-theme="light"] #sidebar.va-sidebar,
html[data-rp-theme="light"] .va-sidebar {
  --va-sidebar-bg: #ffffff;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-right: 1px solid #e6ebf1 !important;
  box-shadow: 10px 0 32px rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
html[data-rp-theme="light"] #sidebar .va-side-nav-foot,
html[data-rp-theme="light"] .va-side-nav-foot {
  background: #ffffff !important;
  border-top-color: #e6ebf1 !important;
}
html[data-rp-theme="light"] #sidebar .va-brand,
html[data-rp-theme="light"] #sidebar.is-open .va-brand,
html[data-rp-theme="light"] .va-sidebar .va-brand,
html[data-rp-theme="light"] .va-sidebar.is-open .va-brand,
html[data-rp-theme="light"] .va-shell--portal .va-brand {
  color: #0f172a !important;
}
html[data-rp-theme="light"] #sidebar .va-brand-mark,
html[data-rp-theme="light"] .va-brand-mark {
  background: #111827;
  border-radius: 9px;
  padding: 2px;
}
html[data-rp-theme="light"] #sidebar .va-brand-role,
html[data-rp-theme="light"] .va-shell--portal .va-brand-role {
  color: #64748b !important;
}
html[data-rp-theme="light"] #sidebar .va-sidebar-close,
html[data-rp-theme="light"] .va-sidebar-close {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-sidebar-close:hover,
html[data-rp-theme="light"] .va-sidebar-close:active {
  background: #f1f5f9 !important;
}
html[data-rp-theme="light"] #sidebar .va-nav-link,
html[data-rp-theme="light"] .va-shell--portal .va-nav-link,
html[data-rp-theme="light"] .va-nav-link {
  color: #334155 !important;
}
html[data-rp-theme="light"] #sidebar .va-nav-link i,
html[data-rp-theme="light"] .va-nav-link i,
html[data-rp-theme="light"] .va-nav-link.active i,
html[data-rp-theme="light"] .va-nav-link:hover i {
  color: inherit !important;
}
html[data-rp-theme="light"] #sidebar .va-nav-link:hover,
html[data-rp-theme="light"] #sidebar .va-nav-link.active,
html[data-rp-theme="light"] .va-shell--portal .va-nav-link:hover,
html[data-rp-theme="light"] .va-shell--portal .va-nav-link.active,
html[data-rp-theme="light"] .va-nav-link:hover,
html[data-rp-theme="light"] .va-nav-link.active {
  color: #0f172a !important;
  background: #eef2f6 !important;
}
html[data-rp-theme="light"] .va-menu-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-menu-btn:hover,
html[data-rp-theme="light"] .va-menu-btn:active {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html[data-rp-theme="light"] .va-burger > span {
  background: #0f172a !important;
}
html[data-rp-theme="light"] .va-topbar {
  background: rgba(244, 246, 248, 0.94) !important;
  border-bottom: 1px solid #e6ebf1 !important;
}

html[data-rp-theme="light"] .rp-root.rp-monite,
html[data-rp-theme="light"] .va-shell--portal {
  --rp-bg: #f4f6f8;
  --rp-card: #ffffff;
  --rp-card-2: #f8fafc;
  --rp-line: #e6ebf1;
  --rp-text: #0f172a;
  --rp-muted: #64748b;
  --rp-pro-card: #ffffff;
  --rp-pro-line: #e6ebf1;
  --rp-pro-muted: #64748b;
  --rp-pro-soft: #f8fafc;
}
html[data-rp-theme="light"] .rp-root .rp-toolbar h1,
html[data-rp-theme="light"] .rp-root .rp-hero h1,
html[data-rp-theme="light"] .rp-root h1,
html[data-rp-theme="light"] .rp-root h2 {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-toolbar .rp-hint,
html[data-rp-theme="light"] .rp-root .rp-hint {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-kpi-card,
html[data-rp-theme="light"] .rp-root .rp-stat,
html[data-rp-theme="light"] .rp-root .rp-stat--rich,
html[data-rp-theme="light"] .rp-root .rp-card,
html[data-rp-theme="light"] .rp-root .rp-pro-panel,
html[data-rp-theme="light"] .rp-root .rp-keys-panel,
html[data-rp-theme="light"] .rp-root .rp-balance-hero {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e6ebf1 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a;
}
html[data-rp-theme="light"] .rp-root .rp-pro-kpi-value,
html[data-rp-theme="light"] .rp-root .rp-stat strong,
html[data-rp-theme="light"] .rp-root .rp-balance-hero-value,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip strong,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip--premium strong,
html[data-rp-theme="light"] .rp-root .rp-pro-pkg strong,
html[data-rp-theme="light"] .rp-root .rp-pro-panel .rp-key-text,
html[data-rp-theme="light"] .rp-root .rp-pro-panel .rp-key-copy {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-kpi-label,
html[data-rp-theme="light"] .rp-root .rp-pro-kpi-sub,
html[data-rp-theme="light"] .rp-root .rp-stat em,
html[data-rp-theme="light"] .rp-root .rp-stat small,
html[data-rp-theme="light"] .rp-root .rp-pro-pkg em,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip span,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip--premium span {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-kpi-ico {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
html[data-rp-theme="light"] .rp-root .rp-wallet-chip,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip--premium {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
html[data-rp-theme="light"] .rp-root .rp-btn-primary,
html[data-rp-theme="light"] .rp-root .rp-btn-generate,
html[data-rp-theme="light"] .rp-root .rp-toolbar-actions .rp-btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-toolbar,
html[data-rp-theme="light"] .rp-root .rp-keys-toolbar,
html[data-rp-theme="light"] .rp-root .rp-pro-pager {
  background: #f8fafc !important;
  background-image: none !important;
  border-color: #e6ebf1 !important;
  color: #475569 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-search input,
html[data-rp-theme="light"] .rp-root .rp-pro-select {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #d7dee7 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-panel .rp-table thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-bottom-color: #e6ebf1 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pro-panel .rp-table tbody td {
  color: #0f172a !important;
  border-bottom-color: #eef2f6 !important;
  background: #ffffff;
}
html[data-rp-theme="light"] .rp-root .rp-pro-panel .rp-table tbody tr:hover td {
  background: #f8fafc !important;
}
html[data-rp-theme="light"] .rp-root .rp-dots span {
  background: #64748b;
}
html[data-rp-theme="light"] .rp-root .rp-dots:hover {
  background: #eef2f6;
}

/* Mobile + desktop: keep the keys header and table from feeling cramped */
@media (max-width: 768px) {
  html[data-rp-theme="light"] .va-page,
  html[data-rp-theme="dark"] .va-shell--portal .va-page {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }
  .rp-root .rp-toolbar h1 {
    line-height: 1.15;
  }
  .rp-root .rp-pro-kpi {
    gap: 0.55rem;
  }
  .rp-root .rp-pro-panel {
    border-radius: 14px !important;
  }
  .rp-root .rp-table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}
@media (min-width: 1024px) {
  html[data-rp-theme="light"] .va-shell--portal .va-page {
    background: #f4f6f8 !important;
  }
}

/* Chart follows the theme — dark plot on dark, light plot on light */
.rp-chart {
  color: #f4f4f5;
}
html[data-rp-theme="light"] .rp-root .rp-chart-card,
html[data-rp-theme="light"] .rp-chart-card {
  background: #ffffff !important;
  border-color: #e6ebf1 !important;
}
html[data-rp-theme="light"] .rp-chart-head h2 {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-chart-sub,
html[data-rp-theme="light"] .rp-chart-axis {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-chart {
  color: #0f172a;
}
html[data-rp-theme="light"] .rp-chart svg {
  background: #f8fafc !important;
  border-color: #e6ebf1 !important;
}
html[data-rp-theme="light"] .rp-chart-line {
  stroke: #0f172a !important;
}

/* Resellers table — light header, search, and sticky actions */
html[data-rp-theme="light"] .rp-resellers-panel,
html[data-rp-theme="light"] .rp-root .rp-resellers-panel {
  background: #ffffff !important;
  border-color: #e6ebf1 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06) !important;
}
html[data-rp-theme="light"] .rp-resellers-toolbar {
  background: #f8fafc !important;
  background-image: none !important;
  border-bottom-color: #e6ebf1 !important;
}
html[data-rp-theme="light"] .rp-resellers-search input {
  background: #ffffff !important;
  border-color: #d7dee7 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-resellers-search .lni {
  color: #94a3b8 !important;
}
html[data-rp-theme="light"] .rp-resellers-legend,
html[data-rp-theme="light"] .rp-resellers-legend em {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-resellers-group-row th,
html[data-rp-theme="light"] .rp-resellers-table .rp-resellers-group-row th,
html[data-rp-theme="light"] .rp-resellers-table .rp-resellers-group-row th.rp-td-actions,
html[data-rp-theme="light"] .va-shell--portal .rp-resellers-panel .rp-table thead th {
  background: #f8fafc !important;
  background-image: none !important;
  color: #64748b !important;
  border-bottom-color: #e6ebf1 !important;
}
html[data-rp-theme="light"] .rp-resellers-table td,
html[data-rp-theme="light"] .rp-resellers-panel .rp-table td {
  background: #ffffff;
  color: #0f172a;
  border-bottom-color: #eef2f6 !important;
}
html[data-rp-theme="light"] .rp-resellers-table tr:hover td {
  background: #f8fafc !important;
}
html[data-rp-theme="light"] .rp-resellers-table td.rp-td-actions,
html[data-rp-theme="light"] .rp-resellers-table th.rp-td-actions,
html[data-rp-theme="light"] .rp-resellers-table tr:hover td.rp-td-actions {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: -12px 0 16px rgba(248, 250, 252, 0.95) !important;
}
html[data-rp-theme="light"] .rp-resellers-table tr:hover td.rp-td-actions {
  background: #f8fafc !important;
}
html[data-rp-theme="light"] .rp-resellers-table .va-actions-btn {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}
html[data-rp-theme="light"] .rp-resellers-table .va-actions-btn:hover:not(:disabled) {
  background: #1e293b !important;
  border-color: #1e293b !important;
}
html[data-rp-theme="light"] .rp-prod-mark:not(.is-on) {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
}
html[data-rp-theme="light"] .rp-user-meta strong,
html[data-rp-theme="light"] .rp-resellers-table .rp-bal,
html[data-rp-theme="light"] .rp-resellers-table .rp-td-num {
  color: #0f172a !important;
}

/* Sign-in card — light fields, dark type. Autofill was painting inputs black. */
html[data-rp-theme="light"] #vaauth .lab,
html[data-rp-theme="light"] #vaauth .lab-row,
html[data-rp-theme="light"] #vaauth .va-pass-hint,
html[data-rp-theme="light"] #vaauth .more {
  color: #64748b !important;
}
html[data-rp-theme="light"] #vaauth .mark img {
  background: #111827;
  border-radius: 12px;
  padding: 4px;
  filter: none;
}
html[data-rp-theme="light"] #vaauth .mark span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
html[data-rp-theme="light"] #vaauth .in input,
html[data-rp-theme="light"] #vaauth .in input:focus,
html[data-rp-theme="light"] #vaauth .in input:focus-visible,
html[data-rp-theme="light"] #vaauth .va-2fa-input,
html[data-rp-theme="light"] #vaauth .va-2fa-input:focus {
  background: #f8fafc !important;
  border-color: #d7dee7 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a !important;
  box-shadow: none !important;
}
html[data-rp-theme="light"] #vaauth .in input::placeholder,
html[data-rp-theme="light"] #vaauth .va-2fa-input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}
html[data-rp-theme="light"] #vaauth .in input:-webkit-autofill,
html[data-rp-theme="light"] #vaauth .in input:-webkit-autofill:hover,
html[data-rp-theme="light"] #vaauth .in input:-webkit-autofill:focus,
html[data-rp-theme="light"] #vaauth .in input:-webkit-autofill:active,
html[data-rp-theme="light"] #vaauth .in input:-moz-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
  box-shadow: 0 0 0 1000px #f8fafc inset !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a !important;
  border-color: #d7dee7 !important;
}
html[data-rp-theme="light"] #vaauth .in svg.ico,
html[data-rp-theme="light"] #vaauth .in:focus-within svg.ico,
html[data-rp-theme="light"] #vaauth .eye,
html[data-rp-theme="light"] #vaauth .eye:hover {
  color: #64748b !important;
  stroke: #64748b !important;
}
html[data-rp-theme="light"] #vaauth .go {
  background: linear-gradient(180deg, #3b4554 0%, #1e293b 100%) !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  font-weight: 650 !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
html[data-rp-theme="light"] #vaauth .go::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%) !important;
}
html[data-rp-theme="light"] #vaauth .go:hover:not(:disabled) {
  background: linear-gradient(180deg, #475569 0%, #273449 100%) !important;
  border-color: #475569 !important;
  transform: translateY(-1px);
}
html[data-rp-theme="light"] #vaauth .go:disabled {
  opacity: 0.55 !important;
}

/* —— Light theme polish: auth + dashboard (dark stays unchanged) —— */

/* Auth page — premium soft light card */
html[data-rp-theme="light"] #vaauth,
html[data-rp-theme="light"] body:has(#vaauth) {
  background: #eef2f6 !important;
}
html[data-rp-theme="light"] #vaauth {
  background:
    radial-gradient(900px 560px at 12% -8%, rgba(99, 120, 150, 0.16), transparent 55%),
    radial-gradient(700px 480px at 100% 8%, rgba(148, 163, 184, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 50%, #e8edf3 100%) !important;
}
html[data-rp-theme="light"] #vaauth .card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 60px rgba(15, 23, 42, 0.1) !important;
}
html[data-rp-theme="light"] #vaauth .card::before {
  background: radial-gradient(120% 80% at 12% 0%, rgba(148, 163, 184, 0.12), transparent 45%) !important;
}
html[data-rp-theme="light"] #vaauth .card-glow {
  background: radial-gradient(circle, rgba(100, 116, 139, 0.22) 0%, rgba(148, 163, 184, 0.08) 45%, transparent 72%) !important;
  filter: blur(48px) !important;
  opacity: 0.9;
}
html[data-rp-theme="light"] #vaauth .glow-fx {
  --gradient: radial-gradient(circle, #64748b 8%, transparent 22%),
    radial-gradient(circle at 40% 40%, #94a3b8 5%, transparent 16%),
    radial-gradient(circle at 60% 60%, #cbd5e1 8%, transparent 20%),
    repeating-conic-gradient(from 236.84deg at 50% 50%, #64748b 0%, #94a3b8 calc(25% / 5), #cbd5e1 calc(50% / 5), #e2e8f0 calc(75% / 5), #64748b calc(100% / 5));
}
html[data-rp-theme="light"] #vaauth .card-head h2 {
  color: #0f172a !important;
  font-weight: 650 !important;
}
html[data-rp-theme="light"] #vaauth .card-head p {
  color: #64748b !important;
}
html[data-rp-theme="light"] #vaauth .lab {
  color: #475569 !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
}
html[data-rp-theme="light"] #vaauth .in input,
html[data-rp-theme="light"] #vaauth .in input:focus,
html[data-rp-theme="light"] #vaauth .in input:focus-visible,
html[data-rp-theme="light"] #vaauth .va-2fa-input {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 550 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
html[data-rp-theme="light"] #vaauth .in input:focus,
html[data-rp-theme="light"] #vaauth .in input:focus-visible,
html[data-rp-theme="light"] #vaauth .va-2fa-input:focus {
  border-color: #94a3b8 !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25) !important;
}
html[data-rp-theme="light"] #vaauth .in input:-webkit-autofill,
html[data-rp-theme="light"] #vaauth .in input:-webkit-autofill:hover,
html[data-rp-theme="light"] #vaauth .in input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: #d0d7e2 !important;
}
html[data-rp-theme="light"] #vaauth .va-pass-hint,
html[data-rp-theme="light"] #vaauth .more {
  color: #64748b !important;
}
html[data-rp-theme="light"] #vaauth .more a {
  color: #1e293b !important;
}
html[data-rp-theme="light"] #vaauth .err {
  color: #b91c1c !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
}
html[data-rp-theme="light"] #vaauth .va-theme-toggle,
html[data-rp-theme="light"] .va-auth-theme-slot .va-theme-toggle {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #334155 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

/* Dashboard primary actions — soft slate, not harsh pure black */
html[data-rp-theme="light"] .rp-root .rp-btn-primary,
html[data-rp-theme="light"] .rp-root .rp-btn-generate,
html[data-rp-theme="light"] .rp-root .rp-toolbar-actions .rp-btn-primary,
html[data-rp-theme="light"] .rp-root .rp-monite-go,
html[data-rp-theme="light"] .rp-root .rp-btn.rp-btn-primary.rp-btn-sm {
  background: linear-gradient(180deg, #3b4554, #1e293b) !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
html[data-rp-theme="light"] .rp-root .rp-btn-primary:hover:not(:disabled),
html[data-rp-theme="light"] .rp-root .rp-btn-generate:hover:not(:disabled),
html[data-rp-theme="light"] .rp-root .rp-monite-go:hover:not(:disabled) {
  background: linear-gradient(180deg, #475569, #273449) !important;
  border-color: #475569 !important;
}
html[data-rp-theme="light"] .rp-resellers-table .va-actions-btn,
html[data-rp-theme="light"] .rp-root .va-actions-btn {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}
html[data-rp-theme="light"] .rp-resellers-table .va-actions-btn:hover:not(:disabled),
html[data-rp-theme="light"] .rp-root .va-actions-btn:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Pills / badges readable on white */
html[data-rp-theme="light"] .rp-root .rp-pill,
html[data-rp-theme="light"] .rp-pill {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 600 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pill.unused,
html[data-rp-theme="light"] .rp-pill.unused,
html[data-rp-theme="light"] .rp-root .rp-pill.role-reseller,
html[data-rp-theme="light"] .rp-pill.role-reseller,
html[data-rp-theme="light"] .rp-root .rp-pill.role-sub,
html[data-rp-theme="light"] .rp-pill.role-sub {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pill.used,
html[data-rp-theme="light"] .rp-root .rp-pill.ok,
html[data-rp-theme="light"] .rp-root .rp-pill.active,
html[data-rp-theme="light"] .rp-pill.used,
html[data-rp-theme="light"] .rp-pill.ok,
html[data-rp-theme="light"] .rp-pill.active {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}
html[data-rp-theme="light"] .rp-root .rp-pill.expired,
html[data-rp-theme="light"] .rp-root .rp-pill.banned,
html[data-rp-theme="light"] .rp-root .rp-pill.bad,
html[data-rp-theme="light"] .rp-pill.expired,
html[data-rp-theme="light"] .rp-pill.banned,
html[data-rp-theme="light"] .rp-pill.bad {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
html[data-rp-theme="light"] .rp-root .rp-pill.solid {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

/* Product marks — off vs on with clear contrast */
html[data-rp-theme="light"] .rp-prod-mark:not(.is-on) {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  font-weight: 600 !important;
}
html[data-rp-theme="light"] .rp-prod-mark.is-on {
  background: #ecfdf5 !important;
  border: 1px solid #6ee7b7 !important;
  color: #047857 !important;
  font-weight: 650 !important;
}
html[data-rp-theme="light"] .rp-root .rp-product-manage-row,
html[data-rp-theme="light"] .rp-root .rp-product-pick,
html[data-rp-theme="light"] .rp-root .rp-duration-chip {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-product-manage-row.is-on,
html[data-rp-theme="light"] .rp-root .rp-product-pick.is-on,
html[data-rp-theme="light"] .rp-root .rp-duration-chip.is-on {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.15) !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-duration-chip.is-on strong,
html[data-rp-theme="light"] .rp-root .rp-product-manage-row.is-on .rp-product-manage-info strong,
html[data-rp-theme="light"] .rp-root .rp-product-pick.is-on .rp-product-pick-text strong {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-duration-chip.is-on em,
html[data-rp-theme="light"] .rp-root .rp-product-manage-row.is-on .rp-product-manage-info em {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-root .rp-product-manage-btn.is-add {
  background: #ecfdf5 !important;
  border: 1px solid #6ee7b7 !important;
  color: #047857 !important;
}
html[data-rp-theme="light"] .rp-root .rp-product-manage-btn.is-remove {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #b91c1c !important;
}

/* Modals / confirm in light */
html[data-rp-theme="light"] .rp-modal .rp-hint,
html[data-rp-theme="light"] .rp-confirm-modal .rp-hint {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-confirm-tick {
  background: #f8fafc !important;
  border-color: #d0d7e2 !important;
  color: #334155 !important;
}
html[data-rp-theme="light"] .rp-confirm-tick.on {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-key-confirm-actions .rp-btn-ghost {
  background: #ffffff !important;
  border-color: #d0d7e2 !important;
  color: #1e293b !important;
}
html[data-rp-theme="light"] .rp-btn-danger {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}
html[data-rp-theme="light"] .rp-btn-danger:disabled {
  background: #fecaca !important;
  border-color: #fca5a5 !important;
  color: #7f1d1d !important;
  opacity: 1 !important;
}

/* ============================================================
   Light theme — force forms / account / create-sub to white UI
   (overrides hardcoded #0f0f0f / #fff dark styles)
   ============================================================ */

/* Create Sub Seller + all portal form fields */
html[data-rp-theme="light"] .rp-root .rp-field,
html[data-rp-theme="light"] .rp-root .rp-monite-field,
html[data-rp-theme="light"] .rp-root .rp-create-sub-card,
html[data-rp-theme="light"] .rp-root .rp-create-form {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-field-label,
html[data-rp-theme="light"] .rp-root .rp-field > span,
html[data-rp-theme="light"] .rp-root .rp-monite-field > span,
html[data-rp-theme="light"] .rp-root .rp-balance-field-label,
html[data-rp-theme="light"] .rp-root .rp-create-sub-card .rp-hint,
html[data-rp-theme="light"] .rp-root .rp-product-picks-meta {
  color: #475569 !important;
  font-weight: 600 !important;
}
html[data-rp-theme="light"] .rp-root .rp-monite-field > span {
  color: #334155 !important;
  font-weight: 650 !important;
}

html[data-rp-theme="light"] .rp-root .rp-monite-field select,
html[data-rp-theme="light"] .rp-root .rp-monite-field > input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-root .rp-monite-field input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-root .rp-monite-field .rp-input-icon > input,
html[data-rp-theme="light"] .rp-root .rp-field input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-root .rp-field select,
html[data-rp-theme="light"] .rp-root .rp-create-modal input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-root .rp-modal input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-root .rp-modal-gen input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-root .rp-modal-gen select,
html[data-rp-theme="light"] .rp-modal input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-modal select {
  color-scheme: light !important;
  background-color: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
html[data-rp-theme="light"] .rp-root .rp-monite-field select:hover,
html[data-rp-theme="light"] .rp-root .rp-monite-field input:not([type="checkbox"]):not([type="radio"]):hover,
html[data-rp-theme="light"] .rp-root .rp-field input:not([type="checkbox"]):not([type="radio"]):hover,
html[data-rp-theme="light"] .rp-modal input:not([type="checkbox"]):not([type="radio"]):hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
}
html[data-rp-theme="light"] .rp-root .rp-monite-field select:focus,
html[data-rp-theme="light"] .rp-root .rp-monite-field input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-rp-theme="light"] .rp-root .rp-field input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-rp-theme="light"] .rp-root .rp-field select:focus,
html[data-rp-theme="light"] .rp-modal input:not([type="checkbox"]):not([type="radio"]):focus {
  background-color: #ffffff !important;
  border-color: #64748b !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.28) !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-monite-field input:-webkit-autofill,
html[data-rp-theme="light"] .rp-root .rp-field input:-webkit-autofill,
html[data-rp-theme="light"] .rp-root .rp-modal input:-webkit-autofill,
html[data-rp-theme="light"] .rp-root .rp-create-modal input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a !important;
  border-color: #d0d7e2 !important;
}
html[data-rp-theme="light"] .rp-root .rp-monite-field input::placeholder,
html[data-rp-theme="light"] .rp-root .rp-field input::placeholder,
html[data-rp-theme="light"] .rp-modal input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1 !important;
}

/* Shared wallet / balance blocks */
html[data-rp-theme="light"] .rp-root .rp-balance-unified,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip-btn,
html[data-rp-theme="light"] .rp-root .rp-balance-hero,
html[data-rp-theme="light"] .rp-root .rp-input-icon {
  background: #ffffff !important;
  border-color: #d0d7e2 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-balance-unified strong,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip-btn strong,
html[data-rp-theme="light"] .rp-root .rp-balance-hero-value {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-balance-unified em,
html[data-rp-theme="light"] .rp-root .rp-wallet-chip-btn em,
html[data-rp-theme="light"] .rp-root .rp-balance-hero-hint,
html[data-rp-theme="light"] .rp-root .rp-balance-hero-label {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-root .rp-money-prefix {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-root .rp-create-sub-card,
html[data-rp-theme="light"] .rp-root .rp-create-sub-form {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-create-sub-head h2 {
  color: #0f172a !important;
  font-weight: 650 !important;
}

/* Account settings page */
html[data-rp-theme="light"] .rp-account h1,
html[data-rp-theme="light"] .rp-account .text-white,
html[data-rp-theme="light"] .va-page h1.text-white,
html[data-rp-theme="light"] .va-shell--portal h1.text-white,
html[data-rp-theme="light"] .va-shell--portal .text-white {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-account .text-gray-500,
html[data-rp-theme="light"] .va-shell--portal .text-gray-500 {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-acct-tab {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #475569 !important;
  font-weight: 600 !important;
}
html[data-rp-theme="light"] .rp-acct-tab.on {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}
html[data-rp-theme="light"] .rp-acct-tabs {
  border-bottom-color: #e2e8f0 !important;
}
html[data-rp-theme="light"] .rp-account .va-card,
html[data-rp-theme="light"] .rp-account .va-card-soft,
html[data-rp-theme="light"] .va-shell--portal .va-card-soft,
html[data-rp-theme="light"] .va-shell--portal .va-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-card-title,
html[data-rp-theme="light"] .rp-account .va-card-title {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-card-hint,
html[data-rp-theme="light"] .rp-account .va-card-hint {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-acct-upload {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #1e293b !important;
}
html[data-rp-theme="light"] .rp-acct-upload:hover {
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-card-soft input,
html[data-rp-theme="light"] .va-shell--portal .va-card input,
html[data-rp-theme="light"] .rp-account input:not([type="checkbox"]):not([type="radio"]),
html[data-rp-theme="light"] .rp-account select,
html[data-rp-theme="light"] .rp-account textarea {
  color-scheme: light !important;
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell--portal label,
html[data-rp-theme="light"] .rp-account label {
  color: #475569 !important;
}
html[data-rp-theme="light"] .va-shell--portal .border-gray-800,
html[data-rp-theme="light"] .rp-account .border-gray-800,
html[data-rp-theme="light"] .rp-account .border-gray-700 {
  border-color: #e2e8f0 !important;
}
html[data-rp-theme="light"] .va-shell--portal .bg-neutral-900,
html[data-rp-theme="light"] .rp-account .bg-neutral-900 {
  background-color: #f1f5f9 !important;
}

/* Logout modal polish in light */
html[data-rp-theme="light"] .rp-confirm-modal {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}
html[data-rp-theme="light"] .rp-confirm-modal h2,
html[data-rp-theme="light"] .rp-confirm-modal .rp-modal-head h2 {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-modal-backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
}
html[data-rp-theme="light"] .rp-key-confirm-actions .rp-btn-danger:not(:disabled) {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

/* —— Account + va-* fields (hardcoded dark in vintage-theme) —— */
html[data-rp-theme="light"] .rp-acct-title { color: #0f172a !important; }
html[data-rp-theme="light"] .rp-acct-sub { color: #64748b !important; }
html[data-rp-theme="light"] .rp-account .text-white,
html[data-rp-theme="light"] .rp-account .text-neutral-300,
html[data-rp-theme="light"] .va-shell--portal .rp-account .text-white {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-card-soft,
html[data-rp-theme="light"] .rp-account .va-card-soft,
html[data-rp-theme="light"] .va-shell--portal .va-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-card-soft:hover,
html[data-rp-theme="light"] .rp-account .va-card-soft:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-card-title,
html[data-rp-theme="light"] .va-shell--portal .va-field label,
html[data-rp-theme="light"] .rp-account .va-field label {
  color: #475569 !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-field input,
html[data-rp-theme="light"] .va-shell--portal .va-field select,
html[data-rp-theme="light"] .rp-account .va-field input,
html[data-rp-theme="light"] .rp-account .va-field select {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  color-scheme: light !important;
}
html[data-rp-theme="light"] .va-shell--portal .va-field input:focus,
html[data-rp-theme="light"] .rp-account .va-field input:focus {
  border-color: #64748b !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.28) !important;
}

/* Create-sub product rows + hints */
html[data-rp-theme="light"] .rp-root .rp-product-pick,
html[data-rp-theme="light"] .rp-root .rp-product-row,
html[data-rp-theme="light"] .rp-root .rp-prod-row {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-root .rp-product-pick strong,
html[data-rp-theme="light"] .rp-root .rp-prod-row strong {
  color: #0f172a !important;
  font-weight: 650 !important;
}
html[data-rp-theme="light"] .rp-root .rp-product-pick em,
html[data-rp-theme="light"] .rp-root .rp-product-pick span,
html[data-rp-theme="light"] .rp-root .rp-hint,
html[data-rp-theme="light"] .rp-root .rp-muted,
html[data-rp-theme="light"] .rp-root .rp-create-hint {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-root .rp-page-title,
html[data-rp-theme="light"] .rp-root h1,
html[data-rp-theme="light"] .rp-root .rp-head h1 {
  color: #0f172a !important;
  font-weight: 650 !important;
}
html[data-rp-theme="light"] .rp-root .rp-page-sub,
html[data-rp-theme="light"] .rp-root .rp-head p {
  color: #64748b !important;
}

/* Auth pages light polish */
html[data-rp-theme="light"] .auth-page,
html[data-rp-theme="light"] .va-auth,
html[data-rp-theme="light"] body.auth-body {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 45%, #e8eef5 100%) !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .auth-card,
html[data-rp-theme="light"] .va-auth-card,
html[data-rp-theme="light"] .auth-glow-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1) !important;
}
html[data-rp-theme="light"] .auth-card input,
html[data-rp-theme="light"] .va-auth-card input,
html[data-rp-theme="light"] .auth-glow-card input {
  background: #ffffff !important;
  border: 1px solid #d0d7e2 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  color-scheme: light !important;
}
html[data-rp-theme="light"] .auth-card label,
html[data-rp-theme="light"] .va-auth-card label,
html[data-rp-theme="light"] .auth-glow-card label {
  color: #475569 !important;
}
html[data-rp-theme="light"] .auth-card .auth-btn,
html[data-rp-theme="light"] .auth-card button[type="submit"],
html[data-rp-theme="light"] .va-auth-card button[type="submit"] {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

/* Page titles that used text-white */
html[data-rp-theme="light"] .va-shell--portal h1,
html[data-rp-theme="light"] .va-shell--portal .rp-head h1,
html[data-rp-theme="light"] .va-shell--portal .text-2xl.text-white,
html[data-rp-theme="light"] .va-shell--portal .font-semibold.text-white {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-acct-name { color: #0f172a !important; }
html[data-rp-theme="light"] .rp-root .rp-monite-field > span {
  color: #334155 !important;
  font-weight: 600 !important;
}
html[data-rp-theme="light"] .rp-root .rp-field-label,
html[data-rp-theme="light"] .rp-root label.rp-field-label {
  color: #475569 !important;
  opacity: 1 !important;
}

/* Keys Manager mobile cards — light */
html[data-rp-theme="light"] .rp-key-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}
html[data-rp-theme="light"] .rp-key-card:hover {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}
html[data-rp-theme="light"] .rp-key-card-top .rp-key-text,
html[data-rp-theme="light"] .rp-key-card .rp-key-text {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-key-card .rp-copy-btn {
  background: #f8fafc !important;
  border-color: #d0d7e2 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
html[data-rp-theme="light"] .rp-key-card-meta {
  color: #475569 !important;
}
html[data-rp-theme="light"] .rp-key-card-date {
  color: #64748b !important;
}
html[data-rp-theme="light"] .rp-keys-actions .rp-wallet-chip,
html[data-rp-theme="light"] .rp-toolbar-actions .rp-wallet-chip--premium {
  background: #ffffff !important;
  border-color: #d0d7e2 !important;
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-keys-actions .rp-wallet-chip strong {
  color: #0f172a !important;
}
html[data-rp-theme="light"] .rp-keys-actions .rp-wallet-chip span {
  color: #64748b !important;
}

/* Sticky keys actions — light */
@media (max-width: 768px) {
  html[data-rp-theme="light"] .rp-toolbar-actions.rp-keys-actions {
    background: linear-gradient(180deg, #f4f6f8 72%, rgba(244, 246, 248, 0));
  }
  html[data-rp-theme="light"] .rp-table-wrap::after {
    color: #64748b;
    border-top-color: #e2e8f0;
    background: #f8fafc;
  }
}

html[data-rp-theme="light"] .rp-root .rp-field input::placeholder,
html[data-rp-theme="light"] .rp-root .rp-monite-field input::placeholder,
html[data-rp-theme="light"] .rp-root .rp-create-sub-form input::placeholder,
html[data-rp-theme="light"] .rp-root .rp-modal input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1 !important;
  font-weight: 450 !important;
}
