:root{
  --bg:#070b16;
  --card:#0d1630;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.16);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.70);
  --accent:#2f6bff;
  --glow:rgba(47,107,255,.35);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:radial-gradient(1200px 700px at 50% 0%, #162c68 0%, var(--bg) 55%);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:10;
  padding:14px 16px;
  background:linear-gradient(to bottom, rgba(7,11,22,.92), rgba(7,11,22,.70));
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.tabs{
  max-width:1120px; margin:0 auto;
  display:flex; gap:12px;
}
.tab{
  flex:1;
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(13,22,48,.75);
  border:1px solid var(--stroke);
  cursor:pointer;
  transition:.15s transform, .15s border-color, .15s background;
}
.tab:hover{ transform: translateY(-1px); border-color: var(--stroke2); }
.tab.active{ border-color: rgba(47,107,255,.65); box-shadow: 0 0 0 4px var(--glow); }

.tab img{
  width:34px;height:34px;border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  object-fit:cover;
}

.tab .tname{ font-weight:700; }
.tab .tsub{ font-size:12px; color:var(--muted); margin-top:1px; }

.page{ padding:18px 16px; }
.panel{
  max-width:1120px; margin:0 auto;
  background:linear-gradient(180deg, rgba(13,22,48,.92), rgba(11,19,40,.92));
  border:1px solid var(--stroke);
  border-radius:18px;
  overflow:hidden;
}

.header{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 18px;
  border-bottom:1px solid var(--stroke);
}
.name{ font-size:26px; font-weight:800; }
.sub{ color:var(--muted); margin-top:2px; }

.btn{
  background:var(--accent);
  color:white;
  border:none;
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  cursor:pointer;
}
.btn.ghost{
  background:transparent;
  border:1px solid var(--stroke2);
  color:var(--text);
}

.content{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:18px;
  padding:18px;
}
@media (max-width: 980px){
  .content{ grid-template-columns: 1fr; }
}

.left{ display:flex; flex-direction:column; gap:12px; }
.right{ display:flex; flex-direction:column; gap:14px; }

/* Lodestone-like title line */
.jobLine{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:4px;
}
.jobLine .lv{
  font-weight:900;
  color:#9ad0ff;
}
.jobLine .job{
  font-weight:900;
  letter-spacing:.6px;
  color:rgba(234,240,255,.85);
}

/* Stage: gear left, char center, gear right */
.lodestoneStage{
  display:grid;
  grid-template-columns: 84px 1fr 84px;
  gap:14px;
  align-items:start;
}

/* Gear strips */
.gearCol{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
}

.slotIcon{
  width:64px;
  height:64px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  object-fit:cover;
  display:block;
}
.slotIcon.empty{
  opacity:.18;
  filter: grayscale(1);
}

/* Center character */
.charStage{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  padding:14px;
  display:flex;
  justify-content:center;
}

#portrait{
  width:100%;
  max-width:520px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  object-fit:cover;
}

/* Jobs */
.section{
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:12px;
}
.sectionTitle{
  font-weight:800;
  margin-bottom:10px;
  color:rgba(234,240,255,.88);
}
.jobs{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap:10px;
}
.jobCard{
  padding:10px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(13,22,48,.55);
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.jobCard img{ width:30px; height:30px; }
.jobCard .lvl{ font-weight:900; color:#9ad0ff; }
.jobCard .jn{ font-size:11px; color:var(--muted); text-align:center; }

.section.small{
  display:flex; justify-content:space-between; align-items:center;
}
.muted{ color:var(--muted); font-size:12px; }

.contentOne{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.lodestoneStage{
  display:grid;
  grid-template-columns: 84px 1fr 84px;
  gap:14px;
  align-items:start;
}

.centerCol{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.charStage{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  padding:14px;
  display:flex;
  justify-content:center;
}

#portrait{
  width:100%;
  max-width:520px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  object-fit:cover;
}

/* keep gear columns like lodestone */
.gearCol{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
}

.slotIcon{
  width:64px;
  height:64px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06);
  object-fit:cover;
  display:block;
}
.slotIcon.empty{
  opacity:.18;
  filter: grayscale(1);
}
