/*
 * components.css — shared, token-driven component styles used by every screen and
 * theme. Structure only reads var(--token); theme files restyle by overriding tokens
 * (and a few theme-scoped tweaks via [data-theme=...] / body.nav-*).
 */

/* ---- chrome: top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 13px) var(--space) 13px;
  background: var(--topbar-bg); color: var(--topbar-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.topbar__brand { font-weight: 800; flex: 1; letter-spacing: -.2px; }
.topbar__back { font-size: 22px; line-height: 1; width: 36px; text-align: left; color: var(--topbar-ink); opacity: .85; transition: opacity .12s ease; }
.topbar__back:active { opacity: .45; }
/* drawer hamburger — a clear tappable button so the nav is discoverable */
.topbar__menu { width: 38px; height: 38px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--topbar-ink) 18%, transparent); display: grid; place-items: center; font-size: 18px; color: var(--topbar-ink); transition: background .12s ease; }
.topbar__menu:active { background: color-mix(in srgb, var(--topbar-ink) 10%, transparent); transform: scale(.93); }
.topbar__badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-color); color: var(--brand-color-ink); }

/* ---- chrome: bottom tabs ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; padding-bottom: var(--safe-bottom);
  background: var(--nav-bg); border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.tabbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; color: var(--ink-soft); font-size: 11px; font-weight: 600; border-top: 2px solid transparent; transition: color .15s ease; }
.tabbar__ic { width: 22px; height: 22px; display: grid; place-items: center; transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tabbar__ic svg { width: 22px; height: 22px; }
.tabbar__item.is-active { color: var(--brand-color); border-top-color: var(--brand-color); }
.tabbar__item.is-active .tabbar__ic { transform: translateY(-2px) scale(1.06); }

/* ---- chrome: drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.38); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: 78%; max-width: 320px; background: var(--surface); padding: calc(var(--safe-top) + 20px) 16px calc(var(--safe-bottom) + 16px); transform: translateX(-100%); transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__title { font-weight: 800; font-size: 18px; letter-spacing: -.3px; margin-bottom: 12px; }
.drawer__item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); transition: background .12s ease; }
.drawer__item:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.drawer__item.is-active { background: color-mix(in srgb, var(--brand-color) 11%, transparent); color: var(--brand-color); }
.drawer__ic { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.drawer__ic svg { width: 22px; height: 22px; }
.drawer__item.is-active .drawer__ic { color: var(--brand-color); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; transition: transform .08s ease, box-shadow .18s ease, opacity .15s ease; letter-spacing: .1px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: linear-gradient(170deg, color-mix(in srgb, var(--brand-color) 90%, #fff 15%), var(--brand-color) 60%); color: var(--brand-color-ink); box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-color) 36%, transparent), 0 1px 3px color-mix(in srgb, var(--brand-color) 20%, transparent); }
.btn--primary:active { box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-color) 28%, transparent); transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brand-color); border: 1px solid var(--line); }
.btn--ghost:active { background: color-mix(in srgb, var(--brand-color) 6%, transparent); }
.btn--block { width: 100%; }
/* small variant */
.btn--sm { padding: 10px 14px; font-size: 13px; }
.link { color: var(--brand-color); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space); box-shadow: var(--shadow); }
.card--muted { box-shadow: none; background: transparent; border-color: transparent; }
.card--flush { padding: 0; }
.card__title { font-size: 20px; font-weight: var(--title-weight); margin-bottom: 6px; letter-spacing: -.2px; }
.card__subtitle { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card__text { color: var(--ink-soft); line-height: 1.55; }
.card__meta { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }

/* ---- forms ---- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: .1px; }
.field__hint { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.field--error .input { border-color: var(--danger); }
.field--error .field__label, .field__error { color: var(--danger); font-size: 12px; margin-top: 3px; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.field--inline .field__label { font-size: 14px; font-weight: 400; color: var(--ink); }
.field--read .input { background: var(--bg-alt); color: var(--ink-soft); pointer-events: none; }
.field__group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 4px; }
.field__group-toggle { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.field__group-toggle::-webkit-details-marker { display: none; }
.field__group-badge { font-size: 11px; font-weight: 500; color: var(--ink-soft); background: var(--bg-alt); border-radius: 20px; padding: 2px 8px; }
.field__group-body { display: flex; flex-direction: column; gap: 14px; padding: 0 14px 16px; }
.input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { outline: none; border-color: var(--brand-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-color) 18%, transparent); }
.input:focus-visible { outline: 2px solid var(--brand-color); outline-offset: 2px; box-shadow: none; }
.input::placeholder { color: color-mix(in srgb, var(--ink-soft) 60%, transparent); }
select.input { appearance: none; cursor: pointer; }
textarea.input { resize: vertical; min-height: 100px; line-height: 1.55; }

/* ---- auth ---- */
.auth {
  max-width: 440px; margin: 0 auto;
  padding: calc(var(--safe-top) + 40px) 22px calc(var(--safe-bottom) + 32px);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 100svh;
}
.auth__mark {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand-color) 88%, #fff 16%), var(--brand-color));
  color: var(--brand-color-ink);
  font-size: 28px; font-weight: 800;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-color) 30%, transparent), 0 2px 6px color-mix(in srgb, var(--brand-color) 20%, transparent);
}
.auth__title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.auth__sub { color: var(--ink-soft); margin-bottom: 10px; font-size: 15px; }
.auth__switch { margin-top: 16px; color: var(--ink-soft); text-align: center; font-size: 14px; }
.auth .form { margin-top: 8px; }
.auth__powered { margin-top: 32px; font-size: 11px; color: var(--ink-muted, var(--ink-soft)); text-align: center; opacity: .45; letter-spacing: .3px; }

