:root{
  --v2-bg:#07101b;
  --v2-panel:#0d1825;
  --v2-panel2:#111f2f;
  --v2-line:rgba(255,255,255,.08);
  --v2-text:#f4f7fb;
  --v2-muted:#8fa0b4;
  --v2-accent:#18b6ff;
  --v2-green:#2fd487;
  --v2-red:#ff5d68;
  --v2-yellow:#ffc857;
  --v2-radius:18px;
}

body.portal-mode{
  background:
    radial-gradient(circle at 70% 0%,rgba(24,182,255,.08),transparent 32rem),
    var(--v2-bg)!important;
  color:var(--v2-text);
}

body.portal-mode .shell{
  min-height:100vh;
  background:transparent;
}

body.portal-mode aside,
body.portal-mode .sidebar{
  background:rgba(7,16,27,.97)!important;
  border-right:1px solid var(--v2-line);
}

body.portal-mode .content{
  padding:32px clamp(20px,3vw,46px)!important;
  max-width:1600px;
}

body.portal-mode h1{
  font-size:clamp(28px,3vw,44px);
  letter-spacing:-.035em;
  margin-top:4px;
}

body.portal-mode h2,
body.portal-mode h3{
  letter-spacing:-.02em;
}

body.portal-mode .eyebrow{
  color:var(--v2-accent)!important;
  letter-spacing:.16em;
  font-size:12px;
  font-weight:800;
}

body.portal-mode .card,
body.portal-mode .stat{
  background:
    linear-gradient(145deg,rgba(255,255,255,.025),transparent),
    var(--v2-panel)!important;
  border:1px solid var(--v2-line)!important;
  border-radius:var(--v2-radius)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.16);
}

body.portal-mode .stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px!important;
  margin:22px 0;
}

body.portal-mode .stat{
  padding:20px!important;
}

body.portal-mode .stat b{
  font-size:25px;
  display:block;
  margin-bottom:5px;
}

body.portal-mode .stat p,
body.portal-mode .muted{
  color:var(--v2-muted)!important;
}

body.portal-mode button{
  border-radius:11px!important;
  font-weight:750;
  transition:.18s ease;
}

body.portal-mode button:hover{
  transform:translateY(-1px);
}

body.portal-mode button.primary{
  background:var(--v2-accent)!important;
  color:#03111b!important;
  border-color:transparent!important;
}

body.portal-mode button.danger{
  background:rgba(255,93,104,.12)!important;
  color:#ff818a!important;
  border:1px solid rgba(255,93,104,.3)!important;
}

body.portal-mode button.ghost{
  background:rgba(255,255,255,.035)!important;
  border:1px solid var(--v2-line)!important;
}

.v2-server-hero{
  position:relative;
  overflow:hidden;
  border:1px solid var(--v2-line);
  border-radius:24px;
  padding:26px;
  margin:18px 0;
  background:
    linear-gradient(100deg,rgba(7,16,27,.98) 15%,rgba(7,16,27,.74)),
    var(--v2-game-image,none);
  background-size:cover;
  background-position:center;
  min-height:150px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
}

.v2-server-hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent,rgba(7,16,27,.25));
  pointer-events:none;
}

.v2-server-hero > *{
  position:relative;
  z-index:1;
}

.v2-server-hero h1{
  margin:5px 0 8px;
}

.v2-server-meta{
  color:#b4c1d0;
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  align-items:center;
}

.v2-node-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(24,182,255,.1);
  border:1px solid rgba(24,182,255,.22);
  color:#7fd7ff;
  font-size:12px;
  font-weight:800;
}

.v2-node-pill:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--v2-accent);
  box-shadow:0 0 12px var(--v2-accent);
}

.status{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  padding:6px 10px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.06em;
}

.status.online{
  background:rgba(47,212,135,.12)!important;
  color:#5ce5a4!important;
  border:1px solid rgba(47,212,135,.25);
}

.status.offline{
  background:rgba(255,255,255,.06)!important;
  color:#a8b5c4!important;
  border:1px solid var(--v2-line);
}

