:root{
  --bg:#070A12;
  --card:#0B1020;
  --card2:#0A0F1E;
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.07);
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.55);
  --accent:#B892FF;
  --accent2:#7AF0D4;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 20px;
  --radius2: 28px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1000px 600px at 15% 10%, rgba(184,146,255,.18), transparent 55%),
              radial-gradient(900px 650px at 85% 30%, rgba(122,240,212,.12), transparent 60%),
              linear-gradient(180deg, #070A12, #05060C 55%, #04040A);
  color:var(--text);
  overflow-x:hidden;
}

.wrap{max-width:var(--max); margin:0 auto; padding: 0 18px;}
a{color:inherit; text-decoration:none}

.bg-orb{
  position:fixed;
  width:520px; height:520px;
  filter: blur(70px);
  opacity:.55;
  z-index:-1;
}
.orb1{left:-160px; top:-140px; background: radial-gradient(circle at 30% 30%, rgba(184,146,255,.75), transparent 55%);}
.orb2{right:-220px; top:100px; background: radial-gradient(circle at 30% 30%, rgba(122,240,212,.55), transparent 55%);}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--stroke2);
  background: rgba(7,10,18,.62);
  backdrop-filter: blur(14px);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}
.brand{display:flex; gap:12px; align-items:center;}
.brand-mark{
  width:42px;height:42px;border-radius:14px;
  background: linear-gradient(135deg, rgba(184,146,255,1), rgba(122,240,212,1));
  box-shadow: 0 10px 26px rgba(184,146,255,.22);
}
.brand-name{font-weight:800; letter-spacing:.6px;}
.brand-sub{font-size:12px; color:var(--muted2); margin-top:2px;}
.top-actions{display:flex; gap:10px; align-items:center;}

.ghost{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  transition:.2s ease;
}
.ghost:hover{transform: translateY(-1px); background: rgba(255,255,255,.05);}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  padding: 26px 0 10px;
}
.hero h1{font-size:38px; margin:0 0 10px; letter-spacing:-.5px;}
.muted{color:var(--muted);}

.hero-controls{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-direction:column;
}

.search{
  position:relative;
  background: rgba(255,255,255,.03);
  border:1px solid var(--stroke);
  border-radius:18px;
  padding: 12px 14px 12px 40px;
}
.search input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
}
.search-icon{
  position:absolute;
  left:14px;
  top:10px;
  opacity:.75;
  font-size:16px;
}

.chips{display:flex; flex-wrap:wrap; gap:8px;}
.chip{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:.2s ease;
  font-size:13px;
}
.chip.active{
  color:var(--text);
  border-color: rgba(184,146,255,.35);
  background: linear-gradient(135deg, rgba(184,146,255,.16), rgba(122,240,212,.10));
}

.hero-right{display:grid; gap:12px;}
.statcard{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius: var(--radius2);
  padding:16px;
  box-shadow: var(--shadow);
}
.stat-title{font-size:12px; color:var(--muted2);}
.stat-value{font-size:26px; font-weight:800; margin-top:6px;}
.stat-note{font-size:12px; color:var(--muted2); margin-top:6px;}

.grid-head{margin-top:20px;}
.grid-head h2{margin:0 0 6px; font-size:20px;}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  padding: 14px 0 28px;
}

.card{
  background: linear-gradient(180deg, rgba(11,16,32,.92), rgba(10,15,30,.84));
  border:1px solid var(--stroke);
  border-radius: var(--radius2);
  padding:16px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  transition:.22s ease;
}
.card:hover{transform: translateY(-2px);}
.card::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width:240px; height:240px;
  background: radial-gradient(circle at 30% 30%, rgba(184,146,255,.22), transparent 60%);
  filter: blur(6px);
  transform: rotate(20deg);
}
.badges{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px;}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke2);
  background: rgba(255,255,255,.03);
  color:var(--muted);
}
.badge.live{border-color: rgba(122,240,212,.28); color: rgba(197,255,240,.95);}
.badge.soon{border-color: rgba(184,146,255,.28); color: rgba(234,240,255,.92);}
.badge.end{border-color: rgba(255,255,255,.18); color: rgba(234,240,255,.70);}

.title{font-weight:800; letter-spacing:.2px; margin:0 0 8px; font-size:16px;}
.desc{margin:0 0 14px; color:var(--muted); font-size:13px; line-height:1.55;}
.meta{display:flex; justify-content:space-between; gap:12px; color:var(--muted2); font-size:12px; margin-bottom:14px;}

.btnrow{display:flex; gap:10px; align-items:center;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:16px;
  border:1px solid rgba(184,146,255,.35);
  background: linear-gradient(135deg, rgba(184,146,255,.22), rgba(122,240,212,.14));
  color: var(--text);
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.btn:hover{transform: translateY(-1px);}
.small{
  padding:11px 12px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}

.footer{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid var(--stroke2);
  padding:18px 0 26px;
  color:var(--muted2);
  font-size:12px;
}

.modal{position:fixed; inset:0; display:none; z-index:80;}
.modal.show{display:block;}
.modal-backdrop{position:absolute; inset:0; background: rgba(0,0,0,.62);}
.modal-card{
  position:relative;
  width:min(560px, calc(100% - 28px));
  margin: 10vh auto 0;
  background: linear-gradient(180deg, rgba(11,16,32,.96), rgba(10,15,30,.92));
  border:1px solid var(--stroke);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:16px;
}
.modal-head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px;}
.modal-title{font-weight:900; font-size:16px;}
.modal-sub{font-size:12px; margin-top:4px;}
.iconbtn{
  width:38px; height:38px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  font-size:20px;
  line-height:0;
}
.modal-preview{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--stroke2);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

@media (max-width: 920px){
  .hero{grid-template-columns:1fr; gap:14px;}
  .grid{grid-template-columns: repeat(2, 1fr);}
  .hero h1{font-size:32px;}
}
@media (max-width: 560px){
  .grid{grid-template-columns:1fr;}
  .top-actions{gap:8px;}
}
