@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root{
  --bg1:#f5f6f8;
  --bg2:#eef1f6;
  --card:rgba(255,255,255,.82);
  --stroke:rgba(0,0,0,.08);
  --text:#0b0f1a;
  --muted:rgba(11,15,26,.58);
  --shadow:0 18px 60px rgba(10, 20, 40, .10);
  --shadow2:0 10px 30px rgba(10, 20, 40, .08);
  --accent:#1f7aff;
  --accent2:#21c7ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 10% 10%, #ffffff 0%, transparent 60%),
              radial-gradient(900px 600px at 90% 20%, #dbe8ff 0%, transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
}

.bg{
  position:fixed; inset:0;
  background:
    linear-gradient(transparent 95%, rgba(0,0,0,.03) 96%),
    linear-gradient(90deg, transparent 95%, rgba(0,0,0,.03) 96%);
  background-size:56px 56px;
  opacity:.18;
  pointer-events:none;
}

.wrap{max-width:1040px; margin:0 auto; padding:44px 22px 24px;}

.topbar{
  position:sticky; top:0;
  z-index:10;
  padding:14px 22px;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.55);
  border-bottom:1px solid rgba(0,0,0,.06);
  display:flex; align-items:center; justify-content:space-between;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{font-weight:800; letter-spacing:.10em}
.logoAccent{color:var(--accent)}
.pill{
  font-size:12px; padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.7);
  color:rgba(11,15,26,.65);
}

.nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.navLink{
  text-decoration:none;
  color:rgba(11,15,26,.72);
  font-weight:600;
  padding:8px 10px;
  border-radius:12px;
}
.navLink:hover{background:rgba(0,0,0,.04)}

.hero{padding-top:22px}
.card{
  max-width:760px;
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:34px;
}

.cardHeader h1{margin:0 0 10px; font-size:44px; letter-spacing:-.02em}
.muted{color:var(--muted)}
.small{font-size:12px}

.searchRow{margin-top:18px}
.search{
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
}
.input{
  flex:1;
  min-width:260px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  padding:14px 14px;
  font-size:15px;
  outline:none;
  background:rgba(255,255,255,.92);
}
.input:focus{border-color:rgba(31,122,255,.35); box-shadow:0 0 0 4px rgba(31,122,255,.12)}

.hint{margin-top:8px; font-size:12px; color:rgba(11,15,26,.48)}

.actions{display:flex; gap:14px; margin-top:22px; flex-wrap:wrap; align-items:flex-start}
.btn{
  appearance:none; border:none; cursor:pointer;
  padding:12px 16px;
  border-radius:16px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow2);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:white;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0px)}

.btn.secondary{
  background:rgba(255,255,255,.9);
  color:rgba(11,15,26,.78);
  border:1px solid rgba(0,0,0,.10);
  box-shadow:none;
}
.btn.secondary:hover{background:rgba(255,255,255,1)}

.btn.small{padding:10px 12px; border-radius:14px; font-size:13px}
.btn.secondary.small{box-shadow:none}

.tgBox{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px 14px;
  border:1px dashed rgba(0,0,0,.14);
  border-radius:18px;
  background:rgba(255,255,255,.55);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .cardHeader h1{font-size:36px}
}

.panel{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow2);
}
.panel h2{margin:0 0 10px; letter-spacing:-.01em}

.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.rowSpace{display:flex; gap:16px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap}
.mt{margin-top:14px}

.list{display:flex; flex-direction:column; gap:12px; margin-top:12px}
.li{
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.72);
  border-radius:18px;
}
.liTitle{font-weight:800; margin-bottom:6px}

.table{margin-top:14px; display:flex; flex-direction:column; gap:8px}
.tr{
  display:grid;
  grid-template-columns: 1.8fr .6fr .8fr;
  gap:12px;
  padding:12px 12px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.72);
  border-radius:18px;
  align-items:center;
}
.tr.head{background:transparent; border:none; padding:2px 2px; color:rgba(11,15,26,.55); font-weight:700}
.name{font-weight:700}
.right{display:flex; justify-content:flex-end}

.empty{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.72);
  color:rgba(11,15,26,.60);
}

.center{text-align:center}

.footer{
  max-width:1040px;
  margin:0 auto;
  padding:18px 22px 26px;
  display:flex; justify-content:space-between;
  color:rgba(11,15,26,.45);
  font-size:12px;
}


/* header auth widget */
.auth{display:flex; align-items:center; gap:12px}
.tgMini{display:flex; align-items:center; justify-content:center}

/* user chip */
.userChip{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.75);
}
.avatar{
  width:34px; height:34px; border-radius:12px;
  object-fit:cover; border:1px solid rgba(0,0,0,.08);
}
.avatar.ph{
  background:linear-gradient(135deg, rgba(31,122,255,.25), rgba(33,199,255,.25));
}
.userMeta{display:flex; flex-direction:column; line-height:1.1}
.userName{font-weight:800; font-size:13px; color:rgba(11,15,26,.85)}
.userSub{font-size:11px; color:rgba(11,15,26,.45)}
.logoutBtn{
  margin-left:6px;
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  text-decoration:none;
  color:rgba(11,15,26,.65);
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.85);
}
.logoutBtn:hover{background:rgba(0,0,0,.04)}
.logoutIcon{font-size:14px; transform:translateY(-.5px)}