.status.updating,
.status.starting,
.status.stopping,
.status.restarting,
.status.installing{
  background:rgba(255,200,87,.12)!important;
  color:#ffd778!important;
  border:1px solid rgba(255,200,87,.25);
}

.v2-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

body.portal-mode .tabs{
  display:flex;
  gap:6px;
  overflow:auto;
  padding:5px;
  margin:18px 0 22px;
  border-radius:14px;
  background:rgba(255,255,255,.025);
  border:1px solid var(--v2-line);
}

body.portal-mode .tabs button{
  flex:0 0 auto;
  border:0!important;
  background:transparent!important;
  color:var(--v2-muted)!important;
}

body.portal-mode .tabs button.active{
  background:var(--v2-panel2)!important;
  color:white!important;
}

.v2-node-card{
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:20px;
  padding:22px;
}

.v2-node-info{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.v2-info{
  padding:13px;
  border-radius:12px;
  background:rgba(255,255,255,.025);
  border:1px solid var(--v2-line);
}

.v2-info small{
  display:block;
  color:var(--v2-muted);
  margin-bottom:5px;
}

.v2-info b{
  overflow-wrap:anywhere;
}

.v2-resource{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:170px;
  border-radius:15px;
  background:
    radial-gradient(circle,rgba(24,182,255,.13),transparent 60%),
    rgba(255,255,255,.018);
  border:1px solid var(--v2-line);
  text-align:center;
}

.v2-resource strong{
  display:block;
  font-size:35px;
}

.v2-resource span{
  color:var(--v2-muted);
  font-size:12px;
}

.v2-danger{
  border-color:rgba(255,93,104,.25)!important;
}

.v2-progress{
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  margin-top:12px;
}

.v2-progress > span{
  display:block;
  width:35%;
  height:100%;
  border-radius:inherit;
  background:var(--v2-accent);
  animation:v2move 1.1s ease-in-out infinite alternate;
}

@keyframes v2move{
  to{transform:translateX(180%)}
}

@media(max-width:900px){
  body.portal-mode .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v2-server-hero{flex-direction:column;align-items:flex-start}
  .v2-actions{justify-content:flex-start}
  .v2-node-card{grid-template-columns:1fr}
}

@media(max-width:560px){
  body.portal-mode .content{padding:18px 14px!important}
  body.portal-mode .stats{grid-template-columns:1fr 1fr}
  .v2-node-info{grid-template-columns:1fr}
  .v2-server-hero{padding:20px}
}

/* =========================================================
   LURANA PANEL V2.2
   Dashboard / Library / Workshop / Hosting UI
   ========================================================= */

.v22-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:28px
}
.v22-topbar h1{margin:3px 0 7px}
.v22-topbar p{margin:0;color:var(--v2-muted)}

.v22-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:999px;
  border:1px solid rgba(47,212,135,.24);
  background:rgba(47,212,135,.08);
  color:#61e6a8;
  font-size:12px;
  font-weight:800
}
.v22-badge:before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:#2fd487;
  box-shadow:0 0 12px #2fd487
}

.v22-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:30px
}
.v22-overview .v22-metric{
  min-height:115px;
  padding:20px;
  border-radius:18px;
  border:1px solid var(--v2-line);
  background:linear-gradient(145deg,rgba(255,255,255,.025),transparent),var(--v2-panel)
}
.v22-metric small{color:var(--v2-muted);display:block;margin-bottom:12px}
.v22-metric strong{font-size:29px;letter-spacing:-.04em}
.v22-metric span{display:block;color:#6e8195;font-size:11px;margin-top:6px}

.v22-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:28px 0 15px
}
.v22-title h2{margin:0}

