*{
  box-sizing:border-box;
  font-family:Rajdhani,sans-serif;
}

:root{
  --bg-main:#050507;
  --bg-card:#0b0c10;
  --bg-rdp:#0f1a1f;
  --purple:#9b4dff;
  --purple-glow:rgba(155,77,255,.35);
  --cyan:#00e5ff;
  --green:#00ff66;
  --red:#ff003c;
  --yellow:#ffb300;
  --border-soft:rgba(255,255,255,.06);
}

body{
  margin:0;
  background:radial-gradient(circle at top,#1a0000,#000);
  color:#ddd;
}

.sidebar{
  width:240px;
  height:100vh;
  position:fixed;
  background:#000;
  border-right:1px solid #300;
  padding:20px;
}

.logo{
  font-family:Orbitron;
  color:red;
  font-size:20px;
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:30px;
}

.menu{
  list-style:none;
  padding:0;
}

.menu li{
  padding:3px;
  cursor:pointer;
  color:#aaa;
  border-radius:6px;
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cfcfcf;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 8px;
    transition: background .15s, color .15s;
    font-size: 14px;
}

.text-muted {
    --bs-text-opacity: 1;
    color: #fff !important;
}

.menu li:hover,
.menu li.active{ 
  color:#fff;
}

.logout{color:#ff4444}

.main{ 
  min-height:100vh;
  padding-left: 10px;
}

.topbar,
.top-header,
.page-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 30px;
  border-bottom:1px solid #300;
}

.brand-title,
.brand-name,
.page-title{
  font-family:Orbitron;
  font-size:22px;
}

.user-info,
.user-block{
  display:flex;
  gap:12px;
}

.avatar,
.user-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  border:2px solid red;
  background:#111;
  background-size:cover;
  background-position:center;
}

