/* Creator platform — one stylesheet. Dark, warm, premium. Tokens first. */
:root {
  --bg: #0b0b10; --bg2: #121219; --bg3: #191924; --line: #26262f; --line2: #343441;
  --text: #f2f2f6; --muted: #9a9aa8; --dim: #6b6b78;
  --accent: #e2457b; --accent2: #ff7aa8; --accent-dim: rgba(226,69,123,.14);
  --gold: #e9b949; --green: #46c98a; --red: #ff5c5c; --blue: #5aa9ff;
  --r: 14px; --r2: 10px; --shadow: 0 10px 40px rgba(0,0,0,.45);
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 60px; --side-w: 240px; --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r2); padding: 11px 13px; width: 100%; outline: none; transition: border-color .15s; font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.center { text-align: center; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.hide { display: none !important; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--dim); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg3); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; font-size: 14px; line-height: 1.2; }
.btn:hover { background: #20202b; border-color: #44445a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #c82f66); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(226,69,123,.3); }
.btn.primary:hover { background: linear-gradient(135deg, #ef5a8c, #d33a71); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg3); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.gold { background: linear-gradient(135deg, #f0c75e, #d9a52d); color: #1a1405; border-color: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); position: relative; }
.icon-btn:hover { background: var(--bg3); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg3); border: 1px solid var(--line); color: var(--muted); }
.pill.accent { background: var(--accent-dim); color: var(--accent2); border-color: transparent; }
.pill.green { background: rgba(70,201,138,.14); color: var(--green); border-color: transparent; }
.pill.gold { background: rgba(233,185,73,.14); color: var(--gold); border-color: transparent; }
.pill.red { background: rgba(255,92,92,.14); color: var(--red); border-color: transparent; }
.verified { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-left: 3px; }

/* layout */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: rgba(11,11,16,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .in { max-width: var(--max); margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #ff9ac2); display: inline-grid; place-items: center; }
.brand i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.search { flex: 1; max-width: 420px; position: relative; }
.search input { padding: 9px 14px 9px 38px; border-radius: 999px; background: var(--bg2); font-size: 14px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.wallet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.wallet-chip b { color: var(--green); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg3); flex: none; border: 1px solid var(--line); }
.avatar.sm { width: 32px; height: 32px; } .avatar.xs { width: 26px; height: 26px; } .avatar.lg { width: 96px; height: 96px; } .avatar.xl { width: 120px; height: 120px; }
.shell { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: var(--side-w) 1fr; gap: 24px; padding: 20px 16px 90px; }
.side { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r2); color: var(--muted); font-weight: 500; }
.side a svg { width: 22px; height: 22px; flex: none; }
.side a:hover { background: var(--bg2); color: var(--text); }
.side a.on { background: var(--bg3); color: var(--text); font-weight: 600; }
.side a .cnt { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; }
.side .sep { height: 1px; background: var(--line); margin: 8px 10px; }
.side .cta { margin: 10px 0 0; }
.main { min-width: 0; }
.main.narrow { max-width: 640px; }
.tabbar { display: none; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.page-title .sub { font-size: 14px; color: var(--muted); font-weight: 500; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-size: 14px; }
.tabs .on { color: var(--text); border-bottom-color: var(--accent); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat { background: var(--bg3); border-radius: var(--r2); padding: 14px; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money.pos { color: var(--green); } .money.neg { color: var(--muted); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--bg3); color: var(--text); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amounts button { border: 1px solid var(--line2); background: var(--bg); border-radius: var(--r2); padding: 12px 14px; cursor: pointer; font-weight: 700; min-width: 76px; }
.amounts button.on, .amounts button:hover { border-color: var(--accent); background: var(--accent-dim); }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.chart i { flex: 1; background: linear-gradient(180deg, var(--accent2), var(--accent)); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .9; position: relative; }
.chart i:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #000; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; margin-bottom: 4px; }
.notice { padding: 12px 14px; border-radius: var(--r2); background: var(--accent-dim); border: 1px solid rgba(226,69,123,.3); font-size: 14px; }
.notice.warn { background: rgba(233,185,73,.1); border-color: rgba(233,185,73,.35); }
.notice.ok { background: rgba(70,201,138,.1); border-color: rgba(70,201,138,.35); }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 40px; color: var(--dim); }

/* landing */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 64px 32px; background: radial-gradient(1200px 500px at 20% -10%, rgba(226,69,123,.35), transparent 60%), radial-gradient(800px 400px at 90% 110%, rgba(90,169,255,.18), transparent 60%), var(--bg2); border: 1px solid var(--line); margin-bottom: 28px; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 38%; background: url(/hero-collage.jpg) center / cover no-repeat; opacity: .95; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 12px; letter-spacing: -1.5px; line-height: 1.05; font-weight: 900; max-width: 720px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.hero .row { gap: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 28px 0; }
.features .card b { display: block; margin-bottom: 4px; }
.features .card svg { width: 26px; height: 26px; color: var(--accent2); margin-bottom: 10px; }

/* creator cards */
.creators { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ccard { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .15s, border-color .15s; display: block; }
.ccard:hover { transform: translateY(-2px); border-color: var(--line2); }
.ccard .ban { height: 84px; background: linear-gradient(135deg, #2b1a2f, #1b1d33); background-size: cover; background-position: center; }
.ccard .body { padding: 0 14px 14px; margin-top: -30px; }
.ccard .avatar { width: 60px; height: 60px; border: 3px solid var(--bg2); }
.ccard .name { font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.ccard .meta { color: var(--muted); font-size: 13px; }
.ccard .bio { font-size: 13px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .price { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* profile */
.banner { height: 200px; border-radius: var(--r); background: linear-gradient(135deg, #2b1a2f, #1b1d33 60%, #1f1522); background-size: cover; background-position: center; border: 1px solid var(--line); }
.profile-head { padding: 0 18px; margin-top: -56px; }
.profile-head .avatar { border: 4px solid var(--bg); }
.profile-head h1 { margin: 8px 0 0; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 6px; letter-spacing: -.3px; }
.profile-head .handle { color: var(--muted); }
.profile-head .bio { margin: 10px 0; white-space: pre-wrap; max-width: 640px; }
.profile-head .pstats { display: flex; gap: 18px; color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.profile-head .pstats b { color: var(--text); }
.subscribe-box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 14px 0; }
.subscribe-box .btn.primary { width: 100%; justify-content: space-between; padding: 14px 20px; font-size: 15px; }
.subscribe-box ul { margin: 10px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13px; }

/* posts */
.post { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; }
.post .head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post .head .who { line-height: 1.2; }
.post .head .who b { display: flex; align-items: center; gap: 4px; }
.post .head .who span { font-size: 13px; color: var(--muted); }
.post .text { padding: 0 14px 12px; white-space: pre-wrap; word-wrap: break-word; }
.post .text a { color: var(--accent2); }
.post .media { position: relative; background: #000; }
.post .media img, .post .media video { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.post .media.locked img { filter: blur(0); object-fit: cover; max-height: 420px; min-height: 260px; width: 100%; }
.post .media .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); color: #fff; text-align: center; padding: 20px; }
.post .media .lock svg { width: 44px; height: 44px; opacity: .9; }
.post .media .lock b { font-size: 15px; }
.post .media .lock .meta { font-size: 13px; opacity: .85; display: flex; gap: 14px; }
.post .media .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; backdrop-filter: none; height: 36px; }
.post .media .nav.l { left: 10px; } .post .media .nav.r { right: 10px; }
.post .media .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.post .media .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.post .media .dots i.on { background: #fff; }
.post .acts { display: flex; align-items: center; gap: 2px; padding: 6px 8px; }
.post .acts .icon-btn { display: inline-flex; align-items: center; width: auto; height: 36px; padding: 0 10px; border-radius: 999px; gap: 6px; font-size: 13px; font-weight: 600; }
.post .acts .icon-btn.on { color: var(--accent); }
.post .acts .icon-btn.on svg { fill: currentColor; }
.post .tag { padding: 0 14px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.comments { padding: 4px 14px 14px; }
.comment { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.comment .c { flex: 1; min-width: 0; font-size: 14px; }
.comment .c b { margin-right: 6px; }
.comment .t { color: var(--dim); font-size: 12px; }
.composer { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 16px; }
.composer textarea { min-height: 70px; border: 0; padding: 6px 4px; background: transparent; font-size: 16px; }
.composer .thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.composer .thumbs div { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--bg3); display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.composer .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.composer .thumbs button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }
.composer .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.composer .foot input[type=number] { width: 110px; padding: 8px 10px; font-size: 14px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 10px; }
.consent input { width: auto; margin-top: 3px; }

/* messages */
.msgs { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: calc(100vh - var(--nav-h) - 60px); min-height: 480px; }
.msgs .list { border-right: 1px solid var(--line); overflow-y: auto; }
.msgs .list a { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.msgs .list a.on, .msgs .list a:hover { background: var(--bg3); }
.msgs .list .who { flex: 1; min-width: 0; }
.msgs .list .who b { display: block; font-size: 14px; }
.msgs .list .who span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs .list .unread { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread .top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.thread .body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 18px; background: var(--bg3); font-size: 15px; white-space: pre-wrap; word-wrap: break-word; align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--accent), #c82f66); color: #fff; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bubble .t { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.bubble .tip { display: inline-flex; gap: 6px; align-items: center; background: rgba(233,185,73,.2); color: var(--gold); padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.bubble.mine .tip { background: rgba(255,255,255,.2); color: #fff; }
.bubble .m { margin: 4px -6px 6px; border-radius: 12px; overflow: hidden; position: relative; max-width: 360px; }
.bubble .m img, .bubble .m video { width: 100%; max-height: 360px; object-fit: cover; }
.bubble .m .lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); }
.thread .compose { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.thread .compose textarea { flex: 1; min-height: 42px; max-height: 140px; padding: 10px 12px; border-radius: 20px; min-width: 160px; }
.thread .compose .opts { display: flex; gap: 6px; width: 100%; flex-wrap: wrap; font-size: 13px; align-items: center; }
.thread .compose .opts input[type=number] { width: 100px; padding: 6px 10px; font-size: 13px; }

/* modal + toast */
#modal:empty { display: none; }
#modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.dialog { background: var(--bg2); border: 1px solid var(--line2); border-radius: 18px; width: min(460px, 100%); padding: 22px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .18s ease-out; }
.dialog.wide { width: min(720px, 100%); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.dialog h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.3px; }
.dialog .x { position: sticky; float: right; top: 0; }
.dialog .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.err { color: var(--red); font-size: 13px; margin-top: 8px; min-height: 1em; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast div { background: #1d1d27; border: 1px solid var(--line2); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: pop .18s; max-width: 90vw; }
#toast div.bad { border-color: rgba(255,92,92,.5); }
.gate { text-align: center; }
.gate .big { font-size: 46px; font-weight: 900; letter-spacing: -2px; color: var(--accent2); line-height: 1; margin: 8px 0; }
.gate p { color: var(--muted); font-size: 14px; }
.gate .btn { margin: 4px; }

/* legal */
.legal { max-width: 760px; }
.legal h1 { font-size: 26px; letter-spacing: -.4px; }
.legal h2 { font-size: 17px; margin-top: 26px; }
.legal p, .legal li { color: #cfcfd8; font-size: 15px; }
.legal .meta { color: var(--dim); font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dim); font-size: 12px; padding: 16px 12px; }
.legal-links a:hover { color: var(--text); }

/* admin */
.admin .tabs { margin-bottom: 14px; }
.kyc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.kyc img { border-radius: 8px; width: 100%; border: 1px solid var(--line); }
.report { border-top: 1px solid var(--line); padding: 14px 0; }
.report .target { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2); padding: 10px; margin: 8px 0; font-size: 14px; }

/* phone */
@media (max-width: 860px) {
  :root { --nav-h: 54px; }
  .shell { grid-template-columns: 1fr; padding: 14px 12px 84px; gap: 0; }
  .side { display: none; }
  .search { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(11,11,16,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 30; }
  .tabbar a { flex: 1; display: grid; place-items: center; color: var(--dim); position: relative; }
  .tabbar a svg { width: 26px; height: 26px; }
  .tabbar a.on { color: var(--text); }
  .tabbar a .badge { top: 8px; right: calc(50% - 20px); }
  .hero { padding: 40px 20px; }
  .hero::before { inset: 0; opacity: .18; -webkit-mask-image: none; mask-image: none; }
  .msgs { grid-template-columns: 1fr; height: calc(100vh - var(--nav-h) - 100px); }
  .msgs .list { border-right: 0; }
  .msgs.in-thread .list { display: none; }
  .msgs:not(.in-thread) .thread { display: none; }
  .bubble { max-width: 86%; }
  .banner { height: 140px; }
  .profile-head { padding: 0 10px; margin-top: -44px; }
  .profile-head .avatar.xl { width: 92px; height: 92px; }
  .kyc { grid-template-columns: 1fr; }
  .dialog { padding: 18px; }
  td, th { padding: 8px 6px; }
}

/* inline icons default to text size unless a component sizes them */
.btn svg, .page-title svg, .notice svg, .pill svg { width: 18px; height: 18px; flex: none; }
.page-title svg { width: 26px; height: 26px; color: var(--accent2); }
.notice svg { vertical-align: -4px; }
.btn.primary.cta svg { width: 18px; height: 18px; }
