
:root{
  --nm28-bg:#f5f6fa;
  --nm28-card:#ffffff;
  --nm28-soft:#f3f4f8;
  --nm28-line:#e5e8ef;
  --nm28-text:#181b25;
  --nm28-muted:#727b8b;
  --nm28-purple:#6c5cf6;
  --nm28-purple-2:#8d79ff;
  --nm28-purple-soft:#efedff;
  --nm28-shadow:0 14px 38px rgba(29,37,58,.06);
}

html,html[data-theme="dark"]{color-scheme:light!important;background:var(--nm28-bg)!important}
html body,html[data-theme="dark"] body{background:var(--nm28-bg)!important;color:var(--nm28-text)!important}
html body .theme-toggle,html body #theme-toggle{display:none!important}

/* WHITE HEADER EVERYWHERE */
html body .site-header,
html body .site-header.scrolled,
html body .site-header.nm28-white-header{
  background:#fff!important;
  background-image:none!important;
  color:var(--nm28-text)!important;
  border:0!important;
  border-bottom:1px solid var(--nm28-line)!important;
  box-shadow:0 8px 24px rgba(31,37,58,.04)!important;
}
html body .site-header::before,
html body .site-header::after{display:none!important;content:none!important}
html body .site-header .nm23-nav,
html body .site-header .nm22-nav{
  background:#f8f8fb!important;
  border:1px solid var(--nm28-line)!important;
  box-shadow:none!important;
}
html body .site-header .nm23-nav>a,
html body .site-header .nm22-nav>a{
  color:#667083!important;
}
html body .site-header .nm23-nav>a.active,
html body .site-header .nm22-nav>a.active{
  color:#222633!important;background:#fff!important;box-shadow:inset 0 -2px 0 var(--nm28-purple)!important;
}
html body .site-header .account-trigger{
  background:#f4f0ff!important;border:1px solid #e2dcff!important;
}
html body .site-header a[href*="roulette"]{display:none!important}