.v22-server-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.v22-server{
  min-height:240px;
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid var(--v2-line);
  background:#0b1623;
  background-size:cover;
  background-position:center;
  box-shadow:0 20px 50px rgba(0,0,0,.18)
}
.v22-server:before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(4,11,19,.98) 5%,rgba(4,11,19,.82) 53%,rgba(4,11,19,.32)),
             linear-gradient(0deg,rgba(4,11,19,.85),transparent 70%)
}
.v22-server-inner{
  position:relative;
  z-index:1;
  padding:24px;
  min-height:192px;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.v22-server-game{
  font-size:11px;
  font-weight:900;
  letter-spacing:.15em;
  color:#69d3ff
}
.v22-server h3{font-size:25px;margin:8px 0}
.v22-server-address{color:#a8b8c9;font-size:13px}
.v22-server-footer{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:15px
}
.v22-server-stats{
  display:flex;
  gap:20px
}
.v22-server-stats small{display:block;color:#788da2;font-size:10px;text-transform:uppercase}
.v22-server-stats b{font-size:15px}

.v22-empty{
  grid-column:1/-1;
  text-align:center;
  padding:55px 20px!important
}

.v22-library{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:20px
}
.v22-game{
  min-height:210px;
  position:relative;
  overflow:hidden;
  border-radius:20px;
  border:1px solid var(--v2-line);
  background:#0c1723;
  background-size:cover;
  background-position:center;
  cursor:pointer;
  transition:.2s ease
}
.v22-game:hover{transform:translateY(-3px);border-color:rgba(24,182,255,.4)}
.v22-game.selected{border:2px solid var(--v2-accent);box-shadow:0 0 0 3px rgba(24,182,255,.08)}
.v22-game:after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(4,10,17,.98) 5%,rgba(4,10,17,.4) 75%)
}
.v22-game-copy{
  position:absolute;z-index:2;left:18px;right:18px;bottom:17px
}
.v22-game-copy h3{margin:0 0 5px;font-size:20px}
.v22-game-copy p{margin:0;color:#9bacc0;font-size:12px}

.v22-config{
  margin-top:22px;
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:18px
}
.v22-config .card{padding:22px}
.v22-summary{
  position:sticky;
  top:20px;
  height:max-content
}
.v22-summary-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--v2-line)
}

.v22-workshop-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:20px
}
.v22-workshop-hero{
  min-height:190px;
  border-radius:22px;
  padding:26px;
  border:1px solid var(--v2-line);
  background:
    linear-gradient(90deg,rgba(6,15,25,.97),rgba(6,15,25,.65)),
    url('/assets/games/dayz.jpg') center/cover;
  display:flex;
  align-items:flex-end
}
.v22-workshop-hero h2{font-size:30px;margin:6px 0}
.v22-workshop-hero p{max-width:700px;color:#a9bacb}

.v22-workshop-search{
  margin:18px 0;
  padding:18px!important
}
.v22-workshop-search-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px
}
.v22-workshop-search input{margin:0!important}

.v22-mod-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
  margin-top:18px
}
.v22-mod{
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--v2-line);
  background:var(--v2-panel)
}
.v22-mod-cover{
  height:125px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 70% 20%,rgba(24,182,255,.2),transparent 40%),
    linear-gradient(135deg,#132538,#07111d);
  font-size:38px
}
.v22-mod-body{padding:17px}
.v22-mod-body h3{margin:0 0 5px}
.v22-mod-body small{color:#7f93a8}
.v22-mod-actions{margin-top:14px;display:flex;gap:8px;flex-wrap:wrap}

.v22-activity{
  display:grid;
  gap:1px;
  overflow:hidden
}
.v22-activity-row{
  display:grid;
  grid-template-columns:12px 1fr auto;
  gap:12px;
  align-items:center;
  padding:13px 2px;
  border-bottom:1px solid var(--v2-line)
}
.v22-dot{width:8px;height:8px;border-radius:50%;background:var(--v2-accent)}
.v22-activity-row time{font-size:11px;color:#72869a}

@media(max-width:1050px){
  .v22-library{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v22-server-grid{grid-template-columns:1fr}
}
@media(max-width:800px){
  .v22-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v22-config{grid-template-columns:1fr}
  .v22-summary{position:static}
  .v22-mod-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .v22-topbar{flex-direction:column}
  .v22-library,.v22-mod-grid{grid-template-columns:1fr}
  .v22-workshop-search-row{grid-template-columns:1fr}
  .v22-server-footer{align-items:flex-start;flex-direction:column}
}
