:root {
  --bg: #0B0B0F;
  --surface: #131319;
  --surface-2: #1A1A22;
  --line: #24242E;
  --text: #F4F4F6;
  --muted: #9A9AA8;
  --accent: #5468FF;
  --accent-soft: #151A3D;
  --accent-text: #AEB8FF;
  --danger: #FF6B6B;
  --radius: 14px;
  --nav-w: 240px;
  --main-w: 600px;
  --side-w: 330px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout em 3 colunas ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, var(--main-w)) var(--side-w);
  justify-content: center;
  min-height: 100vh;
}
.nav {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 16px; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.nav-links { display: flex; flex-direction: column; gap: 4px; }
.nav-links a {
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px;
  border-radius: 24px; font-size: 18px; font-weight: 500;
}
.nav-links a:hover { background: var(--surface-2); }
.nav-links a.active { font-weight: 700; }
.nav-links svg, .tabbar svg, .search svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-wallet { margin-top: auto; }
.main { border-right: 1px solid var(--line); min-height: 100vh; outline: none; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 22px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; background: var(--text); color: var(--bg);
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); opacity: 1; }
.btn-block { width: 100%; }

.wallet-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 28px;
  background: transparent; border: 0; text-align: left;
}
.wallet-chip:hover { background: var(--surface-2); }
.wallet-chip .w { font-weight: 600; }

/* ---------- Avatares ---------- */
.av { display: inline-flex; align-items: flex-end; justify-content: center; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.tav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.tav-fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.tav-lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- Cabeçalhos e separadores ---------- */
.page-head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 11, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.page-title { display: flex; align-items: center; gap: 14px; padding: 14px 16px 6px; }
.page-title h1 { margin: 0; font-size: 20px; font-weight: 700; }
.back { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; }
.back:hover { background: var(--surface-2); }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs { display: flex; }
.page-head.crew-head { position: static; }
.crew-tabs {
  position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 15, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabs a {
  flex: 1; text-align: center; padding: 14px 8px; color: var(--muted); font-weight: 500; position: relative;
}
.tabs a:hover { background: var(--surface); }
.tabs a.active { color: var(--text); font-weight: 700; }
.tabs a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px; background: var(--accent);
}

/* ---------- Listas de crews ---------- */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.row:hover { background: var(--surface); }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-top b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap;
}
.pill-plain { background: var(--surface-2); color: var(--muted); }

