:root{
  --bg:#0b1020;
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.54);
  --shadow: 0 20px 80px rgba(0,0,0,.45);
  --radius: 18px;

  --ring: rgba(120,160,255,.45);
  --scrollTrack: rgba(255,255,255,0.06);
  --scrollThumb: rgba(255,255,255,0.22);
  --scrollThumbHover: rgba(255,255,255,0.38);
}

*{ 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 25% 0%, rgba(60,120,255,.20), transparent 55%),
              radial-gradient(1000px 600px at 80% 10%, rgba(255,80,160,.16), transparent 50%),
              radial-gradient(900px 700px at 60% 80%, rgba(80,255,210,.12), transparent 55%),
              var(--bg);
  overflow-x:hidden;
}

a, button, input, select { -webkit-tap-highlight-color: transparent; }

:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 12px;
}

.bg{ position:fixed; inset:0; pointer-events:none; }
.glow{
  position:absolute; filter: blur(60px); opacity:.55;
  width:520px; height:520px; border-radius:999px;
}
.g1{ left:-120px; top:-120px; background: radial-gradient(circle at 30% 30%, rgba(90,140,255,.35), transparent 60%); }
.g2{ right:-160px; top:80px; background: radial-gradient(circle at 40% 40%, rgba(255,90,180,.25), transparent 60%); }
.g3{ left:30%; bottom:-200px; background: radial-gradient(circle at 40% 40%, rgba(80,255,220,.18), transparent 60%); }

.wrap{ max-width: 1120px; margin: 0 auto; padding: 26px 18px 40px; }

/* Top header */
.top{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; margin-bottom: 18px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.dot{
  width:12px; height:12px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(120,160,255,.95));
  box-shadow: 0 0 0 6px rgba(120,160,255,.12);
}
.title{ font-weight:700; letter-spacing:-.02em; }
.subtitle{ color: var(--muted2); font-size: 13px; margin-top: 2px; }
.actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-decoration:none;
  box-shadow: 0 10px 35px rgba(0,0,0,.20);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor:pointer;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.20); }
.btn:active{ transform: translateY(0px); }
.btn.ghost{ background: rgba(255,255,255,.04); box-shadow:none; }
.btn i{ width:18px; height:18px; opacity:.95; }

.smallBtn{
  padding: 9px 10px;
  font-size: 12.5px;
}

/* Layout grid */
.grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items:start;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card:hover{ border-color: rgba(255,255,255,.16); }

/* Anim */
.card-anim{
  transform: translateY(8px);
  opacity: 0;
  animation: rise .55s ease forwards;
}
@keyframes rise{ to { transform: translateY(0); opacity: 1; } }

/* Left profile */
.profile{ padding: 18px; }
.avatar{
  width: 100%;
  height: 260px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.pname{ margin-top: 14px; font-size: 18px; font-weight: 700; letter-spacing:-.02em; }
.prole{ margin-top: 5px; color: var(--muted); font-size: 13.5px; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px; }
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.15);
  color: var(--muted);
  font-size: 12.5px;
}
.chip i{ width:16px; height:16px; opacity:.9; }

