:root{
  --bg:#05050b;
  --panel:#0e0e18;
  --panel2:#151522;
  --text:#f8f8ff;
  --muted:#a5a7b8;
  --purple:#b026ff;
  --cyan:#00d9ff;
  --danger:#ff3b6b;
  --ok:#26ff9a;
  --border:rgba(255,255,255,.10);
  --shadow:0 0 35px rgba(176,38,255,.20),0 0 40px rgba(0,217,255,.12);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  background:
    radial-gradient(circle at 20% 10%,rgba(176,38,255,.22),transparent 32%),
    radial-gradient(circle at 80% 20%,rgba(0,217,255,.18),transparent 30%),
    linear-gradient(180deg,#070711,#020206);
  color:var(--text);
  font-family:Inter,Segoe UI,Arial,sans-serif;
  overflow:hidden;
}
button,input,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.login-card{
  width:min(440px,100%);
  background:rgba(14,14,24,.78);
  border:1px solid var(--border);
  border-radius:28px;
  padding:32px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}
.brand-big{text-align:center;margin-bottom:28px}
.brand-big img{width:190px;max-width:70%;filter:drop-shadow(0 0 24px rgba(176,38,255,.45))}
.brand-title{
  margin:8px 0 0;
  font-size:38px;
  font-weight:900;
  letter-spacing:.5px;
  background:linear-gradient(90deg,var(--purple),var(--cyan));
  -webkit-background-clip:text;
  color:transparent;
}
.subtitle{color:var(--muted);text-align:center;margin:4px 0 24px}
.form{display:grid;gap:12px}
.input{
  width:100%;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:16px;
  padding:14px 16px;
  outline:none;
}
.input:focus{border-color:rgba(0,217,255,.7);box-shadow:0 0 0 4px rgba(0,217,255,.08)}
.btn{
  border:0;
  border-radius:16px;
  padding:14px 18px;
  background:linear-gradient(90deg,var(--purple),var(--cyan));
  color:white;
  font-weight:800;
  box-shadow:0 12px 28px rgba(176,38,255,.22);
}
.btn.secondary{background:rgba(255,255,255,.08);box-shadow:none;border:1px solid var(--border)}
.btn.danger{background:linear-gradient(90deg,#ff2e63,#ff7a3d)}
.error{color:#ff8aa7;min-height:22px;text-align:center}

.shell{
  height:100vh;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
}
.sidebar{
  background:rgba(9,9,17,.78);
  border-right:1px solid var(--border);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:16px;
  backdrop-filter:blur(18px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 6px 18px;
  border-bottom:1px solid var(--border);
}
.brand img{width:52px;height:52px;object-fit:contain;border-radius:12px}
.brand h1{
  margin:0;
  font-size:25px;
  font-weight:900;
  background:linear-gradient(90deg,var(--purple),var(--cyan));
  -webkit-background-clip:text;
  color:transparent;
}
.nav{display:grid;gap:8px}
.nav button{
  color:var(--text);
  background:transparent;
  border:1px solid transparent;
  border-radius:15px;
  text-align:left;
  padding:12px 14px;
}
.nav button:hover,.nav button.active{
  background:linear-gradient(90deg,rgba(176,38,255,.25),rgba(0,217,255,.12));
  border-color:var(--border);
}
.userbox{
  margin-top:auto;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  color:var(--muted);
}
.userbox b{color:var(--text)}

.main{
  min-width:0;
  overflow:auto;
  padding:22px 28px 40px;
}
.hero{
  min-height:270px;
  border:1px solid var(--border);
  border-radius:30px;
  background:
    linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.15)),
    radial-gradient(circle at 75% 35%,rgba(0,217,255,.22),transparent 34%),
    radial-gradient(circle at 45% 40%,rgba(176,38,255,.25),transparent 28%);
  box-shadow:var(--shadow);
  padding:34px;
  display:flex;
  align-items:end;
  margin-bottom:22px;
}
.hero h2{font-size:42px;margin:0 0 8px}
.hero p{color:var(--muted);margin:0 0 18px;max-width:620px}
.toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  margin:18px 0;
  flex-wrap:wrap;
}
.search{max-width:430px}
.pill{
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:10px 14px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:16px;
}
.card{
  border:1px solid var(--border);
  background:rgba(255,255,255,.055);
  border-radius:22px;
  padding:14px;
  min-height:150px;
  position:relative;
  overflow:hidden;
  transition:.18s transform,.18s border-color,.18s background;
}
.card:hover{
  transform:translateY(-4px) scale(1.01);
  border-color:rgba(0,217,255,.55);
  background:rgba(255,255,255,.085);
}
.logo-tile{
  height:78px;
  display:grid;
  place-items:center;
  margin-bottom:10px;
}
.logo-tile img{max-width:100%;max-height:76px;object-fit:contain}
.placeholder{
  width:76px;height:76px;border-radius:24px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(176,38,255,.5),rgba(0,217,255,.28));
  font-weight:900;font-size:26px;
}
.card h3{margin:8px 0 4px;font-size:16px;line-height:1.2}
.card p{margin:0;color:var(--muted);font-size:13px}
.card-actions{display:flex;gap:8px;margin-top:12px}
.icon-btn{
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
}
.icon-btn.fav{color:#ffd166}
.player-modal{
  position:fixed;inset:0;z-index:50;
  background:rgba(0,0,0,.86);
  display:grid;
  grid-template-rows:auto 1fr;
}
.player-top{
  display:flex;align-items:center;gap:12px;
  padding:14px 18px;
  background:linear-gradient(180deg,rgba(0,0,0,.8),transparent);
}
.player-top h2{margin:0;font-size:18px;flex:1}
.video-wrap{display:grid;place-items:center;padding:0 18px 22px}
video{width:100%;height:100%;max-height:calc(100vh - 88px);background:#000;border-radius:22px;box-shadow:var(--shadow)}
.status{color:var(--muted);padding:18px;border:1px dashed var(--border);border-radius:18px}
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
  margin-bottom:20px;
}
.stat{
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  border-radius:20px;
  padding:18px;
}
.stat strong{font-size:34px;display:block}
.table{
  width:100%;
  border-collapse:collapse;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
}
.table th,.table td{padding:12px;border-bottom:1px solid var(--border);text-align:left}
.table th{color:var(--muted);font-size:13px}
@media(max-width:850px){
  body{overflow:auto}
  .shell{height:auto;min-height:100vh;grid-template-columns:1fr}
  .sidebar{position:sticky;top:0;z-index:10;border-right:0;border-bottom:1px solid var(--border)}
  .nav{grid-template-columns:repeat(3,1fr)}
  .hero h2{font-size:30px}
  .main{padding:16px}
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.user-card {
  background: linear-gradient(145deg, #1c1c2b, #12121c);
  border-radius: 16px;
  padding: 16px;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.user-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(100, 0, 255, 0.6);
}

.user-card.disabled {
  opacity: 0.5;
}

.user-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: purple;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.name {
  font-weight: bold;
}

.role {
  font-size: 12px;
  opacity: 0.7;
}

.user-controls {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

button.danger {
  background: red;
}