.mini-list { display: flex; flex-direction: column; margin: 8px -16px -6px; }
.mini-list .row { padding: 10px 16px; border-bottom: 0; }
.mini-list .tav { width: 32px; height: 32px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.card h2 { margin: 0 0 2px; font-size: 19px; font-weight: 800; }
.side-foot { padding: 0 6px; }

.search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 23px;
  background: var(--surface-2); border: 1px solid transparent; color: var(--muted);
}
.search:focus-within { border-color: var(--accent); background: var(--bg); color: var(--accent); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.mobile-search { padding: 10px 16px; display: none; }

.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- Página da crew ---------- */
.crew-hero { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.crew-id { display: flex; align-items: center; gap: 14px; }
.crew-id h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.crew-id .sym { color: var(--muted); font-weight: 500; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.stats b { color: var(--text); font-weight: 600; }
.crew-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ca {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px;
  background: var(--surface-2); border: 0; color: var(--muted); font-size: 13px; font-family: ui-monospace, monospace;
}
.ca:hover { color: var(--text); }
.verified { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-text); font-size: 14px; }
.verified svg { width: 18px; height: 18px; }

/* Composer */
.composer { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.composer textarea {
  flex: 1; min-height: 52px; max-height: 240px; resize: none; padding: 8px 0; background: transparent;
  border: 0; outline: none; font-size: 18px; line-height: 1.4;
}
.composer textarea::placeholder { color: var(--muted); }
.composer-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.count { font-size: 13px; color: var(--muted); }
.count.over { color: var(--danger); }
.join-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}

/* Posts */
.post { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; gap: 6px; align-items: baseline; font-size: 15px; }
.post-head .who { font-weight: 700; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.post-actions { display: flex; gap: 28px; margin-top: 8px; margin-left: -8px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border-radius: 18px;
  background: transparent; border: 0; color: var(--muted); font-size: 13px;
}
.act svg { width: 19px; height: 19px; }
.act:hover { color: var(--text); background: var(--surface-2); }
.dap-btn svg { width: 26px; height: 17px; }
.act.on { color: var(--accent-text); }
.act.on .dap-l, .act.on .dap-r { fill: var(--accent); stroke: var(--accent); }
.act.pop svg { animation: pop 0.35s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .act.pop svg { animation: none; } }

/* Feed */
.crew-tag {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-bottom: 4px;
  padding: 2px 10px 2px 2px; border-radius: 14px; background: var(--surface-2); font-size: 13px; font-weight: 600;
}
.crew-tag:hover { background: var(--line); }
.crew-tag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tav-xs { width: 22px; height: 22px; font-size: 11px; }
.holder {
  padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-text); align-self: center;
}
.crew-card {
  display: flex; flex-direction: column; gap: 8px; margin: 12px 16px; padding: 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.crew-card:hover { border-color: var(--accent); }
.crew-card-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.crew-card-row { display: flex; align-items: center; gap: 12px; }
.crew-card .row-main { display: block; }
.crew-card .row-top { display: flex; }
.crew-card .row-sub { display: block; white-space: normal; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

.thread { margin-top: 10px; border-left: 2px solid var(--line); padding-left: 12px; display: flex; flex-direction: column; gap: 10px; }
.reply { display: flex; gap: 10px; }
.reply .post-actions { margin-top: 2px; gap: 18px; }
.reply-form { display: flex; gap: 8px; align-items: flex-end; }
.reply-form textarea {
  flex: 1; min-height: 40px; max-height: 160px; resize: none; padding: 9px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); outline: none;
}
.reply-form textarea:focus { border-color: var(--accent); }
.reply-form .btn { min-height: 40px; padding: 0 16px; }

/* Chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 360px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 85%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--surface-2); border-radius: 16px 16px 16px 4px; padding: 8px 12px; min-width: 0; }
.msg.mine .bubble { background: #262A3D; border-radius: 16px 16px 4px 16px; }
.bubble .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.bubble .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .act { min-height: 30px; }
.chat-form { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.chat-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--surface-2); border: 1px solid transparent; outline: none;
}
.chat-form input:focus { border-color: var(--accent); }

/* Perfil */
.me-head { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.me-head b { display: block; font-size: 18px; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Perfil */
.profile-top { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px 20px; text-align: center; }
.pfp-edit { position: relative; cursor: pointer; border-radius: 50%; }
.pfp-edit:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.pfp-badge {
  position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 3px solid var(--bg);
}
#pfp-slot.loading { opacity: 0.4; }
.profile-wallet { font-size: 20px; }
.profile-stats { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.profile-stats b { color: var(--text); }
.soon-card {
  display: flex; flex-direction: column; gap: 4px; margin: 16px; padding: 16px;
  border-radius: var(--radius); border: 1px dashed var(--line); background: var(--surface);
}
.soon-card b { font-size: 17px; }
.profile-foot { padding: 0 16px 24px; }

/* Imagens nos posts */
.post-img { display: block; margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.post-img img { display: block; width: 100%; max-height: 520px; object-fit: cover; background: var(--surface-2); }
.reply .post-img img { max-height: 320px; }
.composer-preview { position: relative; align-self: flex-start; max-width: 100%; }
.composer-preview img { display: block; max-width: 100%; max-height: 260px; border-radius: 14px; border: 1px solid var(--line); }
.remove-img {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(11, 11, 15, 0.8); color: #fff; font-size: 20px; line-height: 1;
}
.composer-foot .attach { color: var(--accent-text); cursor: pointer; }
.composer-foot .emoji-btn { margin-right: auto; }
/* Links da coin */
.coin-links { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 17px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text);
}
.link-chip:hover { background: var(--surface-2); border-color: var(--accent); }

/* Emojis */
.emoji-btn { color: var(--muted); }
.emoji-btn svg { width: 22px; height: 22px; }
.chat-form .emoji-btn { min-height: 44px; }
.emoji-pop {
  position: fixed; z-index: 40; width: 296px; max-width: calc(100vw - 16px);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.emoji { height: 44px; border: 0; border-radius: 10px; background: transparent; font-size: 24px; line-height: 1; }
.emoji:hover, .emoji:focus-visible { background: var(--line); }

.dex-paid { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 600; }
.dex-paid svg { width: 16px; height: 16px; }
.section-title { margin: 0; padding: 16px 16px 8px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
.empty .av { display: flex; margin: 0 auto; }
.profile-icon { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.profile-icon .av { width: 26px !important; height: 26px !important; }
.tabbar .active .profile-icon .av, .nav-links .active .profile-icon .av { box-shadow: 0 0 0 2px var(--text); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); text-align: center; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.skeleton { padding: 40px; text-align: center; color: var(--muted); }

/* Barra de baixo (telemóvel) */
.tabbar { display: none; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 88px minmax(0, var(--main-w)) var(--side-w); }
  .nav { align-items: center; padding: 20px 10px; }
  .brand span, .nav-links span, .wallet-chip .w-text { display: none; }
  .nav-links a { width: 52px; justify-content: center; padding: 0; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 88px minmax(0, 1fr); }
  .side { display: none; }
  .mobile-search { display: block; }
}
@media (max-width: 640px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .main { border-right: 0; padding-bottom: 72px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(11, 11, 15, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px;
    font-size: 11px; color: var(--muted); background: transparent; border: 0;
  }
  .tabbar .active { color: var(--text); }
  .chat { height: calc(100vh - 290px); height: calc(100dvh - 290px); }
  .composer textarea { font-size: 16px; }
  .toast { bottom: 90px; }
}

/* Escolher carteira */
.wallet-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.wallet-box { width: 100%; max-width: 360px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.wallet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 17px; }
.wallet-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 16px; }
.wallet-x:hover { background: var(--line); color: var(--text); }
.wallet-list { display: grid; gap: 8px; }
.wallet-list p { margin: 4px 0; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.wallet-opt:hover, .wallet-opt:focus-visible { border-color: var(--accent); }
.wallet-opt img, .wallet-ph { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wallet-ph { background: var(--line); }
.wallet-note { margin: 12px 0 0; text-align: center; }

/* As tuas coins */
.your-coins { border-bottom: 8px solid var(--surface); }
.your-coins .section-title { border-bottom: 0; }
.your-coins-loading { padding: 12px 16px; margin: 0; }

/* Home: entrada para quem ainda não ligou a carteira */
.hero { padding: 28px 20px 22px; border-bottom: 8px solid var(--surface); text-align: center; }
.hero h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 0 auto 16px; max-width: 420px; font-size: 15px; line-height: 1.45; }
.hero-actions { display: flex; justify-content: center; margin-bottom: 14px; }
.hero-actions .btn { min-height: 46px; padding: 0 24px; font-size: 15px; }
.hero-search { max-width: 420px; margin: 0 auto; }
.steps { display: flex; justify-content: center; gap: 18px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; }

/* Hot right now */
.hot { border-bottom: 8px solid var(--surface); }
.hot .section-title { border-bottom: 0; }
.pill-cta { background: var(--accent); color: #fff; cursor: pointer; }
.pill-cta:hover { filter: brightness(1.1); }
.more-link { display: block; padding: 12px 16px; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.up { color: #3DDC97; }
.down { color: #FF6B6B; }

/* Resultados da pesquisa por nome/ticker */
.search-results { margin: 6px 0 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; }
.search-results .row { border-bottom: 1px solid var(--line); }
.search-results .row:last-child { border-bottom: 0; }
.search-results p { margin: 0; padding: 12px 14px; }
.hero .search-results { max-width: 420px; margin: 6px auto 0; }
.side .search-results { position: relative; z-index: 5; }

/* Entrar ao publicar */
.join-hint { margin: 0; padding: 0 16px 12px 68px; }
.chat-hint { padding: 0 16px 10px; text-align: center; }

/* Telemóvel sem carteira */
.wallet-bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  padding: 10px 12px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
}
.wallet-bar span { flex: 1 1 auto; min-width: 0; }
.wallet-bar a { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.18); color: #fff; text-decoration: none; }
.wallet-bar button { flex: none; width: 28px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 14px; }

/* Moderação */
.mod-btn { font-size: 12px; font-weight: 600; padding: 0 8px; min-height: 32px; color: var(--muted); }
.mod-btn.armed { color: #FF6B6B; background: rgba(255, 107, 107, 0.12); }
.bubble .mod-btn { min-height: 0; padding: 0 0 0 8px; background: transparent; font-size: 11px; }
.legal { margin: 14px auto 0; max-width: 420px; font-size: 12px; color: var(--muted); opacity: 0.8; }

/* Report */
.post-actions { flex-wrap: wrap; }
.report-pop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex-basis: 100%; margin: 6px 0 2px; }
.chip { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip-x { color: var(--muted); }
.bubble .report-pop { display: flex; margin: 6px 0 0; }

/* Painel de admin */
.admin { border-bottom: 8px solid var(--surface); padding-bottom: 8px; }
.admin-pad { padding: 0 16px; }
.admin-h { margin: 16px 16px 6px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.tile b { display: block; font-size: 20px; font-weight: 800; }
.tile span { font-size: 12px; color: var(--muted); }
.q-item { padding: 10px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.q-pending { background: rgba(255, 196, 0, 0.06); }
.q-head { font-size: 14px; }
.q-body { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.q-actions { display: flex; gap: 6px; margin-top: 4px; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