.user-name{color:red;font-weight:600}
.user-tag{font-size:12px;color:#888}

.stats,
.stats-row,
.stats-bar{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding:20px 30px;
}

.stat-card,
.stat-box{
  background:#050505;
  border-radius:14px;
  padding:20px;
}

.stat-card{
  display:flex;
  gap:15px;
  align-items:center;
  border-left:4px solid #333;
}

.stat-box{
  display:flex;
  align-items:center;
  gap:15px;
  box-shadow:0 0 25px rgba(255,0,0,.15);
}

.stat-card.green,
.stat-box.green{border-color:#00ff88}

.stat-card.neon{border-color:#00ff00}
.stat-card.yellow,
.stat-box.yellow{border-color:#ffcc00}
.stat-card.gray{border-color:#666}

.stat-value{font-size:26px;font-weight:700}
.stat-label{font-size:12px;color:#aaa}

.split-view{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:15px;
  padding:0 30px;
  align-items:start;
}

.navigator-panel{
  height:calc(100vh - 220px);
  overflow-y:auto;
}

.group-card{
  border-radius:16px;
  background:#050505;
  border:1px solid var(--purple-glow);
  box-shadow:0 0 30px rgba(140,0,255,.15);
  margin-bottom:15px;
  overflow:hidden;
}

.group-header{
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}

.group-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--purple);
  font-weight:600;
  font-size:16px;
}

.group-controls{
  display:flex;
  align-items:center;
  gap:6px;
}

.group-body,
.rdp-body{
  display:none;
}

.group-body.show,
.rdp-body.show{
  display:block;
}

.rdp-card{
  background:#070707;
  border-radius:14px;
  padding:10px;
  margin:10px;
  border:1px solid rgba(0,229,255,.25);
}

.rdp-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
}

.vm-box{
  margin:12px;
  padding:16px;
  background:#020203;
  border-radius:12px;
  border:1px solid var(--border-soft);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.vm-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.vm-status{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}

.dot.online{
  background:#00ff6a;
  animation:blink 1s infinite;
}

.dot.offline{
  background:#ff3b3b;
}

.vm-id{
  font-size:12px;
  color:#bbb;
}

.vm-meta{
  font-size:11px;
  color:#888;
}

.vm-actions{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.vm-actions button{
  background:transparent;
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
}

.icon-btn{
  background:none;
  border:1px solid #333;
  color:#ccc;
  padding:6px 8px;
  border-radius:6px;
  cursor:pointer;
}

a{
  color:inherit;
  text-decoration:none;
}

@keyframes blink{
  50%{opacity:.3}
}


 
.stat-card{
  background:#050505;
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px;
  position:relative;
  overflow:hidden;
}

.stat-wide{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.stat-right{
  text-align:right;
  font-size:12px;
}

.stat-title{
  font-size:12px;
  letter-spacing:2px;
  color:#888;
  margin-bottom:8px;
}

.stat-value{
  font-size:32px;
  font-weight:700;
  color:#fff;
}

.stat-change{
  font-size:13px;
  margin-top:6px;
}

.stat-glow.green{border-left:4px solid #00c853}
.stat-glow.red{border-left:4px solid #d32f2f}

.up{color:#00c853}
.down{color:#d32f2f}

.val-main{
  font-size:28px;
  font-weight:700;
  display:block;
  color:#fff;
}

.val-sub{
  font-size:11px;
  color:var(--gray);
  text-transform:uppercase;
  letter-spacing:1px;
}

.text-green{color:var(--green)!important}

.nav-pills .nav-link{
  color:var(--gray);
  background:#111;
  margin-right:10px;
  border-radius:4px;
  font-size:13px;
  border:none;
}

.nav-pills .nav-link.active{
  background:var(--accent);
  color:#fff;
}

.table-dark-ui{
  width:100%;
  border-collapse:separate;
  border-spacing:0 2px;
}

.table-dark-ui td{
  background:#0c0c0c;
  padding:12px;
  font-size:13px;
  color:#ccc;
  border:none;
}

.group-content{display:none}

.group-row{
  background:#121212!important;
  font-weight:bold;
  color:#fff!important;
  cursor:pointer;
}

.group-row.open{
  background:#181818;
}

.inventory-container { font-family: 'Rajdhani', sans-serif; color: #e0e0e0; padding: 20px; }
.page-title { font-family: 'Orbitron', sans-serif; font-size: 24px; color: #fff; margin-bottom: 30px; }
.cyber-stat { background: #111; border: 1px solid #222; border-radius: 8px; padding: 15px; position: relative; overflow: hidden; }
.cyber-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat-total::before { background: #d32f2f; }
.stat-online::before { background: #00c853; }
.stat-offline::before { background: #f44336; }
.stat-anomaly::before { background: #ffd600; }
.filter-box { background: #0a0a0a; border: 1px solid #1a1a1a; padding: 15px; border-radius: 8px; }
.form-control-cyber { background: #000; border: 1px solid #333; color: #fff; border-radius: 4px; font-size: 14px; }
.table-cyber {
  width: 100%;
  table-layout: fixed;
}
.earnapp-col {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.token-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
}

.table-cyber td:nth-child(7) {
  text-align: center;
  white-space: nowrap;
}

.table-cyber tr {
  display: table-row !important;
}

.table-cyber td,
.table-cyber th {
  display: table-cell !important;
  vertical-align: middle;
  white-space: nowrap;text-align: center;
}
.status-pill { padding: 2px 10px; border-radius: 10px; font-size: 10px; font-weight: bold; text-transform: uppercase; }
.pill-online { background: rgba(0, 200, 83, 0.2); color: #00c853; border: 1px solid #00c853; }
.pill-offline { background: rgba(244, 67, 54, 0.2); color: #f44336; border: 1px solid #f44336; }
.token-text { color: #d32f2f; font-size: 11px; word-break: break-all; max-width: 150px; display: inline-block; font-family: monospace; }
.copy-btn { background: #1a1a1a; border: 1px solid #333; color: #d32f2f; padding: 4px 8px; border-radius: 4px; cursor: pointer; margin-left: 8px; transition: 0.2s; }
.copy-btn:hover { background: #d32f2f; color: #fff; }

#overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  z-index:9998;
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.modal-content{
  animation:modalIn .2s;
}

@keyframes modalIn{
  from{transform:scale(.95);opacity:0}
  to{transform:scale(1);opacity:1}
}

.bg-black,
.bg-dark{
  background:#000!important;
}

.searchable-item{transition:.2s}
.nav-tree a{text-decoration:none}

.ok{color:#4cff9a}
.bad{color:#ff4c4c}

.ea-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.ea-ibtn1{
  width: 44px;
    height: 44px;
    display: inline;
    align-items: center;
    justify-content: center;
    background: #050505;
    border: 1px solid #400;
    border-radius: 12px;
    color: #ff4c4c;
    cursor: pointer;
    transition: .2s;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    align-content: space-around;
} 
.ea-btn, .ea-ibtn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    border: 1px solid #400;
    border-radius: 12px;
    color: #ff4c4c;
    cursor: pointer;
    transition: .2s;
}

.ea-btn i,
.ea-ibtn i{
  font-size:16px;
  color:#ff4c4c;
}

.ea-btn:hover,
.ea-ibtn:hover{
  border-color:#ff3333;
  box-shadow:0 0 10px rgba(255,50,50,.6);
  transform:translateY(-1px);
}

.ea-btn:active,
.ea-ibtn:active{
  transform:scale(.96);
  box-shadow:0 0 6px rgba(255,50,50,.4);
}

.nav-group-title{
  padding:10px;
  font-weight:700;
  cursor:pointer;
  background:#1c1f22;
  border-bottom:1px solid #333;
}

.nav-group-body,
.nav-rdp-body{
  display:none;
}

.nav-rdp-title{
  padding:8px 10px 8px 20px;
  color:#4cc3ff;
  cursor:pointer;
}

.nav-vm{
  display:block;
  padding:6px 10px 6px 40px;
  font-size:13px;
  color:#aaa;
}

.nav-vm:hover{color:#fff}
.nav-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-toggle-icon{
  cursor:pointer;
  color:#c77dff;
  font-size:16px;
}

/* COLLAPSE */
.nav-col{
  transition:.3s;
}

.nav-col.nav-collapsed{
  width:44px !important;
  max-width:44px !important;
  flex:0 0 44px !important;
  padding:0 !important;
  margin-left: 13px;
}

.nav-col.nav-collapsed .nav-tree,
.nav-col.nav-collapsed .card-header span{
  display:none;
}

/* ICON stays visible */
.nav-col.nav-collapsed .nav-toggle-icon{
  display:block;
  margin:auto;
  transform:rotate(180deg);
}

/* MAIN CONTENT EXPAND */
.nav-col.nav-collapsed + .main-col{
  width:calc(100% - 44px) !important;
  max-width:calc(100% - 44px) !important;
  flex:0 0 calc(100% - 44px) !important;
}

.grp-header.grp-toggle{
  width:100% !important;
  display:grid !important;
  grid-template-columns: 1fr auto !important;
  align-items:center !important;
}

.grp-header.grp-toggle .grp-left{
  justify-self:start;
}

.grp-header.grp-toggle .grp-icons{
  justify-self:end;
}

.grp-name{
  color:#c77dff;
  font-weight:700;
}

.grp-ibtn{
  width:36px;
  height:36px;
  background:#050505;
  border:1px solid #400;
  color:#ff4c4c;
}

.grp-ibtn i{font-size:14px}
.grp-ibtn.danger{border-color:#600}

.dot{
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:12px;
  margin-left:6px;
}

.dot.green{background:#063;color:#4cff9a}
.dot.red{background:#300;color:#ff4c4c}
.dot.yellow{background:#332200;color:#ffcc00}

.ea-card {
    display: grid !important;
    grid-template-columns: 220px 1fr 260px;
    align-items: center;
    gap: 28px;
    padding: 10px;
    border: 1px solid;
}

.ea-left {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 220px;
}
.vm-row-item {
    display: table-row !important;
}
.ea-center {
    padding-top: 6px;
}
 

.ea-card.show-center .ea-center{
  width:auto;
  opacity:1;
}

.ea-right{
  flex:0 0 auto;
  display:flex;
  gap:6px;
}


.ea-left{
  display:flex;
  align-items:center;
  gap:14px;
  width:220px;
}

.ea-vm{
  color:#fff;
  font-weight:600;
}

.ea-left-meta{
  margin-top:14px;
  font-size:13px;
  color:#aaa;
}

.ea-center{
  padding-top:6px;
}

.ea-center *{white-space:nowrap}

.ea-right{
  display:flex;
  gap:12px;
  justify-content:flex-end;
}

.ea-status{
  padding:10px;
  border-radius:10px;
  font-weight:700;
}

.ea-status.on{background:#062;color:#4cff9a}
.ea-status.off{background:#300;color:#ff4c4c}

.ea-status small{
  display:block;
  font-size:11px;
  opacity:.8;
}

.ea-token-box {
    max-width: 520px;
    padding: 12px 14px;
    background: #000;
    border: 1px solid #400;
    border-radius: 12px;
}

.ea-token-text a{
  display:block;
  color:#ffd84c;
  font-size:14px;
  line-height:1.5;
  white-space:normal;
  word-break:break-all;
  overflow-wrap:anywhere;
  text-decoration:none;
}

.ea-token-text a:hover{text-decoration:underline}

.ea-token-box small{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:#888;
}

.ea-flags{
  display:flex;
  gap:18px;
  font-size:14px;
  flex-wrap:wrap;
}

.ea-sync,
.ea-balance{
  font-size:13px;
}

.ea-balance{
  margin-top:6px;
  color:#4cff9a;
}

.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
}

  
.col-md-3.nav-collapsed{
  width:64px;
  max-width:64px;
  flex:0 0 64px;
  padding:0;
}

.col-md-3.nav-collapsed .nav-tree{display:none}

.col-md-3.nav-collapsed ~ .col-md-9{
  width:100%;
  max-width:100%;
  flex:0 0 100%;
}

@media (max-width:768px){
  .col-md-3:has(.nav-tree){
    position:fixed;
    inset:0 auto 0 0;
    height:100%;
    z-index:1000;
    background:#000;
    transform:translateX(-100%);
    transition:.3s;
  }

  .col-md-3.nav-open{
    transform:translateX(0);
  }
}
 
 
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.stat-box { background: var(--bg-card); border-radius: 8px; padding: 20px; text-align: center; border-left: 4px solid transparent; }
.box-total { border-color: var(--accent-red); }
.box-online { border-color: var(--accent-green); }
.box-pending { border-color: #444; }
.box-anomaly { border-color: var(--accent-yellow); }
.stat-box i { font-size: 24px; margin-bottom: 10px; display: block; }
.stat-box .val { font-size: 28px; font-weight: bold; }
.stat-box .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.analysis-bar { background: var(--bg-card); padding: 15px 25px; border-radius: 8px; display: flex; align-items: center; gap: 30px; margin-bottom: 20px; }
.analysis-item { display: flex; align-items: center; gap: 10px; font-weight: bold; }
.label-tag { font-size: 10px; color: var(--text-muted); margin-left: 5px; }
.accordion-group { background: #130f1a; border-radius: 8px; margin-bottom: 10px; overflow: hidden; border: 1px solid #251b2e; }
.accordion-header { padding: 12px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.group-info { display: flex; align-items: center; gap: 15px; }
.badge-purple { background: #4a148c; color: #e1bee7; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.rdp-container { background: #0c161a; margin: 10px; border-radius: 6px; border: 1px solid #142a2e; }
.rdp-header { padding: 10px 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.vm-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 12px 20px; border-top: 1px solid #1a1a1a; transition: background 0.2s; }
.vm-row:hover { background: rgba(255,255,255,0.02); }
.vm-id { color: var(--accent-red); font-weight: bold; font-family: monospace; font-size: 16px; }
.vm-ip-status { display: flex; align-items: center; gap: 15px; justify-content: center; }
.vm-earn { text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.status-pill { padding: 2px 12px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.status-ok { background: rgba(0,230,118,0.1); color: var(--accent-green); border: 1px solid var(--accent-green); }
.status-blocked { background: rgba(255,59,59,0.1); color: var(--accent-red); border: 1px solid var(--accent-red); }
.status-unchecked { background: rgba(255,160,0,0.1); color: #ffca28; border: 1px solid #ffca28; }
.status-badge-pill { padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; background: rgba(255,255,255,0.05); display: flex; align-items: center; gap: 5px; }
.change-pill { padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: bold; }
.bg-soft-green { background: rgba(0, 230, 118, 0.15); color: var(--accent-green); }
.bg-soft-red { background: rgba(255, 59, 59, 0.15); color: var(--accent-red); }
.header-btn { background: #000; border: 1px solid #333; color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 11px; cursor: pointer; }
.rdp-stat-box { width: 25px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 11px; font-weight: bold; }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.earn-val { font-weight: bold; font-size: 15px; }
.change-val { font-size: 11px; }



    .inventory-container {
        background: var(--cyber-bg);
        color: #fff;
        padding: 20px;
        font-family: 'Segoe UI', Roboto, sans-serif;
    }

    .filter-box {
        background: #111;
        padding: 15px;
        border-left: 3px solid var(--cyber-red);
        margin-bottom: 20px;
    }

    .form-control-cyber {
        background: #1a1a1a;
        border: 1px solid #333;
        color: #fff;
        padding: 8px 15px;
        border-radius: 4px;
    }

    .cyber-stat {
        background: #111;
        padding: 20px;
        text-align: center;
        border: 1px solid var(--cyber-border);
        border-radius: 5px;
        position: relative;
        transition: 0.3s;
    }
    
    .stat-total { border-left: 4px solid #fff; }
    .stat-online { border-left: 4px solid var(--cyber-green); }
    .stat-offline { border-left: 4px solid var(--cyber-red); }
    .stat-anomaly { border-left: 4px solid #ffbb33; }

    .table-cyber {
        width: 100%;
        border-collapse: collapse;
        background: #111;
        margin-top: 20px;
    }

    .table-cyber th {
        background: #1a1a1a;
        color: var(--cyber-red);
        text-transform: uppercase;
        font-size: 12px;
        padding: 12px;
        text-align: left;
        border-bottom: 2px solid #333;
    }

    .table-cyber td {
        padding: 12px;
        border-bottom: 1px solid #222;
        font-size: 13px;
    }

    .status-pill {
        padding: 4px 10px;
        border-radius: 3px;
        font-weight: bold;
        font-size: 11px;
    }

    .pill-online { background: rgba(0, 200, 83, 0.2); color: #00c853; border: 1px solid #00c853; }
    .pill-offline { background: rgba(244, 67, 54, 0.2); color: #f44336; border: 1px solid #f44336; }

    .earnapp-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #000;
        padding: 5px;
        border-radius: 4px;
        max-width: 250px;
    }

    .token-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--cyber-red);
        font-family: monospace;
    }

    .copy-btn {
        background: transparent;
        border: none;
        color: var(--cyber-red);
        cursor: pointer;
    }
    
    