/* NEWLIFE_CABINET_LIGHT_THEME_V451_START */

/* V4.5.1 is loaded LAST, after every per-page stylesheet. */
html.nl-light,
html:has(body.light.cabinet-page){
  color-scheme:light!important;
  background:#edf2f8!important;
}

html.nl-light body.cabinet-page,
html body.light.cabinet-page{
  --bg:#edf2f8!important;
  --bg0:#edf2f8!important;
  --bg1:#f5f7fb!important;
  --bg2:#e9eff6!important;
  --panel:#fff!important;
  --panel-2:#f8fafc!important;
  --card:#fff!important;
  --surface:#fff!important;
  --surface-2:#f8fafc!important;
  --surface-3:#f1f5f9!important;
  --text:#172033!important;
  --text-2:#334155!important;
  --muted:#718096!important;
  --muted-2:#94a3b8!important;
  --line:#dbe3ee!important;
  --line-strong:#cbd6e4!important;
  --border:#dbe3ee!important;
  --shadow:0 14px 38px rgba(41,55,82,.08)!important;

  background:
    radial-gradient(circle at 12% -8%,rgba(116,91,255,.09),transparent 30%),
    radial-gradient(circle at 94% 7%,rgba(46,193,226,.07),transparent 28%),
    linear-gradient(180deg,#f7f9fc 0,#edf2f8 48%,#e9eff6 100%)!important;
  color:#172033!important;
}

/* Sidebar / shared shell */
html.nl-light body.cabinet-page .topbar,
html body.light.cabinet-page .topbar{
  border-color:#d7e0eb!important;
  background:linear-gradient(180deg,#fff,#f7fafc)!important;
  box-shadow:0 14px 36px rgba(41,55,82,.10)!important;
}
html.nl-light body.cabinet-page .topbar-main,
html body.light.cabinet-page .topbar-main{border-color:#e1e7ef!important}
html.nl-light body.cabinet-page .brand,
html.nl-light body.cabinet-page .brand-copy strong,
html body.light.cabinet-page .brand,
html body.light.cabinet-page .brand-copy strong{color:#172033!important}
html.nl-light body.cabinet-page .brand-copy small,
html body.light.cabinet-page .brand-copy small{color:#7d8999!important}

html.nl-light body.cabinet-page .nav,
html body.light.cabinet-page .nav{
  background:transparent!important;
  border-color:#e1e7ef!important;
}
html.nl-light body.cabinet-page .nav a,
html body.light.cabinet-page .nav a{
  color:#5c6879!important;
  background:transparent!important;
  border-color:transparent!important;
}
html.nl-light body.cabinet-page .nav a::before,
html body.light.cabinet-page .nav a::before{
  border-color:#b8c4d3!important;
  background:#fff!important;
}
html.nl-light body.cabinet-page .nav a:hover,
html body.light.cabinet-page .nav a:hover{
  color:#344256!important;
  background:#f2f5f9!important;
}
html.nl-light body.cabinet-page .nav a.active,
html.nl-light body.cabinet-page .nav a.is-active,
html body.light.cabinet-page .nav a.active,
html body.light.cabinet-page .nav a.is-active{
  color:#fff!important;
  border-color:#d5cff9!important;
  background:linear-gradient(135deg,#775fee,#6655da)!important;
  box-shadow:0 8px 20px rgba(91,75,220,.15)!important;
}
html.nl-light body.cabinet-page .nav .nav-pass,
html body.light.cabinet-page .nav .nav-pass{color:#715fb7!important}
html.nl-light body.cabinet-page .nav .nav-pass.active,
html.nl-light body.cabinet-page .nav .nav-pass.is-active,
html body.light.cabinet-page .nav .nav-pass.active,
html body.light.cabinet-page .nav .nav-pass.is-active{color:#fff!important}
html.nl-light body.cabinet-page .nav .nav-exit,
html body.light.cabinet-page .nav .nav-exit{color:#b44b5b!important}

html.nl-light body.cabinet-page :is(.cabinet-v3-mobile-toggle,.nav-toggle,.account-chip,.cabinet-theme-toggle),
html body.light.cabinet-page :is(.cabinet-v3-mobile-toggle,.nav-toggle,.account-chip,.cabinet-theme-toggle){
  border-color:#d6dfeb!important;
  background:#fff!important;
  color:#415167!important;
  box-shadow:0 5px 15px rgba(41,55,82,.05)!important;
}

/* Dashboard real V3 blocks */
html.nl-light body.cabinet-page :is(
  .cabinet-profile-card,.cabinet-v3-panel,.dashboard-hero-stat,.dashboard-metric,
  .dashboard-list-item,.dashboard-order-item,.dashboard-shortcut,.dashboard-notification-item
),
html body.light.cabinet-page :is(
  .cabinet-profile-card,.cabinet-v3-panel,.dashboard-hero-stat,.dashboard-metric,
  .dashboard-list-item,.dashboard-order-item,.dashboard-shortcut,.dashboard-notification-item
){
  border-color:#dbe3ee!important;
  background:linear-gradient(180deg,#fff,#f8fafc)!important;
  color:#172033!important;
  box-shadow:0 8px 24px rgba(41,55,82,.06)!important;
}
html.nl-light body.cabinet-page .cabinet-profile-card,
html body.light.cabinet-page .cabinet-profile-card{
  background:
    radial-gradient(circle at 90% 0,rgba(108,91,238,.10),transparent 34%),
    radial-gradient(circle at 72% 110%,rgba(38,177,209,.06),transparent 38%),
    linear-gradient(135deg,#fff,#f8f8ff 64%,#f4fbfd)!important;
}
html.nl-light body.cabinet-page :is(
  .cabinet-profile-copy strong,.dashboard-identity h1,.dashboard-identity h2,
  .dashboard-hero-stat strong,.dashboard-metric strong,.dashboard-list-copy strong,
  .dashboard-order-item strong,.dashboard-shortcut strong,.dashboard-notification-item strong,
  .cabinet-v3-panel h2,.cabinet-v3-panel h3
),
html body.light.cabinet-page :is(
  .cabinet-profile-copy strong,.dashboard-identity h1,.dashboard-identity h2,
  .dashboard-hero-stat strong,.dashboard-metric strong,.dashboard-list-copy strong,
  .dashboard-order-item strong,.dashboard-shortcut strong,.dashboard-notification-item strong,
  .cabinet-v3-panel h2,.cabinet-v3-panel h3
){color:#172033!important}
html.nl-light body.cabinet-page :is(
  .cabinet-profile-label,.dashboard-identity p,.dashboard-hero-stat span,.dashboard-metric span,
  .dashboard-list-copy span,.dashboard-order-item span,.dashboard-shortcut span,
  .dashboard-notification-item p,.dashboard-notification-item time
),
html body.light.cabinet-page :is(
  .cabinet-profile-label,.dashboard-identity p,.dashboard-hero-stat span,.dashboard-metric span,
  .dashboard-list-copy span,.dashboard-order-item span,.dashboard-shortcut span,
  .dashboard-notification-item p,.dashboard-notification-item time
){color:#758397!important}
html.nl-light body.cabinet-page .dashboard-list-index,
html body.light.cabinet-page .dashboard-list-index{background:#eef2f7!important;color:#64748b!important}
html.nl-light body.cabinet-page .dashboard-progress,
html body.light.cabinet-page .dashboard-progress{background:#e4e9f0!important}
html.nl-light body.cabinet-page .cabinet-profile-tags > *,
html body.light.cabinet-page .cabinet-profile-tags > *{
  border-color:#d9e1eb!important;
  background:#f6f8fb!important;
  color:#536277!important;
}

/* Generic controls */
html.nl-light body.cabinet-page :is(input,select,textarea),
html body.light.cabinet-page :is(input,select,textarea){
  border-color:#cbd6e4!important;
  background:#fff!important;
  color:#172033!important;
}
html.nl-light body.cabinet-page :is(input,textarea)::placeholder,
html body.light.cabinet-page :is(input,textarea)::placeholder{color:#9ba8b8!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{
  border-color:#dbe3ee!important;
  background:#f1f5f9!important;
  color:#66768b!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{
  border-color:#e2e8f0!important;
  background:#fff!important;
  color:#344256!important;
}

/* Every redesigned section */
html.nl-light body.cabinet-page :is(
 .stats-v3-hero,.stats-v3-panel,.stats-v3-card,.stats-v3-metric,.stats-v3-detail,.stats-v3-detail-card,
 .weapons-v3-hero,.weapons-v3-panel,.weapons-v3-card,.weapons-v3-row,.weapons-v3-side,.weapons-v3-stat,.weapons-v3-metric,
 .ranks-v33-hero,.ranks-v33-panel,.ranks-v33-metric,.ranks-v33-item,.ranks-v33-current,.ranks-v33-progress,
 .purchases-v34-hero,.purchases-v34-panel,.purchases-v34-metric,.purchases-v34-filter,.purchases-v34-order,
 .purchase-view-v341-hero,.purchase-view-v341-panel,.purchase-view-v341-info-panel,.purchase-view-v341-keys-panel,.purchase-view-v341-key,
 .fortune-v3-hero,.fortune-v3-main,.fortune-v3-panel,.fortune-v3-card,.fortune-v3-stat,.fortune-v3-segment-card,.fortune-v3-side,.fortune-v3-bottom,.fortune-modal-box,
 .pass-hero,.sp8-hero,.sp8-panel,.sp8-card,.sp8-challenge,.top-row,.points-table,.pass-card,.task,.reward,.case-box,.case-strip,.case-item,
 .vip-v39-hero,.vip-v39-panel,.vip-v39-main-panel,.vip-v39-metric,.vip-v39-status,.vip-v39-card,
 .discipline-hero,.discipline-panel,.discipline-metric,.discipline-detail,.discipline-card,
 .comm-hero,.comm-panel,.comm-metric,.notification-v41-item,.ticket-message-v41,.ticket-reply-v41,.tickets-v41-card,.ticket-view-v41-card,
 .account-v42-hero,.account-v42-panel,.account-v42-hero-side > div,.account-v42-toggle-row,.avatar-v42-drop,.avatar-v42-preview,
 .nl-auth-panel
),
html body.light.cabinet-page :is(
 .stats-v3-hero,.stats-v3-panel,.stats-v3-card,.stats-v3-metric,.stats-v3-detail,.stats-v3-detail-card,
 .weapons-v3-hero,.weapons-v3-panel,.weapons-v3-card,.weapons-v3-row,.weapons-v3-side,.weapons-v3-stat,.weapons-v3-metric,
 .ranks-v33-hero,.ranks-v33-panel,.ranks-v33-metric,.ranks-v33-item,.ranks-v33-current,.ranks-v33-progress,
 .purchases-v34-hero,.purchases-v34-panel,.purchases-v34-metric,.purchases-v34-filter,.purchases-v34-order,
 .purchase-view-v341-hero,.purchase-view-v341-panel,.purchase-view-v341-info-panel,.purchase-view-v341-keys-panel,.purchase-view-v341-key,
 .fortune-v3-hero,.fortune-v3-main,.fortune-v3-panel,.fortune-v3-card,.fortune-v3-stat,.fortune-v3-segment-card,.fortune-v3-side,.fortune-v3-bottom,.fortune-modal-box,
 .pass-hero,.sp8-hero,.sp8-panel,.sp8-card,.sp8-challenge,.top-row,.points-table,.pass-card,.task,.reward,.case-box,.case-strip,.case-item,
 .vip-v39-hero,.vip-v39-panel,.vip-v39-main-panel,.vip-v39-metric,.vip-v39-status,.vip-v39-card,
 .discipline-hero,.discipline-panel,.discipline-metric,.discipline-detail,.discipline-card,
 .comm-hero,.comm-panel,.comm-metric,.notification-v41-item,.ticket-message-v41,.ticket-reply-v41,.tickets-v41-card,.ticket-view-v41-card,
 .account-v42-hero,.account-v42-panel,.account-v42-hero-side > div,.account-v42-toggle-row,.avatar-v42-drop,.avatar-v42-preview,
 .nl-auth-panel
){
  border-color:#dbe3ee!important;
  background:linear-gradient(180deg,#fff,#f8fafc)!important;
  color:#172033!important;
  box-shadow:0 8px 24px rgba(41,55,82,.06)!important;
}

/* Light branded heroes */
html.nl-light body.cabinet-page :is(
 .stats-v3-hero,.weapons-v3-hero,.ranks-v33-hero,.purchases-v34-hero,.purchase-view-v341-hero,
 .vip-v39-hero,.discipline-hero,.comm-hero,.account-v42-hero,.cabinet-profile-card
),
html body.light.cabinet-page :is(
 .stats-v3-hero,.weapons-v3-hero,.ranks-v33-hero,.purchases-v34-hero,.purchase-view-v341-hero,
 .vip-v39-hero,.discipline-hero,.comm-hero,.account-v42-hero,.cabinet-profile-card
){
  background:
    radial-gradient(circle at 88% 0,rgba(108,91,238,.10),transparent 34%),
    radial-gradient(circle at 72% 110%,rgba(38,177,209,.055),transparent 38%),
    linear-gradient(135deg,#fff,#f8f8ff 64%,#f4fbfd)!important;
}

/* Fortune */
html.nl-light body.cabinet-page .fortune-v3-wheel-wrap,
html body.light.cabinet-page .fortune-v3-wheel-wrap{
  border-color:#d9d3f8!important;
  background:radial-gradient(circle,rgba(115,91,239,.11),rgba(255,255,255,.88) 54%,#f4f7fb 100%)!important;
}
html.nl-light body.cabinet-page :is(.fortune-modal,.case-modal),
html body.light.cabinet-page :is(.fortune-modal,.case-modal){background:rgba(42,53,74,.30)!important}

/* Season Pass text */
html.nl-light body.cabinet-page :is(.task-sub,.reward small,.rules,.top-meta,.top-points small),
html body.light.cabinet-page :is(.task-sub,.reward small,.rules,.top-meta,.top-points small){color:#718096!important}
html.nl-light body.cabinet-page :is(.rules b,.points-table b,.top-player),
html body.light.cabinet-page :is(.rules b,.points-table b,.top-player){color:#172033!important}
html.nl-light body.cabinet-page .top-rank,
html body.light.cabinet-page .top-rank{background:#eef2f7!important;color:#4c5a6c!important}

/* Login / auth */
html.nl-light body.cabinet-page .nl-auth-input-wrap,
html body.light.cabinet-page .nl-auth-input-wrap{
  border-color:#cbd6e4!important;
  background:#fff!important;
}

/* Loader */
html.nl-light body.cabinet-page .nl-cabinet-loader-v442,
html body.light.cabinet-page .nl-cabinet-loader-v442{background:#f5f7fb!important}
html.nl-light body.cabinet-page .nl-cabinet-loader-v442__name,
html body.light.cabinet-page .nl-cabinet-loader-v442__name{color:#172033!important}
html.nl-light body.cabinet-page .nl-cabinet-loader-v442__track,
html body.light.cabinet-page .nl-cabinet-loader-v442__track{background:rgba(31,45,70,.10)!important}
html.nl-light body.cabinet-page .nl-cabinet-loader-v442__caption,
html body.light.cabinet-page .nl-cabinet-loader-v442__caption{color:#718096!important}

@media(max-width:900px){
  html.nl-light body.cabinet-page :is(.topbar,.nav),
  html body.light.cabinet-page :is(.topbar,.nav){background:#fff!important}
}

/* NEWLIFE_CABINET_LIGHT_THEME_V451_END */

/* NEWLIFE_CABINET_LIGHT_THEME_V452_START
   Screenshot hotfix:
   - dashboard KPI row was still dark
   - public profile secondary action was too pale
*/

html.nl-light body.cabinet-page .dashboard-metrics > *,
html body.light.cabinet-page .dashboard-metrics > *{
  position:relative!important;
  border:1px solid #dbe3ee!important;
  background:#ffffff!important;
  background-image:linear-gradient(180deg,#ffffff,#f8fafc)!important;
  color:#172033!important;
  box-shadow:0 8px 24px rgba(41,55,82,.06)!important;
  opacity:1!important;
  filter:none!important;
}

html.nl-light body.cabinet-page .dashboard-metrics > *::before,
html.nl-light body.cabinet-page .dashboard-metrics > *::after,
html body.light.cabinet-page .dashboard-metrics > *::before,
html body.light.cabinet-page .dashboard-metrics > *::after{
  background:none!important;
  background-image:none!important;
  opacity:0!important;
  box-shadow: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;
  text-shadow:none!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:#718096!important;
  text-shadow:none!important;
}

/* Fallback for the actual metric class if the markup changes later. */
html.nl-light body.cabinet-page .dashboard-metric,
html body.light.cabinet-page .dashboard-metric{
  border-color:#dbe3ee!important;
  background:#fff!important;
  background-image:linear-gradient(180deg,#fff,#f8fafc)!important;
  color:#172033!important;
  box-shadow:0 8px 24px rgba(41,55,82,.06)!important;
}

/* Secondary/public profile button: visible on a light background. */
html.nl-light body.cabinet-page a[href*="player.php"],
html body.light.cabinet-page a[href*="player.php"]{
  border:1px solid #d8d2fa!important;
  background:#f6f4ff!important;
  color:#5b50b9!important;
  box-shadow:0 5px 16px rgba(91,75,220,.07)!important;
  text-shadow:none!important;
}

html.nl-light body.cabinet-page a[href*="player.php"]:hover,
html body.light.cabinet-page a[href*="player.php"]:hover{
  border-color:#c9c0f7!important;
  background:#eeeaff!important;
  color:#4e43aa!important;
}

/* Keep the primary settings action branded. */
html.nl-light body.cabinet-page .cabinet-action-btn,
html body.light.cabinet-page .cabinet-action-btn{
  border-color:transparent!important;
  background:linear-gradient(135deg,#8068f4,#6b5ee8)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(91,75,220,.16)!important;
}

/* NEWLIFE_CABINET_LIGHT_THEME_V452_END */
