/* Grupo DNA · preto e lilás no painel de parceiros. */
html:has(body.panel-ui) { background: #0d0a10; }
html[data-theme="light"]:has(body.panel-ui) { background: #f5effa; }

html body.panel-ui {
  --bg: #0d0a10;
  --bg-elev: #151019;
  --bg-card: #18121f;
  --bg-card-2: #23192d;
  --text: #faf5ff;
  --muted: #d1c5dc;
  --line: #594564;
  --accent: #d7b8ff;
  --accent-2: #ead3ff;
  --accent-deep: #b385e8;
  --accent-rgb: 215, 184, 255;
  --visual-primary: var(--accent);
  --visual-primary-hover: #e9d3ff;
  --visual-field: #150f1c;
  --visual-field-border: #8b729f;
  --visual-selected: #362345;
  --visual-violet: #e1bbff;
  --visual-violet-bg: #342044;
  --polish-blue: #dfbfff;
  --polish-glow: rgba(var(--accent-rgb), .20);
  --polish-border: var(--line);
  --polish-surface: var(--bg-card);
  --polish-soft: var(--bg-card-2);
  --gray-button-text: #190f23;
  --shadow: 0 10px 32px rgba(0, 0, 0, .42);
  --dna-partner-glow: rgba(185, 138, 244, .12);
  background: radial-gradient(ellipse at 58% 0%, var(--dna-partner-glow), transparent 55%), var(--bg) !important;
}

html[data-theme="light"] body.panel-ui {
  --bg: #f5effa;
  --bg-elev: #faf5ff;
  --bg-card: #fdfaff;
  --bg-card-2: #eee3f7;
  --text: #1c1126;
  --muted: #594767;
  --line: #d5c5e2;
  --accent: #61349c;
  --accent-2: #592981;
  --accent-deep: #4d296e;
  --accent-rgb: 97, 52, 156;
  --visual-primary: var(--accent);
  --visual-primary-hover: #543182;
  --visual-field: #ffffff;
  --visual-field-border: #8c779b;
  --visual-selected: #e8d9f9;
  --visual-violet: #64358e;
  --visual-violet-bg: #eee2fa;
  --polish-blue: #5f328a;
  --polish-glow: rgba(var(--accent-rgb), .16);
  --gray-button-text: #ffffff;
  --shadow: 0 10px 28px rgba(40, 36, 49, .10);
  --dna-partner-glow: rgba(155, 101, 217, .09);
}

html body.panel-ui :is(.login-layout, .login-card) {
  border-color: var(--polish-border) !important;
}

html body.panel-ui .login-layout {
  background: var(--bg-card) !important;
  box-shadow: var(--shadow);
}

html body.panel-ui > .dn-site-cover {
  border-color: var(--polish-border) !important;
  box-shadow: var(--shadow), 0 0 28px var(--polish-glow) !important;
}

html body.panel-ui .login-back {
  background: var(--polish-soft);
  border-color: var(--polish-border);
  color: var(--accent-2);
}

html body.panel-ui .field .control::placeholder,
html body.panel-ui .field .control input::placeholder {
  color: var(--muted);
}

html body.panel-ui :is(.m-link, .m-chip, .badge-count),
html[data-theme="light"] body.panel-ui :is(.m-link, .m-chip, .badge-count) {
  color: var(--accent-2);
  background-color: var(--visual-violet-bg);
}

html body.panel-ui .home-balance-card::after {
  border-color: var(--polish-border) !important;
  box-shadow: 0 0 0 32px rgba(var(--accent-rgb), .05), 0 0 0 64px rgba(var(--accent-rgb), .025) !important;
}

/* O destaque mantém as taxas e os estados de conexão visíveis na paleta do painel. */
html body.panel-ui .house-999dna-feature {
  --house-feature-soft: var(--muted) !important;
  color: var(--text);
  background: radial-gradient(ellipse at 98% 0%, var(--polish-glow), transparent 58%),
    linear-gradient(135deg, var(--bg-card-2), var(--bg-card) 75%) !important;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line)) !important;
}

html body.panel-ui .house-999dna-feature :is(.house-cpa-heading h2, .house-cpa-rates strong, .house-cpa-total strong) {
  color: var(--text);
}

html body.panel-ui .house-999dna-feature :is(.house-cpa-intro, .house-cpa-heading p, .house-cpa-rule, .house-cpa-total span) {
  color: var(--muted);
}

html body.panel-ui .house-999dna-feature :is(.house-cpa-kicker, .house-cpa-seal),
html body.panel-ui [data-platform-id="999dna"] .platform-feature-label {
  color: var(--accent-2);
  background-color: var(--visual-violet-bg);
}

html body.panel-ui .house-999dna-feature .house-cpa-rates > div {
  background: var(--bg-elev);
  border-color: var(--line);
}

html body.panel-ui .house-999dna-feature .house-cpa-rates > div > span {
  color: var(--muted);
}

html body.panel-ui .platform-compact.is-featured[data-platform-id="999dna"] {
  background: linear-gradient(135deg, var(--bg-card-2), var(--bg-card) 75%) !important;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line)) !important;
}