.links{ margin-top: 14px; display:flex; flex-direction:column; gap:10px; }
.link{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.link:hover{ transform: translateY(-1px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.20); }
.link i{ width:18px; height:18px; }
.link span{ flex:1; color: rgba(255,255,255,.88); }

/* Mini card */
.mini{ margin-top: 18px; padding: 16px; }
.miniRow{ display:flex; gap:12px; padding: 12px; border-radius: 14px; }
.miniRow + .miniRow{ margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.miniIcon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.miniIcon i{ width:18px; height:18px; }
.miniTitle{ font-weight: 600; }
.miniText{ color: var(--muted); margin-top: 2px; font-size: 13px; }

/* Right */
.right{ display:flex; flex-direction:column; gap: 18px; }

/* About */
.hero{ padding: 18px; }
.heroTop{ display:block; }
.hero h1{ margin:0; font-size: 18px; letter-spacing:-.02em; }
.lead{ margin: 10px 0 0; color: var(--muted); line-height: 1.55; }

/* 3 highlight cards */
.cards3{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.smallCard{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 12px 12px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.smallCard:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.smallTop{ display:flex; align-items:center; gap:10px; }
.smallTop i{ width:18px; height:18px; opacity:.95; }
.smallTitle{ font-weight: 700; font-size: 13.5px; }
.smallText{ margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Publications */
.pubs{ padding: 18px; }

.pubTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pubTopLeft h2{
  margin:0;
  font-size: 18px;
  letter-spacing:-.02em;
}
.muted{ color: var(--muted2); font-size: 13px; margin-top: 6px; }

.stat{
  min-width: 190px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding: 12px 14px;
  text-align:right;
}
.statNum{ font-size: 22px; font-weight: 800; letter-spacing:-.02em; }
.statLabel{ color: var(--muted2); font-size: 12.5px; margin-top: 2px; }

.statCompact{
  min-width: 210px;
  padding: 10px 12px;
}

.pubHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  /* sticky while list scrolls */
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 0 12px;
  margin: -6px 0 10px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,16,32,.75), rgba(11,16,32,0));
}

.pubTools{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; width: 100%; }

.input,.select{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.90);
  padding: 10px 12px;
  outline:none;
}
.input{ flex: 1 1 260px; min-width: 180px; }
.input::placeholder{ color: rgba(255,255,255,.45); }
.select{ flex: 0 0 150px; cursor:pointer; }

/* Scrollable list */
.pubList{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 10px;

  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.pubList::-webkit-scrollbar { width: 8px; }
.pubList::-webkit-scrollbar-track { background: var(--scrollTrack); border-radius: 10px; }
.pubList::-webkit-scrollbar-thumb { background: var(--scrollThumb); border-radius: 10px; }
.pubList::-webkit-scrollbar-thumb:hover { background: var(--scrollThumbHover); }
.pubList{ scrollbar-width: thin; scrollbar-color: var(--scrollThumb) var(--scrollTrack); }

.pubItem{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 12px 12px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pubItem:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

.badge{
  min-width: 74px;
  padding: 8px 10px;
  border-radius: 14px;
  text-align:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  font-weight: 700;
}

.pubMain{ flex:1; min-width: 0; }
.pubTitle{
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing:-.01em;
}
.pubMetaLine{ margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pubMetaLine code{
  background: rgba(0,0,0,.22);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
}

.pubActions{ display:flex; gap:8px; align-items:center; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-size: 12.5px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.pill:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.pill i{ width:16px; height:16px; }

.pubBottom{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 12px;
}

.loadMoreBtn{ justify-content:center; width: 100%; }

.foot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Footer */
.footer{
  display:flex; gap:10px; align-items:center; justify-content:center;
  color: var(--muted2);
  padding: 8px 0 0;
}
.footer a{ color: rgba(255,255,255,.75); text-decoration:none; }
.footer a:hover{ text-decoration:underline; }
.sep{ opacity:.55; }

.skeleton{
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.12);
  color: rgba(255,255,255,.65);
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card-anim{ opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .cards3{ grid-template-columns: repeat(2, 1fr); }

  .pubTop{ flex-direction:column; align-items:stretch; }
  .stat, .statCompact{ text-align:left; min-width: 0; }

  .pubList{ max-height: 520px; }
}

/* Mobile */
@media (max-width: 620px){
  .top{ flex-direction:column; align-items:flex-start; }
  .actions{ width:100%; }
  .btn{ width:auto; }

  .cards3{ grid-template-columns: 1fr; }

  .pubTools{ flex-direction:column; align-items:stretch; }
  .input, .select{ width: 100%; flex: 1 1 auto; }
  .pubHeader{ align-items:stretch; }
  .foot{ flex-direction:column; align-items:flex-start; }
}