
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#07090d;
  --bg2:#0a0d12;
  --panel:rgba(15,19,26,.86);
  --panel-solid:#0f131a;
  --panel-2:#141a23;
  --panel-3:#0c1016;
  --line:rgba(255,255,255,.075);
  --line-strong:rgba(255,255,255,.12);
  --text:#d9dee6;
  --muted:#7e8794;
  --muted2:#5d6673;
  --accent:#7f8cff;
  --accent-rgb:127,140,255;
  --accent2:#5f6cff;
  --green:#4ade80;
  --yellow:#facc15;
  --danger:#ff6b7a;
}
html{color-scheme:dark;scroll-behavior:smooth}
body{
  min-height:100vh;
  color:var(--text);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at 15% 0%,rgba(var(--accent-rgb),.10),transparent 25%),
    radial-gradient(circle at 95% 30%,rgba(var(--accent-rgb),.055),transparent 23%),
    linear-gradient(180deg,#080a0e 0%,#06080b 100%);
}
body::before{
  content:"";
  position:fixed;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.45),transparent 78%);
}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}
button{color:inherit}
::selection{background:rgba(var(--accent-rgb),.28)}

.app{
  min-height:100vh;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
}

/* SIDEBAR */
.sidebar{
  position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;
  padding:18px 14px;
  border-right:1px solid var(--line);
  background:rgba(8,11,15,.88);
  backdrop-filter:blur(20px);
  z-index:10;
}
.brand{
  display:flex;align-items:center;gap:11px;
  padding:10px 10px 19px;
  font-size:13px;font-weight:900;letter-spacing:1.8px
}
.mark{
  width:12px;height:12px;border-radius:4px;
  transform:rotate(45deg);
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 18px rgba(var(--accent-rgb),.38)
}
.brand-sub{
  margin-left:auto;
  font-size:8px;letter-spacing:1px;
  color:var(--muted2);font-weight:800
}
.nav-label{
  padding:15px 10px 7px;
  color:#4f5865;
  font-size:9px;font-weight:850;
  letter-spacing:1.35px;text-transform:uppercase
}
.nav{display:flex;flex-direction:column;gap:5px}
.nav a{
  display:flex;align-items:center;gap:10px;
  min-height:41px;padding:0 11px;
  border:1px solid transparent;border-radius:11px;
  color:#89929f;font-size:12px;
  transition:.18s ease
}
.nav a:hover{background:#121821;color:#fff}
.nav a.active{
  color:#e4e8ee;
  background:linear-gradient(90deg,rgba(var(--accent-rgb),.13),rgba(var(--accent-rgb),.045));
  border-color:rgba(var(--accent-rgb),.18)
}
.nav-icon{
  width:20px;text-align:center;
  color:rgb(var(--accent-rgb));
  font-size:13px
}
.sidebar-bottom{margin-top:auto}
.user-mini{
  display:flex;align-items:center;gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(255,255,255,.018),transparent),#0d1218
}
.avatar-mini,.avatar-big{
  background:
    linear-gradient(135deg,rgba(var(--accent-rgb),.22),rgba(255,255,255,.03)),
    #202632;
  background-image:
    url("pfp.jpg"),
    linear-gradient(135deg,rgba(var(--accent-rgb),.22),rgba(255,255,255,.03));
  background-size:cover;
  background-position:center;
}
.avatar-mini{
  width:34px;height:34px;border-radius:10px;
  flex-shrink:0
}
.user-mini strong{display:block;font-size:10px}
.user-mini span{display:block;margin-top:2px;color:#66707c;font-size:8px}

/* MAIN */
.main{min-width:0;padding:30px 32px 46px;position:relative;z-index:1}
.main-inner{width:min(1180px,100%);margin:0 auto}
.topbar{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  margin-bottom:25px
}
.topbar h1{font-size:28px;letter-spacing:-1px}
.topbar p{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.6}
.top-actions{display:flex;gap:8px;flex-wrap:wrap}
.btn{
  min-height:38px;padding:0 13px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border:1px solid var(--line);border-radius:10px;
  background:#111720;color:#b2bac5;
  cursor:pointer;font-size:11px;font-weight:650;
  transition:.18s ease
}
.btn:hover{
  color:#e4e8ee;transform:translateY(-1px);
  border-color:rgba(var(--accent-rgb),.28);
  background:#151c26
}
.btn.primary{
  color:#e4e8ee;border:none;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 10px 28px rgba(var(--accent-rgb),.16)
}
.btn.danger{color:#ff9ca6;border-color:rgba(255,107,122,.16);background:rgba(255,107,122,.055)}

.hero-strip{
  position:relative;overflow:hidden;
  padding:22px 22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:
    radial-gradient(circle at 85% 20%,rgba(var(--accent-rgb),.18),transparent 28%),
    linear-gradient(135deg,rgba(var(--accent-rgb),.08),transparent 45%),
    var(--panel-solid);
  margin-bottom:14px
}
.hero-strip::after{
  content:"NB";
  position:absolute;right:18px;bottom:-25px;
  font-size:110px;font-weight:950;letter-spacing:-8px;
  color:rgba(255,255,255,.025)
}
.hero-strip small{color:rgb(var(--accent-rgb));font-size:9px;font-weight:850;letter-spacing:1.3px;text-transform:uppercase}
.hero-strip h2{font-size:22px;letter-spacing:-.6px;margin-top:8px}
.hero-strip p{font-size:11px;color:#7b8491;line-height:1.6;margin-top:7px;max-width:560px}

.panel{
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.014),transparent),var(--panel);
  backdrop-filter:blur(12px);
  padding:18px
}
.panel-title{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:14px
}
.panel-title h2{font-size:12px}
.panel-title span{color:#606a77;font-size:8px}

.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.stat{
  min-height:112px;padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:
    radial-gradient(circle at 100% 0%,rgba(var(--accent-rgb),.09),transparent 38%),
    #0c1117
}
.stat .k{font-size:9px;color:#68717e;text-transform:uppercase;letter-spacing:1px;font-weight:800}
.stat .v{font-size:27px;font-weight:850;margin-top:9px;letter-spacing:-1.2px}
.stat .s{font-size:9px;color:#5c6571;margin-top:5px}
.stat .trend{display:inline-flex;margin-top:9px;padding:4px 6px;border-radius:6px;background:rgba(74,222,128,.07);color:#63dc92;font-size:7px}

.row-2{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-top:14px}
.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quick a,.quick button{
  min-height:82px;
  padding:13px;text-align:left;
  border:1px solid var(--line);border-radius:12px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.016),transparent),
    #0f151d;
  color:#bbc3cd;cursor:pointer;
  transition:.18s ease
}
.quick a:hover,.quick button:hover{
  transform:translateY(-2px);
  border-color:rgba(var(--accent-rgb),.24);
  background:#141b24
}
.quick .q-icon{
  width:26px;height:26px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:9px;
  background:rgba(var(--accent-rgb),.11);
  color:rgb(var(--accent-rgb));
  font-size:12px
}
.quick strong{display:block;font-size:10px}
.quick span{display:block;color:#66707c;font-size:9px;margin-top:5px;line-height:1.45}

.activity{display:flex;flex-direction:column}
.activity-item{
  display:flex;gap:10px;
  padding:11px 0;border-top:1px solid var(--line)
}
.activity-item:first-child{border-top:0;padding-top:2px}
.dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--accent);margin-top:3px;flex-shrink:0;
  box-shadow:0 0 10px rgba(var(--accent-rgb),.35)
}
.activity-item strong{font-size:9px}
.activity-item p{font-size:9px;color:#606a76;margin-top:3px;line-height:1.4}

/* SETTINGS */
.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.setting-card{
  padding:14px;border:1px solid var(--line);border-radius:12px;background:#0d1218
}
.setting-card + .setting-card{margin-top:9px}
.setting-card h3{font-size:10px}
.setting-card p{font-size:9px;color:#68717d;margin-top:5px;line-height:1.55}
.field-label{display:block;margin-top:12px;margin-bottom:6px;color:#6e7784;font-size:9px;font-weight:750}
.input,textarea.input{
  width:100%;
  border:1px solid var(--line);border-radius:9px;
  background:#111720;color:#e4e8ee;
  outline:none;transition:.18s ease
}
.input{height:38px;padding:0 10px}
textarea.input{min-height:90px;padding:10px;resize:vertical}
.input:focus{border-color:rgba(var(--accent-rgb),.38);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.055)}
.theme-dots{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.theme-dot{
  width:22px;height:22px;border-radius:50%;
  border:2px solid rgba(255,255,255,.14);cursor:pointer;
  transition:.18s ease
}
.theme-dot:hover,.theme-dot.active{transform:scale(1.12);border-color:#fff}
.theme-purple{background:#7f8cff}.theme-blue{background:#38a5ff}.theme-cyan{background:#37d8c7}.theme-pink{background:#e77ccf}.theme-orange{background:#ff9a57}
.toggle-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:13px;border:1px solid var(--line);border-radius:11px;background:#0d1218
}
.toggle-row + .toggle-row{margin-top:8px}
.toggle-row h3{font-size:10px}.toggle-row p{font-size:9px;color:#66707c;margin-top:4px}
.switch{
  width:42px;height:24px;border-radius:20px;
  border:1px solid var(--line);background:#242b35;
  position:relative;cursor:pointer;flex-shrink:0
}
.switch::after{
  content:"";position:absolute;top:3px;left:3px;
  width:16px;height:16px;border-radius:50%;background:#dfe4ea;
  transition:.18s ease
}
.switch.on{background:rgba(var(--accent-rgb),.45)}
.switch.on::after{left:21px}
.save-note{font-size:9px;color:#5f6875;margin-top:9px}

/* PROFILE */
.profile-page{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  padding:70px 18px 30px;
  position:relative;z-index:1
}
.floating-back{
  position:fixed;top:18px;left:18px;z-index:10
}
.profile-shell{width:min(430px,100%);perspective:1300px}
.profile-card{
  width:100%;overflow:hidden;position:relative;
  border:1px solid rgba(255,255,255,.085);
  border-radius:25px;
  background:linear-gradient(180deg,rgba(255,255,255,.018),transparent 20%),var(--panel-solid);
  box-shadow:0 35px 100px rgba(0,0,0,.56);
  transform-style:preserve-3d;
  transition:transform .16s ease-out,border-color .2s ease,box-shadow .2s ease
}
.profile-card:hover{border-color:rgba(var(--accent-rgb),.22);box-shadow:0 42px 115px rgba(0,0,0,.63),0 0 45px rgba(var(--accent-rgb),.07)}
.profile-glare{
  position:absolute;inset:0;z-index:8;pointer-events:none;
  background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.10),transparent 19%);
  opacity:0;transition:opacity .2s
}
.profile-card:hover .profile-glare{opacity:1}
.profile-banner{
  height:135px;position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 75% 15%,rgba(var(--accent-rgb),.50),transparent 39%),
    linear-gradient(135deg,rgba(var(--accent-rgb),.20),#171d27 65%)
}
.profile-banner::before{
  content:"";position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:24px 24px;
  opacity:.18;
  mask-image:linear-gradient(to bottom,black,transparent)
}
.profile-banner::after{
  content:"NULLBRIEF";position:absolute;right:18px;bottom:10px;
  font-size:31px;font-weight:900;letter-spacing:-2px;color:rgba(255,255,255,.04)
}
.profile-content{padding:0 21px 21px;position:relative;z-index:3}
.avatar-row{display:flex;justify-content:space-between;align-items:flex-end}
.avatar-wrap{margin-top:-44px;position:relative;z-index:5;transform:translateZ(22px)}
.avatar-big{
  width:90px;height:90px;border-radius:23px;
  border:5px solid var(--panel-solid);
  box-shadow:0 0 0 2px rgba(var(--accent-rgb),.36)
}
.online-dot{
  position:absolute;right:2px;bottom:2px;
  width:18px;height:18px;border-radius:50%;
  border:4px solid var(--panel-solid);background:var(--green);
  box-shadow:0 0 14px rgba(74,222,128,.4)
}
.profile-name{font-size:23px;font-weight:850;letter-spacing:-.7px;margin-top:11px}
.handle{font-size:11px;color:var(--muted);margin-top:2px}
.status-box{
  margin-top:13px;padding:10px 11px;
  border:1px solid var(--line);border-radius:10px;background:#0c1016;
  font-size:11px;color:#b4bbc5
}
.profile-bio{font-size:11px;color:#9ea6b0;line-height:1.65;margin-top:13px}
.section-label{
  margin-top:17px;margin-bottom:8px;
  color:#5f6874;font-size:9px;font-weight:850;letter-spacing:1.2px;text-transform:uppercase
}
.profile-links{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}
.profile-links a{
  min-height:40px;padding:0 10px;
  display:flex;align-items:center;justify-content:space-between;
  border:1px solid var(--line);border-radius:9px;background:#141a22;
  color:#b8c0ca;font-size:10px;transition:.18s
}
.profile-links a:hover{transform:translateY(-1px);border-color:rgba(var(--accent-rgb),.28);color:#fff}
.badges{display:flex;gap:7px;flex-wrap:wrap}
.badge{
  padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#121820;
  color:#8f98a5;font-size:8px
}
.badge b{color:rgb(var(--accent-rgb))}
.feature-card{
  padding:11px;border:1px solid var(--line);border-radius:10px;background:#0d1218
}
.feature-card + .feature-card{margin-top:7px}
.feature-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.feature-name{font-size:11px;font-weight:750}
.feature-tag{padding:4px 6px;border-radius:5px;background:rgba(var(--accent-rgb),.1);color:rgb(var(--accent-rgb));font-size:7px}
.feature-card p{font-size:9px;color:#69727f;line-height:1.5;margin-top:5px}
.profile-footer{
  padding:12px 20px;display:flex;align-items:center;justify-content:space-between;
  border-top:1px solid var(--line);background:#0c1016;color:#58616d;font-size:8px
}

/* LANDING / EXIT */
.center-screen{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  padding:22px;position:relative;z-index:1
}
.center-card{
  width:min(430px,100%);
  text-align:center;
  border:1px solid var(--line);border-radius:22px;
  background:
    radial-gradient(circle at 50% 0%,rgba(var(--accent-rgb),.12),transparent 36%),
    var(--panel-solid);
  padding:32px;
  box-shadow:0 30px 90px rgba(0,0,0,.5)
}
.center-icon{
  width:56px;height:56px;border-radius:15px;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
  background:rgba(var(--accent-rgb),.11);
  color:rgb(var(--accent-rgb));font-size:22px
}
.center-card h1{font-size:24px;letter-spacing:-.7px}
.center-card p{font-size:10px;line-height:1.65;color:var(--muted);margin:9px auto 18px;max-width:330px}
.center-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}

@media(max-width:900px){
  .grid-3{grid-template-columns:1fr}
  .row-2,.settings-layout{grid-template-columns:1fr}
}
@media(max-width:720px){
  .app{grid-template-columns:72px minmax(0,1fr)}
  .sidebar{padding:14px 8px}
  .brand{justify-content:center;padding-left:0;padding-right:0}
  .brand span,.brand-sub,.nav-label,.nav a span,.user-mini div{display:none}
  .nav a{justify-content:center;padding:0}
  .sidebar-bottom .user-mini{justify-content:center;padding:8px}
  .main{padding:20px 16px 36px}
  .topbar{flex-direction:column}
  .quick{grid-template-columns:1fr}
}
@media(max-width:470px){
  .profile-page{padding:62px 10px 18px}
  .profile-banner{height:118px}
  .profile-links{grid-template-columns:1fr}
  .floating-back{top:12px;left:12px}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}


/* V4 softer hierarchy */
body{color:#d9dee6}
.topbar h1,.hero-strip h2,.center-card h1{color:#dfe4ea}
.panel-title h2,.stat .v,.quick strong,.activity-item strong,.setting-card h3,.toggle-row h3{color:#cfd5de}
.btn.primary{color:#eef1f5}
.nav a.active{color:#e7ebf0}


/* =========================
   V5 EXPANDED DASHBOARD
   ========================= */

.main{
  padding:34px 36px 54px;
}

.main-inner{
  width:min(1320px,100%);
}

.dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  gap:16px;
}

.hero-dashboard{
  position:relative;
  overflow:hidden;
  min-height:280px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:20px;
  background:
    radial-gradient(circle at 85% 20%,rgba(var(--accent-rgb),.22),transparent 30%),
    radial-gradient(circle at 20% 100%,rgba(var(--accent-rgb),.07),transparent 30%),
    linear-gradient(135deg,rgba(var(--accent-rgb),.055),transparent 45%),
    #0c1117;
  box-shadow:0 28px 80px rgba(0,0,0,.32);
}

.hero-dashboard::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(to bottom,black,transparent 75%);
}

.hero-dashboard-content{
  position:relative;
  z-index:2;
  max-width:650px;
}

.hero-dashboard small{
  color:rgb(var(--accent-rgb));
  font-size:9px;
  letter-spacing:1.2px;
  font-weight:850;
  text-transform:uppercase;
}

.hero-dashboard h2{
  margin-top:9px;
  color:#d6dbe2;
  font-size:34px;
  line-height:1.03;
  letter-spacing:-1.4px;
}

.hero-dashboard p{
  margin-top:11px;
  max-width:560px;
  color:#747e8a;
  font-size:11px;
  line-height:1.7;
}

.hero-dashboard-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.profile-orb{
  position:absolute;
  right:26px;
  bottom:-34px;
  width:190px;
  height:190px;
  border-radius:42px;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 65% 15%,rgba(var(--accent-rgb),.35),transparent 40%),
    linear-gradient(145deg,#1a202a,#0e1319);
  box-shadow:
    0 25px 70px rgba(0,0,0,.45),
    0 0 50px rgba(var(--accent-rgb),.08);
  transform:rotate(8deg);
  transition:transform .2s ease-out;
}

.profile-orb::after{
  content:"NB";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.055);
  font-size:64px;
  font-weight:950;
  letter-spacing:-5px;
}

.overview-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.big-stat{
  min-height:126px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0%,rgba(var(--accent-rgb),.09),transparent 34%),
    #0c1117;
}

.big-stat .icon{
  width:28px;
  height:28px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(var(--accent-rgb),.10);
  color:rgb(var(--accent-rgb));
  font-size:12px;
  margin-bottom:12px;
}

.big-stat small{
  display:block;
  color:#626c79;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
}

.big-stat strong{
  display:block;
  margin-top:6px;
  color:#cbd1d8;
  font-size:25px;
  letter-spacing:-1px;
}

.big-stat span{
  display:block;
  margin-top:4px;
  color:#59636f;
  font-size:9px;
}

.dashboard-section{
  margin-top:16px;
}

.dashboard-section .panel{
  padding:20px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}

.section-head h2{
  color:#cfd5dc;
  font-size:14px;
}

.section-head p{
  margin-top:4px;
  color:#626c78;
  font-size:9px;
  line-height:1.5;
}

.section-head a{
  color:rgb(var(--accent-rgb));
  font-size:9px;
}

.tool-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.tool-card{
  min-height:118px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0d1218;
  transition:.18s ease;
}

.tool-card:hover{
  transform:translateY(-2px);
  border-color:rgba(var(--accent-rgb),.24);
  background:#121821;
}

.tool-card .tool-icon{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:rgba(var(--accent-rgb),.10);
  color:rgb(var(--accent-rgb));
  margin-bottom:12px;
}

.tool-card strong{
  display:block;
  color:#c3c9d1;
  font-size:11px;
}

.tool-card span{
  display:block;
  margin-top:5px;
  color:#626c78;
  font-size:9px;
  line-height:1.45;
}

.cosmetic-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.cosmetic{
  position:relative;
  overflow:hidden;
  min-height:150px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:
    linear-gradient(145deg,rgba(var(--accent-rgb),.05),transparent 45%),
    #0d1218;
  transition:.18s ease;
}

.cosmetic:hover{
  transform:translateY(-3px);
  border-color:rgba(var(--accent-rgb),.24);
}

.cosmetic-preview{
  height:72px;
  border-radius:9px;
  margin-bottom:11px;
  border:1px solid rgba(255,255,255,.055);
  background:
    radial-gradient(circle at 70% 20%,rgba(var(--accent-rgb),.25),transparent 35%),
    linear-gradient(135deg,#171d27,#0d1218);
}

.cosmetic strong{
  display:block;
  color:#c3c9d0;
  font-size:10px;
}

.cosmetic span{
  display:block;
  margin-top:4px;
  color:#616b77;
  font-size:8px;
}

.price-pill{
  position:absolute;
  right:10px;
  top:10px;
  padding:5px 7px;
  border-radius:7px;
  border:1px solid rgba(var(--accent-rgb),.14);
  background:rgba(var(--accent-rgb),.07);
  color:rgb(var(--accent-rgb));
  font-size:8px;
}

.download-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.download-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:64px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#0d1218;
}

.download-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.download-icon{
  width:32px;
  height:32px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:rgba(var(--accent-rgb),.10);
  color:rgb(var(--accent-rgb));
}

.download-row strong{
  display:block;
  color:#bec5ce;
  font-size:10px;
}

.download-row span{
  display:block;
  margin-top:3px;
  color:#606a76;
  font-size:8px;
}

.progress-card{
  padding:15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0d1218;
}

.progress-line{
  margin-top:12px;
  height:7px;
  border-radius:999px;
  overflow:hidden;
  background:#161d26;
}

.progress-fill{
  height:100%;
  width:72%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  box-shadow:0 0 14px rgba(var(--accent-rgb),.3);
}

.feed{
  display:flex;
  flex-direction:column;
}

.feed-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:11px 0;
  border-top:1px solid var(--line);
}

.feed-row:first-child{
  border-top:0;
}

.feed-icon{
  width:30px;
  height:30px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#121821;
  color:rgb(var(--accent-rgb));
  font-size:11px;
}

.feed-row strong{
  display:block;
  color:#bbc2cb;
  font-size:10px;
}

.feed-row p{
  margin-top:3px;
  color:#606a76;
  font-size:8px;
}

.feed-time{
  color:#4f5864;
  font-size:8px;
}

@media(max-width:1100px){
  .dashboard-grid{grid-template-columns:1fr}
  .overview-row{grid-template-columns:repeat(2,1fr)}
  .cosmetic-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:760px){
  .tool-grid{grid-template-columns:1fr}
  .overview-row{grid-template-columns:1fr}
  .cosmetic-grid{grid-template-columns:1fr}
  .profile-orb{opacity:.2}
}


/* V6 readability + consistent sidebar */
.sidebar{padding:20px 16px}
.nav a{min-height:45px;font-size:12px}
.nav-icon{font-size:14px}
.brand{font-size:14px}
.user-mini strong{font-size:11px}
.user-mini span{font-size:9px}
.topbar h1{font-size:31px}
.topbar p{font-size:11px}
.panel-title h2,.section-head h2{font-size:14px}
.hero-dashboard h2{font-size:38px}
.hero-dashboard p{font-size:11px}
.tool-card strong{font-size:11px}
.tool-card span{font-size:9px}
.big-stat strong{font-size:29px}
.big-stat small{font-size:9px}
.big-stat span{font-size:9px}

@media(max-width:720px){
  .app{grid-template-columns:78px minmax(0,1fr)}
}


/* =========================
   V7 DEDICATED APP PAGES
   ========================= */

.page-grid-2{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
}

.page-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.metric-card{
  min-height:135px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0%,rgba(var(--accent-rgb),.08),transparent 35%),
    #0d1218;
}

.metric-card small{
  display:block;
  color:#616b77;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
}

.metric-card strong{
  display:block;
  margin-top:9px;
  color:#c8ced6;
  font-size:30px;
  letter-spacing:-1.2px;
}

.metric-card span{
  display:block;
  margin-top:5px;
  color:#59636f;
  font-size:9px;
}

.list-card{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.list-row{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#0d1218;
}

.list-row strong{
  display:block;
  color:#c0c7d0;
  font-size:10px;
}

.list-row span{
  display:block;
  margin-top:3px;
  color:#626c78;
  font-size:8px;
}

.list-row .left{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.page-icon{
  width:34px;
  height:34px;
  flex-shrink:0;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(var(--accent-rgb),.10);
  color:rgb(var(--accent-rgb));
}

.placeholder-box{
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  border:1px dashed rgba(255,255,255,.10);
  border-radius:13px;
  color:#5f6975;
  font-size:9px;
  line-height:1.6;
  background:rgba(255,255,255,.012);
}

.store-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.store-item{
  position:relative;
  overflow:hidden;
  min-height:220px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:
    linear-gradient(145deg,rgba(var(--accent-rgb),.045),transparent 40%),
    #0d1218;
  transition:.18s ease;
}

.store-item:hover{
  transform:translateY(-3px);
  border-color:rgba(var(--accent-rgb),.24);
}

.store-preview{
  height:110px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.055);
  background:
    radial-gradient(circle at 70% 20%,rgba(var(--accent-rgb),.24),transparent 34%),
    linear-gradient(135deg,#171d27,#0d1218);
  margin-bottom:12px;
}

.store-item h3{
  color:#c2c9d2;
  font-size:11px;
}

.store-item p{
  margin-top:5px;
  color:#626c78;
  font-size:8px;
  line-height:1.5;
}

.store-price{
  display:inline-flex;
  margin-top:10px;
  padding:5px 7px;
  border-radius:7px;
  border:1px solid rgba(var(--accent-rgb),.14);
  background:rgba(var(--accent-rgb),.07);
  color:rgb(var(--accent-rgb));
  font-size:8px;
}

@media(max-width:1000px){
  .page-grid-2{grid-template-columns:1fr}
  .page-grid-3{grid-template-columns:1fr}
  .store-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  .store-grid{grid-template-columns:1fr}
}

.customizer-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}
.preview-panel{position:sticky;top:24px}
.live-card{width:min(410px,100%);margin:auto;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#0f131a;box-shadow:0 28px 80px rgba(0,0,0,.42)}
.live-banner{height:125px;position:relative;overflow:hidden;background:radial-gradient(circle at 75% 15%,rgba(var(--accent-rgb),.48),transparent 38%),linear-gradient(135deg,rgba(var(--accent-rgb),.18),#171d27 65%)}
.live-banner.grid:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:23px 23px;opacity:.18}
.live-banner.noise:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,rgba(255,255,255,.05) 0 1px,transparent 1px);background-size:9px 9px;opacity:.18}
.live-content{padding:0 19px 19px}.live-avatar{width:86px;height:86px;margin-top:-42px;border-radius:22px;border:5px solid #0f131a;background:url("pfp.jpg") center/cover,linear-gradient(135deg,rgba(var(--accent-rgb),.18),#222832);position:relative}
.live-avatar.frame{box-shadow:0 0 0 2px var(--accent),0 0 24px rgba(var(--accent-rgb),.25)}
.live-name{margin-top:10px;color:#d2d7de;font-size:22px;font-weight:850}.live-handle{color:#68727e;font-size:9px;margin-top:2px}.live-bio{margin-top:11px;color:#7d8692;font-size:9px;line-height:1.6}
.live-links{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:13px}.live-links div{padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#141a22;color:#a0a8b2;font-size:9px}
.option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.option{min-height:92px;padding:12px;text-align:left;border:1px solid var(--line);border-radius:11px;background:#0d1218;cursor:pointer;transition:.18s ease}
.option:hover,.option.active{border-color:rgba(var(--accent-rgb),.26);background:#121821}.option strong{display:block;color:#c0c7cf;font-size:10px}.option span{display:block;margin-top:5px;color:#616b77;font-size:8px;line-height:1.45}
.lock{display:inline-flex;margin-top:8px;padding:4px 6px;border-radius:6px;background:rgba(var(--accent-rgb),.08);color:rgb(var(--accent-rgb));font-size:7px}
.plus-hero{position:relative;overflow:hidden;padding:30px;border:1px solid var(--line);border-radius:22px;background:radial-gradient(circle at 85% 15%,rgba(var(--accent-rgb),.25),transparent 28%),linear-gradient(135deg,rgba(var(--accent-rgb),.08),transparent 45%),#0c1117;box-shadow:0 30px 90px rgba(0,0,0,.34)}
.plus-hero h1{color:#d7dce3;font-size:40px;letter-spacing:-1.8px}.plus-hero p{margin-top:10px;color:#727c88;font-size:10px;line-height:1.7;max-width:620px}
.plus-badge{display:inline-flex;align-items:center;gap:7px;margin-bottom:12px;padding:6px 9px;border:1px solid rgba(var(--accent-rgb),.16);border-radius:999px;background:rgba(var(--accent-rgb),.06);color:rgb(var(--accent-rgb));font-size:8px;font-weight:850;letter-spacing:1px;text-transform:uppercase}
.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.plan{padding:22px;border:1px solid var(--line);border-radius:17px;background:#0d1218;position:relative}
.plan.featured{border-color:rgba(var(--accent-rgb),.26);background:radial-gradient(circle at 100% 0%,rgba(var(--accent-rgb),.11),transparent 35%),#0d1218}.plan h3{color:#cbd1d8;font-size:16px}
.plan-price{margin-top:10px;color:#d2d7dd;font-size:30px;font-weight:850;letter-spacing:-1px}.plan-price small{font-size:9px;color:#64707b;font-weight:500}
.perk-list{display:flex;flex-direction:column;gap:9px;margin-top:18px}.perk{display:flex;align-items:flex-start;gap:9px;color:#89929d;font-size:9px;line-height:1.5}.perk b{color:rgb(var(--accent-rgb))}
.plus-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.plus-note{margin-top:12px;color:#57616d;font-size:8px;line-height:1.5}
@media(max-width:1000px){.customizer-grid{grid-template-columns:1fr}.preview-panel{position:relative;top:auto}}
@media(max-width:650px){.option-grid,.plan-grid{grid-template-columns:1fr}.live-links{grid-template-columns:1fr}}


/* =========================
   V9 USERS + REPUTATION
   ========================= */

.users-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.users-search{
  min-width:240px;
  flex:1;
  max-width:420px;
  height:40px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#10161e;
  color:#d9dee5;
  outline:none;
}

.users-search:focus{
  border-color:rgba(var(--accent-rgb),.36);
  box-shadow:0 0 0 3px rgba(var(--accent-rgb),.05);
}

.sort-row{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.sort-btn{
  min-height:36px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#10161d;
  color:#75808c;
  cursor:pointer;
  font-size:9px;
}

.sort-btn.active{
  color:#dbe0e6;
  background:rgba(var(--accent-rgb),.08);
  border-color:rgba(var(--accent-rgb),.18);
}

.users-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}

.user-rank-card{
  display:grid;
  grid-template-columns:52px 54px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:86px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:
    linear-gradient(90deg,rgba(var(--accent-rgb),.025),transparent 40%),
    #0d1218;
  transition:.18s ease;
}

.user-rank-card:hover{
  transform:translateY(-1px);
  border-color:rgba(var(--accent-rgb),.22);
  background:#111820;
}

.rank-num{
  color:#5f6976;
  font-size:13px;
  font-weight:850;
  text-align:center;
}

.rank-num.top{
  color:rgb(var(--accent-rgb));
}

.user-avatar{
  width:46px;
  height:46px;
  border-radius:13px;
  background:
    url("pfp.jpg") center/cover,
    linear-gradient(135deg,rgba(var(--accent-rgb),.18),#222832);
  border:1px solid rgba(255,255,255,.07);
}

.user-main{
  min-width:0;
}

.user-main strong{
  display:flex;
  align-items:center;
  gap:7px;
  color:#c9cfd7;
  font-size:11px;
}

.user-main .handle{
  margin-top:3px;
  color:#65707c;
  font-size:8px;
}

.user-main .rep{
  margin-top:7px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.rep-pill{
  padding:4px 6px;
  border-radius:6px;
  background:#141a22;
  border:1px solid var(--line);
  color:#7a8490;
  font-size:7px;
}

.rep-pill.score{
  color:rgb(var(--accent-rgb));
  background:rgba(var(--accent-rgb),.07);
  border-color:rgba(var(--accent-rgb),.14);
}

.user-actions{
  display:flex;
  gap:7px;
  align-items:center;
}

.like-btn{
  min-height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#111720;
  color:#8b95a1;
  cursor:pointer;
  font-size:9px;
}

.like-btn.liked{
  color:rgb(var(--accent-rgb));
  border-color:rgba(var(--accent-rgb),.22);
  background:rgba(var(--accent-rgb),.08);
}

.users-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.users-summary .metric-card{
  min-height:115px;
}

.public-user{
  width:min(460px,100%);
  margin:auto;
}

.user-hero-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:#0f131a;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}

.user-hero-banner{
  height:140px;
  background:
    radial-gradient(circle at 75% 15%,rgba(var(--accent-rgb),.48),transparent 38%),
    linear-gradient(135deg,rgba(var(--accent-rgb),.18),#171d27 65%);
}

.user-hero-body{
  padding:0 20px 20px;
}

.user-hero-avatar{
  width:92px;
  height:92px;
  margin-top:-46px;
  border-radius:23px;
  border:5px solid #0f131a;
  background:
    url("pfp.jpg") center/cover,
    linear-gradient(135deg,rgba(var(--accent-rgb),.18),#222832);
}

.user-hero-name{
  margin-top:10px;
  color:#d0d6dd;
  font-size:24px;
  font-weight:850;
}

.user-hero-handle{
  color:#68727e;
  font-size:9px;
  margin-top:2px;
}

.user-hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:15px;
}

.user-hero-stat{
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#121821;
  text-align:center;
}

.user-hero-stat strong{
  display:block;
  color:#c9cfd7;
  font-size:17px;
}

.user-hero-stat span{
  display:block;
  margin-top:3px;
  color:#5e6874;
  font-size:7px;
}

.user-score-box{
  margin-top:12px;
  padding:11px 12px;
  border:1px solid rgba(var(--accent-rgb),.15);
  border-radius:10px;
  background:rgba(var(--accent-rgb),.055);
  color:#8e98a4;
  font-size:9px;
}

.user-score-box b{
  color:rgb(var(--accent-rgb));
}

@media(max-width:850px){
  .users-summary{grid-template-columns:repeat(2,1fr)}
  .user-rank-card{grid-template-columns:38px 48px minmax(0,1fr)}
  .user-actions{grid-column:2/4}
}

@media(max-width:560px){
  .users-summary{grid-template-columns:1fr}
  .users-search{min-width:100%}
  .user-rank-card{grid-template-columns:34px 42px minmax(0,1fr);padding:11px}
  .user-avatar{width:40px;height:40px}
  .user-hero-stats{grid-template-columns:1fr}
}


/* V10 reputation emphasis */
.user-hero-stats{
  grid-template-columns:repeat(4,1fr);
}

.style-meter{
  height:6px;
  border-radius:999px;
  overflow:hidden;
  background:#151c25;
}

.style-meter > span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
}

@media(max-width:620px){
  .user-hero-stats{grid-template-columns:repeat(2,1fr)}
}


/* =========================
   V11 USERS LEADERBOARD
   ========================= */

.users-page-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 315px;
  gap:16px;
  align-items:start;
}

.users-main-panel{
  min-width:0;
}

.users-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.users-title h1{
  color:#d9dee5;
  font-size:34px;
  letter-spacing:-1.2px;
}

.users-title p{
  margin-top:5px;
  color:#727c88;
  font-size:10px;
}

.users-controls{
  display:grid;
  grid-template-columns:minmax(250px,1fr) 220px 125px;
  gap:10px;
  margin-bottom:12px;
}

.users-search-wrap{
  position:relative;
}

.users-search-wrap::before{
  content:"⌕";
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#76808d;
  font-size:14px;
}

.users-search-v11,
.users-sort-v11,
.users-filter-v11{
  width:100%;
  height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#10161e;
  color:#c7cdd5;
  outline:none;
  font-size:10px;
}

.users-search-v11{
  padding:0 12px 0 37px;
}

.users-sort-v11,
.users-filter-v11{
  padding:0 12px;
}

.users-search-v11:focus,
.users-sort-v11:focus,
.users-filter-v11:focus{
  border-color:rgba(var(--accent-rgb),.34);
  box-shadow:0 0 0 3px rgba(var(--accent-rgb),.045);
}

.leaderboard{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#0c1117;
}

.leaderboard-head{
  display:grid;
  grid-template-columns:52px minmax(210px,1.25fr) 150px 105px 90px 100px 120px;
  gap:8px;
  align-items:center;
  min-height:48px;
  padding:0 14px;
  border-bottom:1px solid var(--line);
  background:#0f151d;
  color:#66717e;
  font-size:8px;
  font-weight:850;
  letter-spacing:1px;
  text-transform:uppercase;
}

.leaderboard-head .rep-col{
  color:rgb(var(--accent-rgb));
}

.leaderboard-scroll{
  max-height:690px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(var(--accent-rgb),.30) transparent;
}

.leaderboard-scroll::-webkit-scrollbar{width:7px}
.leaderboard-scroll::-webkit-scrollbar-track{background:transparent}
.leaderboard-scroll::-webkit-scrollbar-thumb{
  background:rgba(var(--accent-rgb),.24);
  border-radius:999px;
}

.rank-row{
  display:grid;
  grid-template-columns:52px minmax(210px,1.25fr) 150px 105px 90px 100px 120px;
  gap:8px;
  align-items:center;
  min-height:78px;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,.055);
  background:#0d1218;
  transition:.18s ease;
  cursor:pointer;
}

.rank-row:last-child{border-bottom:0}

.rank-row:hover{
  background:#111820;
}

.rank-row.top-user{
  background:
    radial-gradient(circle at 20% 50%,rgba(var(--accent-rgb),.08),transparent 35%),
    #10151d;
  box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45);
}

.rank-number{
  text-align:center;
  color:#b7bec7;
  font-size:12px;
  font-weight:850;
}

.rank-profile{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}

.rank-avatar{
  width:48px;
  height:48px;
  flex-shrink:0;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 70% 20%,rgba(var(--accent-rgb),.28),transparent 40%),
    #1a2029;
  position:relative;
  overflow:hidden;
}

.rank-avatar::after{
  content:"";
  position:absolute;
  width:9px;
  height:9px;
  right:1px;
  bottom:2px;
  border-radius:50%;
  border:2px solid #0d1218;
  background:#49df8a;
}

.rank-name{
  min-width:0;
}

.rank-name strong{
  display:flex;
  align-items:center;
  gap:7px;
  color:#d0d5dc;
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rank-name span{
  display:block;
  margin-top:3px;
  color:#69737f;
  font-size:8px;
}

.plus-chip{
  display:inline-flex!important;
  width:max-content;
  margin:0!important;
  padding:3px 6px;
  border-radius:5px;
  background:rgba(var(--accent-rgb),.14);
  color:rgb(var(--accent-rgb))!important;
  font-size:7px!important;
  font-weight:850;
}

.rep-value{
  color:rgb(var(--accent-rgb));
  font-size:18px;
  font-weight:850;
  letter-spacing:-.5px;
}

.rep-bar{
  width:74px;
  height:4px;
  margin-top:5px;
  border-radius:999px;
  overflow:hidden;
  background:#242b35;
}

.rep-bar span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
}

.style-value,
.number-value{
  color:#c7cdd5;
  font-size:11px;
  font-weight:800;
}

.style-value small{
  color:#68727e;
  font-size:8px;
  font-weight:500;
}

.badge-mini-row{
  display:flex;
  gap:5px;
  align-items:center;
}

.badge-mini{
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:rgba(var(--accent-rgb),.10);
  border:1px solid rgba(var(--accent-rgb),.12);
  color:rgb(var(--accent-rgb));
  font-size:10px;
}

.badge-extra{
  padding:5px 6px;
  border-radius:6px;
  border:1px solid var(--line);
  background:#151b24;
  color:#727c88;
  font-size:7px;
}

.users-right{
  display:flex;
  flex-direction:column;
  gap:12px;
  position:sticky;
  top:24px;
}

.side-card-v11{
  border:1px solid var(--line);
  border-radius:14px;
  background:
    radial-gradient(circle at 100% 0%,rgba(var(--accent-rgb),.06),transparent 35%),
    #0d1218;
  padding:17px;
}

.side-card-v11 h3{
  color:#bfc6cf;
  font-size:9px;
  font-weight:850;
  letter-spacing:1px;
  text-transform:uppercase;
}

.podium{
  display:grid;
  grid-template-columns:1fr 1.1fr 1fr;
  align-items:end;
  gap:8px;
  margin-top:18px;
}

.podium-user{
  text-align:center;
}

.podium-avatar{
  width:54px;
  height:54px;
  margin:0 auto 8px;
  border-radius:50%;
  border:1px solid rgba(var(--accent-rgb),.22);
  background:
    radial-gradient(circle at 70% 20%,rgba(var(--accent-rgb),.32),transparent 40%),
    #1b2029;
}

.podium-user.first .podium-avatar{
  width:64px;
  height:64px;
  box-shadow:0 0 24px rgba(var(--accent-rgb),.16);
}

.podium-place{
  width:24px;
  height:24px;
  margin:0 auto 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e4e7eb;
  color:#11151b;
  font-size:10px;
  font-weight:900;
}

.podium-user.first .podium-place{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:white;
}

.podium-name{
  color:#c4cad2;
  font-size:9px;
  font-weight:800;
}

.podium-score{
  margin-top:3px;
  color:#69737f;
  font-size:8px;
}

.side-stat-list{
  margin-top:10px;
}

.side-stat-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-top:1px solid var(--line);
}

.side-stat-row:first-child{
  border-top:0;
}

.side-stat-left{
  display:flex;
  align-items:center;
  gap:9px;
}

.side-stat-icon{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(var(--accent-rgb),.09);
  color:rgb(var(--accent-rgb));
}

.side-stat-row strong{
  color:#c2c8d0;
  font-size:10px;
}

.side-stat-row span{
  display:block;
  color:#65707c;
  font-size:8px;
  margin-top:2px;
}

.side-stat-number{
  text-align:right;
  color:#cbd1d8;
  font-size:14px;
  font-weight:850;
}

.rep-help{
  margin-top:12px;
  color:#77818d;
  font-size:9px;
  line-height:1.65;
}

.rep-rule{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  color:#7f8995;
  font-size:8px;
}

.rep-rule b{
  color:#c7cdd5;
}

.users-empty{
  padding:40px;
  text-align:center;
  color:#606a76;
  font-size:10px;
}

@media(max-width:1250px){
  .users-page-layout{grid-template-columns:1fr}
  .users-right{position:relative;top:auto;display:grid;grid-template-columns:repeat(3,1fr)}
}

@media(max-width:1020px){
  .leaderboard-head{display:none}
  .rank-row{
    grid-template-columns:42px 1fr 110px;
    min-height:88px;
  }
  .rank-row > :nth-child(4),
  .rank-row > :nth-child(5),
  .rank-row > :nth-child(6),
  .rank-row > :nth-child(7){display:none}
}

@media(max-width:760px){
  .users-controls{grid-template-columns:1fr}
  .users-right{grid-template-columns:1fr}
  .rank-row{grid-template-columns:34px 1fr}
  .rank-row > :nth-child(3){display:none}
}


/* =========================
   V12 USERS PAGE — MOCKUP MATCH
   ========================= */

.users-v12 .main{
  padding:26px 26px 38px;
}

.users-v12 .main-inner{
  width:min(1460px,100%);
}

.users-v12 .sidebar{
  width:auto;
}

.users-v12 .users-page-layout{
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
}

.users-v12 .users-title h1{
  font-size:36px;
  letter-spacing:-1.4px;
}

.users-v12 .users-title p{
  font-size:11px;
  color:#7b8591;
}

.users-v12 .users-controls{
  grid-template-columns:minmax(320px,1fr) 250px 130px;
  gap:12px;
  margin-bottom:14px;
}

.users-v12 .users-search-v11,
.users-v12 .users-sort-v11,
.users-v12 .users-filter-v11{
  height:46px;
  font-size:11px;
  border-radius:11px;
  background:#0f151d;
}

.users-v12 .leaderboard{
  border-radius:15px;
  background:#0c1118;
  box-shadow:0 26px 70px rgba(0,0,0,.22);
}

.users-v12 .leaderboard-head{
  grid-template-columns:54px minmax(230px,1.35fr) 165px 110px 95px 105px 130px;
  min-height:54px;
  padding:0 16px;
  font-size:9px;
  background:#0f151d;
}

.users-v12 .leaderboard-scroll{
  max-height:760px;
}

.users-v12 .rank-row{
  grid-template-columns:54px minmax(230px,1.35fr) 165px 110px 95px 105px 130px;
  min-height:88px;
  padding:12px 16px;
}

.users-v12 .rank-row.top-user{
  background:
    radial-gradient(circle at 18% 50%,rgba(var(--accent-rgb),.12),transparent 34%),
    linear-gradient(90deg,rgba(var(--accent-rgb),.06),transparent 42%),
    #10151d;
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb),.8),
    0 0 24px rgba(var(--accent-rgb),.08);
}

.users-v12 .rank-number{
  font-size:14px;
}

.users-v12 .rank-avatar{
  width:54px;
  height:54px;
  box-shadow:0 0 0 1px rgba(var(--accent-rgb),.15);
}

.users-v12 .rank-name strong{
  font-size:13px;
}

.users-v12 .rank-name span{
  font-size:9px;
}

.users-v12 .plus-chip{
  font-size:8px!important;
  padding:4px 7px;
}

.users-v12 .rep-value{
  font-size:21px;
}

.users-v12 .rep-bar{
  width:86px;
  height:5px;
}

.users-v12 .style-value,
.users-v12 .number-value{
  font-size:12px;
}

.users-v12 .badge-mini{
  width:31px;
  height:31px;
}

.users-v12 .badge-extra{
  font-size:8px;
}

.users-v12 .users-right{
  gap:14px;
}

.users-v12 .side-card-v11{
  padding:19px;
  border-radius:15px;
  background:
    radial-gradient(circle at 100% 0%,rgba(var(--accent-rgb),.08),transparent 36%),
    linear-gradient(180deg,rgba(255,255,255,.012),transparent),
    #0d1219;
}

.users-v12 .side-card-v11 h3{
  font-size:10px;
}

.users-v12 .podium{
  margin-top:20px;
}

.users-v12 .podium-avatar{
  width:58px;
  height:58px;
}

.users-v12 .podium-user.first .podium-avatar{
  width:72px;
  height:72px;
  border-color:rgba(var(--accent-rgb),.65);
  box-shadow:0 0 28px rgba(var(--accent-rgb),.16);
}

.users-v12 .podium-name{
  font-size:10px;
}

.users-v12 .podium-score{
  font-size:9px;
}

.users-v12 .side-stat-row{
  padding:13px 0;
}

.users-v12 .side-stat-row strong{
  font-size:11px;
}

.users-v12 .side-stat-number{
  font-size:16px;
}

.users-v12 .rep-help{
  font-size:9px;
}

.users-v12 .rep-rule{
  font-size:9px;
}

.users-v12 .sidebar{
  background:
    linear-gradient(180deg,rgba(14,10,20,.92),rgba(8,11,15,.96));
  box-shadow:10px 0 40px rgba(80,30,100,.05);
}

.users-v12 .nav a.active{
  background:
    linear-gradient(90deg,rgba(var(--accent-rgb),.24),rgba(var(--accent-rgb),.07));
  border-color:rgba(var(--accent-rgb),.24);
}

.users-v12 .brand{
  font-size:15px;
}

.users-v12 .user-mini{
  border-color:rgba(var(--accent-rgb),.13);
  background:
    radial-gradient(circle at 0% 100%,rgba(var(--accent-rgb),.12),transparent 55%),
    #0d1218;
}

@media(max-width:1320px){
  .users-v12 .users-page-layout{grid-template-columns:1fr}
  .users-v12 .users-right{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    position:relative;
    top:auto;
  }
}

@media(max-width:1040px){
  .users-v12 .users-right{grid-template-columns:1fr}
}


/* =========================
   V13 USERS PAGE — TRUE LARGE LAYOUT
   ========================= */
.users-v13 .app{grid-template-columns:245px minmax(0,1fr)}
.users-v13 .sidebar{padding:22px 16px;font-size:14px}
.users-v13 .brand{font-size:16px;padding:12px 10px 22px}
.users-v13 .brand-sub{font-size:8px}
.users-v13 .nav-label{font-size:9px;padding:16px 10px 8px}
.users-v13 .nav a{min-height:48px;padding:0 12px;border-radius:11px;font-size:12px}
.users-v13 .nav-icon{width:22px;font-size:15px}
.users-v13 .user-mini{padding:11px}
.users-v13 .avatar-mini{width:40px;height:40px;border-radius:11px}
.users-v13 .user-mini strong{font-size:12px}
.users-v13 .user-mini span{font-size:9px}

.users-v13 .main{padding:24px 28px 34px}
.users-v13 .main-inner{width:100%;max-width:none;margin:0}
.users-v13 .users-head{margin-bottom:18px}
.users-v13 .users-title h1{font-size:42px;line-height:1;letter-spacing:-1.8px}
.users-v13 .users-title p{margin-top:7px;font-size:12px}
.users-v13 .users-page-layout{grid-template-columns:minmax(760px,1fr) 340px;gap:20px}
.users-v13 .users-controls{grid-template-columns:minmax(330px,1fr) 245px 135px;gap:12px;margin-bottom:14px}
.users-v13 .users-search-v11,.users-v13 .users-sort-v11,.users-v13 .users-filter-v11{height:48px;font-size:12px;border-radius:11px}

.users-v13 .leaderboard{width:100%;border-radius:15px}
.users-v13 .leaderboard-head{
  grid-template-columns:58px minmax(240px,1.4fr) 175px 115px 96px 108px 138px;
  min-height:58px;padding:0 18px;font-size:9.5px
}
.users-v13 .leaderboard-scroll{max-height:calc(100vh - 190px);min-height:620px}
.users-v13 .rank-row{
  grid-template-columns:58px minmax(240px,1.4fr) 175px 115px 96px 108px 138px;
  min-height:92px;padding:13px 18px
}
.users-v13 .rank-number{font-size:15px}
.users-v13 .rank-profile{gap:13px}
.users-v13 .rank-avatar{width:58px;height:58px}
.users-v13 .rank-name strong{font-size:14px}
.users-v13 .rank-name span{margin-top:4px;font-size:10px}
.users-v13 .plus-chip{font-size:8px!important;padding:4px 7px}
.users-v13 .rep-value{font-size:23px}
.users-v13 .rep-bar{width:96px;height:5px;margin-top:7px}
.users-v13 .style-value,.users-v13 .number-value{font-size:13px}
.users-v13 .style-value small{font-size:9px}
.users-v13 .badge-mini{width:33px;height:33px;border-radius:8px;font-size:11px}
.users-v13 .badge-extra{padding:6px 7px;font-size:8px}

.users-v13 .users-right{gap:14px;position:sticky;top:24px}
.users-v13 .side-card-v11{padding:20px;border-radius:15px}
.users-v13 .side-card-v11 h3{font-size:11px;letter-spacing:1.15px}
.users-v13 .podium{margin-top:22px;gap:10px}
.users-v13 .podium-avatar{width:62px;height:62px}
.users-v13 .podium-user.first .podium-avatar{width:78px;height:78px}
.users-v13 .podium-place{width:27px;height:27px;font-size:11px}
.users-v13 .podium-name{font-size:11px}
.users-v13 .podium-score{margin-top:4px;font-size:9px}
.users-v13 .side-stat-row{padding:14px 0}
.users-v13 .side-stat-icon{width:34px;height:34px;font-size:12px}
.users-v13 .side-stat-row strong{font-size:11px}
.users-v13 .side-stat-row span{font-size:9px}
.users-v13 .side-stat-number{font-size:17px}
.users-v13 .rep-help{font-size:10px;line-height:1.7}
.users-v13 .rep-rule{margin-top:11px;font-size:9.5px}

.users-v13 .rank-row.top-user{
  box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.95),0 0 30px rgba(var(--accent-rgb),.10);
  background:
    radial-gradient(circle at 20% 50%,rgba(var(--accent-rgb),.15),transparent 36%),
    linear-gradient(90deg,rgba(var(--accent-rgb),.075),transparent 46%),
    #111620
}

.users-v13 .leaderboard-scroll::-webkit-scrollbar{width:9px}
.users-v13 .leaderboard-scroll::-webkit-scrollbar-thumb{
  background:linear-gradient(var(--accent),var(--accent2));
  border-radius:999px;border:2px solid #0c1118
}

.users-v13 .sidebar{
  background:linear-gradient(180deg,rgba(14,10,20,.92),rgba(8,11,15,.96));
  box-shadow:10px 0 40px rgba(80,30,100,.05)
}
.users-v13 .nav a.active{
  background:linear-gradient(90deg,rgba(var(--accent-rgb),.24),rgba(var(--accent-rgb),.07));
  border-color:rgba(var(--accent-rgb),.24)
}

@media(max-width:1350px){
  .users-v13 .users-page-layout{grid-template-columns:1fr}
  .users-v13 .users-right{position:relative;top:auto;display:grid;grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1000px){
  .users-v13 .app{grid-template-columns:80px minmax(0,1fr)}
  .users-v13 .sidebar{padding:15px 8px}
  .users-v13 .brand{justify-content:center}
  .users-v13 .brand span,.users-v13 .brand-sub,.users-v13 .nav-label,.users-v13 .nav a span,.users-v13 .user-mini div:not(.avatar-mini){display:none}
  .users-v13 .nav a{justify-content:center;padding:0}
  .users-v13 .user-mini{justify-content:center}
}
@media(max-width:820px){
  .users-v13 .users-controls{grid-template-columns:1fr}
  .users-v13 .users-right{grid-template-columns:1fr}
}


/* =========================
   V15 GLOBAL DASHBOARD SCALE
   Match the larger Users-page proportions
   ========================= */
body:not(.users-v13) .app{
  grid-template-columns:245px minmax(0,1fr);
}
body:not(.users-v13) .sidebar{
  padding:22px 16px;
}
body:not(.users-v13) .brand{
  font-size:16px;
  padding:12px 10px 22px;
}
body:not(.users-v13) .brand-sub{font-size:8px}
body:not(.users-v13) .nav-label{
  font-size:9px;
  padding:16px 10px 8px;
}
body:not(.users-v13) .nav a{
  min-height:48px;
  padding:0 12px;
  border-radius:11px;
  font-size:12px;
}
body:not(.users-v13) .nav-icon{
  width:22px;
  font-size:15px;
}
body:not(.users-v13) .user-mini{
  padding:11px;
}
body:not(.users-v13) .avatar-mini{
  width:40px;
  height:40px;
}
body:not(.users-v13) .user-mini strong{font-size:12px}
body:not(.users-v13) .user-mini span{font-size:9px}

body:not(.users-v13) .main{
  padding:30px 34px 44px;
}
body:not(.users-v13) .main-inner{
  width:100%;
  max-width:1380px;
  margin:0 auto;
}
body:not(.users-v13) .page-title h1,
body:not(.users-v13) .page-head h1{
  font-size:38px;
  letter-spacing:-1.3px;
}
body:not(.users-v13) .page-title p,
body:not(.users-v13) .page-head p{
  font-size:12px;
}
body:not(.users-v13) .panel{
  border-radius:16px;
}
body:not(.users-v13) .panel-title{
  padding:20px 22px;
}
body:not(.users-v13) .panel-title h2{
  font-size:16px;
}
body:not(.users-v13) .list-row{
  min-height:72px;
  padding:14px 18px;
}
body:not(.users-v13) .list-row strong{
  font-size:13px;
}
body:not(.users-v13) .list-row span{
  font-size:10px;
}
body:not(.users-v13) .page-icon{
  width:38px;
  height:38px;
  border-radius:10px;
}
body:not(.users-v13) input,
body:not(.users-v13) textarea,
body:not(.users-v13) select{
  min-height:45px;
  font-size:12px;
}
body:not(.users-v13) .btn,
body:not(.users-v13) button{
  min-height:42px;
  font-size:11px;
}

@media(max-width:1000px){
  body:not(.users-v13) .app{grid-template-columns:80px minmax(0,1fr)}
  body:not(.users-v13) .sidebar{padding:15px 8px}
  body:not(.users-v13) .brand{justify-content:center}
  body:not(.users-v13) .brand span,
  body:not(.users-v13) .brand-sub,
  body:not(.users-v13) .nav-label,
  body:not(.users-v13) .nav a span,
  body:not(.users-v13) .user-mini div:not(.avatar-mini){display:none}
  body:not(.users-v13) .nav a{justify-content:center;padding:0}
  body:not(.users-v13) .user-mini{justify-content:center}
}


/* =========================================================
   V16 GLOBAL SCALE NORMALIZATION
   Fixes mixed old/new sizing across every internal page.
   ========================================================= */

:root{
  --nb-sidebar:245px;
  --nb-page-gap:18px;
  --nb-radius:16px;
  --nb-control-h:46px;
}

/* APP SHELL */
body .app{
  grid-template-columns:var(--nb-sidebar) minmax(0,1fr);
}
body .sidebar{
  padding:22px 16px;
}
body .brand{
  min-height:48px;
  padding:10px 10px 20px;
  font-size:16px;
}
body .brand-sub{
  font-size:8px;
}
body .nav-label{
  padding:15px 10px 8px;
  font-size:9px;
}
body .nav{
  gap:6px;
}
body .nav a{
  min-height:46px;
  padding:0 12px;
  border-radius:11px;
  font-size:12px;
}
body .nav-icon{
  width:22px;
  font-size:14px;
}
body .sidebar-bottom{
  margin-top:auto;
}
body .user-mini{
  min-height:62px;
  padding:10px 11px;
  border-radius:13px;
}
body .avatar-mini{
  width:40px;
  height:40px;
}
body .user-mini strong{
  font-size:12px;
}
body .user-mini span{
  font-size:9px;
}

/* MAIN CONTENT */
body .main{
  padding:28px 32px 44px;
}
body .main-inner{
  width:100%;
  max-width:1400px;
  margin:0 auto;
}
body .topbar{
  min-height:70px;
  margin-bottom:20px;
  gap:16px;
}
body .topbar h1{
  font-size:34px;
  line-height:1.05;
  letter-spacing:-1.2px;
}
body .topbar p{
  margin-top:6px;
  font-size:11px;
  line-height:1.6;
}
body .top-actions{
  gap:9px;
}

/* BUTTONS / CONTROLS */
body .btn,
body button.btn{
  min-height:42px;
  padding:0 14px;
  border-radius:10px;
  font-size:11px;
}
body input,
body select,
body textarea,
body .input{
  font-size:12px;
}
body input:not([type="checkbox"]):not([type="radio"]),
body select,
body .input:not(textarea){
  min-height:44px;
}
body textarea.input{
  min-height:110px;
  padding:12px;
}
body .field-label{
  margin-top:14px;
  margin-bottom:7px;
  font-size:9px;
}

/* PANELS */
body .panel{
  border-radius:var(--nb-radius);
  padding:20px;
}
body .panel-title{
  min-height:34px;
  margin-bottom:16px;
  padding:0;
}
body .panel-title h2{
  font-size:15px;
}
body .panel-title span{
  font-size:9px;
}
body .page-grid-2,
body .settings-layout,
body .row-2{
  gap:16px;
}
body .page-grid-3,
body .grid-3{
  gap:14px;
}

/* SETTING CARDS */
body .setting-card{
  padding:16px;
  border-radius:12px;
}
body .setting-card + .setting-card{
  margin-top:10px;
}
body .setting-card h3{
  font-size:12px;
}
body .setting-card p{
  margin-top:6px;
  font-size:9px;
  line-height:1.6;
}

/* PRIVACY / TOGGLE ROWS */
body .toggle-row{
  min-height:78px;
  padding:15px 16px;
  border-radius:12px;
  gap:18px;
}
body .toggle-row + .toggle-row{
  margin-top:10px;
}
body .toggle-row h3{
  font-size:12px;
}
body .toggle-row p{
  margin-top:5px;
  font-size:9px;
  line-height:1.5;
}
body .switch{
  width:48px;
  height:28px;
  flex:0 0 48px;
}
body .switch::after{
  width:20px;
  height:20px;
  top:3px;
  left:3px;
}
body .switch.on::after{
  left:23px;
}

/* GENERIC LISTS */
body .list-card{
  gap:9px;
}
body .list-row{
  min-height:72px;
  padding:13px 14px;
  border-radius:11px;
}
body .list-row .left{
  gap:12px;
}
body .list-row strong{
  font-size:11px;
}
body .list-row span{
  margin-top:4px;
  font-size:9px;
  line-height:1.45;
}
body .page-icon{
  width:38px;
  height:38px;
  border-radius:10px;
  font-size:13px;
}

/* STATS / METRICS */
body .metric-card,
body .stat,
body .big-stat{
  min-height:132px;
  padding:18px;
  border-radius:14px;
}
body .metric-card small,
body .stat .k,
body .big-stat small{
  font-size:9px;
}
body .metric-card strong,
body .stat .v,
body .big-stat strong{
  font-size:28px;
}
body .metric-card span,
body .stat .s,
body .big-stat span{
  font-size:9px;
}

/* DASHBOARD CARDS */
body .hero-dashboard{
  min-height:300px;
  padding:28px;
}
body .hero-dashboard h2{
  font-size:38px;
}
body .hero-dashboard p{
  font-size:11px;
  line-height:1.7;
}
body .tool-grid{
  gap:11px;
}
body .tool-card{
  min-height:130px;
  padding:15px;
}
body .tool-card .tool-icon{
  width:34px;
  height:34px;
}
body .tool-card strong{
  font-size:11px;
}
body .tool-card span{
  font-size:9px;
  line-height:1.5;
}

/* COSMETICS */
body .store-grid{
  gap:14px;
}
body .store-item{
  min-height:240px;
  padding:15px;
}
body .store-preview{
  height:120px;
}
body .store-item h3{
  font-size:12px;
}
body .store-item p{
  font-size:9px;
}
body .store-price{
  font-size:8px;
}

/* DOWNLOADS */
body .download-row{
  min-height:74px;
  padding:12px 14px;
}
body .download-icon{
  width:36px;
  height:36px;
}
body .download-row strong{
  font-size:11px;
}
body .download-row span{
  font-size:9px;
}

/* APPEARANCE CUSTOMIZER */
body .customizer-grid{
  gap:16px;
}
body .option-grid{
  gap:10px;
}
body .option{
  min-height:108px;
  padding:14px;
}
body .option strong{
  font-size:11px;
}
body .option span{
  font-size:9px;
}
body .theme-dot{
  width:25px;
  height:25px;
}
body .live-card{
  max-width:440px;
}
body .live-banner{
  height:135px;
}
body .live-avatar{
  width:92px;
  height:92px;
  margin-top:-45px;
}
body .live-name{
  font-size:24px;
}
body .live-handle,
body .live-bio,
body .live-links div{
  font-size:10px;
}

/* PLUS */
body .plus-hero{
  padding:32px;
}
body .plus-hero h1{
  font-size:42px;
}
body .plus-hero p{
  font-size:11px;
}
body .plan{
  padding:24px;
}
body .plan h3{
  font-size:17px;
}
body .plan-price{
  font-size:32px;
}
body .perk{
  font-size:10px;
}

/* PROFILE PREVIEW PAGE */
body .profile-shell{
  max-width:470px;
}
body .profile-card{
  border-radius:26px;
}
body .profile-banner{
  height:150px;
}
body .avatar-big{
  width:96px;
  height:96px;
}
body .profile-name{
  font-size:25px;
}
body .handle{
  font-size:10px;
}
body .status-box{
  font-size:11px;
}
body .profile-bio{
  font-size:10px;
}
body .profile-links a{
  min-height:43px;
  font-size:10px;
}
body .badge{
  font-size:9px;
}
body .feature-name{
  font-size:11px;
}
body .feature-card p{
  font-size:9px;
}

/* PUBLIC USER PAGE */
body .public-user{
  max-width:500px;
}
body .user-hero-banner{
  height:155px;
}
body .user-hero-avatar{
  width:100px;
  height:100px;
  margin-top:-50px;
}
body .user-hero-name{
  font-size:27px;
}
body .user-hero-handle{
  font-size:10px;
}
body .user-hero-stat strong{
  font-size:19px;
}
body .user-hero-stat span{
  font-size:8px;
}
body .user-score-box{
  font-size:10px;
}

/* USERS PAGE — keep its deliberate larger geometry */
body.users-v13 .panel,
body.users-v13 .leaderboard{
  padding:0;
}
body.users-v13 .main{
  padding:24px 28px 34px;
}
body.users-v13 .main-inner{
  max-width:none;
}

/* LANDING / HOME — keep large */
body .home-wrap{
  max-width:1320px;
}

/* RESPONSIVE */
@media(max-width:1000px){
  body .app{
    grid-template-columns:80px minmax(0,1fr);
  }
  body .sidebar{
    padding:15px 8px;
  }
  body .brand{
    justify-content:center;
  }
  body .brand span,
  body .brand-sub,
  body .nav-label,
  body .nav a span,
  body .user-mini div:not(.avatar-mini){
    display:none;
  }
  body .nav a{
    justify-content:center;
    padding:0;
  }
  body .user-mini{
    justify-content:center;
  }
  body .main{
    padding:22px 18px 34px;
  }
}

@media(max-width:760px){
  body .topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  body .page-grid-2,
  body .settings-layout,
  body .row-2,
  body .customizer-grid,
  body .plan-grid{
    grid-template-columns:1fr;
  }
}


/* =========================
   V17 LIVE TOP 3
   ========================= */
.live-pulse{
  display:inline-block;
  width:8px;
  height:8px;
  margin-right:7px;
  border-radius:50%;
  background:#52e38b;
  box-shadow:0 0 0 0 rgba(82,227,139,.45);
  animation:nbLivePulse 1.6s ease-out infinite;
  vertical-align:middle;
}

@keyframes nbLivePulse{
  0%{
    box-shadow:0 0 0 0 rgba(82,227,139,.42);
  }
  70%{
    box-shadow:0 0 0 7px rgba(82,227,139,0);
  }
  100%{
    box-shadow:0 0 0 0 rgba(82,227,139,0);
  }
}

.users-v13 .side-card-v11 h3 .live-pulse{
  position:relative;
  top:-1px;
}


/* =========================================================
   V18 BUTTON / CONTROL NORMALIZATION
   ========================================================= */

/* Core rectangular buttons */
.btn,
button.btn,
a.btn,
.like-btn,
.sort-btn,
.auth-tab,
.tab,
.close-auth,
.close-btn{
  min-height:42px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  font-size:11px!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  white-space:nowrap;
}

/* Compact table buttons should still be readable */
.like-btn,
.sort-btn{
  min-height:38px!important;
  padding:0 12px!important;
  font-size:10px!important;
}

/* Form controls */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.input,
.users-search-v11,
.users-sort-v11,
.users-filter-v11,
.auth-input{
  border-radius:10px!important;
  font-size:12px!important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
.input:not(textarea),
.users-search-v11,
.users-sort-v11,
.users-filter-v11,
.auth-input{
  min-height:44px!important;
}

/* Switches are a special button component — do NOT inherit rectangular button sizing */
.switch{
  min-width:48px!important;
  width:48px!important;
  min-height:28px!important;
  height:28px!important;
  padding:0!important;
  border-radius:999px!important;
  display:block!important;
}
.switch::after{
  width:20px!important;
  height:20px!important;
  top:3px!important;
  left:3px!important;
}
.switch.on::after{
  left:23px!important;
}

/* Theme dots stay circular and usable */
.theme-dot{
  min-width:26px!important;
  width:26px!important;
  min-height:26px!important;
  height:26px!important;
  padding:0!important;
  border-radius:50%!important;
}

/* Appearance option cards stay large cards, not tiny buttons */
.option{
  min-height:110px!important;
  height:auto!important;
  padding:14px!important;
  border-radius:12px!important;
  display:block!important;
}
.option strong{font-size:11px!important}
.option span{font-size:9px!important}

/* More / icon-only buttons */
.more{
  min-width:40px!important;
  width:40px!important;
  min-height:40px!important;
  height:40px!important;
  padding:0!important;
  border-radius:10px!important;
}

/* Controls inside cards */
.list-row > .btn,
.download-row > .btn,
.plus-actions .btn,
.hero-dashboard-actions .btn,
.top-actions .btn,
.hero-actions .btn,
.home-nav-actions .btn,
.center-actions .btn{
  min-height:42px!important;
}

/* Disabled controls should not visually collapse */
button:disabled,
.btn:disabled{
  min-height:42px!important;
  opacity:.52;
  cursor:not-allowed;
}

/* Sidebar can now hold more items without feeling cramped */
.sidebar{
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(var(--accent-rgb),.18) transparent;
}
.sidebar::-webkit-scrollbar{width:5px}
.sidebar::-webkit-scrollbar-thumb{
  background:rgba(var(--accent-rgb),.18);
  border-radius:999px;
}
.sidebar-bottom{
  padding-top:12px;
}

/* Slightly tighter vertical rhythm to fit expanded navigation comfortably */
.nav-label{margin-top:1px}
.nav a{min-height:44px!important}

/* New pages */
.page-grid-2 .panel,
.page-grid-3 .panel{
  min-width:0;
}

@media(max-width:1000px){
  .sidebar{
    overflow-y:auto;
  }
}

/* V19 project/database polish */
#projectsGrid .store-item{min-height:280px}#projectsGrid .store-preview{height:115px}.auth-modal textarea{width:100%}.store-item .rep-pill{font-size:8px}.msg.good{color:#63d895}.msg.bad{color:#e98792}

/* V21 real-data polish */
.sidebar .user-mini strong:empty::after{content:"Loading…"}.sidebar .user-mini span:empty::after{content:""}.auth-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.76);backdrop-filter:blur(10px)}.auth-modal.show{display:flex}.auth-card{width:min(430px,100%);padding:24px;border:1px solid var(--line);border-radius:20px;background:#0e1319;box-shadow:0 30px 100px rgba(0,0,0,.62)}.auth-head{display:flex;justify-content:space-between;gap:14px;margin-bottom:16px}.auth-head h2{font-size:20px}.auth-head p{font-size:9px;color:#66717d}.close-auth{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#151b23;color:#89929d}.lab{display:block;margin:10px 0 6px;color:#727c88;font-size:9px}.auth-input{width:100%;height:44px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#111720;color:#d7dce2}.msg{min-height:18px;margin-top:10px;font-size:9px}.msg.good{color:#64d694}.msg.bad{color:#e98792}


/* =========================================================
   V22 PUBLIC HOMEPAGE — full layout
   ========================================================= */
.home-wrap{min-height:100vh;max-width:none!important;background:
 radial-gradient(circle at 18% 0%,rgba(var(--accent-rgb),.13),transparent 30%),
 radial-gradient(circle at 88% 15%,rgba(80,100,255,.07),transparent 28%),
 #070a0f;color:#d9dee6}
.home-nav{height:76px;max-width:1380px;margin:0 auto;padding:0 34px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.055)}
.home-brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:900;letter-spacing:3px}
.home-brand .mark{width:10px;height:10px;border-radius:3px;transform:rotate(45deg);background:rgb(var(--accent-rgb));box-shadow:0 0 20px rgba(var(--accent-rgb),.45)}
.home-nav-actions{display:flex;gap:9px;align-items:center}
.home-hero{max-width:1380px;min-height:620px;margin:0 auto;padding:72px 34px 56px;display:grid;grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr);gap:72px;align-items:center}
.hero-left{max-width:650px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;color:rgb(var(--accent-rgb));font-size:10px;font-weight:900;letter-spacing:2px}
.home-hero h1{font-size:clamp(54px,5.3vw,86px);line-height:.94;letter-spacing:-4px;color:#eef1f6;max-width:720px}
.home-hero .hero-left>p{max-width:600px;margin-top:24px;color:#8993a0;font-size:15px;line-height:1.8}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.hero-caption{margin-top:17px;color:#59636f;font-size:10px;letter-spacing:.3px}
.showcase{position:relative;min-height:470px;overflow:hidden;border:1px solid #202735;border-radius:26px;background:linear-gradient(145deg,#111721,#0a0f15);box-shadow:0 35px 100px rgba(0,0,0,.38)}
.showcase::before{content:"";position:absolute;inset:-30% auto auto 40%;width:360px;height:360px;border-radius:50%;background:rgba(var(--accent-rgb),.13);filter:blur(70px)}
.showcase-grid{position:absolute;inset:0;opacity:.3;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:42px 42px}
.showcase .list-row{min-height:68px;padding:12px 15px;border:1px solid #222a35;border-radius:13px;background:rgba(13,19,26,.88);transition:.18s ease}
.showcase .list-row:hover{transform:translateY(-2px);border-color:rgba(var(--accent-rgb),.42);background:#121923}
.showcase .list-row .left{display:flex;align-items:center;gap:12px}
.showcase .list-row .left strong{display:block;color:#dce1e8;font-size:12px}
.showcase .list-row .left span{display:block;margin-top:3px;color:#66717e;font-size:9px}
.showcase .page-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(var(--accent-rgb),.12);color:rgb(var(--accent-rgb));font-weight:900}
.stats-band{max-width:1312px;margin:0 auto 60px;padding:0 0;display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;border:1px solid #1e2631;border-radius:18px;background:#0c1117}
.home-stat{min-height:125px;padding:25px 28px;border-right:1px solid #1e2631;display:flex;flex-direction:column;justify-content:center}
.home-stat:last-child{border-right:0}.home-stat small{color:#687380;font-size:9px;text-transform:uppercase;letter-spacing:1.4px}.home-stat strong{margin:5px 0 2px;color:#edf0f5;font-size:29px}.home-stat span{color:#56606c;font-size:9px}
.home-footer{max-width:1380px;margin:0 auto;padding:28px 34px 42px;display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.055);color:#515b67;font-size:9px}
@media(max-width:1000px){.home-hero{grid-template-columns:1fr;gap:34px}.showcase{min-height:420px}.stats-band{margin-left:24px;margin-right:24px;grid-template-columns:repeat(2,1fr)}.home-stat:nth-child(2){border-right:0}.home-stat:nth-child(-n+2){border-bottom:1px solid #1e2631}}
@media(max-width:650px){.home-nav{height:auto;padding:18px;align-items:flex-start;gap:16px}.home-nav-actions{flex-wrap:wrap;justify-content:flex-end}.home-hero{padding:52px 18px 36px}.home-hero h1{font-size:52px;letter-spacing:-2.5px}.stats-band{margin:0 18px 38px;grid-template-columns:1fr}.home-stat{border-right:0;border-bottom:1px solid #1e2631}.home-stat:last-child{border-bottom:0}.home-footer{padding:24px 18px 34px;gap:20px;flex-direction:column}}

.user-hero-banner{background:
 radial-gradient(circle at 78% 20%,rgba(var(--accent-rgb),.25),transparent 34%),
 linear-gradient(135deg,rgba(var(--accent-rgb),.16),#121822 58%,#0d1218)}
.user-hero-avatar{background:
 radial-gradient(circle at 70% 25%,rgba(var(--accent-rgb),.26),transparent 38%),
 linear-gradient(145deg,#1a202b,#10151d)}


/* =========================================================
   V23 REPUTATION + LIVE PODIUM
   ========================================================= */
.podium{
  grid-template-columns:1fr 1.12fr 1fr!important;
  align-items:end!important;
}
.podium-user.second{order:1}
.podium-user.first{order:2;transform:translateY(-10px)}
.podium-user.third{order:3}

.podium-user.first .podium-avatar{
  width:78px!important;
  height:78px!important;
  border:2px solid rgba(var(--accent-rgb),.72)!important;
  box-shadow:0 0 32px rgba(var(--accent-rgb),.2)!important;
}
.podium-user.second .podium-avatar,
.podium-user.third .podium-avatar{
  width:60px!important;
  height:60px!important;
}
.podium-user.first .podium-name{
  color:#e3e7ed!important;
  font-size:11px!important;
}
.podium-user.first .podium-score{
  color:rgb(var(--accent-rgb))!important;
  font-weight:800!important;
}


/* =========================================================
   V24 APPEARANCE DESIGNER
   ========================================================= */
.appearance-shell{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(390px,.75fr);gap:18px;align-items:start}
.appearance-controls{display:flex;flex-direction:column;gap:14px}
.appearance-section{padding:20px}
.setting-help{margin-top:5px;color:#65707c;font-size:9px;line-height:1.55}
.setting-subtitle{margin:18px 0 9px;color:#687380;font-size:8px;font-weight:850;letter-spacing:1px;text-transform:uppercase}
.color-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.color-option{position:relative;min-height:92px!important;padding:12px!important;border:1px solid #202833;border-radius:12px!important;background:#0d131a;color:#aab2bc;text-align:left;cursor:pointer}
.color-option i{display:block;width:27px;height:27px;border-radius:50%;margin-bottom:9px;background:var(--swatch);box-shadow:0 0 16px color-mix(in srgb,var(--swatch) 40%,transparent)}
.color-option b,.choice b,.visual-option b{display:block;color:#cbd1d8;font-size:10px}
.color-option span,.choice span,.visual-option span{display:block;margin-top:4px;color:#606b77;font-size:8px;line-height:1.4}
.color-option.active,.choice.active,.visual-option.active{border-color:rgba(var(--accent-rgb),.55);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.14);background:rgba(var(--accent-rgb),.055)}
[data-plus]::after{content:"★";position:absolute;top:8px;right:9px;color:rgb(var(--accent-rgb));font-size:8px}
[data-plus].locked{opacity:.52}
[data-plus].locked::before{content:"PLUS";position:absolute;right:8px;bottom:8px;padding:3px 5px;border-radius:5px;background:rgba(var(--accent-rgb),.1);color:rgb(var(--accent-rgb));font-size:6px;font-weight:900;letter-spacing:.7px}
.visual-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.visual-option{position:relative;min-height:160px!important;padding:12px!important;border:1px solid #202833;border-radius:12px!important;background:#0d131a;text-align:left;cursor:pointer}
.mini-card{height:78px;border-radius:10px;margin-bottom:11px;border:1px solid rgba(255,255,255,.07)}
.void-mini{background:#0a0f15}.midnight-mini{background:linear-gradient(145deg,#151a28,#090d13)}.glass-mini{background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.025));backdrop-filter:blur(8px)}.neon-mini{background:#0b1017;box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.5),0 0 17px rgba(var(--accent-rgb),.13)}.cyber-mini{background:repeating-linear-gradient(90deg,#101720 0 10px,#0b1118 10px 20px)}
.visual-option em,.choice em{display:inline-flex;margin-top:7px;padding:3px 5px;border-radius:5px;background:rgba(var(--accent-rgb),.09);color:rgb(var(--accent-rgb));font-size:6px;font-style:normal;font-weight:900}
.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.choice{position:relative;min-height:76px!important;padding:11px!important;border:1px solid #202833;border-radius:11px!important;background:#0d131a;text-align:left;cursor:pointer}
.settings-stack{display:flex;flex-direction:column;gap:8px}
.appearance-savebar{position:sticky;bottom:14px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #27303c;border-radius:13px;background:rgba(11,16,22,.92);backdrop-filter:blur(14px);box-shadow:0 20px 50px rgba(0,0,0,.3)}
.appearance-savebar strong{display:block;color:#cbd1d8;font-size:10px}.appearance-savebar span{display:block;margin-top:3px;color:#626d79;font-size:8px}
.appearance-preview-wrap{min-width:0}.preview-sticky{position:sticky;top:24px}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.preview-heading strong{display:block;color:#cbd1d8;font-size:11px}.preview-heading span{display:block;margin-top:2px;color:#626d79;font-size:8px}.preview-live{color:#55df8c!important;font-size:7px!important;font-weight:900}
.profile-scene{padding:30px 20px;min-height:620px;border:1px solid #202833;border-radius:18px;background:#090d12;overflow:hidden;transition:.3s ease}
.profile-scene[data-background="grid"]{background-color:#090d12;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:28px 28px}
.profile-scene[data-background="stars"]{background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.22) 0 1px,transparent 1px),radial-gradient(circle at 70% 40%,rgba(var(--accent-rgb),.3) 0 1px,transparent 1px),#090d12;background-size:42px 42px,58px 58px}
.profile-scene[data-background="aurora"]{background:radial-gradient(circle at 15% 30%,rgba(var(--accent-rgb),.25),transparent 30%),radial-gradient(circle at 80% 70%,rgba(70,200,220,.17),transparent 36%),#090d12}
.designer-card{width:min(440px,100%);margin:auto;transition:.25s ease}
.designer-card[data-style="midnight"]{background:#090d14}.designer-card[data-style="glass"]{background:rgba(17,23,32,.72);backdrop-filter:blur(18px)}.designer-card[data-style="neon"]{box-shadow:0 0 0 1px rgba(var(--accent-rgb),.55),0 0 34px rgba(var(--accent-rgb),.15)}.designer-card[data-style="cyber"]{border-radius:8px}
.designer-card[data-effect="shadow"]{box-shadow:0 28px 60px rgba(0,0,0,.42)}.designer-card[data-effect="glow"]{box-shadow:0 0 42px rgba(var(--accent-rgb),.22)}.designer-card[data-effect="holographic"]{box-shadow:0 0 36px rgba(var(--accent-rgb),.14);background-image:linear-gradient(135deg,rgba(255,255,255,.04),transparent 40%,rgba(var(--accent-rgb),.08))}.designer-card[data-density="compact"] .profile-content{padding:0 14px 14px}.designer-card[data-density="compact"] .section-label{margin-top:12px}
.designer-banner[data-banner="grid"]{background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px),radial-gradient(circle at 70% 25%,rgba(var(--accent-rgb),.4),transparent 40%);background-size:22px 22px,22px 22px,auto}.designer-banner[data-banner="clean"]{background:#151b24}.designer-banner[data-banner="aurora"]{background:radial-gradient(circle at 25% 30%,rgba(var(--accent-rgb),.58),transparent 34%),radial-gradient(circle at 75% 45%,rgba(70,210,220,.34),transparent 38%),#171c27}.designer-banner[data-banner="pulse"]{background:radial-gradient(circle at 50% 50%,rgba(var(--accent-rgb),.65),transparent 42%),#131923}.designer-banner[data-banner="stars"]{background:radial-gradient(circle,rgba(255,255,255,.6) 0 1px,transparent 1px),linear-gradient(135deg,rgba(var(--accent-rgb),.25),#151b25);background-size:28px 28px,auto}
.designer-avatar[data-frame="simple"]{box-shadow:0 0 0 2px var(--accent)}.designer-avatar[data-frame="glow"]{box-shadow:0 0 0 2px var(--accent),0 0 25px rgba(var(--accent-rgb),.42)}.designer-avatar[data-frame="halo"]{box-shadow:0 0 0 5px rgba(var(--accent-rgb),.16),0 0 28px rgba(var(--accent-rgb),.3)}.designer-avatar[data-frame="diamond"]{transform:rotate(45deg);border-radius:14px!important}
.designer-links[data-links="outline"] a{background:transparent}.designer-links[data-links="glass"] a{background:rgba(255,255,255,.04);backdrop-filter:blur(8px)}.designer-links[data-links="pill"] a{border-radius:999px}.designer-links[data-links="neon"] a{border-color:rgba(var(--accent-rgb),.5);box-shadow:0 0 15px rgba(var(--accent-rgb),.08)}
.preview-chip{display:inline-flex;padding:5px 7px;border-radius:6px;background:rgba(var(--accent-rgb),.08);color:rgb(var(--accent-rgb));font-size:7px;font-weight:900}.preview-project{padding:12px;border:1px solid #222a35;border-radius:10px;color:#9aa4af;font-size:9px}.preview-project span{float:right;color:rgb(var(--accent-rgb));font-size:7px}.plus-callout{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:12px;padding:14px;border:1px solid rgba(var(--accent-rgb),.16);border-radius:12px;background:rgba(var(--accent-rgb),.045)}.plus-callout b{display:block;color:#cbd1d8;font-size:9px}.plus-callout span{display:block;margin-top:4px;color:#65707c;font-size:8px;line-height:1.5}
@media(max-width:1150px){.appearance-shell{grid-template-columns:1fr}.preview-sticky{position:relative;top:auto}.appearance-preview-wrap{order:-1}.profile-scene{min-height:auto}.color-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:720px){.color-grid{grid-template-columns:repeat(2,1fr)}.visual-option-grid,.choice-grid{grid-template-columns:1fr 1fr}}

/* Homepage auth modal reliability */
.auth-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(3,6,10,.72);backdrop-filter:blur(10px)}
.auth-modal.show{display:flex}
.auth-card{width:min(430px,100%);padding:22px;border:1px solid #28303c;border-radius:18px;background:#0d1218;box-shadow:0 30px 100px rgba(0,0,0,.55)}
.auth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.auth-head h2{font-size:24px;color:#e3e7ed}.auth-head p{margin-top:5px;color:#697480;font-size:9px}.close-auth{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border:1px solid #252d38;border-radius:10px!important;background:#121820;color:#a0a9b4;cursor:pointer}
.auth-card .lab{display:block;margin:12px 0 6px;color:#798490;font-size:8px;font-weight:850;letter-spacing:.8px;text-transform:uppercase}.auth-input{width:100%;padding:0 12px;border:1px solid #242d38;background:#0a0f15;color:#dce1e8;outline:none}.auth-input:focus{border-color:rgba(var(--accent-rgb),.42);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.05)}.auth-card [hidden]{display:none!important}.msg{min-height:18px;margin-top:11px;color:#74808c;font-size:9px}.msg.bad{color:#ec7b91}.msg.good{color:#63dda0}


/* =========================================================
   V26 LIVE TOP 3 + UNIQUE VISITS
   ========================================================= */
.podium{
  display:grid!important;
  grid-template-columns:1fr 1.12fr 1fr!important;
  align-items:end!important;
}
.podium-user.second,
.podium-user.first,
.podium-user.third{
  order:initial!important;
}
.podium-user.first{
  transform:translateY(-10px);
}
.podium-user.first .podium-avatar{
  width:78px!important;
  height:78px!important;
  border:2px solid rgba(var(--accent-rgb),.72)!important;
  box-shadow:0 0 30px rgba(var(--accent-rgb),.18)!important;
}
.podium-user.second .podium-avatar,
.podium-user.third .podium-avatar{
  width:60px!important;
  height:60px!important;
}


/* =========================================================
   V27 ONE PROFILE SYSTEM
   ========================================================= */

/* Sticky Appearance preview follows the editor all the way down. */
.appearance-shell{align-items:stretch!important}
.appearance-preview-wrap{align-self:stretch!important;position:relative!important;min-height:100%!important}
.preview-sticky{
  position:sticky!important;
  top:18px!important;
  max-height:calc(100vh - 36px);
  overflow-y:auto;
  scrollbar-width:thin;
  padding-right:3px;
}
.preview-sticky::-webkit-scrollbar{width:4px}
.preview-sticky::-webkit-scrollbar-thumb{background:rgba(var(--accent-rgb),.18);border-radius:99px}

/* The same scene/card rules are used by Appearance, My Profile and Public Profile. */
.unified-profile-page{display:flex;justify-content:center}
.unified-profile-scene{
  width:min(680px,100%);
  padding:32px;
  border:1px solid #202833;
  border-radius:20px;
  background:#090d12;
  transition:.25s ease;
}
.unified-profile-card{width:min(520px,100%);margin:auto;transition:.25s ease}
.unified-profile-banner{transition:.25s ease}
.unified-profile-avatar{transition:.25s ease}
.empty-copy{color:#626c78;font-size:10px}
.unified-project-list{display:flex;flex-direction:column;gap:8px}
.unified-project{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px;border:1px solid #222a35;border-radius:10px;
  color:#aab3bd;text-decoration:none;font-size:9px;background:#0d1319
}
.unified-project span{color:rgb(var(--accent-rgb));font-size:7px}
.unified-rep{min-height:110px}

/* Shared background choices */
.profile-scene[data-background="grid"],
.unified-profile-scene[data-background="grid"]{
  background-color:#090d12;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:28px 28px
}
.profile-scene[data-background="stars"],
.unified-profile-scene[data-background="stars"]{
  background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.22) 0 1px,transparent 1px),
  radial-gradient(circle at 70% 40%,rgba(var(--accent-rgb),.3) 0 1px,transparent 1px),#090d12;
  background-size:42px 42px,58px 58px
}
.profile-scene[data-background="aurora"],
.unified-profile-scene[data-background="aurora"]{
  background:radial-gradient(circle at 15% 30%,rgba(var(--accent-rgb),.25),transparent 30%),
  radial-gradient(circle at 80% 70%,rgba(70,200,220,.17),transparent 36%),#090d12
}

/* Shared profile surface choices */
.profile-card[data-style="midnight"]{background:#090d14}
.profile-card[data-style="glass"]{background:rgba(17,23,32,.72);backdrop-filter:blur(18px)}
.profile-card[data-style="neon"]{box-shadow:0 0 0 1px rgba(var(--accent-rgb),.55),0 0 34px rgba(var(--accent-rgb),.15)}
.profile-card[data-style="cyber"]{border-radius:8px}

.profile-card[data-effect="shadow"]{box-shadow:0 28px 60px rgba(0,0,0,.42)}
.profile-card[data-effect="glow"]{box-shadow:0 0 42px rgba(var(--accent-rgb),.22)}
.profile-card[data-effect="holographic"]{
  box-shadow:0 0 36px rgba(var(--accent-rgb),.14);
  background-image:linear-gradient(135deg,rgba(255,255,255,.04),transparent 40%,rgba(var(--accent-rgb),.08))
}
.profile-card[data-effect="tilt"]{transform:perspective(1000px) rotateX(1deg) rotateY(-1.5deg)}

.profile-card[data-density="compact"] .profile-content{padding-left:14px;padding-right:14px;padding-bottom:14px}
.profile-card[data-density="compact"] .section-label{margin-top:12px}

/* Shared banner styles; uploaded image still wins via inline background-image. */
[data-profile-banner][data-banner="gradient"]:not([style*="background-image: url"]){
  background:radial-gradient(circle at 72% 28%,rgba(var(--accent-rgb),.48),transparent 38%),linear-gradient(135deg,#191f2a,#10151d)
}
[data-profile-banner][data-banner="grid"]:not([style*="background-image: url"]){
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px),radial-gradient(circle at 70% 25%,rgba(var(--accent-rgb),.4),transparent 40%);
  background-size:22px 22px,22px 22px,auto
}
[data-profile-banner][data-banner="clean"]:not([style*="background-image: url"]){background:#151b24}
[data-profile-banner][data-banner="aurora"]:not([style*="background-image: url"]){
  background:radial-gradient(circle at 25% 30%,rgba(var(--accent-rgb),.58),transparent 34%),radial-gradient(circle at 75% 45%,rgba(70,210,220,.34),transparent 38%),#171c27
}
[data-profile-banner][data-banner="pulse"]:not([style*="background-image: url"]){
  background:radial-gradient(circle at 50% 50%,rgba(var(--accent-rgb),.65),transparent 42%),#131923
}
[data-profile-banner][data-banner="stars"]:not([style*="background-image: url"]){
  background:radial-gradient(circle,rgba(255,255,255,.6) 0 1px,transparent 1px),linear-gradient(135deg,rgba(var(--accent-rgb),.25),#151b25);
  background-size:28px 28px,auto
}

/* Shared avatar frames */
[data-profile-avatar][data-frame="simple"]{box-shadow:0 0 0 2px var(--accent)}
[data-profile-avatar][data-frame="glow"]{box-shadow:0 0 0 2px var(--accent),0 0 25px rgba(var(--accent-rgb),.42)}
[data-profile-avatar][data-frame="halo"]{box-shadow:0 0 0 5px rgba(var(--accent-rgb),.16),0 0 28px rgba(var(--accent-rgb),.3)}
[data-profile-avatar][data-frame="diamond"]{box-shadow:0 0 0 2px var(--accent),0 0 20px rgba(var(--accent-rgb),.22)}

/* Shared links */
[data-profile-links][data-links="outline"] a{background:transparent}
[data-profile-links][data-links="glass"] a{background:rgba(255,255,255,.04);backdrop-filter:blur(8px)}
[data-profile-links][data-links="pill"] a{border-radius:999px}
[data-profile-links][data-links="neon"] a{border-color:rgba(var(--accent-rgb),.5);box-shadow:0 0 15px rgba(var(--accent-rgb),.08)}

/* Shared motion */
[data-motion="none"] *{transition:none!important;animation:none!important}
[data-motion="full"] .profile-card[data-effect="glow"]{animation:nbProfileGlow 2.8s ease-in-out infinite}
@keyframes nbProfileGlow{
  0%,100%{box-shadow:0 0 34px rgba(var(--accent-rgb),.16)}
  50%{box-shadow:0 0 52px rgba(var(--accent-rgb),.3)}
}

@media(max-width:1150px){
  .preview-sticky{position:relative!important;top:auto!important;max-height:none;overflow:visible}
}


/* =========================================================
   V28 CHAT + IDENTITY PREVIEW + CUSTOM HEX
   ========================================================= */

/* custom profile background */
.profile-scene,.unified-profile-scene{background-color:var(--profile-bg,#090d12)}
.profile-scene[data-background="none"],.unified-profile-scene[data-background="none"]{background:var(--profile-bg,#090d12)!important}
.profile-scene[data-background="grid"],.unified-profile-scene[data-background="grid"]{
  background-color:var(--profile-bg,#090d12)!important
}
.profile-scene[data-background="stars"],.unified-profile-scene[data-background="stars"]{
  background-color:var(--profile-bg,#090d12)!important
}
.profile-scene[data-background="aurora"],.unified-profile-scene[data-background="aurora"]{
  background-color:var(--profile-bg,#090d12)!important
}
.hex-color-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:8px;align-items:center}
.hex-color-row input[type="color"]{width:54px;height:44px;padding:4px;border:1px solid #26303b;border-radius:10px;background:#0d131a;cursor:pointer}
.hex-input-wrap{display:flex;align-items:center;border:1px solid #26303b;border-radius:10px;background:#0d131a;overflow:hidden}
.hex-input-wrap span{padding-left:12px;color:#66727e;font-size:11px}
.hex-input-wrap .input{border:0!important;background:transparent!important;box-shadow:none!important}

/* identity editor */
.identity-editor{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(380px,.94fr);gap:18px;align-items:start}
.identity-form-col{display:flex;flex-direction:column;gap:14px}
.identity-preview-col{position:relative}.identity-preview-sticky{position:sticky;top:18px}
.field-label{display:flex;justify-content:space-between;align-items:center}.field-label small{color:#596571;font-size:8px;font-weight:500}
.input-prefix{display:flex;align-items:center;border:1px solid #242d38;border-radius:10px;background:#0a0f15;overflow:hidden}
.input-prefix>span{padding-left:12px;color:#65717d;font-size:11px}.input-prefix .input{border:0!important;background:transparent!important;box-shadow:none!important}
.identity-save{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:13px;border:1px solid #242d38;border-radius:11px;background:#0c1218}
.identity-save strong{display:block;color:#cbd2da;font-size:9px}.identity-save span{display:block;margin-top:4px;color:#626e7a;font-size:8px}
.identity-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.identity-upload{display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center;padding:11px;border:1px solid #242d38;border-radius:12px;background:#0c1218;cursor:pointer}
.identity-upload-preview{width:54px;height:54px;border-radius:13px;background:#171e28 center/cover no-repeat;border:1px solid #29323f}.identity-upload-preview.banner-small{border-radius:8px}
.identity-upload strong{display:block;color:#cbd2d9;font-size:9px}.identity-upload span{display:block;margin-top:3px;color:#626e79;font-size:7px}.identity-upload b{grid-column:2;color:rgb(var(--accent-rgb));font-size:8px}
.pending-media{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border:1px solid rgba(var(--accent-rgb),.2);border-radius:10px;background:rgba(var(--accent-rgb),.04);color:#7a8591;font-size:8px}

/* chat */
.chat-main-inner{height:100vh;display:flex;flex-direction:column;padding-bottom:18px!important}
.chat-main-inner .topbar{flex:0 0 auto}.chat-shell{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px}
.chat-panel{min-height:0;display:flex;flex-direction:column;border:1px solid #202833;border-radius:15px;background:#0b1016;overflow:hidden}
.chat-head{height:58px;flex:0 0 58px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #202833}
.chat-head strong{display:block;color:#d2d8df;font-size:10px}.chat-head span{display:block;margin-top:3px;color:#626e7a;font-size:8px}
.chat-online{display:flex;align-items:center;gap:7px;color:#76818d;font-size:9px}.chat-online b{color:#cbd2d9}
.chat-messages{flex:1;min-height:0;overflow-y:auto;padding:14px;scrollbar-width:thin}
.chat-loading{padding:30px;text-align:center;color:#65717d;font-size:9px}
.chat-message{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:9px 8px;border-radius:10px}.chat-message:hover{background:rgba(255,255,255,.018)}
.chat-avatar{width:38px;height:38px;border-radius:11px;background:radial-gradient(circle at 70% 25%,rgba(var(--accent-rgb),.28),transparent 35%),#171e28;border:1px solid #2a3440}
.chat-message-meta{display:flex;align-items:center;gap:6px;min-width:0}.chat-message-meta a{color:#d4d9df;text-decoration:none;font-size:9px;font-weight:800}.chat-message-meta span{color:#596571;font-size:8px}.chat-message-meta time{margin-left:auto;color:#505b67;font-size:7px}.chat-message-meta em{padding:2px 4px;border-radius:4px;background:rgba(var(--accent-rgb),.1);color:rgb(var(--accent-rgb));font-size:5px;font-style:normal;font-weight:900}
.chat-text{margin-top:5px;color:#aab3bd;font-size:10px;line-height:1.55;white-space:pre-wrap;word-break:break-word}
.chat-replied{margin-top:5px;padding:5px 7px;border-left:2px solid rgba(var(--accent-rgb),.45);background:rgba(var(--accent-rgb),.035);color:#687481;font-size:7px}
.chat-actions{display:flex;gap:8px;margin-top:5px;opacity:0}.chat-message:hover .chat-actions{opacity:1}.chat-actions button{padding:0;border:0;background:none;color:#65717d;font-size:7px;cursor:pointer}.chat-actions button:hover{color:rgb(var(--accent-rgb))}
.chat-reply{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;border-top:1px solid #202833;background:#0e141b;color:#74808c;font-size:8px}.chat-reply b{color:#bfc6ce}.chat-reply span{display:block;margin-top:2px;max-width:500px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-reply button{border:0;background:none;color:#75808c;cursor:pointer}
.chat-compose{flex:0 0 auto;padding:10px 12px;border-top:1px solid #202833;background:#0c1218}.chat-compose textarea{width:100%;height:64px;resize:none;padding:11px;border:1px solid #252e39;border-radius:10px;background:#090e14;color:#d2d7de;outline:none;font:inherit;font-size:10px}.chat-compose textarea:focus{border-color:rgba(var(--accent-rgb),.4)}
.chat-compose-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.chat-compose-bottom span{color:#596571;font-size:7px}
.chat-side{min-width:0}.chat-info-row{padding:12px 0;border-bottom:1px solid #202833}.chat-info-row:last-child{border-bottom:0}.chat-info-row strong{display:block;color:#bfc6ce;font-size:9px}.chat-info-row span{display:block;margin-top:4px;color:#626e7a;font-size:8px;line-height:1.5}

@media(max-width:1050px){.identity-editor{grid-template-columns:1fr}.identity-preview-col{order:-1}.identity-preview-sticky{position:relative;top:auto}.chat-shell{grid-template-columns:1fr}.chat-side{display:none}}
@media(max-width:650px){.identity-media-grid{grid-template-columns:1fr}.hex-color-row{grid-template-columns:48px 1fr}.hex-color-row .btn{grid-column:1/-1}.chat-main-inner{height:auto;min-height:100vh}.chat-panel{height:75vh}}


/* =========================================================
   V29 EDIT IDENTITY FIX
   ========================================================= */
.identity-editor{
  align-items:stretch!important;
}
.identity-preview-col{
  position:relative!important;
  align-self:stretch!important;
  min-height:100%!important;
}
.identity-preview-sticky{
  position:sticky!important;
  top:18px!important;
  max-height:calc(100vh - 36px)!important;
  overflow-y:auto!important;
  scrollbar-width:thin;
  padding-right:3px;
}
.identity-preview-sticky::-webkit-scrollbar{
  width:4px;
}
.identity-preview-sticky::-webkit-scrollbar-thumb{
  background:rgba(var(--accent-rgb),.18);
  border-radius:99px;
}

/* Prevent ancestors from breaking CSS sticky. */
.identity-editor,
.identity-form-col,
.identity-preview-col{
  overflow:visible!important;
}

/* Make preview slightly more compact so it stays useful on shorter screens. */
.identity-preview-sticky .unified-profile-scene{
  padding:24px!important;
}
.identity-preview-sticky .unified-profile-card{
  width:min(500px,100%)!important;
}

@media(max-width:1050px){
  .identity-preview-sticky{
    position:relative!important;
    top:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
}

/* V31 CHAT READABILITY + REPLY EMPHASIS */
.chat-messages{padding:10px 12px!important}
.chat-message{position:relative;grid-template-columns:34px minmax(0,1fr)!important;gap:9px!important;padding:6px 8px!important;margin:0!important;border:1px solid transparent;border-radius:9px!important}
.chat-message + .chat-message{margin-top:2px!important}
.chat-message:hover{background:rgba(255,255,255,.025)!important}
.chat-avatar{width:34px!important;height:34px!important;border-radius:10px!important}
.chat-message-body{min-width:0;padding-top:1px}
.chat-message-meta{min-height:14px;gap:5px!important}
.chat-message-meta a{font-size:9.5px!important}.chat-message-meta span{font-size:7.5px!important}.chat-message-meta time{font-size:7px!important}
.chat-text{margin-top:2px!important;color:#c1c8d0!important;font-size:9.5px!important;line-height:1.38!important}
.chat-message:has(.chat-replied){margin-top:5px!important;padding:8px!important;border-color:rgba(var(--accent-rgb),.18);background:linear-gradient(90deg,rgba(var(--accent-rgb),.055),rgba(var(--accent-rgb),.012) 58%,transparent)}
.chat-message:has(.chat-replied):hover{border-color:rgba(var(--accent-rgb),.32);background:linear-gradient(90deg,rgba(var(--accent-rgb),.09),rgba(var(--accent-rgb),.025) 60%,transparent)!important}
.chat-replied{margin:2px 0 5px!important;padding:7px 9px 7px 11px!important;border:1px solid rgba(var(--accent-rgb),.18)!important;border-left:3px solid rgb(var(--accent-rgb))!important;border-radius:7px!important;background:rgba(var(--accent-rgb),.07)!important;color:#aeb8c2!important;font-size:7.5px!important;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-actions{margin-top:2px!important}
.chat-reply{padding:9px 14px!important;border-top:1px solid rgba(var(--accent-rgb),.3)!important;border-left:3px solid rgb(var(--accent-rgb));background:linear-gradient(90deg,rgba(var(--accent-rgb),.11),#0e141b 48%)!important}
.chat-reply b{color:rgb(var(--accent-rgb))!important}.chat-reply span{margin-top:3px!important;color:#a9b3bd}
\n\n/* =========================================================\n   V32 PROFILE CARD HEX BACKGROUND FIX\n   background_hex colours the profile itself, never its outer scene.\n   ========================================================= */\n.profile-scene,.unified-profile-scene{\n  --profile-bg:#090d12;\n  background-color:#090d12!important\n}\n.profile-scene[data-background="none"],.unified-profile-scene[data-background="none"]{background:#090d12!important}\n.profile-scene[data-background="grid"],.unified-profile-scene[data-background="grid"]{\n  background-color:#090d12!important;\n  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px)!important;\n  background-size:28px 28px!important\n}\n.profile-scene[data-background="stars"],.unified-profile-scene[data-background="stars"]{\n  background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.22) 0 1px,transparent 1px),radial-gradient(circle at 70% 40%,rgba(var(--accent-rgb),.3) 0 1px,transparent 1px),#090d12!important;\n  background-size:42px 42px,58px 58px!important\n}\n.profile-scene[data-background="aurora"],.unified-profile-scene[data-background="aurora"]{\n  background:radial-gradient(circle at 15% 30%,rgba(var(--accent-rgb),.25),transparent 30%),radial-gradient(circle at 80% 70%,rgba(70,200,220,.17),transparent 36%),#090d12!important\n}\n.profile-card{background-color:var(--profile-card-bg,#0d131a)!important}\n.profile-card[data-style="midnight"]{background-color:var(--profile-card-bg,#090d14)!important}\n.profile-card[data-style="glass"]{background-color:color-mix(in srgb,var(--profile-card-bg,#111720) 82%,transparent)!important}\n.profile-card[data-tone="light"]{color:#151a20}\n.profile-card[data-tone="light"] .profile-name,.profile-card[data-tone="light"] h1,.profile-card[data-tone="light"] h2,.profile-card[data-tone="light"] h3,.profile-card[data-tone="light"] strong{color:#10151b}\n.profile-card[data-tone="light"] .profile-handle,.profile-card[data-tone="light"] .section-label,.profile-card[data-tone="light"] .empty-copy,.profile-card[data-tone="light"] p{color:#58616c}\n.profile-card[data-tone="light"] .profile-status,.profile-card[data-tone="light"] .unified-project,.profile-card[data-tone="light"] [data-profile-links] a,.profile-card[data-tone="light"] .preview-project{background:rgba(0,0,0,.035);border-color:rgba(0,0,0,.13);color:#303943}\n

/* =========================================================
   V33 ONLINE PRESENCE + REAL PROFILE HEX + REPLY CANCEL
   ========================================================= */

/* Users are NOT online by default anymore. */
.rank-avatar::after{
  display:none!important;
}
.rank-avatar.is-online::after{
  display:block!important;
  content:"";
  position:absolute;
  width:9px;
  height:9px;
  right:1px;
  bottom:2px;
  border-radius:50%;
  border:2px solid #0d1218;
  background:#49df8a;
  box-shadow:0 0 10px rgba(73,223,138,.35);
}
.rank-avatar.is-offline::after{
  display:block!important;
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  right:1px;
  bottom:2px;
  border-radius:50%;
  border:2px solid #0d1218;
  background:#5d6672;
  box-shadow:none;
}
.presence-text{
  font-style:normal;
  font-size:7px;
  font-weight:700;
}
.presence-text.online{color:#55df8c}
.presence-text.offline{color:#626d79}

/* Podium gets real presence too. */
.podium-avatar{position:relative}
.podium-avatar::after{
  content:"";
  position:absolute;
  right:0;
  bottom:1px;
  width:9px;
  height:9px;
  border-radius:50%;
  border:2px solid #10151c;
  background:#5d6672;
}
.podium-avatar.is-online::after{
  background:#49df8a;
  box-shadow:0 0 10px rgba(73,223,138,.35);
}

/* Outer preview/scene stays a neutral stage. */
.profile-scene,
.unified-profile-scene{
  background-color:#090d12!important;
}

/* The HEX value is the ACTUAL INNER PROFILE CARD. */
.profile-card{
  background:var(--profile-card-bg,#0d131a)!important;
  background-color:var(--profile-card-bg,#0d131a)!important;
}
.profile-card[data-style="void"],
.profile-card[data-style="midnight"],
.profile-card[data-style="glass"],
.profile-card[data-style="neon"],
.profile-card[data-style="cyber"]{
  background:var(--profile-card-bg,#0d131a)!important;
  background-color:var(--profile-card-bg,#0d131a)!important;
}

/* Keep profile readable on bright custom colors. */
.profile-card[data-tone="light"] .profile-name,
.profile-card[data-tone="light"] .handle,
.profile-card[data-tone="light"] .profile-bio,
.profile-card[data-tone="light"] .section-label,
.profile-card[data-tone="light"] .empty-copy,
.profile-card[data-tone="light"] .profile-content{
  color:#151a20!important;
}
.profile-card[data-tone="light"] .handle,
.profile-card[data-tone="light"] .section-label,
.profile-card[data-tone="light"] .empty-copy{
  color:#5f6872!important;
}
.profile-card[data-tone="light"] .status-box,
.profile-card[data-tone="light"] .profile-links a,
.profile-card[data-tone="light"] .unified-project,
.profile-card[data-tone="light"] .preview-project,
.profile-card[data-tone="light"] .badge,
.profile-card[data-tone="light"] .metric-card,
.profile-card[data-tone="light"] .user-score-box,
.profile-card[data-tone="light"] .user-hero-stat{
  background:rgba(0,0,0,.045)!important;
  border-color:rgba(0,0,0,.14)!important;
  color:#27303a!important;
}

/* Reply close button must visibly behave like a button. */
#cancelReply{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
  border:1px solid rgba(var(--accent-rgb),.2);
  border-radius:8px;
  background:rgba(var(--accent-rgb),.06);
  color:#aeb8c3;
  cursor:pointer;
  pointer-events:auto!important;
}
#cancelReply:hover{
  background:rgba(var(--accent-rgb),.14);
  color:#fff;
  border-color:rgba(var(--accent-rgb),.36);
}


/* =========================================================
   V34 REPLY CANCEL HARD FIX
   ========================================================= */
.chat-reply{
  position:relative!important;
  z-index:20!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:58px!important;
  overflow:visible!important;
}
.chat-reply[hidden]{
  display:none!important;
}
.chat-reply-copy{
  min-width:0;
  flex:1;
  padding-right:48px;
}
.chat-reply-copy small{
  display:block;
  color:#7d8995;
  font-size:7px;
}
.chat-reply-copy b{
  color:rgb(var(--accent-rgb))!important;
}
.chat-reply-copy span{
  display:block;
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#aab4bf;
  font-size:8px;
}
#cancelReply{
  position:absolute!important;
  top:50%!important;
  right:12px!important;
  transform:translateY(-50%)!important;
  z-index:999!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  user-select:none!important;
  cursor:pointer!important;
  border:1px solid rgba(var(--accent-rgb),.34)!important;
  border-radius:9px!important;
  background:#111a20!important;
  color:#aeb8c3!important;
}
#cancelReply:hover{
  color:#fff!important;
  background:rgba(var(--accent-rgb),.16)!important;
  border-color:rgba(var(--accent-rgb),.55)!important;
}


/* =========================================================
   V35 PRESENCE DOT POSITION / CLIPPING FIX
   ========================================================= */

/* Do not clip the online/offline indicator. */
.rank-avatar{
  overflow:visible!important;
}

/* Keep the actual avatar image visually circular. */
.rank-avatar{
  background-clip:padding-box!important;
}

/* Place the dot ON the edge instead of half outside the box. */
.rank-avatar.is-online::after,
.rank-avatar.is-offline::after{
  right:-1px!important;
  bottom:-1px!important;
  width:10px!important;
  height:10px!important;
  border:3px solid #0d1218!important;
  box-sizing:content-box!important;
  z-index:5!important;
}

/* Slightly larger avatar space so the dot never collides with text. */
.rank-profile{
  column-gap:12px!important;
}

/* Podium dots: same treatment. */
.podium-avatar{
  overflow:visible!important;
}
.podium-avatar::after{
  right:-2px!important;
  bottom:-1px!important;
  width:10px!important;
  height:10px!important;
  border:3px solid #10151c!important;
  z-index:5!important;
}

/* When an avatar has a real image, retain the circular crop cleanly. */
.rank-avatar[style*="background-image"],
.podium-avatar[style*="background-image"]{
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}

/* v1.1 UPDATE SYSTEM */
.nav a{position:relative}
.nav-new{margin-left:auto;padding:3px 6px;border-radius:999px;background:rgba(var(--accent-rgb),.14);border:1px solid rgba(var(--accent-rgb),.2);color:rgb(var(--accent-rgb));font-size:6px;font-weight:900;letter-spacing:.7px}
.nav a[href="updates.html"] .nav-icon{color:rgb(var(--accent-rgb))}
.dashboard-update-banner{min-height:78px;margin-bottom:14px;padding:14px 16px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid rgba(var(--accent-rgb),.2);border-radius:14px;text-decoration:none;background:radial-gradient(circle at 85% 0%,rgba(var(--accent-rgb),.12),transparent 35%),linear-gradient(180deg,rgba(var(--accent-rgb),.04),transparent),#0d1319;transition:.18s ease}
.dashboard-update-banner:hover{transform:translateY(-1px);border-color:rgba(var(--accent-rgb),.36)}
.dashboard-update-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:rgba(var(--accent-rgb),.1);color:rgb(var(--accent-rgb));font-size:14px}
.dashboard-update-copy>div{display:flex;align-items:center;gap:9px}
.dashboard-update-copy span{padding:3px 6px;border-radius:5px;background:rgba(var(--accent-rgb),.12);color:rgb(var(--accent-rgb));font-size:6px;font-weight:900;letter-spacing:.8px}
.dashboard-update-copy b{color:#d7dce2;font-size:10px}.dashboard-update-copy p{margin-top:4px;color:#697480;font-size:8px}.dashboard-update-action{color:rgb(var(--accent-rgb));font-size:8px;font-weight:800}
.update-version-chip{padding:7px 10px;border:1px solid rgba(var(--accent-rgb),.2);border-radius:9px;background:rgba(var(--accent-rgb),.05);color:rgb(var(--accent-rgb));font-size:8px;font-weight:900;letter-spacing:.8px}
.update-hero{position:relative;min-height:220px;padding:30px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;border:1px solid rgba(var(--accent-rgb),.18);border-radius:18px;background:radial-gradient(circle at 75% 20%,rgba(var(--accent-rgb),.24),transparent 34%),radial-gradient(circle at 10% 100%,rgba(var(--accent-rgb),.08),transparent 38%),#0d1319}
.update-eyebrow{color:rgb(var(--accent-rgb));font-size:8px;font-weight:900;letter-spacing:1.5px}.update-hero h2{margin-top:9px;color:#e1e5ea;font-size:32px;letter-spacing:-1px}.update-hero p{max-width:620px;margin-top:10px;color:#7b8591;font-size:10px;line-height:1.7}
.update-hero-badge{width:110px;height:110px;display:grid;place-items:center;border-radius:28px;border:1px solid rgba(var(--accent-rgb),.28);background:rgba(var(--accent-rgb),.08);color:rgb(var(--accent-rgb));font-size:27px;font-weight:950}
.updates-feed{display:flex;flex-direction:column;gap:10px;margin-top:14px}.update-card{padding:18px;border:1px solid #202833;border-radius:14px;background:#0d1319}.update-card.latest{border-color:rgba(var(--accent-rgb),.26);background:linear-gradient(90deg,rgba(var(--accent-rgb),.05),transparent 42%),#0d1319}
.update-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.update-card-head>div{display:flex;align-items:center;gap:8px}.update-tag{padding:4px 6px;border-radius:5px;background:rgba(var(--accent-rgb),.12);color:rgb(var(--accent-rgb));font-size:6px;font-weight:900;letter-spacing:.8px}.update-tag.subtle{background:#141b23;color:#74808b}.update-card h3{color:#d1d6dd;font-size:11px}.update-card time{color:#5d6873;font-size:7px}.update-card>p{margin-top:9px;color:#7b8590;font-size:9px;line-height:1.6}
.update-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px}.update-items>div{padding:9px 10px;display:flex;align-items:center;gap:8px;border:1px solid #202833;border-radius:9px;background:#0b1117;color:#8d97a2;font-size:8px}.update-items b{color:rgb(var(--accent-rgb))}
@media(max-width:700px){.dashboard-update-banner{grid-template-columns:36px 1fr}.dashboard-update-action{grid-column:2}.update-hero{padding:22px}.update-hero-badge{display:none}.update-items{grid-template-columns:1fr}}


/* =========================================================
   v1.2 CHAT — TYPING + DUPLICATE PROTECTION UI
   ========================================================= */
.typing-indicator{
  min-height:34px;
  padding:7px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  border-top:1px solid #202833;
  background:#0c1218;
  color:#77838f;
  font-size:8px;
}
.typing-indicator[hidden]{display:none!important}
.typing-indicator b{font-weight:600;color:#8995a1}
.typing-dots{display:inline-flex;gap:3px;align-items:center}
.typing-dots i{
  width:4px;height:4px;
  border-radius:50%;
  background:rgb(var(--accent-rgb));
  opacity:.35;
  animation:nbTyping 1s infinite ease-in-out;
}
.typing-dots i:nth-child(2){animation-delay:.15s}
.typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes nbTyping{
  0%,60%,100%{transform:translateY(0);opacity:.3}
  30%{transform:translateY(-3px);opacity:1}
}
#sendMessage:disabled{
  opacity:.55;
  cursor:wait;
}
/* v1.2 messaging + admin */
.dm-layout{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:16px;min-height:620px}.dm-list{display:flex;flex-direction:column;gap:8px}.dm-item{display:block;padding:13px;border:1px solid var(--border,#202632);border-radius:14px;text-decoration:none;color:inherit;background:rgba(255,255,255,.018)}.dm-item.active{border-color:rgba(var(--accent-rgb),.65);background:rgba(var(--accent-rgb),.08)}.dm-item strong,.dm-item span{display:block}.dm-item span{color:#7f8997;font-size:12px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-thread{display:flex;flex-direction:column;min-width:0}.dm-messages{flex:1;min-height:420px;max-height:580px;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:9px}.dm-bubble{max-width:75%;padding:10px 12px;border-radius:15px;background:#151b24;border:1px solid #222b37}.dm-bubble.mine{align-self:flex-end;background:rgba(var(--accent-rgb),.13);border-color:rgba(var(--accent-rgb),.35)}.dm-bubble small{display:block;color:#707b89;margin-top:5px}.dm-compose{display:flex;gap:8px;padding:12px;border-top:1px solid #202632}.dm-compose input{flex:1;min-width:0}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #202632}.settings-row select{min-width:180px}.admin-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.admin-user-actions{display:flex;gap:6px;flex-wrap:wrap}.tiny-btn{border:1px solid #2a3442;background:#141a22;color:#c9d0da;border-radius:9px;padding:7px 9px;cursor:pointer}.tiny-btn.danger{border-color:#63303a;color:#ff9aaa}@media(max-width:850px){.dm-layout{grid-template-columns:1fr}.admin-stat-grid{grid-template-columns:repeat(2,1fr)}}