/* add simple dropdown under Games */
.nm28-games-dropdown{position:relative;display:flex;align-items:center}
.nm28-games-trigger{
  display:flex;align-items:center;gap:6px;padding:10px 14px;border-radius:10px;text-decoration:none;
  color:#667083;font-size:14px;font-weight:700;
}
.nm28-games-trigger:hover{background:#f5f3ff;color:var(--nm28-purple)}
.nm28-games-menu{
  position:absolute;top:calc(100% + 8px);left:0;min-width:170px;padding:8px;background:#fff;border:1px solid var(--nm28-line);
  border-radius:14px;box-shadow:0 16px 30px rgba(31,37,58,.08);display:none;z-index:50;
}
.nm28-games-dropdown.open .nm28-games-menu{display:block}
.nm28-games-menu a{
  display:block;padding:10px 12px;border-radius:10px;color:#4b5364;text-decoration:none;font-size:14px;font-weight:650;
}
.nm28-games-menu a:hover{background:#f5f3ff;color:var(--nm28-purple)}

/* CLIENT SHORT */
.nm28-client{padding:34px 0 62px!important}
.nm28-client-card{
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px;
  background:#fff;border:1px solid var(--nm28-line);border-radius:26px;box-shadow:var(--nm28-shadow);overflow:hidden;
}
.nm28-client-main{padding:40px;display:flex;flex-direction:column;justify-content:center}
.nm28-client-tag{
  display:flex;align-items:center;gap:10px;color:var(--nm28-purple);font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;
}
.nm28-client-tag:before{content:"";width:28px;height:2px;background:var(--nm28-purple);border-radius:999px}
.nm28-client-main h1{margin:14px 0 0!important;font-size:clamp(42px,4.5vw,64px)!important;line-height:.96!important;letter-spacing:-.055em!important;color:var(--nm28-text)!important}
.nm28-client-main p{margin:14px 0 0!important;max-width:650px;color:var(--nm28-muted)!important;font-size:14px!important;line-height:1.68!important}
.nm28-client-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.nm28-client-side{padding:26px;background:linear-gradient(145deg,#f2efff,#fbfaff);border-left:1px solid #e2dcff;display:flex;flex-direction:column;justify-content:center}
.nm28-client-side h3{margin:0 0 14px;font-size:16px}
.nm28-client-points{display:grid;gap:8px}
.nm28-client-points div{display:flex;align-items:center;gap:10px;padding:11px 12px;background:#fff;border:1px solid #e4e1ff;border-radius:13px;font-size:11px;font-weight:750;color:#5b6473}
.nm28-client-points b{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:var(--nm28-purple-soft);color:var(--nm28-purple);font-size:10px;font-weight:900}

/* CONTEST MINIMAL */
body.contest-page .contest-main{background:transparent!important}
body.contest-page .contest-grid-bg{display:none!important}
body.contest-page .contest-hero{padding:28px 0 10px!important;background:transparent!important}
body.contest-page .contest-hero-inner{
  padding:28px!important;display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr)!important;gap:14px!important;
  background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:24px!important;box-shadow:var(--nm28-shadow)!important;
}
body.contest-page .contest-copy h1{margin:8px 0 0!important;font-size:clamp(36px,4.8vw,58px)!important;line-height:.98!important;letter-spacing:-.05em!important;color:var(--nm28-text)!important}
body.contest-page .contest-copy h1 span{color:var(--nm28-purple)!important}
body.contest-page .contest-copy p{margin:12px 0 0!important;color:var(--nm28-muted)!important;font-size:11px!important;line-height:1.6!important;max-width:620px!important}
body.contest-page .contest-reward-card{padding:22px!important;background:linear-gradient(145deg,#f0edff,#fbfaff)!important;border:1px solid #dfd8ff!important;border-radius:18px!important;box-shadow:none!important;color:var(--nm28-text)!important}
body.contest-page .contest-content{padding:6px 0 58px!important}
body.contest-page .contest-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0 0 14px!important}
body.contest-page .contest-steps article{padding:15px!important;background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:16px!important;box-shadow:none!important}
body.contest-page .contest-layout{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;gap:10px!important}
body.contest-page .contest-panel,
body.contest-page .contest-history{padding:18px!important;background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:18px!important;box-shadow:none!important}
body.contest-page .contest-rules-panel{background:#fafaff!important}
body.contest-page .contest-factor{padding:10px 0!important;border-bottom:1px solid var(--nm28-line)!important}
body.contest-page .contest-factor:last-child{border-bottom:0!important}

/* ROULETTE CLEANER */
body.roulette-page .roulette-hero{padding:24px 0 8px!important;background:transparent!important}
body.roulette-page .roulette-hero .games-hero-grid{grid-template-columns:1fr!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.roulette-page .roulette-hero .games-hero-art,
body.roulette-page .roulette-hero .game-card-actions{display:none!important}
body.roulette-page .roulette-hero h1{margin:4px 0 0!important;font-size:36px!important;letter-spacing:-.045em!important;color:var(--nm28-text)!important}
body.roulette-page .roulette-hero p{margin:6px 0 0!important;color:var(--nm28-muted)!important;font-size:11px!important;max-width:640px!important}
body.roulette-page .roulette-main{padding:8px 0 58px!important;background:transparent!important}
body.roulette-page .roulette-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 260px!important;gap:10px!important}
body.roulette-page .roulette-stage,
body.roulette-page .roulette-info-card,
body.roulette-page .roulette-inventory-link,
body.roulette-page .roulette-showcase{
  background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:20px!important;box-shadow:none!important
}
body.roulette-page .roulette-stage{padding:20px!important}
body.roulette-page .roulette-stage-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important}
body.roulette-page .roulette-balance{padding:8px 11px!important;background:var(--nm28-purple-soft)!important;color:var(--nm28-purple)!important;border-radius:999px!important;font-size:10px!important;font-weight:900!important}
body.roulette-page .roulette-window{margin-top:14px!important;background:#f3f4f7!important;border:1px solid var(--nm28-line)!important;border-radius:17px!important;overflow:hidden!important}
body.roulette-page .roulette-strip{min-height:210px!important;padding:12px!important;background:#f3f4f7!important}
body.roulette-page .roulette-prize,
body.roulette-page .roulette-item{background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:14px!important;box-shadow:none!important}
body.roulette-page .roulette-controls{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-top:13px!important;padding-top:13px!important;border-top:1px solid var(--nm28-line)!important}
body.roulette-page .roulette-spin-button{min-width:190px!important}
body.roulette-page .roulette-side{display:grid!important;gap:8px!important}
body.roulette-page .roulette-info-card,
body.roulette-page .roulette-inventory-link{padding:15px!important}
body.roulette-page .roulette-showcase{margin-top:10px!important;padding:18px!important}
body.roulette-page .roulette-showcase-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}

/* ACCOUNT / PROFILE SIDEBAR */
body.account-page .profile-side-card,
body.account-page .account-sidebar,
body.account-page .nm19-account-sidebar,
body.account-page .cabinet-sidebar{
  background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:18px!important;box-shadow:none!important
}
body.account-page .profile-side-nav a,
body.account-page .account-sidebar a,
body.account-page .nm19-account-sidebar a,
body.account-page .cabinet-sidebar a{
  display:flex!important;align-items:center!important;gap:10px!important;color:#4b5363!important;text-decoration:none!important
}
body.account-page .profile-side-nav a .icon,
body.account-page .account-sidebar a .icon,
body.account-page .nm19-account-sidebar a .icon,
body.account-page .cabinet-sidebar a .icon{
  width:34px!important;height:34px!important;border-radius:10px!important;display:grid!important;place-items:center!important;background:#f4f5f9!important;color:var(--nm28-purple)!important;
}

/* INVENTORY FIX */
html body.inventory-page.nm28-inventory-page{min-height:100vh!important;background:var(--nm28-bg)!important}
html body.inventory-page.nm28-inventory-page .inventory-main{padding:10px 0 40px!important}
html body.inventory-page.nm28-inventory-page .inventory-main>.container,
html body.inventory-page.nm28-inventory-page .inventory-main>.container.nm19-inventory-shell{
  display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;width:min(1260px,calc(100% - 32px))!important
}
html body.inventory-page.nm28-inventory-page .nm19-inventory-rail,
html body.inventory-page.nm28-inventory-page .nm28-inventory-sidebar{
  position:sticky!important;top:96px!important;background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:18px!important;box-shadow:none!important;padding:14px!important
}
html body.inventory-page.nm28-inventory-page .nm28-inventory-sidebar h3{margin:0 0 10px!important;font-size:18px!important}
html body.inventory-page.nm28-inventory-page .nm28-inventory-sidebar a{
  display:flex!important;align-items:center!important;gap:10px!important;padding:10px 12px!important;border-radius:12px!important;color:#4b5363!important;text-decoration:none!important;font-weight:650!important
}
html body.inventory-page.nm28-inventory-page .nm28-inventory-sidebar a:hover,
html body.inventory-page.nm28-inventory-page .nm28-inventory-sidebar a.active{background:#f5f3ff!important;color:var(--nm28-purple)!important}
html body.inventory-page.nm28-inventory-page .nm28-inventory-sidebar i{
  width:32px!important;height:32px!important;border-radius:10px!important;display:grid!important;place-items:center!important;background:#f4f5f9!important;color:var(--nm28-purple)!important;font-style:normal!important
}
html body.inventory-page.nm28-inventory-page .nm19-inventory-content{min-width:0!important}
html body.inventory-page.nm28-inventory-page .inventory-topbar{
  background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:16px!important;padding:10px 12px!important;margin-bottom:10px!important
}
html body.inventory-page.nm28-inventory-page .inventory-filters{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
html body.inventory-page.nm28-inventory-page .inventory-filter{padding:8px 11px!important;border:1px solid var(--nm28-line)!important;border-radius:10px!important;background:#fff!important;color:#697283!important;font-size:11px!important}
html body.inventory-page.nm28-inventory-page .inventory-filter.active{background:var(--nm28-purple-soft)!important;border-color:#ddd8ff!important;color:var(--nm28-purple)!important}
html body.inventory-page.nm28-inventory-page .inventory-grid,
html body.inventory-page.nm28-inventory-page .inventory-plates-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0!important
}
html body.inventory-page.nm28-inventory-page .inventory-card,
html body.inventory-page.nm28-inventory-page .inventory-plate-card{
  background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden!important
}
html body.inventory-page.nm28-inventory-page .inventory-card-image{
  height:148px!important;background:#f4f5f8!important;padding:10px!important;display:flex!important;align-items:center!important;justify-content:center!important
}
html body.inventory-page.nm28-inventory-page .inventory-card-image img{
  width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;background:transparent!important;padding:0!important
}
html body.inventory-page.nm28-inventory-page .inventory-card-copy{padding:12px 12px 6px!important}
html body.inventory-page.nm28-inventory-page .inventory-card-copy h3{margin:0!important;font-size:15px!important;line-height:1.2!important}
html body.inventory-page.nm28-inventory-page .inventory-card-copy p{margin:5px 0 0!important;font-size:11px!important;color:var(--nm28-muted)!important}
html body.inventory-page.nm28-inventory-page .inventory-card-bottom{padding:8px 12px 12px!important}
html body.inventory-page.nm28-inventory-page .inventory-pager{display:flex!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin-top:14px!important}
html body.inventory-page.nm28-inventory-page .inventory-page-button{width:42px!important;height:42px!important;border:1px solid var(--nm28-line)!important;border-radius:10px!important;background:#fff!important}
html body.inventory-page.nm28-inventory-page .inventory-page-state{font-size:12px!important;color:var(--nm28-muted)!important}

/* ADMIN */
body.admin-page .admin-shell,
body.admin-page .admin-layout,
body.admin-page .admin-card,
body.admin-page .admin-panel,
body.admin-page .admin-sidebar,
body.admin-page .admin-content,
body.admin-page .admin-box,
body.admin-page .nm19-admin-shell{
  background:#fff!important;border:1px solid var(--nm28-line)!important;border-radius:18px!important;box-shadow:none!important;color:var(--nm28-text)!important
}
body.admin-page .admin-sidebar a,
body.admin-page .nm19-admin-sidebar a,
body.admin-page aside a{
  color:#4b5363!important;border-radius:12px!important
}
body.admin-page .admin-sidebar a:hover,
body.admin-page .nm19-admin-sidebar a:hover,
body.admin-page aside a:hover{background:#f5f3ff!important;color:var(--nm28-purple)!important}

/* responsive */
@media(max-width:1000px){
  .nm28-client-card,
  body.contest-page .contest-hero-inner,
  body.contest-page .contest-layout,
  body.roulette-page .roulette-layout{grid-template-columns:1fr!important}
  .nm28-client-side{border-left:0!important;border-top:1px solid #e2dcff!important}
  body.contest-page .contest-steps{grid-template-columns:1fr 1fr!important}
  body.roulette-page .roulette-showcase-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body.inventory-page.nm28-inventory-page .inventory-main>.container,
  html body.inventory-page.nm28-inventory-page .inventory-main>.container.nm19-inventory-shell{grid-template-columns:1fr!important}
  html body.inventory-page.nm28-inventory-page .nm28-inventory-sidebar,
  html body.inventory-page.nm28-inventory-page .nm19-inventory-rail{position:static!important}
}
@media(max-width:760px){
  body.contest-page .contest-steps{grid-template-columns:1fr!important}
  body.roulette-page .roulette-showcase-grid{grid-template-columns:1fr 1fr!important}
  html body.inventory-page.nm28-inventory-page .inventory-grid,
  html body.inventory-page.nm28-inventory-page .inventory-plates-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

