:root{
  --bg: #0b0b10;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.46);
  --pink: #ff2d8f;
  --pink2: #ff6bb6;
  --border: rgba(255,255,255,.10);
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 24px;
  --safeB: env(safe-area-inset-bottom);
  --safeT: env(safe-area-inset-top);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,45,143,.18), transparent 55%),
    radial-gradient(1000px 500px at 85% 30%, rgba(255,107,182,.12), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(255,45,143,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }

.app{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  padding: calc(12px + var(--safeT)) 14px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11,11,16,.90), rgba(11,11,16,.55));
  border-bottom:1px solid var(--border);
}

.brand{
  display:flex; gap:12px; align-items:center;
}
.brand__dot{
  width:14px;height:14px;border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--pink) 30%, rgba(255,45,143,.2) 70%);
  box-shadow: 0 0 0 6px rgba(255,45,143,.10);
}
.brand__title{ font-weight:800; letter-spacing:.2px; }
.brand__sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.topbar__actions{ display:flex; gap:10px; }

.main{
  flex:1;
  padding: 14px 14px calc(86px + var(--safeB));
  max-width: 980px;
  width:100%;
  margin:0 auto;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.search{
  flex:1;
  min-width: 220px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
}
.search input{
  width:100%;
  background:transparent;
  border:0;
  outline:none;
  color:var(--text);
  font-size:14px;
}
.search input::placeholder{ color: var(--muted2); }

.select{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--text);
}
.select select{
  background:transparent;
  color:var(--text);
  border:0;
  outline:none;
  font-weight:700;
}

.btn{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
.btn--ghost{
  background: rgba(255,255,255,.04);
}
.btn:active{ transform: translateY(1px); }

.heroGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (min-width:720px){
  .heroGrid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.heroCard{
  overflow:hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border:1px solid var(--border);
  transition: transform .18s ease, border-color .18s ease;
}
.heroCard:active{ transform: scale(.985); }
.heroCard:hover{ border-color: rgba(255,45,143,.35); }

.heroCard__img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,.06);
}
.heroCard__body{
  padding:10px 10px 12px;
}
.heroCard__name{
  font-weight:800;
  line-height:1.1;
}
.heroCard__meta{
  margin-top:6px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
}
.pill--pink{
  background: rgba(255,45,143,.14);
  border-color: rgba(255,45,143,.35);
  color: #ffd3ea;
}

.detailHeader{
  overflow:hidden;
  border-radius: var(--radius2);
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.detailCover{
  width:100%;
  height: 210px;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,.06);
}
.detailBody{
  padding:12px 12px 14px;
}
.detailTitleRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.detailTitle{
  font-weight:900;
  font-size:22px;
  letter-spacing:.2px;
}
.detailType{
  color: var(--muted);
  font-weight:700;
  margin-top:4px;
}

.stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.stat{
  padding:10px 10px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.stat__label{ font-size:11px; color:var(--muted); }
.stat__value{ margin-top:4px; font-weight:900; }

.tabs{
  display:flex;
  gap:10px;
  margin:12px 0 10px;
}
.tabBtn{
  flex:1;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-weight:900;
  cursor:pointer;
}
.tabBtn.active{
  border-color: rgba(255,45,143,.45);
  background: rgba(255,45,143,.14);
}

.section{
  margin-top:12px;
  padding:12px;
  border-radius: var(--radius2);
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.h2{
  font-weight:900;
  margin:0 0 10px;
}
.muted{ color:var(--muted); }

.skillRow, .itemRow{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.skillRow:first-child, .itemRow:first-child{ border-top:0; }
.icon{
  width:54px; height:54px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  object-fit: cover;
}
.rowTitle{ font-weight:900; }
.rowText{ color: var(--muted); font-size:13px; margin-top:4px; white-space:pre-line; }
.rowTips{
  margin-top:8px;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(255,45,143,.10);
  border:1px solid rgba(255,45,143,.25);
  color: rgba(255,255,255,.88);
  font-size:13px;
  white-space:pre-line;
}

.bottombar{
  position:fixed;
  left:0; right:0; bottom:0;
  padding: 10px 14px calc(10px + var(--safeB));
  background: linear-gradient(to top, rgba(11,11,16,.92), rgba(11,11,16,.55));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  display:flex;
  justify-content:center;
  gap:12px;
}

.tab{
  flex:1;
  max-width: 420px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.84);
  font-weight:900;
}
.tab.active{
  border-color: rgba(255,45,143,.45);
  background: rgba(255,45,143,.14);
  color: #ffd3ea;
}

.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(86px + var(--safeB));
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  max-width: 92vw;
  display:none;
}
.toast.show{ display:block; }