*{
  box-sizing:border-box;
}

:root{
  --bg:#101113;
  --sidebar:#181920;
  --surface:#1b1c23;
  --surface-2:#202129;
  --surface-3:#242630;
  --surface-hover:#292b34;

  --orange:#ff6b35;
  --orange-hover:#ff8254;
  --orange-soft:#fdba74;
  --orange-pale:#fed7aa;

  --white:#ffffff;
  --text:#f8fafc;
  --muted:#94a3b8;
  --muted-2:#aebdce;
  --border:#2a2d3a;

  --green:#22c55e;
  --red:#fb7185;

  --radius-sm:10px;
  --radius:14px;
  --radius-lg:20px;

  --shadow:0 18px 45px rgba(0,0,0,.22);
  --orange-glow:0 0 24px rgba(255,107,53,.18);
}

html,
body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body{
  min-height:100vh;
}

button,
a{
  font:inherit;
}

button{
  cursor:pointer;
}

.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
  gap:0;
  background:
    radial-gradient(circle at 88% 0%,rgba(255,107,53,.055),transparent 28%),
    var(--bg);
}

/* SIDEBAR */

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  padding:26px 20px 20px;
  background:var(--sidebar);
  border-right:1px solid rgba(255,255,255,.045);
}

.brand-block{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:56px;
}

