/* NEWLIFE_CABINET_LIGHT_THEME_V453_START
   Final cache + contrast hotfix.
   Loaded last from shared footer with a NEW URL (?v=453).
*/

/* ---------- 1. Force the four dashboard KPI cards ---------- */

html.nl-light body.cabinet-page .dashboard-metrics,
html body.light.cabinet-page .dashboard-metrics{
  background:transparent!important;
}

html.nl-light body.cabinet-page .dashboard-metrics > *,
html.nl-light body.cabinet-page .dashboard-metrics .dashboard-metric,
html body.light.cabinet-page .dashboard-metrics > *,
html body.light.cabinet-page .dashboard-metrics .dashboard-metric{
  border:1px solid #d8e1ec!important;
  background-color:#ffffff!important;
  background-image:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%)!important;
  color:#172033!important;
  box-shadow:0 8px 22px rgba(41,55,82,.065)!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

html.nl-light body.cabinet-page .dashboard-metrics > *::before,
html.nl-light body.cabinet-page .dashboard-metrics > *::after,
html.nl-light body.cabinet-page .dashboard-metrics .dashboard-metric::before,
html.nl-light body.cabinet-page .dashboard-metrics .dashboard-metric::after,
html body.light.cabinet-page .dashboard-metrics > *::before,
html body.light.cabinet-page .dashboard-metrics > *::after,
html body.light.cabinet-page .dashboard-metrics .dashboard-metric::before,
html body.light.cabinet-page .dashboard-metrics .dashboard-metric::after{
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  opacity:0!important;
  filter:none!important;
}

html.nl-light body.cabinet-page .dashboard-metrics :is(strong,b,.value,.dashboard-metric-value),
html body.light.cabinet-page .dashboard-metrics :is(strong,b,.value,.dashboard-metric-value){
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
  text-shadow:none!important;
  opacity:1!important;
}

