/* Audited surfaces and contrast. Shared geometry remains in the components. */
/* Lift existing dark bases slightly; preserve gradients, images and accents. */
html[data-theme="dark"]:has([data-public-content]) {
  --bg: #080808;
  --panel: #0d0d0d;
}

html[data-theme="dark"]:has([data-public-content]) :is(body, .footer),
html[data-theme="dark"] [data-public-content] :is(.page-section, .webfarm-gallery-section, .fivem-dedicated-section, .webfarm-protected-section) {
  background-color: #080808;
}

html[data-theme="dark"] [data-public-content].info-page,
html[data-theme="dark"] [data-public-content] .plan-advisor-section {
  background-color: #0a0f10;
}

html[data-theme="dark"] [data-public-content] .fivem-benefits-section {
  background-color: #0a0f13;
}

html[data-theme="dark"][data-theme] .navbar {
  background-color: rgba(11, 15, 18, .97);
}

html[data-theme="dark"][data-theme] .nav-dropdown {
  background-color: rgba(11, 15, 22, .96);
}

html[data-theme="dark"][data-theme] .navbar .nav-more-dropdown {
  background: #0b1016;
}

html[data-theme="dark"][data-theme] .services-mega {
  background-color: #0d1318;
}

html[data-theme="dark"][data-theme] .services-mega-tabs {
  background-color: #0f181e;
}

html[data-theme="light"][data-theme] {
  --light-canvas: #b9c3c6;
  --light-canvas-alt: #b0bcc0;
  --light-panel: #c9d1d3;
  --light-field: #d2d9db;
  --light-selected: #b3ccce;
  --light-ink: #152c34;
  --light-copy: #20353d;
  --light-edge: #879ba3;
  --light-action: #06434d;
  --blue: #06434d;
  --cyan: #06434d;
  --bg: var(--light-canvas);
  --panel: var(--light-panel);
  --text: var(--light-ink);
  --muted: var(--light-copy);
  --dim: #445b63;
  --line: var(--light-edge);
  --line-soft: #9dafb5;
  --surface-0: var(--light-canvas);
  --surface-1: var(--light-panel);
  --surface-2: var(--light-field);
  --surface-active: var(--light-selected);
  --surface-field: var(--light-field);
}

html[data-theme="light"][data-theme] :is(body, main) {
  background: var(--light-canvas);
}
html[data-theme="light"][data-theme] body::before { background: none; }

/* Reset whole backgrounds, including dark gradients on otherwise light sections. */
html[data-theme="light"][data-theme] main > section:not(.hero):not(.page-hero):not(.info-hero):not(.band):not(.network-section):not(.webfarm-network):not(.configurator-game):not(.configurator-hytale):not(.info-closing-media-full) {
  background: var(--light-canvas) !important;
}
html[data-theme="light"][data-theme] main > section:nth-of-type(even):not(.hero):not(.page-hero):not(.info-hero):not(.band):not(.network-section):not(.webfarm-network):not(.configurator-game):not(.configurator-hytale):not(.info-closing-media-full) {
  background: var(--light-canvas-alt) !important;
}

html[data-theme="light"][data-theme] :is(.navbar, .nav-dropdown, .services-mega, .nav-links.is-open) {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] :is(.theme-toggle, .locale-switch, .locale-switch a.active) {
  background: var(--light-canvas) !important;
  color: var(--light-ink) !important;
  border-color: var(--light-edge) !important;
}

