:root {
  color-scheme: dark;
  --bg: #070b14;
  --panel: rgba(255,255,255,.065);
  --panel-strong: rgba(255,255,255,.095);
  --line: rgba(148,163,184,.2);
  --text: #f8fafc;
  --muted: rgba(226,232,240,.68);
  --cyan: #4ce9ff;
  --lime: #9dfc7c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(76,233,255,.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(157,252,124,.12), transparent 30rem),
    var(--bg);
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
.icon-sprite { display: none; }
.account-topbar {
  width: min(1080px, calc(100% - 28px));
  margin: 14px auto 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 10px;
  background: rgba(7,11,20,.78);
  backdrop-filter: blur(16px);
}
.account-brand, .account-topbar nav, .account-topbar nav a { display: flex; align-items: center; }
.account-brand { gap: 10px; font-weight: 950; }
.account-brand span, .account-topbar nav a svg { color: var(--cyan); }
.account-brand span {
  width: 38px; height: 38px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(76,233,255,.12);
}
.account-topbar nav { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.account-topbar nav a {
  gap: 7px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}
.account-topbar nav a:hover, .account-topbar nav a.is-active { background: rgba(255,255,255,.1); color: #fff; }
.account-shell { width: min(1080px, calc(100% - 28px)); margin: 20px auto 48px; }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}
.dashboard-hero > div, .account-card, .metric-grid article, .panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
}
.dashboard-hero > div { padding: clamp(20px, 3vw, 30px); }
.eyebrow, .panel-head p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
}
h1, h2, p { margin-top: 0; }
h1 { max-width: 620px; margin-bottom: 10px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: break-word; }
.hero-copy { max-width: 52ch; margin-bottom: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.account-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, rgba(76,233,255,.16), rgba(255,255,255,.055));
}
.account-card span, .account-card small { color: var(--muted); }
.account-card strong { margin: 8px 0 6px; font-size: 23px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.metric-grid article { min-height: 104px; padding: 16px; display: flex; flex-direction: column; gap: 5px; }
.metric-grid span, .metric-grid small { color: var(--muted); }
.metric-grid strong { margin-top: auto; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.03em; }
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 10px;
}
.panel { padding: 16px; min-width: 0; }
.panel-wide { grid-column: span 1; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.panel-head a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  background: rgba(255,255,255,.06);
  white-space: nowrap;
}
.program-list, .activity-list { display: grid; gap: 8px; }
.program-row, .activity-row {
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 15px;
  padding: 10px 12px;
  background: rgba(255,255,255,.045);
}
.program-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.program-icon {
  width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}
.program-row strong, .activity-row strong { display: block; margin-bottom: 4px; font-size: 15px; }
.program-row small, .activity-row small, .program-row em { color: var(--muted); font-style: normal; }
.program-row small::after { content: " · "; }
.program-row b {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(157,252,124,.12);
  color: var(--lime);
  font-size: 12px;
  white-space: nowrap;
}
.program-row.is-empty b { background: rgba(255,255,255,.08); color: var(--muted); }
.wallet-panel { display: grid; align-content: start; gap: 12px; }
.wallet-ring {
  width: min(170px, 70%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--cyan) var(--wallet-deg, 0deg), rgba(255,255,255,.08) 0);
  position: relative;
}
.wallet-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #0b1020;
}
.wallet-ring span { position: relative; font-size: 28px; font-weight: 950; }
.wallet-lines, .usage-list { display: grid; gap: 10px; }
.wallet-lines span, .usage-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.045);
}
.wallet-lines small, .usage-list small { color: var(--muted); }
.activity-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.activity-row span { color: var(--cyan); font-weight: 950; white-space: nowrap; }
.empty-state { padding: 14px; border: 1px dashed rgba(148,163,184,.24); border-radius: 15px; color: var(--muted); }
@media (max-width: 920px) {
  .dashboard-hero, .dashboard-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .account-topbar { align-items: flex-start; flex-direction: column; }
  .account-topbar nav { justify-content: flex-start; }
  .account-shell { width: min(100% - 20px, 1080px); margin-top: 14px; }
  .dashboard-hero { gap: 8px; margin-bottom: 8px; }
  .dashboard-hero > div, .account-card { padding: 16px; }
  .account-card strong { font-size: 20px; }
  h1 { font-size: 28px; }
  .hero-copy { font-size: 13px; line-height: 1.45; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid article { min-height: 88px; padding: 12px; }
  .metric-grid strong { font-size: 24px; }
  .panel { padding: 14px; }
  .program-row { grid-template-columns: 38px minmax(0, 1fr); }
  .program-row b { grid-column: 2; justify-self: start; }
  .wallet-ring { width: 140px; }
  .activity-row { display: grid; }
}
