:root {
  --bg: #0b0c10;
  --surface: #11131a;
  --surface-strong: #0f1118;
  --border: #1a1e2b;
  --text: #e8eaf1;
  --muted: #9aa2b8;
  --accent: #5865f2;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

main { width: 100%; }

.page-frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-surface {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  overflow: hidden;
}

.banner-wrap {
  position: relative;
  padding: 0 0 24px;
}

.hero-banner {
  height: 180px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(88,101,242,0.25), rgba(0,168,255,0.25));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-info {
  display: flex;
  gap: 14px;
  align-items: center;
  position: absolute;
  left: 18px;
  bottom: -28px;
  padding: 12px 14px;
  background: rgba(12, 13, 16, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(88, 101, 242, 0.6);
  background: rgba(255,255,255,0.06);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.pill.soft { background: rgba(255, 255, 255, 0.04); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
}

h1 { font-size: 28px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 6px; }

.section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 18px 0; }
.section-column { display: flex; flex-direction: column; gap: 12px; }
.section-header { display: flex; justify-content: space-between; align-items: center; }

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.metric-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
.metric-card .label { font-size: 13px; color: var(--muted); }
.metric-card .value { font-size: 22px; font-weight: 700; margin-top: 4px; }

.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item-list li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.item-list .title { font-weight: 600; }
.item-list .sub { font-size: 13px; color: var(--muted); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tag-list li { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }

.pill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.cmd-pill { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
.cmd-pill .title { font-weight: 700; }
.cmd-pill .sub { font-size: 12px; color: var(--muted); }

.memory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.memory-card { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.memory-card .label { font-size: 13px; color: var(--muted); }
.memory-card .value { font-size: 16px; font-weight: 600; }

.notice { margin-top: 16px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text); }

.muted { color: var(--muted); }

.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.loader p { margin: 0; font-weight: 600; }

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