html[data-theme="light"][data-theme] :is(
  .card, .contact-card, .contact-call-card, .support-box, .check,
  .related-card, .product-plan, .faq-item, .spec-table, .feature-list,
  .minecraft-status-shell, .fivem-family, .fivem-benefit-grid article,
  .info-plans article,
  .info-groups section, .info-steps article, .info-review, .info-facts,
  .info-showcase, .info-showcase article, .info-benefits article,
  .webfarm-ddos-table, .webfarm-protected-grid,
  .plan-advisor-modal, .plan-advisor-result, .mc-advisor-step,
  .affiliate-login-panel
) {
  --text: var(--light-ink);
  --muted: var(--light-copy);
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
  color: var(--light-ink) !important;
}
html[data-theme="light"][data-theme] :is(
  .faq-item summary, .faq-item[open] summary,
  .feature-list div, .feature-list a, .spec-table > div,
  .info-facts-row, .info-closing-note, .info-extra-note
) {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
}
/* The application directory is an open list, not a panel. */
html[data-theme="light"][data-theme] [data-public-content] .webfarm-protected-grid {
  background: transparent !important;
  box-shadow: none !important;
}
html[data-theme="light"][data-theme] [data-public-content] .webfarm-protected-grid li:nth-child(odd) {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
html[data-theme="light"][data-theme] :is(.contact-form, .plan-advisor-modal, .affiliate-login-panel) :is(input, select, textarea) {
  background: var(--light-field) !important;
  border-color: var(--light-edge) !important;
  color: var(--light-ink) !important;
}

/* Preserve actual imagery instead of covering it with white layers. */
html[data-theme="light"][data-theme] :is(#servizi, .plans-stage, .support-section)::after {
  background: linear-gradient(rgba(177, 190, 194, .86), rgba(177, 190, 194, .86)), var(--light-section-photo) center / cover no-repeat !important;
  filter: none !important;
}
html[data-theme="light"][data-theme] .configurator-section:is(.configurator-game, .configurator-hytale) > .configurator-artwork::after {
  background: rgba(177, 190, 194, .85) !important;
}

/* Fade the 16:9 artwork before its actual lower edge, not at the section's end. */
html[data-theme][data-theme] body .configurator-section:is(.configurator-game, .configurator-hytale) {
  --configurator-artwork-width: max(100vw, 1920px);
  --configurator-artwork-crop: 54px;
  background: var(--bg) !important;
}

html[data-theme][data-theme] .configurator-section:is(.configurator-game, .configurator-hytale) > .configurator-artwork {
  inset: 0 0 auto !important;
  height: calc(var(--configurator-artwork-width) * .5625 - var(--configurator-artwork-crop));
  max-height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 96px, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent, #000 96px, #000 55%, transparent 100%);
}

@media (max-width: 760px) {
  html[data-theme][data-theme] body .configurator-section:is(.configurator-game, .configurator-hytale) {
    --configurator-artwork-width: 1100px;
    --configurator-artwork-crop: 36px;
  }
}

/* PRO catalogs keep their artwork independent of card and configurator height. */
html[data-theme][data-theme] body main > .service-plans.has-pro-plan-artwork {
  --pro-plan-artwork-width: max(100vw, 1920px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg) !important;
}

.service-plans.has-pro-plan-artwork > .configurator-artwork {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: calc(var(--pro-plan-artwork-width) * .6640625);
  max-height: 100%;
  pointer-events: none;
  background: var(--pro-plan-image) center top / var(--pro-plan-artwork-width) auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 96px, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent, #000 96px, #000 55%, transparent 100%);
}

.service-plans.has-pro-plan-artwork > .configurator-artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 4, 7, .70), rgba(0, 0, 0, .92));
}