/* profile/more page footer attribution */
.powered-by { text-align: center; font-size: 11px; color: var(--ink-soft); opacity: .5; margin: 24px 0 8px; letter-spacing: .2px; }

/* ---- lists / states ---- */
.listhead { display: flex; align-items: baseline; justify-content: space-between; }
.listhead__title { font-size: 22px; font-weight: var(--title-weight); letter-spacing: -.3px; }
.listhead__count { font-size: 13px; color: var(--ink-soft); }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 12px; font-size: 14px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); padding: 32px 4px; justify-content: center; font-size: 14px; }
.loading__spinner { width: 20px; height: 20px; border: 2.5px solid var(--line); border-top-color: var(--brand-color); border-radius: 50%; animation: spin .8s linear infinite; }
.backlink { color: var(--brand-color); font-weight: 600; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: color-mix(in srgb, var(--brand-color) 7%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand-color) 20%, var(--line)); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }

/* ---- property cards / grid ---- */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--space); }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.pcard:active { transform: translateY(1px); }
.pcard__media { height: 96px; background: linear-gradient(135deg, var(--brand-color), color-mix(in srgb, var(--brand-color) 55%, #000)); display: flex; align-items: flex-start; padding: 10px; }
.pcard__badge, .phero__badge { background: rgba(255,255,255,.9); color: #16181d; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.pcard__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pcard__name { font-size: 16px; font-weight: 700; }
.pcard__loc { font-size: 13px; color: var(--ink-soft); }
.pcard__row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.pcard__price { font-weight: 700; color: var(--brand-color); }
.pcard__unit { font-size: 12px; color: var(--ink-soft); }
.pcard__foot { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); color: var(--ink-soft); }
.chip--soft { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }

/* ---- property detail ---- */
.phero { height: 150px; border-radius: var(--radius); display: flex; align-items: flex-start; padding: 12px; background: linear-gradient(135deg, var(--brand-color), color-mix(in srgb, var(--brand-color) 55%, #000)); }
.ptitle { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ptitle__name { font-size: 22px; font-weight: 800; }
.ptitle__loc { color: var(--ink-soft); }
.heart { font-size: 26px; line-height: 1; color: var(--brand-color); }
.heart.is-on { color: #e0245e; }
.kv { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ink-soft); }

/* ---- status / pills ---- */
.statusrow { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); color: var(--ink-soft); text-transform: capitalize; letter-spacing: .1px; }
.pill--verified { background: color-mix(in srgb, var(--ok) 13%, var(--surface)); color: var(--ok); }
.pill--pending { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
.pill--rejected { background: color-mix(in srgb, var(--danger) 11%, var(--surface)); color: var(--danger); }
.pill--info { background: color-mix(in srgb, var(--brand-color) 12%, var(--surface)); color: var(--brand-color); }

/* ---- profile / menu ---- */
.profilecard { display: flex; align-items: center; gap: 14px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 85%, #fff), var(--brand-color)); color: var(--brand-color-ink); font-weight: 800; font-size: 20px; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-color) 24%, transparent); }
.profilecard__name { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.profilecard__email { color: var(--ink-soft); font-size: 14px; margin-top: 1px; }
.menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; transition: background .12s ease; }
.menu__row:last-child { border-bottom: 0; }
.menu__row:active { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.menu__row > span:first-child { flex: 1; font-weight: 600; font-size: 15px; }
.menu__meta { color: var(--ink-soft); font-size: 13px; text-transform: capitalize; }
.menu__chev { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); font-size: 18px; }

/* ---- feature list (dashboard) ---- */
.flist { list-style: none; margin: 12px 0 0; padding: 0; }
.flist__row { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.flist__row:last-child { border-bottom: 0; }
.flist__on { font-size: 12px; font-weight: 700; color: var(--ok); }
.flist__soon { font-size: 12px; font-weight: 700; color: var(--ink-soft); }

/* ---- hub (theme-2) grid of destinations ---- */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hub__tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 84px; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); text-align: left; }
.hub__tile:active { transform: translateY(1px); }
.hub__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-color) 12%, var(--surface)); color: var(--brand-color); }
.hub__ic .ic { width: 20px; height: 20px; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: calc(88px + var(--safe-bottom)); transform: translateX(-50%) translateY(14px); max-width: min(92%, 400px); padding: 12px 20px; border-radius: 999px; background: #1a1d24; color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 200; transition: opacity .22s ease, transform .22s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 20px rgba(0,0,0,.3); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { background: var(--danger); }
.toast--ok { background: var(--ok); }

/* ---- wallet / money ---- */
.balancecard { text-align: center; }
.balancecard__label { display: block; color: var(--ink-soft); font-size: 13px; }
.balancecard__amount { display: block; font-size: 34px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.summarycard { display: flex; justify-content: space-between; }
.summarycard__label { display: block; color: var(--ink-soft); font-size: 12px; }
.summarycard__value { font-size: 22px; font-weight: 800; }
.summarycard strong { font-size: 18px; }
.txn-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.txn-amt--in { color: var(--ok); }
.txn-amt--out { color: var(--ink); }

/* ---- quick actions ---- */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick__btn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; font-weight: 700; box-shadow: var(--shadow); text-align: left; }
.quick__btn:active { transform: translateY(1px); }

/* ---- receipt ---- */
.receipt { text-align: center; }
.receipt__badge { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.receipt__badge .ic { width: 30px; height: 30px; stroke-width: 2.5; }

/* ---- referral code ---- */
.code { display: block; font-size: 30px; font-weight: 800; letter-spacing: 3px; margin-top: 6px; }

/* ---- notifications ---- */
.notif { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.notif__title { font-weight: 700; }
.notif__body { color: var(--ink-soft); font-size: 13px; }
.menu__row.is-unread { background: color-mix(in srgb, var(--brand-color) 7%, var(--surface)); }
.menu__row.is-unread .notif__title::after { content: ' •'; color: var(--brand-color); }

/* ---- conversation thread ---- */
.thread { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.bubble { align-self: flex-start; max-width: 82%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.bubble--mine { align-self: flex-end; background: color-mix(in srgb, var(--brand-color) 12%, var(--surface)); }
.bubble__from { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.bubble__body { font-size: 15px; }
.bubble__at { font-size: 10px; color: var(--ink-soft); align-self: flex-end; }
.composer { position: sticky; bottom: calc(var(--safe-bottom)); display: flex; gap: 8px; padding: 8px 0; background: var(--bg); align-items: flex-end; }
.composer .input { flex: 1; min-width: 0; width: auto; min-height: 44px; max-height: 120px; resize: none; }
.composer .btn { flex: 0 0 auto; width: auto; }

/* ---- modal (PIN pad, confirmations) ---- */
.modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.42); animation: modalIn .18s ease both; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal__card { width: 100%; max-width: 460px; background: var(--surface); border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0; padding: 6px 18px 0; padding-bottom: calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px; animation: sheetUp .26s cubic-bezier(0.16, 1, 0.3, 1) both; }
/* grab handle */
.modal__card::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); margin: 8px auto 6px; flex: none; }
@keyframes sheetUp { from { transform: translateY(50px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 560px) { .modal { align-items: center; } .modal__card { border-radius: var(--radius); } .modal__card::before { display: none; } }
.modal__title { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.modal__sub { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.modal__pin { text-align: center; letter-spacing: 8px; font-size: 22px; }
.modal__actions { display: flex; gap: 10px; }

/* ---- danger button + confirm + prose ---- */
.btn--danger { background: var(--danger); color: #fff; }
.confirm { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink-soft); font-size: 14px; }
.confirm input { width: 18px; height: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---- KYC document preview ---- */
.doc-preview { margin-top: 10px; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ============ VP1/VP2 — real-app design system ============ */

/* icons inherit colour + size */
.ic { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }

/* skeleton shimmer */
.sk { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 7%, var(--surface)); border-radius: 8px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--surface) 78%, #fff) 50%, transparent 100%); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk--line { height: 12px; margin: 6px 0; border-radius: 6px; }
.sk--title { height: 24px; width: 55%; border-radius: 6px; }
.sk--card { height: 72px; border-radius: var(--radius); }
.sk--tile { height: 88px; border-radius: var(--radius); }

/* fade/slide in */
.fade-in { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* greeting header */
.greet { display: flex; align-items: center; gap: 12px; }
.greet__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 85%, #fff), var(--brand-color)); color: var(--brand-color-ink); font-weight: 800; font-size: 18px; box-shadow: 0 3px 10px color-mix(in srgb, var(--brand-color) 24%, transparent); }
.greet__hi { flex: 1; min-width: 0; }
.greet__hello { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.greet__name { font-size: 17px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: background .12s ease; flex: none; }
.iconbtn:active { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
.iconbtn .ic { width: 20px; height: 20px; }
.iconbtn__dot { position: absolute; top: 7px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e0245e; color: #fff; font-size: 10px; font-weight: 800; display: none; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.iconbtn__dot.is-on { display: flex; }

/* balance hero */
.hero { position: relative; border-radius: var(--radius); padding: 22px 20px; color: #fff;
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(255,255,255,.22), transparent 52%),
    radial-gradient(100% 80% at 0% 100%, rgba(0,0,0,.12), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 96%, #fff), var(--brand-color) 42%, color-mix(in srgb, var(--brand-color) 58%, #000));
  box-shadow: 0 14px 40px color-mix(in srgb, var(--brand-color) 28%, transparent), 0 4px 12px color-mix(in srgb, var(--brand-color) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.22);
  overflow: hidden; }
/* faint ₦ watermark */
.hero::after { content: "\20A6"; position: absolute; right: -8px; bottom: -28px; font-size: 130px; font-weight: 800; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none; }
.hero > * { position: relative; }
.hero__label { font-size: 12px; opacity: .82; display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .2px; text-transform: uppercase; }
.hero__eye { color: #fff; opacity: .8; transition: opacity .12s ease; }
.hero__eye:active { opacity: .5; }
.hero__amt { font-size: 38px; font-weight: 800; margin: 6px 0 18px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero__row { display: flex; gap: 10px; }
.hero__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.18); transition: background .15s ease; }
.hero__btn:active { background: rgba(255,255,255,.24); }
.hero__btn .ic { width: 16px; height: 16px; }
.hero__btn--solid { background: rgba(255,255,255,.95); color: var(--brand-color); border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hero__btn--solid:active { background: #fff; }

/* section header */
.sect { display: flex; align-items: center; justify-content: space-between; margin: 2px 0; }
.sect__title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.sect__link { color: var(--brand-color); font-weight: 600; font-size: 13px; }

/* quick actions */
.quick2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qa__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(150deg, color-mix(in srgb, var(--brand-color) 16%, var(--surface)), color-mix(in srgb, var(--brand-color) 7%, var(--surface))); color: var(--brand-color); border: 1px solid color-mix(in srgb, var(--brand-color) 16%, var(--line)); transition: transform .12s ease, box-shadow .12s ease; box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-color) 10%, transparent); }
.qa__ic .ic { width: 22px; height: 22px; }
.qa__lb { font-size: 11px; font-weight: 600; color: var(--ink-soft); text-align: center; line-height: 1.3; }
.qa:active .qa__ic { transform: translateY(2px) scale(.93); box-shadow: 0 1px 4px color-mix(in srgb, var(--brand-color) 10%, transparent); }

/* activity row */
.act { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); color: var(--ink-soft); flex: none; }
.act__ic .ic { width: 18px; height: 18px; }
.act__main { flex: 1; min-width: 0; }
.act__label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.act__sub { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.act__amt { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.act__amt--in { color: var(--ok); }

/* horizontal slider (featured properties) */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin: 0 calc(-1 * var(--space)); padding-left: var(--space); padding-right: var(--space); }
.hscroll::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }

/* portfolio snapshot */
.snap { display: flex; align-items: center; gap: 14px; }
.snap__box { flex: 1; }
.snap__label { font-size: 12px; color: var(--ink-soft); }
.snap__val { font-size: 20px; font-weight: 800; }
.snap__div { width: 1px; align-self: stretch; background: var(--line); }

/* kyc / prompt banner */
.prompt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--surface)); }
.prompt__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--warn); flex: none; }
.prompt__main { flex: 1; }
.prompt__title { font-weight: 700; }
.prompt__sub { font-size: 12px; color: var(--ink-soft); }
.prompt__go { color: var(--brand-color); }

/* progress bar */
.bar { height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--brand-color); }

/* empty state (richer) */
.empty2 { text-align: center; padding: 36px 16px; color: var(--ink-soft); }
.empty2__ic { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.empty2__ic .ic { width: 26px; height: 26px; }
.empty2__title { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 16px; }
.empty2__text { font-size: 14px; line-height: 1.5; max-width: 24ch; margin: 0 auto; }

/* ============ VP3 — discovery + property detail ============ */

/* card media: image or branded placeholder with a watermark */
.pcard__media { position: relative; overflow: hidden; }
.pcard__media--img { padding: 0; background: none; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media-mark { position: absolute; right: -8px; bottom: -14px; opacity: .18; color: #fff; pointer-events: none; }
.media-mark .ic { width: 96px; height: 96px; }
.pcard__heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; z-index: 2; }
.pcard__heart .ic { width: 18px; height: 18px; }
.pcard__heart.is-on { color: #ff4d6d; background: #fff; }
.pcard__loc { display: flex; align-items: center; gap: 4px; }
.pcard__loc .ic { width: 13px; height: 13px; flex: none; }
.pcard__price { font-size: 15px; }
.pcard__sold { margin-top: 8px; }
.pcard__sold .bar { height: 6px; }
.pcard__soldlb { font-size: 11px; color: var(--ink-soft); margin-top: 4px; display: flex; justify-content: space-between; }

/* property detail — image slider (swipe + dots + counter + prev/next) */
.pslider { position: relative; margin: 0 calc(-1 * var(--space)); overflow: hidden; }
.pslider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.pslider__track::-webkit-scrollbar { display: none; }
.pslider__img { flex: 0 0 100%; width: 100%; height: 232px; object-fit: cover; scroll-snap-align: center; background: color-mix(in srgb, var(--brand-color) 12%, var(--surface)); }
.pslider__badge { position: absolute; top: 10px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(7,9,11,.55); color: #fff; font-size: 11px; font-weight: 700; text-transform: capitalize; backdrop-filter: blur(4px); }
.pslider__count { position: absolute; top: 10px; right: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(7,9,11,.55); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; backdrop-filter: blur(4px); }
.pslider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(7,9,11,.45); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.pslider__nav--prev { left: 10px; }
.pslider__nav--next { right: 10px; }
.pslider__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; }
.pslider__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.pslider__dot.is-on { background: #fff; width: 18px; border-radius: 3px; }
.phero { position: relative; overflow: hidden; }
.phero--tall { height: 200px; }

/* rich-text description (sanitized HTML from the admin editor) */
.prose { line-height: 1.65; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { margin: 0 0 10px; padding-left: 20px; }
.prose li { margin-bottom: 4px; }
.prose h2, .prose h3, .prose h4 { margin: 14px 0 6px; font-weight: 800; line-height: 1.25; letter-spacing: -.2px; }
.prose h2 { font-size: 17px; }
.prose h3 { font-size: 15px; }
.prose h4 { font-size: 14px; }
.prose a { color: var(--brand-color); text-decoration: underline; word-break: break-word; }
.prose strong, .prose b { font-weight: 800; }
.prose blockquote { margin: 10px 0; padding: 6px 12px; border-left: 3px solid var(--brand-color); color: var(--ink-soft); background: color-mix(in srgb, var(--brand-color) 6%, var(--surface)); border-radius: 0 8px 8px 0; }

/* payout bank card (withdraw screen) */
.bankpick__card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--brand-color) 6%, var(--surface)); margin-bottom: 14px; }
.bankpick__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-color); color: #fff; flex: none; }
.bankpick__ic .ic { width: 18px; height: 18px; }
.bankpick__mid { flex: 1; min-width: 0; }
.bankpick__bank { font-weight: 700; }
.bankpick__meta { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* property location map (Leaflet + OpenStreetMap) */
.pmap { height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pmap .leaflet-container { height: 100%; width: 100%; font: inherit; background: color-mix(in srgb, var(--brand-color) 8%, var(--surface)); }
.pmap__pin span { display: block; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand-color); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(16,24,40,.35); margin: 3px; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 14px; }
.stat__label { font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.stat__label .ic { width: 14px; height: 14px; }
.stat__val { font-size: 18px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.soldwrap { display: flex; flex-direction: column; gap: 8px; }
.soldwrap__lb { display: flex; justify-content: space-between; font-size: 13px; }
.soldwrap__lb b { font-weight: 800; }

/* sticky buy bar (detail pages have no bottom tabs → data-notab) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 12px var(--space) calc(12px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16,24,40,.06); }
.buybar__price { flex: none; }
.buybar__price small { display: block; font-size: 11px; color: var(--ink-soft); }
.buybar__price b { font-size: 18px; font-weight: 800; }
.buybar .btn { flex: 1; width: auto; }
body.has-buybar .content { padding-bottom: calc(96px + var(--safe-bottom)); }

/* ============ VP4 — money + portfolio ============ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.amt-chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink); }
.amt-chip.is-on { background: var(--brand-color); color: var(--brand-color-ink); border-color: var(--brand-color); }

.daygroup__label { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; margin: 14px 2px 4px; }

.assetcard { display: flex; flex-direction: column; gap: 10px; }
.assetcard__top { display: flex; align-items: center; gap: 12px; }
.assetcard__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-color) 12%, var(--surface)); color: var(--brand-color); flex: none; }
.assetcard__name { font-weight: 700; }
.assetcard__sub { font-size: 12px; color: var(--ink-soft); }
.assetcard__val { text-align: right; }
.assetcard__cur { font-weight: 800; }
.assetcard__gain { font-size: 12px; font-weight: 700; }
.assetcard__strip { display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assetcard__strip span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.assetcard__strip .ic { width: 13px; height: 13px; }
.assetcard__gainrow { display: flex; justify-content: space-between; align-items: center; }
.assetcard__actions { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.assetcard__actions .btn { width: auto; flex: 1; padding: 9px 10px; font-size: 12px; gap: 5px; }
.gain-up { color: var(--ok); }
.gain-down { color: var(--danger); }
.gain-flat { color: var(--ink-soft); }

/* ---- segmented tab switcher (installments, market etc.) ---- */
.segtabs { display: flex; gap: 0; border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 6%, var(--surface)); padding: 3px; margin-bottom: 16px; }
.segtabs__btn { flex: 1; padding: 8px 10px; border-radius: calc(var(--radius) - 2px); border: none; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.segtabs__btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---- referral share card ---- */
.sharecard__ic { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 6px; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; }
.sharecard__ic .ic { width: 28px; height: 28px; }


/* ---- first-launch intro carousel (themed) ---- */
.intro { min-height: 100vh; display: flex; flex-direction: column; padding: calc(20px + var(--safe-top)) 24px calc(28px + var(--safe-bottom)); background: var(--bg); }
.intro__skip { align-self: flex-end; background: none; color: var(--ink-soft); font-weight: 700; padding: 6px 8px; }
.intro__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.intro__art { width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center; font-size: 44px; font-weight: 800; color: var(--brand-color-ink); background: linear-gradient(135deg, var(--brand-color), color-mix(in srgb, var(--brand-color) 55%, #000)); box-shadow: var(--shadow); }
.intro__img { width: 100%; max-height: 42vh; object-fit: cover; border-radius: var(--radius); }
.intro__title { font-size: 26px; font-weight: 800; }
.intro__body { color: var(--ink-soft); max-width: 32ch; line-height: 1.6; }
.intro__dots { display: flex; gap: 8px; justify-content: center; margin: 16px 0 18px; }
.intro__dots span { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, var(--surface)); transition: .2s; }
.intro__dots span.is-on { background: var(--brand-color); width: 22px; border-radius: 4px; }

/* ---- fee summary card (transfer, market, liquidation) ---- */
.fee-summary { padding: 12px 14px; gap: 0; }
.fee-summary__row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fee-summary__row:last-child { border-bottom: none; }
.fee-summary__row--total { font-weight: 800; font-size: 14px; padding-top: 8px; }
.fee-summary__rate { font-size: 11px; color: var(--ink-soft); margin-left: 4px; }

/* ---- transfer type radio cards ---- */
.xfertype { display: block; flex: 1; cursor: pointer; }
.xfertype input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.xfertype__box { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.xfertype input:checked + .xfertype__box { border-color: var(--brand-color); background: color-mix(in srgb, var(--brand-color) 7%, var(--surface)); }
.xfertype__title { font-weight: 700; font-size: 14px; }
.xfertype__desc { font-size: 12px; color: var(--ink-soft); }

/* ---- PIN lock screen ---- */
.pinlock {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--safe-top) + 48px) 24px calc(var(--safe-bottom) + 24px);
  gap: 0;
}
.pinlock__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand-color) 88%, #fff 16%), var(--brand-color));
  color: var(--brand-color-ink);
  font-size: 30px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--brand-color) 32%, transparent), 0 2px 6px color-mix(in srgb, var(--brand-color) 18%, transparent);
  margin-bottom: 16px;
  user-select: none;
}
.pinlock__name {
  font-size: 22px; font-weight: 800; letter-spacing: -.4px;
  margin-bottom: 6px; text-align: center;
}
.pinlock__sub {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 32px; text-align: center;
}
/* PIN dots row */
.pinlock__dots {
  display: flex; gap: 14px; margin-bottom: 36px;
}
.pinlock__dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink) 28%, transparent);
  transition: background .15s ease, border-color .15s ease, transform .15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pinlock__dot.is-filled {
  background: var(--brand-color);
  border-color: var(--brand-color);
  transform: scale(1.15);
}
.pinlock__dot.is-error {
  background: var(--danger);
  border-color: var(--danger);
}
/* Keypad grid */
.pinlock__keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; width: 100%; max-width: 320px;
}
.pinlock__key {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 70px; border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04);
  font-size: 22px; font-weight: 700; color: var(--ink);
  transition: background .08s ease, transform .08s ease, box-shadow .08s ease;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.pinlock__key:active, .pinlock__key.is-pressed {
  background: color-mix(in srgb, var(--brand-color) 10%, var(--surface));
  transform: scale(.93);
  box-shadow: none;
}
.pinlock__key--del { font-size: 20px; color: var(--ink-soft); }
.pinlock__key--empty { background: transparent; border-color: transparent; box-shadow: none; pointer-events: none; }
.pinlock__key__sub { font-size: 9px; font-weight: 600; letter-spacing: .8px; color: var(--ink-soft); margin-top: 1px; }
/* Error shake */
@keyframes pinShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
.pinlock__dots.is-shaking { animation: pinShake .38s cubic-bezier(.36,.07,.19,.97); }
/* Logout link at bottom */
.pinlock__logout {
  margin-top: auto; padding-top: 32px;
  font-size: 14px; color: var(--ink-soft);
  text-align: center;
}
.pinlock__logout button {
  display: inline; color: var(--danger); font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color .15s;
}
.pinlock__logout button:hover { text-decoration-color: var(--danger); }

/* ── Article slider (dashboard) ─────────────────────────────────────────── */
.art-slider { display:flex; gap:12px; overflow-x:auto; padding:2px 0 8px;
  scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }
.art-slider::-webkit-scrollbar { display:none; }
.art-card { flex:0 0 160px; border-radius:12px; overflow:hidden; cursor:pointer;
  background:var(--surface); border:1px solid var(--line,#e5e7eb);
  box-shadow:0 1px 4px rgba(0,0,0,.07); }
.art-card__thumb { width:100%; height:96px; background:var(--surface2,#f3f4f6);
  background-size:cover; background-position:center; position:relative; }
.art-card__thumb::after { content:''; position:absolute; bottom:0; left:0; right:0;
  height:40%; background:linear-gradient(transparent,rgba(0,0,0,.25)); }
.art-card__body { padding:10px 12px 12px; }
.art-card__cat { font-size:9px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--brand); margin-bottom:5px; }
.art-card__title { font-size:12px; font-weight:600; line-height:1.4; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.art-card__meta { font-size:11px; color:var(--ink-soft,#6b7280); margin-top:6px; }
.art-card--sk { background:linear-gradient(90deg,var(--line,#e5e7eb) 25%,var(--surface2,#f3f4f6) 50%,var(--line,#e5e7eb) 75%);
  background-size:200% 100%; animation:art-sk 1.4s infinite; }
@keyframes art-sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Article reader modal (slide up from bottom) ────────────────────────── */
.art-reader { position:fixed; inset:0; z-index:9000; display:none; }
.art-reader.is-open { display:block; }
.art-reader__bd { position:absolute; inset:0; background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px); }
.art-reader__panel { position:absolute; bottom:0; left:0; right:0;
  background:var(--surface); border-radius:18px 18px 0 0; max-height:92vh;
  display:flex; flex-direction:column;
  transform:translateY(100%); transition:transform .32s cubic-bezier(.25,.46,.45,.94); }
.art-reader.is-open .art-reader__panel { transform:translateY(0); }
.art-reader__handle { display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px 10px; border-bottom:1px solid var(--line,#e5e7eb); flex-shrink:0; }
.art-reader__grip { width:40px; height:4px; border-radius:2px;
  background:var(--line,#e5e7eb); position:absolute; left:50%; top:10px; transform:translateX(-50%); }
.art-reader__close { background:var(--surface2,#f3f4f6); border:none; border-radius:50%;
  width:30px; height:30px; cursor:pointer; font-size:18px; color:var(--ink-soft,#6b7280);
  display:flex; align-items:center; justify-content:center; line-height:1; }
.art-reader__scroll { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.art-reader__img { width:100%; max-height:200px; object-fit:cover; display:block; }
.art-reader__inner { padding:20px 16px 40px; }
.art-reader__cat { font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--brand); margin-bottom:10px; }
.art-reader__title { font-size:20px; font-weight:700; line-height:1.35;
  color:var(--ink); margin-bottom:10px; }
.art-reader__byline { font-size:12px; color:var(--ink-soft,#6b7280); margin-bottom:20px;
  padding-bottom:16px; border-bottom:1px solid var(--line,#e5e7eb); }
.art-reader__body { font-size:15px; line-height:1.75; color:var(--ink); }
.art-reader__body p { margin:0 0 14px; }
.art-reader__body h1,.art-reader__body h2 { font-size:17px; font-weight:700; margin:20px 0 10px; }
.art-reader__body h3 { font-size:15px; font-weight:700; margin:16px 0 8px; }
.art-reader__body img { max-width:100%; border-radius:8px; margin:10px 0; }
.art-reader__body a { color:var(--brand); }
.art-reader__loading { padding:40px 16px; text-align:center; color:var(--ink-soft,#6b7280); font-size:14px; }