html.nl-light body.cabinet-page .dashboard-metrics :is(span,small,p,.label,.dashboard-metric-label),
html body.light.cabinet-page .dashboard-metrics :is(span,small,p,.label,.dashboard-metric-label){
  color:#66758a!important;
  -webkit-text-fill-color:#66758a!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* ---------- 2. Global readable text on light surfaces ---------- */

html.nl-light body.cabinet-page :is(
  .cabinet-v3-panel,
  .cabinet-profile-card,
  .card,
  .panel,
  .mini-card,
  .stats-v3-panel,
  .weapons-v3-panel,
  .ranks-v33-panel,
  .purchases-v34-panel,
  .purchase-view-v341-panel,
  .fortune-v3-panel,
  .sp8-panel,
  .vip-v39-panel,
  .vip-v39-main-panel,
  .discipline-panel,
  .comm-panel,
  .account-v42-panel,
  .nl-auth-panel
) :is(h1,h2,h3,h4,h5,h6,strong,b),
html body.light.cabinet-page :is(
  .cabinet-v3-panel,
  .cabinet-profile-card,
  .card,
  .panel,
  .mini-card,
  .stats-v3-panel,
  .weapons-v3-panel,
  .ranks-v33-panel,
  .purchases-v34-panel,
  .purchase-view-v341-panel,
  .fortune-v3-panel,
  .sp8-panel,
  .vip-v39-panel,
  .vip-v39-main-panel,
  .discipline-panel,
  .comm-panel,
  .account-v42-panel,
  .nl-auth-panel
) :is(h1,h2,h3,h4,h5,h6,strong,b){
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
  text-shadow:none!important;
}

html.nl-light body.cabinet-page :is(
  .cabinet-v3-panel,
  .cabinet-profile-card,
  .card,
  .panel,
  .mini-card,
  .stats-v3-panel,
  .weapons-v3-panel,
  .ranks-v33-panel,
  .purchases-v34-panel,
  .purchase-view-v341-panel,
  .fortune-v3-panel,
  .sp8-panel,
  .vip-v39-panel,
  .vip-v39-main-panel,
  .discipline-panel,
  .comm-panel,
  .account-v42-panel,
  .nl-auth-panel
) :is(p,small,label,.muted,.sub,.desc,.hint),
html body.light.cabinet-page :is(
  .cabinet-v3-panel,
  .cabinet-profile-card,
  .card,
  .panel,
  .mini-card,
  .stats-v3-panel,
  .weapons-v3-panel,
  .ranks-v33-panel,
  .purchases-v34-panel,
  .purchase-view-v341-panel,
  .fortune-v3-panel,
  .sp8-panel,
  .vip-v39-panel,
  .vip-v39-main-panel,
  .discipline-panel,
  .comm-panel,
  .account-v42-panel,
  .nl-auth-panel
) :is(p,small,label,.muted,.sub,.desc,.hint){
  color:#66758a!important;
  -webkit-text-fill-color:#66758a!important;
  text-shadow:none!important;
}

/* Common explicit dark-theme label classes. */
html.nl-light body.cabinet-page :is(
  .dashboard-eyebrow,.dashboard-kicker,.dashboard-label,
  .cabinet-profile-label,
  .stats-v3-kicker,.stats-v3-label,
  .weapons-v3-kicker,.weapons-v3-label,.weapons-v3-share,
  .ranks-v33-kicker,.ranks-v33-label,
  .purchases-v34-label,.purchase-view-v341-label,
  .fortune-v3-kicker,.fortune-v3-muted,.fortune-svg-sub,
  .sp8-kicker,.sp8-muted,
  .vip-v39-kicker,.vip-v39-label,.vip-v39-muted,
  .discipline-kicker,.discipline-label,.discipline-muted,
  .comm-kicker,.comm-label,.comm-muted,
  .account-v42-kicker,.account-v42-copy p,.account-v42-field label,.account-v42-field small,
  .account-v42-toggle-row small,.notification-v41-item time
),
html body.light.cabinet-page :is(
  .dashboard-eyebrow,.dashboard-kicker,.dashboard-label,
  .cabinet-profile-label,
  .stats-v3-kicker,.stats-v3-label,
  .weapons-v3-kicker,.weapons-v3-label,.weapons-v3-share,
  .ranks-v33-kicker,.ranks-v33-label,
  .purchases-v34-label,.purchase-view-v341-label,
  .fortune-v3-kicker,.fortune-v3-muted,.fortune-svg-sub,
  .sp8-kicker,.sp8-muted,
  .vip-v39-kicker,.vip-v39-label,.vip-v39-muted,
  .discipline-kicker,.discipline-label,.discipline-muted,
  .comm-kicker,.comm-label,.comm-muted,
  .account-v42-kicker,.account-v42-copy p,.account-v42-field label,.account-v42-field small,
  .account-v42-toggle-row small,.notification-v41-item time
){
  color:#66758a!important;
  -webkit-text-fill-color:#66758a!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* ---------- 3. Interactive/accent exceptions ---------- */

/* Primary actions stay white on purple/blue backgrounds. */
html.nl-light body.cabinet-page :is(
  .cabinet-action-btn,
  .nl-auth-submit,
  .account-v42-primary-btn,
  .comm-primary-btn,
  .discipline-primary-btn,
  .btn-main,
  .nav a.active,
  .nav a.is-active
),
html body.light.cabinet-page :is(
  .cabinet-action-btn,
  .nl-auth-submit,
  .account-v42-primary-btn,
  .comm-primary-btn,
  .discipline-primary-btn,
  .btn-main,
  .nav a.active,
  .nav a.is-active
){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

html.nl-light body.cabinet-page :is(
  .cabinet-action-btn,
  .nl-auth-submit,
  .account-v42-primary-btn,
  .comm-primary-btn,
  .discipline-primary-btn,
  .btn-main,
  .nav a.active,
  .nav a.is-active
) :is(span,strong,b,small),
html body.light.cabinet-page :is(
  .cabinet-action-btn,
  .nl-auth-submit,
  .account-v42-primary-btn,
  .comm-primary-btn,
  .discipline-primary-btn,
  .btn-main,
  .nav a.active,
  .nav a.is-active
) :is(span,strong,b,small){
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Status/accent text must keep its semantic color. */
html.nl-light body.cabinet-page :is(.is-good,.is-success,.status-success,.badge-success,.positive),
html body.light.cabinet-page :is(.is-good,.is-success,.status-success,.badge-success,.positive){
  color:#13744b!important;
  -webkit-text-fill-color:#13744b!important;
}

html.nl-light body.cabinet-page :is(.is-warn,.is-warning,.status-warning,.badge-warning),
html body.light.cabinet-page :is(.is-warn,.is-warning,.status-warning,.badge-warning){
  color:#9a6118!important;
  -webkit-text-fill-color:#9a6118!important;
}

html.nl-light body.cabinet-page :is(.is-bad,.is-danger,.status-danger,.badge-danger),
html body.light.cabinet-page :is(.is-bad,.is-danger,.status-danger,.badge-danger){
  color:#ad4051!important;
  -webkit-text-fill-color:#ad4051!important;
}

/* Public profile / secondary actions readable. */
html.nl-light body.cabinet-page a[href*="player.php"],
html body.light.cabinet-page a[href*="player.php"]{
  border-color:#d3cdf8!important;
  background:#f4f1ff!important;
  color:#5549b0!important;
  -webkit-text-fill-color:#5549b0!important;
  text-shadow:none!important;
}

/* ---------- 4. Inputs/tables ---------- */

html.nl-light body.cabinet-page :is(input,select,textarea),
html body.light.cabinet-page :is(input,select,textarea){
  color:#172033!important;
  -webkit-text-fill-color:#172033!important;
}

html.nl-light body.cabinet-page :is(.table,.comm-table,.discipline-table,.account-v42-table) td,
html body.light.cabinet-page :is(.table,.comm-table,.discipline-table,.account-v42-table) td{
  color:#334155!important;
  -webkit-text-fill-color:#334155!important;
}

html.nl-light body.cabinet-page :is(.table,.comm-table,.discipline-table,.account-v42-table) th,
html body.light.cabinet-page :is(.table,.comm-table,.discipline-table,.account-v42-table) th{
  color:#66758a!important;
  -webkit-text-fill-color:#66758a!important;
}

/* NEWLIFE_CABINET_LIGHT_THEME_V453_END */