.service-plans.has-pro-plan-artwork > .container {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .service-plans.has-pro-plan-artwork > .configurator-artwork::after {
  background: rgba(177, 190, 194, .85);
}

@media (max-width: 760px) {
  .service-plans.has-pro-plan-artwork {
    --pro-plan-artwork-width: 1100px !important;
  }
}

/* Photographic bands own their text colors, including inherited generic rules. */
html[data-theme="light"][data-theme] :is(.hero, .page-hero, .info-hero, #infrastruttura, #rete, .webfarm-network, .info-closing-media-full) {
  --text: #f0f5f6;
  --muted: #c2cfd3;
  --light-action: #44c4d3;
  color: var(--text) !important;
}
html[data-theme="light"][data-theme] :is(#infrastruttura, #rete) :is(h1, h2, h3, h4, strong, b),
html[data-theme="light"][data-theme] .webfarm-network :is(h1, h2, h3, h4, strong, b) {
  color: var(--text) !important;
}
html[data-theme="light"][data-theme] :is(#infrastruttura, #rete) :is(p, li, small, span),
html[data-theme="light"][data-theme] .webfarm-network :is(p, li, small, span) {
  color: var(--muted) !important;
}
html[data-theme="light"][data-theme] :is(#infrastruttura, #rete) .eyebrow,
html[data-theme="light"][data-theme] .webfarm-network .eyebrow {
  color: #44c4d3 !important;
}
html[data-theme="light"][data-theme] #infrastruttura .check {
  --text: #f0f5f6;
  --muted: #c2cfd3;
  background: #26373e !important;
  border-color: #52666f !important;
  color: #f0f5f6 !important;
}
html[data-theme][data-theme] #infrastruttura .check > span:last-child {
  color: #f0f5f6 !important;
}
html[data-theme="light"][data-theme] #rete {
  background: var(--network-photo) !important;
}
html[data-theme="light"][data-theme] #rete::before,
html[data-theme="light"][data-theme] #rete::after {
  content: none;
}
html[data-theme="light"][data-theme] #rete .network-graph-bg {
  opacity: .46;
}
html[data-theme="light"][data-theme] #rete .network-graph-bg::before {
  background: var(--network-graph-overlay) !important;
}
html[data-theme="light"][data-theme] #rete .network-metrics {
  background: rgba(23, 39, 46, .88) !important;
  border-color: #52666f !important;
}
html[data-theme="light"][data-theme] .webfarm-network .webfarm-peer-grid {
  background: rgba(20, 36, 43, .96) !important;
  border-color: #48606b !important;
  box-shadow: none !important;
}
html[data-theme="light"][data-theme] .webfarm-network .webfarm-peer-grid :is(.peer-group, li) {
  border-color: #48606b !important;
}
html[data-theme][data-theme] .webfarm-network .peer-group { --peer-accent: #9cbfee; --peer-tint: #243b57; }
html[data-theme][data-theme] .webfarm-network .peer-group.is-private { --peer-accent: #efafbe; --peer-tint: #482d39; }
html[data-theme][data-theme] .webfarm-network .peer-group.is-public { --peer-accent: #8ed7bc; --peer-tint: #1e4239; }
html[data-theme][data-theme] .webfarm-network .webfarm-peer-grid .peer-group > span,
html[data-theme][data-theme] .webfarm-network .webfarm-peer-grid .peer-group li b {
  color: var(--peer-accent) !important;
}
html[data-theme][data-theme] .webfarm-network .webfarm-peer-grid .peer-group li b {
  background: var(--peer-tint) !important;
  box-shadow: none !important;
}
html[data-theme="light"][data-theme] .info-page-affiliazione .info-closing-media-full .info-closing-note {
  background: transparent !important;
}

html[data-theme][data-theme] .info-page-trading .info-closing .info-closing-note {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #384b53 !important;
  box-shadow: none !important;
  margin-top: 32px;
  padding: 20px 0 24px;
  align-items: start;
}
html[data-theme][data-theme] .info-page-trading .info-closing-note > span {
  color: #80b4e2 !important;
  font-size: 10px;
  line-height: 1.6;
}
html[data-theme][data-theme] .info-page-trading .info-closing-note p {
  color: #b2c2c8 !important;
  font-size: 13px;
  line-height: 1.65;
}
html[data-theme="light"][data-theme] .info-page-trading .info-closing .info-closing-note {
  border-top-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] .info-page-trading .info-closing-note > span {
  color: var(--light-action) !important;
}
html[data-theme="light"][data-theme] .info-page-trading .info-closing-note p {
  color: var(--light-copy) !important;
}

/* Shared purchasing components use the same surfaces as the rest of the site. */
html[data-theme="light"][data-theme] :is(.configurator-vps, .service-plans) {
  --vps-surface: var(--light-panel);
  --vps-selected: var(--light-selected);
  --vps-text: var(--light-ink);
  --vps-muted: var(--light-copy);
  --vps-border: var(--light-edge);
  --vps-divider: #9aadb4;
}
html[data-theme="light"][data-theme] .configurator-section.configurator-section .duration-row.plan-periods {
  --period-tray: #9fb1b8;
  --period-discount: #075e37;
  --period-surface: var(--light-panel);
  --period-hover: var(--light-field);
  --period-text: var(--light-ink);
  --period-muted: var(--light-copy);
  --period-border: var(--light-edge);
}
html[data-theme="light"][data-theme] .cart-page {
  --cart-bg: var(--light-canvas);
  --cart-surface: var(--light-panel);
  --cart-input: var(--light-field);
  --cart-selected: var(--light-selected);
  --cart-text: var(--light-ink);
  --cart-muted: var(--light-copy);
  --cart-line: var(--light-edge);
  --cart-accent: #06434d;
  --cart-good: #08643c;
  --cart-error: #962336;
}

html[data-theme="light"][data-theme] .locale-switch a { color: var(--light-copy) !important; }
html[data-theme="light"][data-theme] .button:not(.ghost):not(.secondary),
html[data-theme="light"][data-theme] [data-plan-advisor-open],
html[data-theme="light"][data-theme] .affiliate-login-panel button[type="submit"] {
  background: #077b8d !important;
  border-color: #077b8d !important;
  color: #fff !important;
}
html[data-theme="light"][data-theme] .button:is(.ghost, .secondary) {
  background: transparent !important;
  border-color: currentColor !important;
  color: var(--text) !important;
}

html[data-theme="light"][data-theme] .info-page .info-summary :is(.info-stats span, .info-uptime-status small, .info-uptime-legend span, .info-uptime-legend strong),
html[data-theme="light"][data-theme] .contact-call-card span {
  color: var(--light-copy) !important;
}
/* Summary wrappers are layout bands, not panels. */
html[data-theme="light"][data-theme] :is(.info-summary, .info-stats) {
  background: transparent !important;
}

html[data-theme="light"][data-theme] .minecraft-status-shell :is(.minecraft-status-brand, .minecraft-status-route, .minecraft-status-metrics > div) {
  background: transparent !important;
  border-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] .minecraft-status-shell :is(.minecraft-status-brand, .minecraft-status-route, .minecraft-status-metrics) span,
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-metrics > div:is(.is-metric-loading, .is-metric-unknown) strong {
  color: var(--light-copy) !important;
}

html[data-theme="light"][data-theme] .partner-profile,
html[data-theme="light"][data-theme] .partner-profile:hover {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] .partner-profile .partner-profile-head span,
html[data-theme="light"][data-theme] .partner-profile .partner-profile-links a {
  color: var(--light-action) !important;
}

html[data-theme="light"][data-theme] .affiliate-login-copy {
  --text: #f0f5f6;
  --muted: #c2cfd3;
}
html[data-theme="light"][data-theme] .affiliate-login-copy :is(span, a) { color: #c2cfd3 !important; }
html[data-theme="light"][data-theme] .affiliate-login-copy .affiliate-section-label { color: #44c4d3 !important; }
html[data-theme="light"][data-theme] .affiliate-login-panel :is(label > span, header > span, small a) { color: var(--light-copy) !important; }

html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-metrics :is([data-mc-latency], [data-mc-packet-loss]) {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] .page-hero .contact-call-card :is(.contact-call-copy, .contact-call-hours) > span {
  color: var(--light-copy) !important;
}

html[data-theme="dark"][data-theme] .button:not(.ghost):not(.secondary),
html[data-theme="dark"][data-theme] [data-plan-advisor-open],
html[data-theme="dark"][data-theme] .affiliate-login-panel button[type="submit"] {
  background: #077b8d !important;
  border-color: #077b8d !important;
  color: #fff !important;
}
html[data-theme="dark"][data-theme] .button.secondary {
  background: transparent !important;
  border-color: #71858e !important;
  color: #f0f5f6 !important;
}
html[data-theme="dark"][data-theme] :is(.feature-tag, .info-note a) { color: #80b4e2 !important; }
html[data-theme="dark"][data-theme] .partner-profile .partner-profile-head span { color: #b9cbd3 !important; }
html[data-theme="dark"][data-theme] .affiliate-login-copy .affiliate-section-label { color: #a7b7bf !important; }

html[data-theme][data-theme] .fivem-ddos-section .fivem-legal {
  font-size: 11px;
  line-height: 1.6;
}
.service-plans .fivem-pricing-head { margin-bottom: 28px; }

html[data-theme="light"][data-theme] main > section.hero {
  background-color: #17242c !important;
}
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-metrics {
  background: transparent !important;
}
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-state {
  background: var(--light-field) !important;
  color: var(--light-copy) !important;
  border-color: var(--light-edge) !important;
  box-shadow: none !important;
}
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-state.is-online {
  background: #bdd4c8 !important;
  color: #155b3b !important;
  border-color: #789c89 !important;
}
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-state:is(.is-offline, .is-error) {
  background: #d8c1c5 !important;
  color: #8e2334 !important;
  border-color: #ae8089 !important;
}
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-state i {
  background: currentColor !important;
  box-shadow: none !important;
}
html[data-theme="light"][data-theme] .configurator-section .plans-scroll-ui {
  background: var(--light-canvas-alt) !important;
}
html[data-theme="light"][data-theme] .info-page-trading .info-showcase article {
  background: var(--light-panel) !important;
}
html[data-theme][data-theme] .minecraft-status-shell .minecraft-status-metrics > div > span {
  display: block;
  min-height: 36px;
}
html[data-theme][data-theme] .minecraft-status-shell [data-mc-probe-progress] {
  display: block !important;
  min-height: 12px !important;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
}
html[data-theme="dark"][data-theme] .configurator-section .configurator-head > span { color: #bacbd2 !important; }
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-metrics > div.is-metric-good strong { color: #075e37 !important; }
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-metrics > div.is-metric-moderate strong { color: #745700 !important; }
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-metrics > div.is-metric-poor strong { color: #90470b !important; }
html[data-theme="light"][data-theme] .minecraft-status-shell .minecraft-status-metrics > div.is-metric-critical strong { color: #aa2438 !important; }

html[data-theme][data-theme] .plan-advisor-dialog :is([data-advisor-apply], [data-advisor-submit], [data-advisor-link]) {
  background: #077b8d !important;
  border-color: #077b8d !important;
  color: #fff !important;
}
html[data-theme="light"][data-theme] .plan-advisor-dialog :is(.plan-advisor-free, .mc-advisor-step legend b, .plan-advisor-result > span, .mc-advisor-player-input label > span, .mc-advisor-range-labels span, .mc-advisor-estimate > span, .plan-advisor-fields > label > span) {
  color: var(--light-copy) !important;
}

/* Open menus and modpack results share the same subdued light surfaces. */
html[data-theme="light"][data-theme] .services-mega-tabs button:is(:hover, :focus-visible, .active) {
  background: var(--light-selected) !important;
}
html[data-theme="light"][data-theme] .nav-more-head {
  background: var(--light-canvas-alt) !important;
}
html[data-theme="light"][data-theme] :is(.services-mega-item, .services-mega-panel > header > a):is(:hover, :focus-visible) {
  background: var(--light-selected) !important;
  color: var(--light-ink) !important;
}
html[data-theme="dark"][data-theme] :is(.services-mega-panel > header > div > span, .services-mega-panel > header > a, .nav-more-head > span) {
  color: #80b4e2 !important;
}
html[data-theme="light"][data-theme] .mc-advisor-modpack-results {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] .mc-advisor-modpack-selected,
html[data-theme="light"][data-theme] .mc-advisor-modpack-results .mc-advisor-modpack-option {
  background: var(--light-field) !important;
  border-color: var(--light-edge) !important;
  color: var(--light-ink) !important;
}
html[data-theme="light"][data-theme] .mc-advisor-modpack-results .mc-advisor-modpack-option:is(:hover, :focus, :active, [aria-selected="true"]) {
  background: var(--light-selected) !important;
  border-color: var(--light-action) !important;
  color: var(--light-ink) !important;
}
html[data-theme="light"][data-theme] :is(.mc-advisor-modpack-selected small, .mc-advisor-modpack-option small, .mc-advisor-modpack-state, .mc-advisor-modpack-field > small) {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] :is(.plan-advisor-modal, .contact-form, .affiliate-login-panel) :is(input, textarea)::placeholder {
  color: var(--light-copy) !important;
  opacity: 1;
}
html[data-theme="dark"][data-theme] :is(.mc-advisor-modpack-option small, .mc-advisor-modpack-selected small) {
  color: #b9cbd3 !important;
}

/* Surfaces and captions exposed after scroll-reveal animations finish. */
html[data-theme="light"][data-theme] .related-grid {
  background: transparent !important;
}
html[data-theme="light"][data-theme] .related-card .related-card-copy :is(small, em),
html[data-theme="light"][data-theme] .webfarm-protection-flow .protection-flow-link span {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] .webfarm-ddos-table > * {
  background: transparent !important;
}
html[data-theme="light"][data-theme] .webfarm-ddos-table > .is-featured {
  background: var(--light-selected) !important;
}
html[data-theme="dark"][data-theme] .webfarm-protected-grid header span {
  color: #80b4e2 !important;
}
html[data-theme="dark"][data-theme] .footer-legal :is(a, span, .footer-cookie-settings) {
  color: #9eacb1 !important;
}

html[data-theme="light"][data-theme] .faq-list {
  background: transparent !important;
  border-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] .faq-list .faq-item,
html[data-theme="light"][data-theme] .faq-list .faq-item:is(:hover, [open]) {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] .faq-list .faq-item summary,
html[data-theme="light"][data-theme] .faq-list .faq-item[open] summary {
  background: transparent !important;
  color: var(--light-ink) !important;
}
html[data-theme="light"][data-theme] .faq-list .faq-item summary:hover {
  background: var(--light-field) !important;
}
html[data-theme="light"][data-theme] .faq-list .faq-answer-inner p {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] .faq-list .faq-item summary i::before,
html[data-theme="light"][data-theme] .faq-list .faq-item summary i::after {
  background: var(--light-action) !important;
}
html[data-theme="light"][data-theme] .faq-list .faq-item summary:focus-visible {
  outline-color: var(--light-action) !important;
}
html[data-theme="light"][data-theme] :is(.info-page-trading, .info-page-affiliazione) :is(.info-showcase, .info-benefits, .info-steps, .info-reviews, .info-document) > article,
html[data-theme="light"][data-theme] .info-page-trading .info-trust-score {
  background: var(--light-panel) !important;
  box-shadow: none !important;
}
html[data-theme="light"][data-theme] :is(.info-page-trading, .info-page-affiliazione) :is(.info-showcase, .info-benefits, .info-steps, .info-reviews) > article:hover,
html[data-theme="light"][data-theme] .info-page-trading .info-trust-score:hover {
  background: var(--light-selected) !important;
}
html[data-theme="light"][data-theme] .info-page-trading .info-trust-score small,
html[data-theme="light"][data-theme] .info-page-trading #piani .info-section-intro {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] :is(.plans-stage, .support-section) .eyebrow {
  color: var(--light-ink) !important;
}
html[data-theme="light"][data-theme] .fivem-ddos-section .eyebrow {
  color: var(--light-action) !important;
}
html[data-theme="dark"][data-theme] .plans-stage .price span,
html[data-theme="dark"][data-theme] .fivem-ddos-section .fivem-legal {
  color: #a7b7bf !important;
}
html[data-theme="dark"][data-theme] .fivem-family-body > span,
html[data-theme="dark"][data-theme] .info-closing-note > span {
  color: #80b4e2 !important;
}
html[data-theme][data-theme] .info-page-trading .info-trust-stars i {
  background: #007a52 !important;
}

/* Document and payment lists are open layouts, not nested panels. */
html[data-theme][data-theme] :is(.info-document, .info-methods),
html[data-theme][data-theme] :is(.info-document-rows, .info-methods) > article,
html[data-theme][data-theme] :is(.info-document-rows, .info-methods) > article:hover {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html[data-theme="light"][data-theme] .info-page-pagamenti .info-method-icon img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(92%) saturate(1750%) hue-rotate(142deg) brightness(41%) contrast(101%);
}

/* Client pages keep the shared semantic palette with quieter, lighter surfaces. */
html[data-theme="light"]:has(.affiliate-dashboard) {
  --light-canvas: #e4e9ec;
  --light-canvas-alt: #dce4e8;
  --light-panel: #f0f3f4;
  --light-panel-heading: #e7edf0;
  --light-field: #f7f9fa;
  --light-edge: #b6c5cd;
  --light-ink: #172f3b;
  --light-copy: #455f6d;
  --light-action: #17647e;
  --light-selected: #d3e5ec;
}
html[data-theme="light"][data-theme] .affiliate-dashboard {
  --cyan: var(--light-action);
  --blue: #225e8a;
  --affiliate-panel: var(--light-panel);
  --affiliate-line: var(--light-edge);
  --affiliate-text: var(--light-ink);
  --affiliate-muted: var(--light-copy);
  --affiliate-faint: var(--light-copy);
  --affiliate-green: #14603f;
}
html[data-theme="light"][data-theme] :is(.vps-console, .service-catalog, .mc-console, .ddos-ruleset-modal) {
  --vps-green: #14603f;
  --vps-blue: #225e8a;
  --vps-purple: #684184;
  --vps-amber: #75510e;
}
html[data-theme="light"][data-theme] .affiliate-dashboard :is(
  .billing-document-link, .vps-copy, .vps-identifier, .affiliate-profile-tabs,
  .affiliate-profile-card > header, .affiliate-payout-panel > header,
  .affiliate-report-panel > header, .affiliate-orders-panel > header
) .ui-icon { color: var(--light-action); }
html[data-theme="light"][data-theme] #profilo :is(.profile-section-icon, .affiliate-two-factor-identity > i) {
  color: #14603f;
}
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.billing-button, .crm-button, .vps-button) .ui-icon {
  color: inherit;
}
html[data-theme="light"][data-theme] .affiliate-dashboard :is(
  .vps-action.is-shutdown, .vps-action.is-stop, .mc-power [data-mc-power="stop"]
) .ui-icon { color: #953347; }
html[data-theme="light"][data-theme] .affiliate-sidebar-nav summary.is-active {
  background: #077b8d !important;
  color: #fff !important;
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .is-active .ui-icon { color: #fff !important; }
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-group > summary {
  color: var(--light-copy);
  background: transparent;
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-group[open] > summary,
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-group > summary:is(:hover, .is-active) {
  color: var(--light-ink) !important;
  background: var(--light-panel) !important;
}
html[data-theme="light"][data-theme] .affiliate-sidebar .affiliate-nav-group > summary .ui-icon {
  color: var(--light-action) !important;
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-submenu a {
  color: var(--light-copy);
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-submenu a .ui-icon {
  color: var(--light-action) !important;
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-submenu a:hover {
  background: var(--light-panel) !important;
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-submenu a.is-active {
  color: var(--light-action) !important;
  background: var(--light-selected) !important;
  box-shadow: inset 3px 0 #077b8d;
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-submenu a.is-active .ui-icon { color: var(--light-action) !important; }
@media(max-width:1100px) {
  html[data-theme="light"][data-theme] .affiliate-sidebar-nav .affiliate-nav-submenu {
    background: var(--light-field);
    border-color: var(--light-edge);
    box-shadow: 0 8px 22px #152c3426;
  }
}
html[data-theme="light"][data-theme] .affiliate-sidebar .affiliate-nav-icon { color: var(--light-action) !important; }
html[data-theme="light"][data-theme] .affiliate-sidebar .is-active .affiliate-nav-icon { color: #fff !important; }
html[data-theme="light"][data-theme] .affiliate-sidebar :is(.affiliate-brand, .affiliate-sidebar-bottom) { border-color: var(--light-edge) !important; }
html[data-theme="light"][data-theme] :is(.affiliate-dashboard, .affiliate-workspace, .affiliate-workspace-main) {
  background: var(--light-canvas) !important;
  color: var(--light-ink);
}
html[data-theme="light"][data-theme] :is(.affiliate-sidebar, .affiliate-topbar) {
  background: var(--light-canvas-alt) !important;
  border-color: var(--light-edge) !important;
  box-shadow: none;
}
html[data-theme="light"][data-theme] :is(
  .affiliate-kpis article, .account-service-kpis article, .account-service-card,
  .affiliate-overview, .affiliate-report-panel,
  .affiliate-orders-panel, .affiliate-profile-card, .affiliate-payout-panel,
  .affiliate-balance-panel, .affiliate-referral-panel,
  .affiliate-alias-modal > section, .affiliate-alias-modal > section > header,
  .affiliate-alias-modal .affiliate-alias-create, .affiliate-alias-list-head
) {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
  box-shadow: none;
}
html[data-theme="light"][data-theme] :is(
  .affiliate-referral-control, .affiliate-sidebar-bottom button,
  .affiliate-alias-modal .affiliate-alias-input,
  .affiliate-alias-modal .affiliate-alias-empty, .affiliate-alias-modal .affiliate-alias-list,
  .affiliate-alias-modal .affiliate-alias-item
) {
  background: var(--light-field) !important;
  border-color: var(--light-edge) !important;
  color: var(--light-copy);
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav a:hover {
  background: var(--light-selected) !important;
}
html[data-theme="light"][data-theme] .affiliate-sidebar-nav a.is-active {
  background: #077b8d !important;
  color: #fff !important;
}
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.billing-workspace, .billing-index) {
  --bill-bg: var(--light-panel);
  --bill-field: var(--light-field);
  --bill-line: var(--light-edge);
  --bill-text: var(--light-ink);
  --bill-muted: var(--light-copy);
}
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.crm, .crm-ticket-index) {
  --crm-bg: var(--light-panel);
  --crm-soft: var(--light-field);
  --crm-line: var(--light-edge);
  --crm-text: var(--light-ink);
  --crm-muted: var(--light-copy);
  --crm-accent: var(--light-action);
}
html[data-theme="light"][data-theme] :is(.vps-console, .service-catalog, .mc-console, .ddos-ruleset-modal) {
  --vps-surface: var(--light-panel);
  --vps-heading-surface: var(--light-panel-heading, var(--light-field));
  --vps-field-surface: var(--light-field);
  --vps-border: var(--light-edge);
  --vps-text: var(--light-ink);
  --vps-muted: var(--light-copy);
  --vps-accent: var(--light-action);
}
html[data-theme="light"][data-theme] #profilo {
  --profile-text: var(--light-ink);
  --profile-muted: var(--light-copy);
  --profile-line: var(--light-edge);
  --profile-field: var(--light-field);
  --profile-accent: var(--light-action);
}
html[data-theme="light"][data-theme] #profilo :is([data-profile-panel], .affiliate-two-factor, .affiliate-two-factor-head) {
  background: transparent !important;
  border-color: var(--light-edge);
}
html[data-theme="light"][data-theme] #profilo :is(input, select, textarea) {
  background: var(--light-field) !important;
  border-color: var(--light-edge) !important;
  color: var(--light-ink);
}
html[data-theme="light"][data-theme] #profilo input[readonly] { background: var(--light-panel) !important; }
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.affiliate-report-panel, .affiliate-orders-panel) > header {
  background: var(--light-field) !important;
  border-color: var(--light-edge) !important;
  color: var(--light-ink);
}
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.affiliate-report-panel, .affiliate-orders-panel) > header h2 {
  color: var(--light-ink) !important;
}
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.affiliate-report-panel, .affiliate-orders-panel) > header :is(.affiliate-section-label, small, .affiliate-chart-legend) {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-chart {
  background-color: var(--light-panel) !important;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-chart-month > :is(span, small) {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-chart-month > em {
  color: #14603f !important;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-order-filters {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-order-filters label > span {
  color: var(--light-copy) !important;
}
html[data-theme="light"][data-theme] #profilo [data-profile-panel] > header { background: transparent !important; }
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.billing-table td, .crm-table td) { color: var(--light-copy); }
html[data-theme="light"][data-theme] .affiliate-dashboard .account-service-card > footer {
  background: var(--light-panel-heading);
}
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-management-workspace {
  --deck-bg: var(--light-panel);
  --deck-aside: var(--light-panel-heading);
  --deck-line: var(--light-edge);
  --deck-muted: var(--light-copy);
  --deck-text: var(--light-ink);
  --deck-button: var(--light-field);
  --deck-track: #c5d2d8;
  --deck-running: #20805e;
  --deck-uptime-high: #b63e50;
  --deck-warning: #99701e;
  --deck-stopped: #74868f;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-deck .is-start { --action-color: #14603f; }
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-deck .is-reboot { --action-color: #17647e; }
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-deck .is-shutdown { --action-color: #953347; }
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-deck .is-stop { --action-color: #953347; }
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-deck .is-reset { --action-color: #684184; }
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-deck .is-reinstall { --action-color: #75510e; }
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-deck .vps-action:disabled { opacity: .58; }
html[data-theme="light"][data-theme] .affiliate-dashboard :is(.vps-service-details-heading, .vps-address-summary) .ui-icon {
  color: var(--light-action);
}
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-heading h2 .ui-icon { color: #75510e; }
html[data-theme="light"][data-theme] .affiliate-dashboard .vps-control-state .vps-state.is-active { color: #14603f; }
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-live-state { color: #14603f; }
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-live-state i {
  background: #14603f;
  box-shadow: none;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-topbar-profile,
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-topbar-profile > div {
  background: transparent !important;
  color: var(--light-ink);
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-topbar-profile :is(small, div > span) {
  color: var(--light-copy);
}
html[data-theme="light"][data-theme] .affiliate-dashboard .affiliate-avatar {
  background: var(--light-selected);
  color: var(--light-action);
}
html[data-theme="light"][data-theme] .affiliate-dashboard .billing-document-head img { filter: brightness(0) opacity(.85); }
html[data-theme="light"][data-theme] .affiliate-dashboard .billing-badge {
  color: #75510e;
  background: #f2e8d2;
  border-color: #c8b686;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .billing-badge.is-paid {
  color: #14603f;
  background: #e0eee6;
  border-color: #99bba9;
}
html[data-theme="light"][data-theme] .affiliate-dashboard .billing-badge:is(.is-cancelled, .is-refunded) {
  color: var(--light-copy);
  background: var(--light-panel-heading);
  border-color: var(--light-edge);
}
html[data-theme="light"][data-theme] :is(.affiliate-confirm-modal, .affiliate-alias-modal) > section {
  background: var(--light-panel) !important;
  border-color: var(--light-edge) !important;
  color: var(--light-ink);
}
