:root {
  --blue: #0a66c2;
  --blue-hover: #004182;
  --blue-tint: rgba(112, 181, 249, 0.15);
  --bg: #f4f2ee;
  --card: #ffffff;
  --border: rgba(140, 140, 140, 0.2);
  --border-strong: rgba(0, 0, 0, 0.6);
  --text: rgba(0, 0, 0, 0.9);
  --text-2: rgba(0, 0, 0, 0.6);
  --text-3: rgba(0, 0, 0, 0.45);
  --green: #057642;
  --green-bg: #dde7f1;
  --red: #b24020;
  --premium: #915907;
  --premium-bg: #f8c77e;
  --nav-h: 52px;
  --radius: 8px;
  --font: -apple-system, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.43;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a.link { color: var(--blue); font-weight: 600; }
a.link:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- global nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1128px; margin: 0 auto; height: 100%; padding: 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.nav__logo {
  width: 34px; height: 34px; border-radius: 4px;
  background: var(--blue) url('../assets/logo.png') center / cover no-repeat;
  color: transparent; font-size: 0; display: block; overflow: hidden; flex: 0 0 auto;
}
.nav__search {
  height: 34px; width: 280px; background: #edf3f8; border-radius: 4px;
  display: flex; align-items: center; padding: 0 8px; gap: 6px; color: var(--text-2);
}
.nav__search svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.nav__search input { border: 0; background: transparent; outline: 0; font: inherit; font-size: 14px; width: 100%; color: var(--text); }
.nav__items { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.nav__item {
  position: relative; width: 80px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 12px; line-height: 1.2;
  border: 0; background: transparent; padding-top: 4px;
}
.nav__item svg { width: 24px; height: 24px; fill: currentColor; }
.nav__item:hover, .nav__item.active { color: var(--text); }
.nav__item.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--text); }
.nav__item .badge {
  position: absolute; top: 6px; left: calc(50% + 2px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #cb112d; color: #fff; font-size: 10px; font-weight: 600;
  display: grid; place-items: center; border: 2px solid #fff;
}
.nav__item .caret { width: 16px; height: 16px; margin-left: 2px; }
.nav__item .label-row { display: flex; align-items: center; }
.nav__divider { width: 1px; height: 36px; background: var(--border); align-self: center; margin: 0 8px; }
.nav__premium { color: var(--premium); text-decoration: underline; font-size: 12px; white-space: nowrap; padding: 0 4px; align-self: center; }
.nav__me-avatar { width: 24px; height: 24px; border-radius: 50%; }
.nav__wallet { align-self: center; margin-left: 4px; position: relative; }
.nav__wallet .btn { height: 32px; font-size: 14px; padding: 0 12px; }
.nav__wallet .btn svg.caret { width: 16px; height: 16px; }
.nav__menu { position: relative; display: flex; }

/* ---------- dropdown ---------- */
.dropdown {
  position: absolute; top: calc(100% + 2px); right: 0; width: 288px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); padding: 12px;
  text-align: left; color: var(--text); z-index: 60; font-size: 14px;
}
.dropdown__head { display: flex; gap: 8px; align-items: flex-start; padding-bottom: 8px; }
.dropdown__section { border-top: 1px solid var(--border); padding: 8px 0 0; margin-top: 8px; font-size: 14px; }
.dropdown__section h4 { font-size: 14px; margin-bottom: 4px; }
.dropdown__section a, .dropdown__section button.plain {
  display: block; color: var(--text-2); padding: 4px 0; font-size: 12px;
  background: none; border: 0; text-align: left; width: 100%; font-family: inherit;
}
.dropdown__section a:hover, .dropdown__section button.plain:hover { text-decoration: underline; }
.notif-list { max-height: 360px; overflow: auto; }
.notif { display: flex; gap: 8px; padding: 8px 4px; border-radius: 4px; font-size: 13px; color: var(--text); }
.notif:hover { background: #f3f6f8; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 6px; flex: 0 0 auto; }
.notif time { color: var(--text-2); font-size: 12px; white-space: nowrap; margin-left: auto; }

/* ---------- layout ---------- */
.page { max-width: 1128px; margin: 0 auto; padding: 24px 16px 48px; }
.grid { display: grid; grid-template-columns: 225px minmax(0, 555px) 300px; gap: 24px; justify-content: center; }
.grid--wide { grid-template-columns: minmax(0, 804px) 300px; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col--sticky { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }

/* ---------- card ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.card__body { padding: 12px 16px; }
.card__title { font-size: 16px; font-weight: 600; padding: 12px 16px 4px; }
.card__sub { color: var(--text-2); font-size: 12px; }
.card__row { padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.card__row:hover { background: #f3f6f8; }
.card__footer { display: block; border-top: 1px solid var(--border); padding: 8px 16px; text-align: center; color: var(--text-2); font-weight: 600; }
.card__footer:hover { background: #f3f6f8; }
.divider { height: 1px; background: var(--border); margin: 8px 0; }
.section-title { font-size: 14px; color: var(--text-2); font-weight: 600; padding: 12px 16px 0; }

/* ---------- profile card (left rail) ---------- */
.pc__banner { height: 56px; background: linear-gradient(135deg, #a0b4b7 0%, #dce6f1 100%); }
.pc__banner--blue { background: linear-gradient(120deg, #0a66c2 0%, #70b5f9 100%); }
.pc__avatar {
  width: 72px; height: 72px; border-radius: 50%; border: 2px solid #fff;
  margin: -38px auto 0; background: #e9e5df; display: grid; place-items: center;
  font-size: 26px; font-weight: 600; color: var(--text-2); overflow: hidden;
}
.pc__name { text-align: center; font-size: 16px; font-weight: 600; margin-top: 8px; padding: 0 12px; }
.pc__headline { text-align: center; color: var(--text-2); font-size: 12px; padding: 0 12px 12px; }
.pc__stat { display: flex; justify-content: space-between; padding: 4px 12px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.pc__stat b { color: var(--blue); }
.pc__stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 0; }
.pc__stats a:hover .pc__stat { background: #f3f6f8; }
.pc__premium { padding: 12px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.pc__premium b { display: flex; align-items: center; gap: 4px; color: var(--text); }
.pc__premium .sq { width: 12px; height: 12px; background: var(--premium-bg); display: inline-block; }
.pc__saved { padding: 12px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pc__saved svg { width: 16px; height: 16px; fill: var(--text-2); flex: 0 0 auto; }
.pc__saved + .pc__saved { border-top: 1px solid var(--border); }

/* avatars */
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: #e9e5df;
  display: grid; place-items: center; font-weight: 600; color: var(--text-2);
  flex: 0 0 auto; overflow: hidden; font-size: 18px;
}
.avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.avatar--xl { width: 120px; height: 120px; font-size: 40px; border: 4px solid #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--token { border-radius: 4px; }
.avatar--brand { background: var(--blue) url('../assets/logo.png') center / cover no-repeat; color: transparent; font-size: 0; }
.avatar--grad { background: linear-gradient(135deg, #0a66c2, #70b5f9); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 16px; border-radius: 24px;
  font-size: 16px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; transition: background 0.12s, box-shadow 0.12s; white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:disabled { background: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.3); cursor: not-allowed; }
.btn--secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.btn--tertiary { background: transparent; color: var(--text-2); border-color: var(--text-2); }
.btn--tertiary:hover { background: rgba(0, 0, 0, 0.08); box-shadow: inset 0 0 0 1px var(--text-2); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: rgba(0, 0, 0, 0.08); color: var(--text); }
.btn--sm { height: 24px; font-size: 14px; padding: 0 12px; }
.btn--lg { height: 40px; padding: 0 24px; }
.btn--block { width: 100%; }
.btn--linkedin { background: var(--blue); color: #fff; height: 40px; font-size: 16px; }
.btn--linkedin:hover { background: var(--blue-hover); }
.btn--linkedin:disabled { background: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.3); cursor: not-allowed; }
.btn--linkedin .in { width: 20px; height: 20px; font-size: 12px; border-radius: 2px; background: #fff; color: var(--blue); font-weight: 700; display: grid; place-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- post (feed) ---------- */
.post__head { display: flex; gap: 8px; padding: 12px 16px 0; align-items: flex-start; }
.post__who { min-width: 0; flex: 1; }
.post__name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.post__name .dot-sep { color: var(--text-2); font-weight: 400; font-size: 12px; }
.post__meta { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__meta svg { width: 14px; height: 14px; fill: var(--text-2); vertical-align: -3px; }
.post__text { padding: 8px 16px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.post__text .hash { color: var(--blue); font-weight: 600; }
.post__media { background: #000; display: grid; place-items: center; aspect-ratio: 1.91 / 1; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: contain; }
.post__media--letter {
  background: linear-gradient(135deg, #0a66c2, #70b5f9); color: #fff;
  font-size: clamp(28px, 12vw, 80px); font-weight: 700; padding: 0 16px; word-break: break-all;
}
.post__social { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 12px; color: var(--text-2); align-items: center; }
.post__social .reactions { display: flex; align-items: center; gap: 4px; }
.reaction-pile { display: inline-flex; }
.reaction-pile span {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid #fff; margin-left: -4px;
  display: grid; place-items: center; font-size: 9px; color: #fff;
}
.reaction-pile span:first-child { margin-left: 0; }
.rx-like { background: #378fe9; }
.rx-celebrate { background: #6dae4f; }
.rx-support { background: #df704d; }
.post__actions { display: flex; border-top: 1px solid var(--border); margin: 0 8px; padding: 4px 0; }
.post__action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 4px; font-size: 14px; font-weight: 600; color: var(--text-2);
  background: transparent; border: 0; border-radius: 4px; font-family: inherit;
}
.post__action svg { width: 20px; height: 20px; fill: currentColor; }
.post__action:hover { background: rgba(0, 0, 0, 0.08); color: var(--text); }
.post__action.active { color: var(--blue); }
.post__kv { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 16px 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.post__kv div { padding: 8px 10px; border-left: 1px solid var(--border); }
.post__kv div:first-child { border-left: 0; }
.post__kv small { display: block; color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em; }
.post__kv b { font-size: 14px; }
.post__route {
  margin: 0 16px 8px; padding: 8px 12px; background: #f3f6f8; border-radius: 4px;
  font-size: 12px; display: flex; align-items: center; gap: 8px; color: var(--text-2);
}
.post__route b { color: var(--text); }
.post__route svg { width: 16px; height: 16px; fill: var(--green); flex: 0 0 auto; }
.post__route .chip { margin-left: auto; }
.post__foot { border-top: 1px solid var(--border); padding: 12px 16px; font-size: 12px; color: var(--text-2); }

/* start-a-post box */
.start-post { padding: 12px 16px 8px; }
.start-post__row { display: flex; gap: 8px; align-items: center; }
.start-post__input {
  flex: 1; height: 48px; border-radius: 35px; border: 1px solid var(--border-strong);
  background: transparent; text-align: left; padding: 0 16px;
  font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; align-items: center;
}
.start-post__input:hover { background: rgba(0, 0, 0, 0.08); }
.start-post__kinds { display: flex; justify-content: space-between; margin-top: 4px; }
.start-post__kind {
  display: flex; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 4px;
  border: 0; background: transparent; font-weight: 600; color: var(--text-2); font-size: 14px;
}
.start-post__kind:hover { background: rgba(0, 0, 0, 0.08); color: var(--text); }
.start-post__kind svg { width: 20px; height: 20px; }
.feed-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); padding: 0 4px; }
.feed-sort hr { flex: 1; border: 0; border-top: 1px solid var(--border); }
.feed-sort b { color: var(--text); }

/* ---------- right rail ---------- */
.news__item { padding: 6px 16px; display: flex; gap: 8px; }
.news__item:hover { background: #f3f6f8; }
.news__item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); margin-top: 8px; flex: 0 0 auto; }
.news__item b { font-size: 14px; display: block; }
.news__item small { color: var(--text-2); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 16px 12px; }
.stat { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.stat small { display: block; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.02em; }
.stat b { font-size: 18px; font-weight: 600; }
.follow-row { display: flex; gap: 8px; padding: 8px 16px; align-items: flex-start; }
.follow-row .who { flex: 1; min-width: 0; }
.follow-row .who b { font-size: 14px; display: block; }
.follow-row .who small { color: var(--text-2); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-row .btn { margin-top: 4px; }
.rail-footer { padding: 8px 16px; font-size: 12px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.rail-footer a:hover { color: var(--blue); text-decoration: underline; }
.rail-footer .brand { width: 100%; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.rail-footer .brand .mini-logo { width: 16px; height: 16px; border-radius: 2px; }
.rail-footer .legal { width: 100%; text-align: center; margin-top: 4px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 14px; color: var(--text-2); }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 14px; padding: 0 8px; height: 32px;
  border: 1px solid var(--border-strong); border-radius: 4px; background: #fff; color: var(--text); outline: 0; width: 100%;
}
.field textarea { height: auto; min-height: 96px; padding: 8px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.field input.invalid, .field textarea.invalid { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.field .help { font-size: 12px; color: var(--text-2); }
.field .error { font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 4px; }
.field .error:empty { display: none; }
.field .error svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 4px; overflow: hidden; }
.input-prefix:focus-within { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.input-prefix.invalid { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.input-prefix span { display: flex; align-items: center; padding: 0 8px; background: #f3f6f8; color: var(--text-2); font-size: 14px; border-right: 1px solid var(--border); white-space: nowrap; }
.input-prefix input { border: 0 !important; box-shadow: none !important; border-radius: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload {
  border: 1px dashed var(--border-strong); border-radius: 8px; padding: 16px;
  display: flex; align-items: center; gap: 16px; cursor: pointer; background: #fafafa;
}
.upload:hover { background: #f3f6f8; }
.upload .preview { width: 96px; height: 96px; border-radius: 8px; background: #e9e5df; display: grid; place-items: center; overflow: hidden; color: var(--text-2); flex: 0 0 auto; }
.upload .preview img { width: 100%; height: 100%; object-fit: cover; }
.upload .preview svg { width: 32px; height: 32px; fill: currentColor; }
.upload b { display: block; font-size: 14px; }
.upload small { color: var(--text-2); font-size: 12px; }
.upload input { display: none; }
.fee-summary { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.fee-summary--tint { background: #f3f6f8; }
.fee-summary .line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-2); }
.fee-summary .line.total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; color: var(--text); font-weight: 600; font-size: 16px; }
.fee-summary .line.payer { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.fee-summary .note { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.split .a { background: var(--blue); }
.split .b { background: #c9d6e2; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.form-actions .hint { margin-right: auto; font-size: 12px; color: var(--text-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px 12px; }
.step { border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 8px; }
.step b { display: block; font-size: 14px; margin-bottom: 4px; }
.step p { font-size: 12px; color: var(--text-2); }
.cta-row { display: flex; gap: 8px; padding: 0 16px 16px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 552px; background: var(--card); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); overflow: hidden; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 20px; font-weight: 600; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--text-2); }
.modal__close:hover { background: rgba(0, 0, 0, 0.08); }
.modal__close svg { width: 24px; height: 24px; fill: currentColor; }
.modal__body { padding: 16px 24px; }
.modal__foot { padding: 12px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.progress-steps { display: flex; flex-direction: column; gap: 12px; }
.pstep { display: flex; gap: 12px; align-items: flex-start; }
.pstep .ic { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; flex: 0 0 auto; }
.pstep.done .ic { background: var(--green); border-color: var(--green); color: #fff; }
.pstep.done .ic svg { width: 14px; height: 14px; fill: currentColor; }
.pstep.active .ic { border-color: var(--blue); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.pstep b { display: block; font-size: 14px; }
.pstep small { color: var(--text-2); font-size: 12px; display: block; }
.pstep.pending { opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- oauth-like sign in ---------- */
.oauth { text-align: center; padding: 8px 0; }
.oauth__logo { width: 56px; height: 56px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 700; margin: 0 auto 12px; }
.oauth h2 { font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.oauth p { color: var(--text-2); font-size: 14px; }
.oauth ul { text-align: left; margin: 16px 0; padding: 0 0 0 20px; font-size: 14px; color: var(--text-2); }
.oauth ul li { margin: 4px 0; }
.oauth .field { text-align: left; margin-top: 8px; }
.oauth .actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* ---------- profile page ---------- */
.profile__banner { height: 200px; background: linear-gradient(120deg, #0a66c2 0%, #70b5f9 60%, #d0e4f7 100%); }
.profile__banner--token { background: linear-gradient(120deg, #1b1f23 0%, #0a66c2 100%); }
.profile__head { padding: 0 24px 24px; position: relative; }
.profile__avatar-wrap { margin-top: -64px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.profile__actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.profile__name { font-size: 24px; font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.profile__name .ticker { color: var(--text-2); font-weight: 400; }
.profile__headline { font-size: 16px; }
.profile__meta { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.profile__meta a { color: var(--blue); font-weight: 600; }
.verified { width: 18px; height: 18px; fill: var(--blue); }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: 600; background: var(--green-bg); color: var(--green); white-space: nowrap; }
.chip--warn { background: #fdf3e5; color: var(--premium); }
.chip--gray { background: #eee; color: var(--text-2); }

/* earnings */
.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 4px 16px 12px; }
.earn { border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.earn small { display: block; font-size: 12px; color: var(--text-2); }
.earn b { display: block; font-size: 22px; font-weight: 600; margin-top: 2px; }
.threshold { padding: 0 16px 16px; }
.threshold .bar { height: 8px; background: #e9e5df; border-radius: 4px; overflow: hidden; margin: 8px 0 6px; }
.threshold .bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width 0.6s ease; }
.threshold .ticks { display: flex; gap: 6px; flex-wrap: wrap; }
.threshold .tick { font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); }
.threshold .tick.done { background: var(--green-bg); color: var(--green); border-color: transparent; }
.threshold .tick.next { background: var(--blue); color: #fff; border-color: transparent; }
.threshold .warn { color: var(--red); margin-top: 8px; display: flex; gap: 4px; align-items: center; font-size: 12px; }
.threshold .warn svg { width: 14px; height: 14px; fill: currentColor; }

/* lists / tables */
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.list-row .who { flex: 1; min-width: 0; }
.list-row .who b { display: block; font-size: 14px; }
.list-row .who small { display: block; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .amt { text-align: right; white-space: nowrap; }
.list-row .amt b { display: block; font-size: 14px; }
.list-row .amt small { color: var(--text-2); font-size: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 12px; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.empty { padding: 24px 16px; text-align: center; color: var(--text-2); font-size: 14px; }
.empty svg { width: 48px; height: 48px; fill: #c9d6e2; margin: 0 auto 8px; display: block; }
.empty .btn { margin-top: 12px; }

/* wallet */
.wallet-box { padding: 12px 16px 16px; }
.addr {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all;
}
.addr span { flex: 1; }
.copy-btn { border: 0; background: transparent; color: var(--text-2); padding: 4px; border-radius: 4px; display: inline-grid; place-items: center; }
.copy-btn:hover { background: rgba(0, 0, 0, 0.08); color: var(--text); }
.copy-btn svg { width: 16px; height: 16px; fill: currentColor; }
.ca-box {
  margin: 4px 16px 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f3f6f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px;
  display: flex; align-items: center; gap: 8px; word-break: break-all;
}
.ca-box span { flex: 1; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; text-align: left;
}
.wallet-opt:hover:not(:disabled) { background: #f3f6f8; border-color: var(--text-2); }
.wallet-opt:disabled { opacity: 0.6; cursor: wait; }
.wallet-opt__ic { width: 36px; height: 36px; border-radius: 8px; color: #fff; display: grid; place-items: center; font-weight: 700; }
.wallet-opt__name { flex: 1; font-weight: 600; }
.wallet-pill { display: inline-flex; align-items: center; gap: 6px; }
.wallet-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.wallet-pill.bad { color: var(--red); }
.wallet-pill.bad .dot { background: var(--red); }

/* ---------- docs (article) ---------- */
.article { padding: 24px 32px 32px; }
.article h1 { font-size: 28px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.article .byline { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 16px 0 24px; }
.article .byline b { display: block; font-size: 14px; }
.article .byline small { color: var(--text-2); font-size: 12px; }
.article h2 { font-size: 20px; margin: 28px 0 8px; }
.article h3 { font-size: 16px; margin: 18px 0 6px; }
.article p { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.article ul, .article ol { font-size: 16px; line-height: 1.6; padding-left: 24px; margin: 0 0 12px; }
.article code { background: #f3f6f8; padding: 1px 5px; border-radius: 3px; font-size: 14px; }
.article .callout { background: #f3f6f8; border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 4px; margin: 16px 0; font-size: 14px; }
.article .callout--warn { border-color: var(--premium); }
.article table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.article th, .article td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article th { background: #f3f6f8; }
.toc { padding: 4px 16px 12px; font-size: 14px; }
.toc a { display: block; padding: 6px 0; color: var(--text-2); font-weight: 600; }
.toc a:hover { color: var(--blue); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1b1f23; color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); z-index: 200;
  animation: toast-in 0.2s ease-out;
}
.toast svg { width: 20px; height: 20px; fill: #6dae4f; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.muted { color: var(--text-2); }
.small { font-size: 12px; }
.bold { font-weight: 600; }
.flex { display: flex; align-items: center; gap: 8px; }
.spread { justify-content: space-between; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(5, 118, 66, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(5, 118, 66, 0); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 225px minmax(0, 1fr); }
  .grid > .col:nth-child(3) { display: none; }
  .grid--wide { grid-template-columns: minmax(0, 1fr); }
  .grid--wide > .col:nth-child(2) { display: none; }
}
@media (max-width: 767px) {
  .grid, .grid--wide { grid-template-columns: minmax(0, 1fr); }
  .grid > .col:first-child { display: none; }
  .grid > .col:nth-child(3) { display: none; }
  .col--sticky { position: static; }
  .nav__search { display: none; }
  .nav__item { width: 56px; font-size: 0; }
  .nav__item .caret { display: none; }
  .nav__premium, .nav__divider, .nav__wallet-label { display: none; }
  .nav__wallet .btn { padding: 0 8px; gap: 0; }
  .nav__wallet .dropdown { right: -8px; }
  .steps, .earn-grid, .row-2 { grid-template-columns: 1fr; }
  .post__kv { grid-template-columns: 1fr 1fr; }
  .post__kv div:nth-child(3) { border-left: 0; }
  .post__kv div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .article { padding: 16px; }
  .profile__avatar-wrap { flex-direction: column; align-items: flex-start; }
}
