:root{
  --bg:#0b0f14;
  --card:#121821;
  --card-2:#0e141b;
  --text:#e6edf3;
  --muted:#9fb0c0;
  --primary:#4dc1ff;
  --primary-2:#2ea1df;
  --danger:#ff6b6b;
  --ok:#40c463;
  --ring:rgba(77,193,255,.4);
  --border:rgba(255,255,255,.08);
  --shadow:0 10px 30px rgba(0,0,0,.4);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial;
  color:var(--text); background:linear-gradient(180deg,#0b0f14,#0a0e13 40%);
}

.app-header{
  position:sticky; top:0; z-index:10; backdrop-filter:saturate(1.2) blur(10px);
  background:rgba(10,14,19,.7); border-bottom:1px solid var(--border);
}
.nav{
  display:flex; gap:8px; padding:8px 16px 16px 16px; flex-wrap:wrap; align-items:center;
}

/* Logo in navbar */
.nav-logo{
  height:40px;
  width:auto;
  border-radius:8px;
  margin-right:16px;
}

/* Tabs & Buttons */
.tab-btn{
  background:var(--card); border:1px solid var(--border); color:var(--text);
  padding:8px 12px; border-radius:12px; cursor:pointer; transition:.2s transform;
}
.tab-btn:hover{transform:translateY(-1px)}
.tab-btn.active{outline:2px solid var(--ring); border-color:transparent}

.btn{
  background:#0a1017; color:var(--text); border:1px solid var(--border);
  padding:10px 14px; border-radius:12px; cursor:pointer; transition:.2s transform, .2s background;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(180deg,var(--primary),var(--primary-2)); border-color:transparent; color:#00121a}
.btn.ghost{background:transparent}
.btn.danger{border-color:transparent; background:linear-gradient(180deg,#ff7b7b,#ff4d4d); color:#2b0000}
.btn.paypal{
  background:linear-gradient(180deg,#ffc439,#f7a600);
  color:#2b1800; border-color:transparent; margin-left:auto;
}
.btn.small{
  padding:6px 10px;
  font-size:12px;
}

.container{max-width:1100px; margin:24px auto; padding:0 16px}
.card{
  background:var(--card); border:1px solid var(--border); border-radius:16px;
  padding:18px; box-shadow:var(--shadow);
}
.card.subtle{background:var(--card-2)}
.divider{height:1px; background:var(--border); margin:16px 0}

.grid{display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr))}
.grid .span-2{grid-column:span 2}
.stack{display:flex; flex-direction:column; gap:12px}
.list{display:flex; flex-direction:column; gap:10px}

.field label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
.field input, .field select, .field textarea{
  width:100%; padding:10px 12px; background:#0a1017; color:var(--text);
  border:1px solid var(--border); border-radius:12px; outline:none; transition:border .15s, box-shadow .15s;
}
.field textarea{resize:vertical}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:transparent; box-shadow:0 0 0 3px var(--ring);
}

.muted{color:var(--muted)}
.pill{
  display:inline-block; padding:8px 12px; background:#0a1017; border:1px solid var(--border);
  border-radius:999px; min-width:120px; text-align:center;
}

.stat{background:var(--card-2); border:1px solid var(--border); border-radius:14px; padding:14px}
.stat-label{font-size:12px; color:var(--muted)}
.stat-value{font-size:22px; margin-top:4px}

.toolbar{display:flex; flex-wrap:wrap; gap:12px; margin-bottom:12px}
.actions{display:flex; gap:10px; margin-top:12px}
.actions.wrap{flex-wrap:wrap}

/* Info banner */
.info-banner{
  background:var(--card-2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.info-banner p{
  margin:0;
  font-size:13px;
  color:var(--muted);
}

/* Sessions list */
.session-item{
  display:grid; gap:10px; grid-template-columns:1fr auto; align-items:center;
  background:var(--card-2); border:1px solid var(--border); border-radius:14px; padding:12px;
}
.session-meta{display:flex; gap:14px; flex-wrap:wrap; align-items:center}
.session-title{font-weight:700}
.session-sub{font-weight:400; opacity:.85}
.tag{padding:4px 8px; border-radius:999px; border:1px solid var(--border); color:var(--muted); font-size:12px}
.tag.ok{color:#0dd06a; border-color:#0dd06a33}
.tag.bad{color:#ff6b6b; border-color:#ff6b6b44}

.app-footer{max-width:1100px; margin:24px auto; padding:0 16px 40px; color:var(--muted)}
.app-footer{
  max-width:1100px;
  margin:24px auto;
  padding:0 16px 40px;
  color:var(--muted);
  font-size:13px;
}

.footer-top{
  margin-bottom:6px;
}

.footer-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  align-items:center;
}

.footer-link{
  color:var(--primary);
  text-decoration:none;
}
.footer-link:hover{
  text-decoration:underline;
}

.footer-copy{
  opacity:0.85;
}
.hidden{display:none}
.tab{display:none}
.tab.active{display:block}

/* Clean file input */
.file{display:flex; align-items:center; gap:10px}
.file input{display:none}
.file .btn{margin:0}
.file-name{font-size:12px}

/* Overview chart */
.wr-chart{
  width:100%;
  max-width:100%;
  display:block;
}

@media (max-width:760px){
  .grid{grid-template-columns:1fr}
}