.brand-logo{
  width:46px;
  height:46px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:var(--white);
  font-weight:900;
  font-size:13px;
  letter-spacing:.05em;
  background:
    linear-gradient(145deg,#ff8254,#ff6b35);
  box-shadow:var(--orange-glow);
}

.brand-title{
  color:var(--white);
  font-size:18px;
  font-weight:800;
  letter-spacing:-.02em;
}

.brand-title span{
  color:var(--orange);
}

.brand-subtitle{
  margin-top:4px;
  color:#8291a5;
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
}

.sidebar-divider{
  height:1px;
  background:rgba(255,255,255,.07);
  margin:23px 2px 20px;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.nav-item{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:0 14px;
  border-radius:12px;
  color:#aebdce;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
  transition:
    background .16s ease,
    color .16s ease,
    transform .16s ease;
}

.nav-item:hover{
  color:var(--white);
  background:#202129;
}

.nav-item.active{
  color:var(--white);
  background:
    linear-gradient(90deg,rgba(255,107,53,.17),rgba(255,107,53,.045));
  border:1px solid rgba(255,107,53,.18);
  box-shadow:inset 3px 0 0 var(--orange);
}

.nav-icon{
  width:22px;
  flex:0 0 22px;
  display:grid;
  place-items:center;
  color:var(--orange);
  font-size:18px;
  line-height:1;
}

.sidebar-spacer{
  flex:1;
  min-height:28px;
}

.session-card,
.workspace-card{
  border:1px solid rgba(255,255,255,.07);
  background:#1b1c23;
  border-radius:15px;
  padding:15px;
}

.session-card{
  margin-bottom:10px;
}

.workspace-card{
  margin-bottom:10px;
}

.session-label{
  color:#8291a5;
  font-size:9px;
  font-weight:850;
  letter-spacing:.16em;
}

.session-name,
.workspace-name{
  margin-top:7px;
  color:var(--white);
  font-size:14px;
  font-weight:750;
}

.session-desc{
  margin-top:5px;
  color:#8899ae;
  font-size:11px;
  line-height:1.45;
}

.secondary-btn{
  width:100%;
  margin-top:13px;
  min-height:38px;
  border:1px solid #2a2d3a;
  border-radius:10px;
  color:#cbd5e1;
  background:#202129;
  font-weight:700;
  transition:.16s ease;
}

.secondary-btn:hover{
  color:var(--white);
  background:#292b34;
  border-color:#3b3e49;
}

.signout-btn{
  min-height:42px;
  width:100%;
  border:0;
  border-radius:11px;
  color:#fb7185;
  background:transparent;
  font-weight:750;
  text-align:left;
  padding:0 12px;
}

.signout-btn:hover{
  background:rgba(251,113,133,.07);
}

/* MAIN */

.main{
  min-width:0;
  padding:46px 46px 60px;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:30px;
  margin-bottom:28px;
}

.breadcrumb{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:14px;
  color:var(--orange);
  font-size:10px;
  font-weight:850;
  letter-spacing:.16em;
}

.breadcrumb .slash{
  color:#536477;
}

h1,
h2,
h3,
p{
  margin-top:0;
}

h1{
  margin-bottom:10px;
  color:var(--white);
  font-size:clamp(34px,4vw,52px);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:850;
}

h1 span{
  color:var(--orange);
}

.lead{
  margin-bottom:0;
  max-width:700px;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
}

.primary-btn{
  flex:0 0 auto;
  min-height:45px;
  padding:0 18px;
  border:0;
  border-radius:11px;
  color:var(--white);
  background:var(--orange);
  font-weight:800;
  box-shadow:var(--orange-glow);
  transition:
    background .16s ease,
    transform .16s ease;
}

.primary-btn:hover{
  background:var(--orange-hover);
  transform:translateY(-1px);
}

/* NOTICE */

.notice{
  min-height:54px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:22px;
  padding:14px 17px;
  border:1px solid rgba(255,107,53,.19);
  border-radius:13px;
  color:#cbd5e1;
  background:
    linear-gradient(90deg,rgba(255,107,53,.09),rgba(255,107,53,.02));
  font-size:12px;
}

.notice strong{
  color:var(--orange-soft);
}

.notice > span{
  flex:0 0 auto;
  color:#86efac;
  font-size:9px;
  font-weight:850;
  letter-spacing:.14em;
}

/* STATS */

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}

.stat-card{
  min-height:148px;
  padding:19px;
  border:1px solid var(--border);
  border-radius:15px;
  background:
    linear-gradient(145deg,#1b1c23,#181920);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.stat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  color:#aebdce;
  font-size:12px;
  font-weight:700;
}

.stat-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:var(--orange);
  background:rgba(255,107,53,.09);
}

.stat-value{
  margin-top:17px;
  color:var(--white);
  font-size:32px;
  font-weight:850;
  letter-spacing:-.04em;
}

.stat-caption{
  margin-top:8px;
  color:#8291a5;
  font-size:11px;
  line-height:1.45;
}

/* CONTENT PANEL */

.content-panel{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:17px;
  background:#181920;
  box-shadow:var(--shadow);
}

.panel-header{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px;
  border-bottom:1px solid var(--border);
}

.panel-header h2{
  margin-bottom:7px;
  color:var(--white);
  font-size:18px;
  letter-spacing:-.02em;
}

.panel-header p{
  margin:0;
  color:#8291a5;
  font-size:12px;
}

.ghost-btn{
  min-height:38px;
  padding:0 14px;
  border:1px solid #2a2d3a;
  border-radius:9px;
  color:#cbd5e1;
  background:#202129;
  font-weight:700;
}

.ghost-btn:hover{
  color:var(--white);
  background:#292b34;
}

.table-head{
  min-height:46px;
  display:grid;
  grid-template-columns:1.6fr .75fr .75fr 1fr;
  align-items:center;
  padding:0 24px;
  border-bottom:1px solid rgba(255,255,255,.055);
  color:#8291a5;
  background:#1b1c23;
  font-size:9px;
  font-weight:850;
  letter-spacing:.13em;
}

.empty-state{
  min-height:330px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px 20px;
}

.empty-icon{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border:1px solid rgba(255,107,53,.18);
  border-radius:18px;
  color:var(--orange);
  background:rgba(255,107,53,.065);
  font-size:26px;
}

.empty-state h3{
  margin-bottom:8px;
  color:var(--white);
  font-size:17px;
}

.empty-state p{
  margin:0;
  color:#8291a5;
  font-size:12px;
}

/* RESPONSIVE */

@media (max-width:1180px){
  .app-shell{
    grid-template-columns:250px minmax(0,1fr);
  }

  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .main{
    padding:38px 30px 50px;
  }
}

@media (max-width:820px){
  .app-shell{
    display:block;
  }

  .sidebar{
    position:relative;
    width:100%;
    height:auto;
    padding:16px;
  }

  .sidebar-divider,
  .sidebar-spacer,
  .session-card,
  .workspace-card,
  .signout-btn{
    display:none;
  }

  .nav{
    margin-top:14px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
    overflow-x:auto;
  }

  .nav-item{
    min-width:92px;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    min-height:58px;
    padding:7px;
    font-size:10px;
  }

  .nav-item.active{
    box-shadow:inset 0 -3px 0 var(--orange);
  }

  .main{
    padding:28px 18px 40px;
  }

  .topbar{
    flex-direction:column;
  }

  .primary-btn{
    width:100%;
  }

  .notice{
    align-items:flex-start;
    flex-direction:column;
  }

  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:520px){
  .brand-block{
    justify-content:center;
  }

  .nav{
    grid-template-columns:repeat(5,96px);
  }

  .stats-grid{
    grid-template-columns:1fr;
  }

  .stat-card{
    min-height:130px;
  }

  .panel-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .ghost-btn{
    width:100%;
  }

  .table-head{
    display:none;
  }

  .empty-state{
    min-height:280px;
  }

  h1{
    font-size:36px;
  }
}

/* LOGIN */

.login-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 10%,rgba(255,107,53,.08),transparent 30%),
    #101113;
}

.login-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr);
}

.login-brand-panel{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:44px 54px;
  border-right:1px solid #2a2d3a;
  background:
    linear-gradient(145deg,rgba(255,107,53,.05),transparent 45%),
    #181920;
}

.login-brand-top{
  display:flex;
  align-items:center;
  gap:14px;
}

.login-hero{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:650px;
  padding:60px 0;
}

.login-hero h1{
  max-width:580px;
  margin-bottom:20px;
  font-size:clamp(48px,6vw,78px);
}

.login-hero p{
  max-width:560px;
  margin:0;
  color:#94a3b8;
  font-size:16px;
  line-height:1.75;
}

.login-brand-footer{
  color:#536477;
  font-size:11px;
  letter-spacing:.04em;
}

.login-form-panel{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px;
  background:#101113;
}

.login-card{
  width:100%;
  max-width:430px;
  padding:34px;
  border:1px solid #2a2d3a;
  border-radius:20px;
  background:#181920;
  box-shadow:0 22px 60px rgba(0,0,0,.3);
}

.login-small-label{
  margin-bottom:9px;
  color:#ff6b35;
  font-size:10px;
  font-weight:850;
  letter-spacing:.16em;
}

.login-card-heading h2{
  margin-bottom:8px;
  color:#ffffff;
  font-size:27px;
  letter-spacing:-.03em;
}

.login-card-heading p{
  margin-bottom:28px;
  color:#94a3b8;
  font-size:13px;
  line-height:1.55;
}

.field-label{
  display:block;
  margin:0 0 8px;
  color:#cbd5e1;
  font-size:12px;
  font-weight:700;
}

.login-input{
  width:100%;
  height:48px;
  margin-bottom:18px;
  padding:0 14px;
  border:1px solid #2a2d3a;
  border-radius:11px;
  outline:none;
  color:#ffffff;
  background:#202129;
  font-size:14px;
  transition:border-color .16s ease,box-shadow .16s ease;
}

.login-input:focus{
  border-color:#ff6b35;
  box-shadow:0 0 0 3px rgba(255,107,53,.12);
}

.login-error{
  margin:0 0 16px;
  padding:11px 13px;
  border:1px solid rgba(251,113,133,.28);
  border-radius:10px;
  color:#fecdd3;
  background:rgba(251,113,133,.08);
  font-size:12px;
}

.login-submit{
  width:100%;
  height:48px;
  border:0;
  border-radius:11px;
  color:#ffffff;
  background:#ff6b35;
  font-weight:800;
  box-shadow:0 0 24px rgba(255,107,53,.18);
}

.login-submit:hover{
  background:#ff8254;
}

.login-submit:disabled{
  opacity:.65;
  cursor:wait;
}

.login-security{
  margin-top:18px;
  color:#536477;
  text-align:center;
  font-size:10px;
  letter-spacing:.04em;
}

.hidden{
  display:none!important;
}

@media (max-width:900px){
  .login-shell{
    display:block;
  }

  .login-brand-panel{
    min-height:auto;
    padding:26px 24px 34px;
    border-right:0;
    border-bottom:1px solid #2a2d3a;
  }

  .login-hero{
    padding:50px 0 22px;
  }

  .login-hero h1{
    font-size:48px;
  }

  .login-brand-footer{
    display:none;
  }

  .login-form-panel{
    min-height:auto;
    padding:34px 18px 50px;
  }
}

/* NETWORKOS SVG ICONS */

.icon-svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nav-icon .icon-svg{
  width:19px;
  height:19px;
}

.stat-icon .icon-svg{
  width:18px;
  height:18px;
}

.empty-icon .icon-svg{
  width:28px;
  height:28px;
}

.icon-inline{
  flex:0 0 auto;
  width:17px;
  height:17px;
}

.icon-button{
  display:flex;
  align-items:center;
  gap:9px;
}

.inline-icon-label{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
