:root {
  --hover-line: #555555; /* borda de hover/foco: cinza discreto (nada de borda branca) */
  --bg: #000000;
  --card: #0a0a0a;
  --card-2: #101010;
  --field: #050505;
  --line: #1c1c1c;
  --line-2: #2a2a2a;
  --text: #ededed;
  --muted: #8a8a8a;
  --faint: #5a5a5a;
  --white: #ffffff;
  --green: #4ade80; /* pontinhos de "ao vivo" / rede online e a idade recente dos tokens */
  --sprout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 22v-9' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M11 13C11 8 8 5.5 3 5.5c0 4.7 3 7.5 8 7.5z'/%3E%3Cpath d='M12 15c0-4.2 3-7.5 9-7.5 0 5-3.6 7.5-9 7.5z'/%3E%3C/svg%3E");
  --blue: #60a5fa; /* idade dos tokens com mais de 10 minutos */
  --radius: 8px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --num: var(--mono); /* números grandes (market cap, preços, saldos): mono, como terminal de trading; trocar por var(--sans) volta ao normal */
  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
* { scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
a { color: var(--white); text-underline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
:focus-visible { outline: 1px solid var(--hover-line); outline-offset: 2px; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.mark { width: 30px; height: 30px; border-radius: 6px; background: #000; border: 1px solid var(--line-2); display: grid; place-items: center; }
.mark svg { width: 21px; height: 21px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 6px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.10); }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.net { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 6px; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- botoes ---------- */
.btn { appearance: none; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer;
  padding: 8px 14px; transition: background .15s, color .15s, border-color .15s, transform .05s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.btn[hidden] { display: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--hover-line); background: rgba(255,255,255,.06); }
.btn-ghost:disabled { color: var(--text); border-color: var(--line-2); cursor: default; }
.btn-solid { background: var(--white); color: #000; }
.btn-solid:hover { background: #dcdcdc; }
.btn-primary { width: 100%; background: var(--white); color: #000; padding: 12px; font-size: 15px; letter-spacing: 0; }
.btn-primary:hover:not(:disabled) { background: #dcdcdc; }
.btn-primary:disabled { background: #2a2a2a; color: #777; cursor: not-allowed; }

/* ---------- hero (pagina /create) ---------- */
.hero { padding: 40px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--green); }
h1 { margin: 0; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
h1 span { color: inherit; }
.lede { max-width: 56ch; color: var(--muted); margin: 14px 0 0; font-size: 15px; }

/* ---------- grade principal (/create) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-bottom: 72px; align-items: start; }
.stack { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-title b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.walletinfo { margin: 22px 0 0; font-size: 13px; color: var(--muted); font-family: var(--mono); word-break: break-all; }
.walletinfo.on { color: var(--text); }

/* ---------- campos ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { margin-top: 14px; }
.field:first-of-type, .grid2 > .field, .grid3 > .field { margin-top: 0; }
.grid2 + .field, .grid3 + .field { margin-top: 14px; }
label.lbl { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
label.lbl small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); margin-left: 4px; }
input[type=text], input[type=number], input:not([type]), textarea {
  width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font: inherit; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #4d4d4d; }
input:hover, textarea:hover { border-color: var(--line-2); }
input:focus, textarea:focus { outline: none; border-color: var(--hover-line); box-shadow: none; }
textarea { min-height: 96px; resize: vertical; }
.hint { color: var(--faint); font-size: 13px; margin: 12px 0 0; }

/* ---------- upload ---------- */
.drop { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 8px;
  cursor: pointer; background: var(--field); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--hover-line); background: #121212; }
.drop:focus-within { border-color: var(--hover-line); box-shadow: none; }
.drop .drop-icon { flex: none; width: 46px; height: 46px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.drop-icon svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { display: block; font-size: 15px; }
.drop span { display: block; font-size: 13px; color: var(--muted); word-break: break-all; }

/* ---------- interruptor ---------- */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: var(--field); }
.switch:hover { border-color: var(--line-2); }
.switch > span:first-child { font-size: 14px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.track { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #2a2a2a; position: relative; transition: background .15s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8a8a8a; transition: transform .15s, background .15s; }
.switch input:checked + .track { background: var(--white); }
.switch[hidden], .hint[hidden] { display: none; }
.field input:disabled { opacity: .45; cursor: not-allowed; }
.switch input:checked + .track::after { transform: translateX(18px); background: #000; }
.switch input:focus-visible + .track { outline: 1px solid var(--hover-line); outline-offset: 2px; }
#vanityInfo { margin-top: 10px; }

/* ---------- coluna da direita (/create) ---------- */
.aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.pv-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.coin { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--field); }
.cover { position: relative; aspect-ratio: 1; background:
  repeating-conic-gradient(#151515 0 25%, #0d0d0d 0 50%) 0 0 / 28px 28px; display: grid; place-items: center; color: var(--faint); font-size: 13px; text-align: center; }
.cover-empty { display: grid; gap: 8px; justify-items: center; }
.cover-empty svg { width: 30px; height: 30px; stroke: #555; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.coin-body { padding: 16px; border-top: 1px solid var(--line); }
.coin-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }
.coin-sym { color: var(--muted); font-family: var(--mono); font-size: 13px; margin-top: 2px; }
.coin-desc { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.coin-meta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-family: var(--mono); }

.cost { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cost strong { font-family: var(--num); font-size: 26px; letter-spacing: -.01em; font-weight: 600; }
.cost span { font-size: 12px; color: var(--muted); text-align: right; }
details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 13.5px; }
summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 18px; color: var(--muted); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

#log { margin: 0; max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-all; font: 12.5px/1.7 var(--mono); color: var(--muted); }
#log .ok { color: var(--white); }
#log .ok::before { content: "✓ "; }
#log .err { color: #fff; background: rgba(255,255,255,.10); padding: 1px 6px; border-radius: 3px; }
#log .err::before { content: "✕ "; }
#log a { color: var(--white); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: .35; }

/* ---------- feed de novos pares (/) ---------- */
.feed { padding: 44px 0 72px; }
.feed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.feed-head h1 { font-size: clamp(32px, 5.5vw, 52px); }
.feed-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--faint); font-family: var(--mono); }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 9px 14px; border-radius: 6px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.status.live { color: var(--text); }
.status.live i { background: var(--green); animation: ping 1.8s infinite; }
.status.paused { color: var(--text); }
.status.paused i { background: #f87171; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } }
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.coin-card { container-type: inline-size; position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color .15s; animation: pop .3s ease-out; }
.coin-card:hover { border-color: var(--hover-line); }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.thumb { position: relative; flex: none; aspect-ratio: 1; background: #0e0e0e; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
/* CA do token + copiar: faixa no rodapé do cartão (acima do link esticado que abre a moeda) */
.ca { appearance: none; position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; flex: none;
  padding: 9px 14px; background: transparent; color: var(--muted); border: 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; text-align: left; cursor: pointer;
  transition: color .15s, background .15s; }
.ca:hover { color: var(--white); background: rgba(255,255,255,.05); }
.ca-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-actions { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.ca-icon { appearance: none; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; border: 1px solid var(--line-2); transition: color .15s, background .15s, border-color .15s; }
.ca-icon:hover { border-color: var(--hover-line); color: var(--white); }
.ca:hover .ca-icon { border-color: var(--hover-line); }
.ca-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ca.done { color: var(--white); }
.ca.done .ca-copy { color: #000; background: var(--white); border-color: var(--white); }
.ca.fail { color: var(--faint); }
.card-name { display: flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: -.01em; }
.card-name .card-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pump-mark { width: 18px; height: 18px; flex: none; object-fit: contain; }
.card-sym { color: var(--muted); font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.mc-val { font-family: var(--num); font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mc span { color: var(--muted); font-size: 13px; }
/* logo do ativo de pareamento (Solana ou outro), como na pump.fun */
.mc .pair { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 3px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; font-family: var(--mono); color: var(--text); white-space: nowrap; }
.mc .pair img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; background: #1d1d1d; }
.mc .pair span { color: var(--text); font-size: 12px; }
.mc .pair:not(:has(img)) { padding-left: 9px; }
.mc-val.up { animation: mc-up .8s ease-out; }
.mc-val.down { animation: mc-down .8s ease-out; }
@keyframes mc-up { 0% { color: #4ade80; } 100% { color: inherit; } }
@keyframes mc-down { 0% { color: #f87171; } 100% { color: inherit; } }
.dev-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
/* $SÍMBOLO à esquerda e idade do token à direita */
.card-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 1px; }
.card-sub .card-sym { min-width: 0; }
.card-sub .age { font-family: var(--mono); font-size: 12px; }
/* caixa do dev: separada do bloco do token */
.dev-box { margin-top: 12px; padding: 8px 10px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); display: grid; gap: 4px; }
.dev-box[hidden] { display: none; }
.dev-box .dev-row { margin-top: 0; min-width: 0; }
.dev-box .dev-hist { margin-top: 0; flex-wrap: wrap; row-gap: 2px; white-space: normal; overflow: visible; } /* se não couber numa linha, o histórico quebra em duas em vez de ser cortado */
.dev-box .dev-txt { overflow: visible; text-overflow: clip; }
.dev-line { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; min-width: 0; } /* "Dev history" + o texto; se não couber, o texto desce para a linha de baixo */
.dev-line-label { flex: none; color: var(--muted); font-weight: 400; } /* o nome fica sempre cinza; só o texto leva a cor (verde, vermelho) */
.coins.is-table .dev-line-label { display: none; } /* na tabela não há espaço para o nome */
.dev-label { flex: none; font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.dev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age { flex: none; color: var(--text); }
.age[data-tone="new"] { color: var(--green); }
.age[data-tone="old"] { color: var(--blue); }
/* ícone de broto antes da idade (nos cartões e no cabeçalho da moeda), na mesma cor do texto */
.dev-row .age, .card-sub .age, .ch-age, .tr-age { display: inline-flex; align-items: center; gap: 5px; }
.dev-row .age::before, .card-sub .age::before, .ch-age::before, .tr-age::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--sprout) center / contain no-repeat; mask: var(--sprout) center / contain no-repeat; }
.desc { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.desc:empty { display: none; }
/* "See more" no fim da segunda linha (com um degradê para esconder o corte do texto); aberta, o botão desce para baixo do texto */
.desc-wrap { position: relative; }
.desc-more { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 0 0 0 26px; border: 0; background: linear-gradient(90deg, rgba(10,10,10,0), var(--card) 24px); color: var(--text); font: inherit; font-size: 13px; line-height: 1.45; font-weight: 600; cursor: pointer; }
.desc-more:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.desc-more[hidden] { display: none; }
.desc-wrap.open .desc { display: block; -webkit-line-clamp: unset; }
.desc-wrap.open .desc-more { position: static; display: block; margin-top: 4px; padding: 0; background: none; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* o cartão todo é clicável */
.links { display: flex; gap: 6px; margin-top: 10px; }
.links[hidden] { display: none; }
.links a { position: relative; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.links a:hover { color: #000; background: var(--white); border-color: var(--white); }
.links svg { width: 14px; height: 14px; fill: currentColor; }
.links svg[stroke] { fill: none; }
.empty { color: var(--muted); text-align: center; padding: 64px 0; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- ★ favoritar (canto esquerdo da imagem) e abas ---------- */
.star { position: absolute; top: 10px; left: 10px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: #fff; background: rgba(0,0,0,.55); border: 0; border-radius: 50%;
  transition: background .15s, border-color .15s, color .15s; }
.star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star:hover { background: rgba(0,0,0,.8); }
.star.on { color: #fbbf24; }
.star.on svg { fill: #fbbf24; }
.tabs { display: flex; gap: 4px; margin: 0; flex-wrap: wrap; }
.tab { appearance: none; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 6px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.tab:hover { color: var(--white); background: rgba(255,255,255,.05); }
.tab[aria-selected="true"] { background: #141414; color: var(--white); border-color: var(--line-2); }
.tab svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.tab .count { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.tab[aria-selected="true"] .count { color: var(--muted); }

/* ---------- paginação ---------- */
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 28px; }
.pager[hidden] { display: none; }
.pager button { appearance: none; background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 9px 14px; min-width: 42px; border-radius: 6px; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.pager button:hover:not(:disabled) { color: var(--white); background: rgba(255,255,255,.06); }
.pager button[aria-current="page"] { color: var(--white); background: #141414; border-color: var(--line-2); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { color: var(--muted); padding: 0 8px; }
.pager .fresh { margin-right: auto; color: var(--white); border-color: var(--line-2); }
#grid { scroll-margin-top: 90px; }

/* ---------- cartão de prévia (X / site) ao passar o mouse ---------- */
/* Aberto no CENTRO da tela; o cartão inteiro é um link (clicar em qualquer ponto abre o X / site). */
.hovercard { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; background: #0b0b0b; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; color: var(--text); text-decoration: none; cursor: pointer; animation: hc-in .18s ease-out; }
.hovercard[hidden] { display: none; }
.hovercard:hover { border-color: #5a5a5a; }
.hovercard:hover .hc-btn { background: var(--white); color: #000; border-color: var(--white); }
@keyframes hc-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.hc-dim { position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .15s; }
.hc-dim.on { opacity: 1; }
.hc-banner { height: 110px; background: #111; border-radius: 10px 10px 0 0; overflow: hidden; }
.hc-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 16px; margin-top: -34px; }
.hc-avatar { width: 68px; height: 68px; border-radius: 50%; background: #1d1d1d; border: 3px solid #0b0b0b; overflow: hidden; flex: none; }
.hc-avatar.small { width: 42px; height: 42px; border-width: 2px; }
.hc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-x { width: 22px; height: 22px; margin-top: 40px; color: var(--text); flex: none; }
.hc-body { padding: 12px 16px 16px; }
.hc-head + .hc-body { padding-top: 8px; }
.hc-name { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 1.25; }
.hc-name b { font-weight: 700; overflow-wrap: anywhere; }
.hc-badge { width: 16px; height: 16px; color: var(--white); flex: none; }
.hc-handle { color: var(--muted); font-size: 13.5px; }
.hc-bio { margin: 10px 0 0; line-height: 1.45; overflow-wrap: anywhere; color: #d6d6d6; }
.hc-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.hc-meta svg { width: 16px; height: 16px; flex: none; }
.hc-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.hc-stat b { color: var(--text); font-weight: 700; }
.hc-btn { display: block; margin-top: 14px; padding: 10px 14px; text-align: center; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, color .15s, border-color .15s; }
.hc-btn:hover { background: var(--white); color: #000; border-color: var(--white); }
.hc-author { display: flex; align-items: center; gap: 10px; }
.hc-author .hc-x { margin: 0 0 0 auto; align-self: flex-start; }
.hc-who { min-width: 0; }
.hc-text { margin: 12px 0 0; line-height: 1.5; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-photo { display: block; width: 100%; max-height: 190px; object-fit: cover; margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; }
.hc-host { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hc-title { margin-top: 6px; font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- aviso de versão nova ---------- */
.update { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 14px; background: var(--white); color: #000; padding: 10px 10px 10px 18px;
  border-radius: 8px; font-weight: 600; max-width: calc(100% - 32px); }
.update button { appearance: none; border: 0; border-radius: 6px; background: #000; color: #fff; font: inherit; font-weight: 700; padding: 8px 14px; cursor: pointer; }
.update button:hover { background: #222; }

/* ---------- aviso ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--white); color: #000; padding: 12px 18px;
  border-radius: 6px; font-weight: 600; max-width: calc(100% - 32px); }
.toast a { color: #000; }

footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; padding: 22px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 940px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .hero { padding-top: 36px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .topbar-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .net { display: none; }
  .card { padding: 18px; }
  .btn { padding: 10px 12px; }
  .coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* ---------- barra "Explorar moedas" ---------- */
.explore-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.explore-title { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.015em; font-weight: 700; }
.explore-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.explore-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qbox { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); font-size: 13px; transition: border-color .15s; }
.qbox:focus-within { border-color: var(--hover-line); }
.qbox.bad { border-color: var(--sell); }
.qbox-label { white-space: nowrap; }
.qbox-input { width: 46px; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.qbox-sol { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.icon-btn { appearance: none; background: transparent; border: 0; color: var(--muted); width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--white); background: rgba(255,255,255,.08); }
.icon-btn.framed { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 6px; }
.icon-btn.framed:hover { border-color: var(--hover-line); background: transparent; }
#viewMode { height: 36px; align-items: center; border-radius: 6px; }
#viewMode button svg { width: 15px; height: 15px; }
.viewmenu-wrap { position: relative; }
.viewmenu { width: min(460px, calc(100vw - 24px)); max-height: min(88vh, 720px); padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: #0f0f0f; color: var(--text); overflow: hidden; }
.viewmenu:focus, .viewmenu:focus-visible { outline: none; }
.viewmenu[open] { display: flex; flex-direction: column; }
.viewmenu::backdrop { background: rgba(0,0,0,.72); }
.vm-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.vm-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.vm-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 6px 10px 0; display: grid; align-content: start; gap: 2px; }
.viewmenu label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 5px; cursor: pointer; font-size: 14px; }
.viewmenu label:hover { background: rgba(255,255,255,.06); }
.viewmenu input[type="checkbox"] { accent-color: #fff; width: 16px; height: 16px; margin: 0; }
.vm-title { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.vm-title:first-child { margin-top: 2px; }
.vm-title small { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.vm-sub { margin: 6px 10px 2px; font-size: 12.5px; color: var(--muted); }
.vm-field { display: grid; gap: 5px; padding: 6px 10px; }
.vm-field > label, .vm-field > span { padding: 0; font-size: 12.5px; color: var(--muted); cursor: default; }
.vm-field > label:hover { background: none; }
.viewmenu select, .viewmenu .vm-field input[type="text"] { width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px; background: var(--field); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-size: 13px; }
.viewmenu select:focus, .viewmenu .vm-field input[type="text"]:focus { outline: none; border-color: var(--hover-line); }
.viewmenu .vm-field input.bad { border-color: #f87171; }
/* filtro por dev: campo + botão "+" (mais carteiras) e, embaixo, uma linha com "×" para cada carteira extra */
.dev-in { display: flex; gap: 8px; align-items: center; }
.dev-extra { display: grid; gap: 8px; }
.dev-extra:empty { display: none; }
.dev-btn { flex: none; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font: inherit; font-size: 20px; line-height: 1; color: var(--text); background: var(--field); border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; transition: border-color .15s, background .15s; }
.dev-btn:hover:not(:disabled) { border-color: var(--hover-line); background: rgba(255,255,255,.06); }
.dev-btn:disabled { opacity: .4; cursor: not-allowed; }
.vm-note { font-size: 11.5px; line-height: 1.4; color: var(--faint); }
.vm-note:empty { display: none; }
.vm-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vm-checks { display: flex; flex-wrap: wrap; padding: 0 4px 4px; }
.vm-checks label { padding: 7px 8px; }
.vm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; padding: 10px 10px 4px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #0f0f0f; }
.vm-status { min-width: 0; font-size: 12px; color: var(--muted); }
.vm-foot .btn { flex: none; padding: 6px 12px; font-size: 12.5px; }
.icon-btn.has-filters { position: relative; }
.icon-btn.has-filters::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- botão de compra rápida no cartão (aparece ao passar o mouse, sobre a imagem) ---------- */
.qb { position: absolute; z-index: 4; left: 50%; top: calc(100cqw - 56px); transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 9px; border: 0; border-radius: 6px; background: var(--buy); color: #04210f;
  font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: opacity .15s, transform .15s, filter .15s; }
.qb img { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #111; flex: none; }
.coin-card:hover .qb, .qb:focus-visible, .qb[data-state] { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.qb:hover { filter: brightness(1.08); }
.qb[data-state] { background: var(--white); color: #000; cursor: default; }
@media (hover: none) { .qb { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); } }
/* "Sell 100%" (só no modo instantâneo, nas moedas que a carteira tem): logo acima do botão de compra, vermelho */
.qs { position: absolute; z-index: 4; left: 50%; top: calc(100cqw - 94px); transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; justify-content: center; padding: 6px 16px; border: 0; border-radius: 6px; background: var(--sell, #f87171); color: #2a0707;
  font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: opacity .15s, transform .15s, filter .15s; }
.qs[hidden] { display: none; }
.coin-card:hover .qs, .qs:focus-visible, .qs[data-state] { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.qs:hover { filter: brightness(1.08); }
.qs[data-state] { background: var(--white); color: #000; cursor: default; }
@media (hover: none) { .qs { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); } }

/* ---------- mini-gráfico do market cap, sobre a parte de baixo da imagem ---------- */
.spark { position: absolute; z-index: 1; left: 0; right: 0; top: calc(100cqw - 70px); width: 100%; height: 70px; pointer-events: none; opacity: 0; transition: opacity .3s; overflow: visible; }
.spark.on { opacity: 1; }
.spark-line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: rgba(74,222,128,.13); stroke: none; }
.spark[data-dir="down"] .spark-line { stroke: var(--sell); }
.spark[data-dir="down"] .spark-area { fill: rgba(248,113,113,.12); }
body.no-spark .spark { display: none; }
body.no-desc .desc { display: none; }

/* ---------- visão em tabela (cada moeda é uma linha) ---------- */
:root { --tbl-cols: 28px 44px minmax(160px, 1.5fr) 92px 96px 72px minmax(190px, 1fr) 84px 150px 142px; }
/* a tabela precisa de mais largura que os cartões */
main.feed:has(.coins.is-table) { width: min(1360px, 100% - 32px); }
.table-head { display: none; }
.table-head:not([hidden]) { display: grid; grid-template-columns: var(--tbl-cols); column-gap: 14px; align-items: center; padding: 9px 16px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.coins.is-table { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 8px 8px; overflow: hidden; }
.coins.is-table .coin-card { container-type: normal; display: grid; grid-template-columns: var(--tbl-cols); grid-template-rows: auto auto; align-items: center; column-gap: 14px; padding: 8px 16px; background: transparent; border: 0; border-bottom: 1px solid #1a1a1a; border-radius: 0; animation: none; transition: background .15s; }
.coins.is-table .coin-card:last-child { border-bottom: 0; }
.coins.is-table .coin-card:hover { background: rgba(255,255,255,.04); transform: none; }
.coins.is-table .thumb { display: contents; }
.coins.is-table .star { position: static; grid-column: 1; grid-row: 1 / span 2; width: 26px; height: 26px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.coins.is-table .star svg { width: 15px; height: 15px; }
.coins.is-table .thumb img { position: static; grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.coins.is-table .card-body { display: contents; }
.coins.is-table .card-name { grid-column: 3; grid-row: 1; align-self: end; min-width: 0; }
.coins.is-table .card-sym { grid-column: 3; grid-row: 2; align-self: start; min-width: 0; }
.coins.is-table .mc { grid-column: 4; grid-row: 1 / span 2; margin: 0; }
.coins.is-table .mc span:not(.pair), .coins.is-table .mc .pair span { display: none; }
.coins.is-table .mc .pair { padding: 2px 3px; margin-left: 6px; }
.coins.is-table .mc-val { font-size: 16px; }
.coins.is-table .spark { position: static; grid-column: 5; grid-row: 1 / span 2; width: 100%; height: 30px; align-self: center; }
.coins.is-table .spark-line { stroke-width: 1.6; filter: none; }
.coins.is-table .dev-row { display: contents; }
.coins.is-table .age { grid-column: 6; grid-row: 1 / span 2; }
.coins.is-table .dev { grid-column: 7; grid-row: 1 / span 2; min-width: 0; }
.coins.is-table .links { grid-column: 8; grid-row: 1 / span 2; margin: 0; }
.coins.is-table .links a { width: 26px; height: 26px; }
.coins.is-table .desc { display: none; }
.coins.is-table .ca { grid-column: 9; grid-row: 1 / span 2; width: auto; padding: 4px 4px 4px 10px; border: 1px solid var(--line-2); border-radius: 6px; }
.coins.is-table .ca:hover { border-color: var(--hover-line); background: transparent; }
.coins.is-table .qb { position: static; grid-column: 10; grid-row: 1 / span 2; justify-self: end; opacity: 1; pointer-events: auto; transform: none; gap: 6px; padding: 5px 11px 5px 5px; font-size: 12px; }
.coins.is-table .qb img { width: 17px; height: 17px; }
/* tabela: o "Sell 100%" fica à esquerda do botão de compra, na mesma coluna (que alarga quando alguma linha o mostra) */
.coins.is-table .qs { position: static; grid-column: 10; grid-row: 1 / span 2; justify-self: start; opacity: 1; pointer-events: auto; transform: none; padding: 5px 10px; font-size: 12px; }
main.feed:has(.coins.is-table .qs:not([hidden])) { --tbl-cols: 28px 44px minmax(160px, 1.5fr) 92px 96px 72px minmax(190px, 1fr) 84px 150px 244px; }
@media (max-width: 1100px) {
  main.feed { overflow-x: auto; }
  .coins.is-table, .table-head { min-width: 1150px; }
  main.feed:has(.coins.is-table .qs:not([hidden])) .coins.is-table, main.feed:has(.coins.is-table .qs:not([hidden])) .table-head { min-width: 1320px; } /* soma das colunas (com os mínimos), espaços e margens */
}

/* ---------- conta conectada: saldo + avatar abrem o menu (endereço, Configurações, Desconectar) ---------- */
.account { position: relative; }
.account[hidden] { display: none; }
.acct-btn { appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 5px 0 12px; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { border-color: var(--hover-line); }
.acct-sol { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.acct-bal { font-variant-numeric: tabular-nums; min-width: 12px; }
.acct-chev { width: 14px; height: 14px; color: var(--muted); flex: none; }
.acct-avatar { width: 26px; height: 26px; margin-left: 2px; border-radius: 50%; display: grid; place-items: center; background: #2a6f64; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 250px; display: grid; gap: 2px; padding: 6px; background: #0f0f0f; border: 1px solid var(--line-2); border-radius: 8px; }
.acct-menu[hidden] { display: none; }
.acct-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.acct-addr a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; color: var(--muted); }
.acct-addr a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.acct-item { appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: transparent; border: 0; border-radius: 6px; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background .15s; }
.acct-item[hidden] { display: none; }
.acct-item:hover { background: rgba(255,255,255,.06); }
.acct-item svg { width: 17px; height: 17px; flex: none; }
.acct-item.danger { color: var(--sell, #f87171); }
.acct-item.danger:hover { background: rgba(248,113,113,.12); }
@media (max-width: 720px) { .acct-bal, .acct-chev { display: none; } .acct-btn { padding-left: 6px; } }

/* ---------- criar token: para quem vão as recompensas do criador ---------- */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
.choice-opt { position: relative; cursor: pointer; }
.choice-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice-body { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 10px; border-radius: 6px; color: var(--muted); font-weight: 600; transition: background .15s, color .15s; }
.choice-body svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice-opt:hover .choice-body { color: var(--white); }
.choice-opt input:checked + .choice-body { background: #232323; color: var(--white); }
.choice-opt input:focus-visible + .choice-body { outline: 1px solid var(--hover-line); outline-offset: 2px; }

/* ---------- busca de moedas (lupa do cabeçalho; janela em search.js) ---------- */
.search-trigger { flex: none; appearance: none; display: inline-flex; align-items: center; gap: 10px; height: 36px; width: min(300px, 26vw); padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.search-trigger:hover { border-color: var(--hover-line); color: var(--text); background: rgba(255,255,255,.04); }
.search-trigger svg, .sd-box svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.st-text { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-kbd { flex: none; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px; background: transparent; }
@media (max-width: 900px) {
  .search-trigger { width: 36px; padding: 0; justify-content: center; }
  .search-trigger .st-text, .search-trigger .st-kbd { display: none; }
}
@media (max-width: 560px) {
  .net { display: none; }
  .topbar-inner { gap: 10px; }
  .brand > span:not(.mark) { display: none; } /* só o ícone da marca, para a lupa e os botões caberem */
}

.search-dialog { width: min(560px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--text); overflow: hidden; }
.search-dialog::backdrop { background: rgba(0,0,0,.62); }
.sd-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
input.sd-input { flex: 1; min-width: 0; height: 52px; padding: 0; background: transparent; border: 0; border-radius: 0; outline: 0; box-shadow: none; appearance: none; color: var(--white); font: inherit; font-size: 16px; }
input.sd-input::placeholder { color: var(--faint); }
input.sd-input::-webkit-search-cancel-button { display: none; }
.sd-list { max-height: min(420px, 60vh); overflow-y: auto; scrollbar-width: none; padding: 6px; }
.sd-list::-webkit-scrollbar { display: none; }
.sd-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 6px; color: inherit; text-decoration: none; }
.sd-item:hover, .sd-item[aria-selected="true"] { background: rgba(255,255,255,.07); }
.sd-img { width: 36px; height: 36px; border-radius: 6px; background: #1d1d1d; overflow: hidden; display: block; }
.sd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-names { display: grid; min-width: 0; }
.sd-name { font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-sym { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-right { display: grid; justify-items: end; gap: 1px; }
.sd-mc { font-weight: 700; font-variant-numeric: tabular-nums; }
.sd-tag { font-size: 11px; color: var(--muted); }
.sd-msg { margin: 0; padding: 24px 14px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- janela de compartilhar (banner da moeda; share.js) ---------- */
.cr-mint { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cr-mint code { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.cr-mint .btn { padding: 8px 14px; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cr-actions .btn { flex: 1 1 auto; text-align: center; text-decoration: none; padding: 11px 16px; }
.cr-actions .btn[hidden] { display: none; }
#createdCard .hint { margin: 14px 0 0; }
.confirm-dialog { width: min(440px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--text); overflow: hidden; }
.confirm-dialog:focus, .confirm-dialog:focus-visible { outline: none; }
.confirm-dialog::backdrop { background: rgba(0,0,0,.72); }
.cf-body { padding: 20px 20px 16px; }
.cf-body h2 { margin: 0 0 14px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.cf-details { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); font-size: 14px; }
.cf-details dt { color: var(--muted); }
.cf-details dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.cf-text { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cf-warn { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.cf-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.cf-actions .btn { padding: 9px 18px; }
.created-dialog { width: min(440px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--text); overflow: hidden; }
.created-dialog:focus, .created-dialog:focus-visible { outline: none; }
.created-dialog::backdrop { background: rgba(0,0,0,.78); }
.cd-body { padding: 28px 24px 22px; text-align: center; }
.cd-check { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.4); }
.cd-check svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cd-body h2 { margin: 0 0 18px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.cd-coin { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); text-align: left; }
.cd-coin img { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: cover; background: #111; }
.cd-coin strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.cd-coin span { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.cd-mint { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.cd-mint code { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; text-align: left; }
.cd-mint .btn { padding: 8px 14px; }
.cd-note { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.cd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cd-actions .btn { text-align: center; text-decoration: none; padding: 12px 10px; }
.cd-actions .cd-wide { grid-column: 1 / -1; }
.cd-close { appearance: none; background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 13.5px; margin-top: 14px; cursor: pointer; }
.cd-close:hover { color: var(--white); }
.share-dialog { width: min(720px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--text); overflow: hidden; }
.share-dialog:focus, .share-dialog:focus-visible { outline: none; }
.share-dialog::backdrop { background: rgba(0,0,0,.72); }
.sh-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sh-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.sh-x { appearance: none; background: transparent; border: 0; color: var(--muted); width: 30px; height: 30px; border-radius: 5px; display: grid; place-items: center; cursor: pointer; }
.sh-x:hover { color: var(--white); background: rgba(255,255,255,.08); }
.sh-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sh-body { padding: 16px; }
.sh-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 6px; border: 1px solid var(--line); background: #0a0a0a; object-fit: contain; }
.sh-img[hidden] { display: none; }
.sh-stage { position: relative; }
.sh-sound { appearance: none; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.sh-sound[hidden] { display: none; }
.sh-sound:hover { border-color: var(--hover-line); }
.sh-sound svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sh-sound .sh-waves, .sh-sound .sh-off { fill: none; }
.sh-sound .sh-waves { display: none; }
.sh-sound.on .sh-waves { display: inline; }
.sh-sound.on .sh-off { display: none; }
.sh-bg { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sh-bg-label { font-size: 13px; color: var(--muted); }
.sh-upload { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border: 1px dashed var(--line-2); border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.sh-upload:hover { color: var(--white); border-color: var(--hover-line); }
.sh-upload.on { border-style: solid; border-color: var(--green); background: rgba(74,222,128,.08); color: var(--white); }
.sh-upload svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sh-actions .btn { padding: 7px 14px; font-size: 13.5px; border-radius: 6px; }
.sh-actions .btn:disabled { opacity: .5; cursor: default; }
.sh-msg { min-height: 1.3em; margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- painel de destaque da página inicial (featured.js) ---------- */
.feed:has(.home-hero) { padding-top: 14px; } /* o painel sobe: pouco espaço entre o cabeçalho e ele */
.home-hero { --hero-max: 100%; /* largura do painel (100% = a mesma largura da lista de moedas; ex.: 920px para mais estreito) */ position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 22px; min-height: 172px; max-width: var(--hero-max); margin: 0 auto 14px; padding: 22px 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.hh-wave { position: absolute; right: 0; bottom: 0; width: min(900px, 78%); height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 46%); mask-image: linear-gradient(90deg, transparent 18%, #000 46%); }
.hh-track { stroke: rgba(255,255,255,.07); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; } /* brilho suave por baixo da linha */
.hh-line { stroke: rgba(255,255,255,.34); stroke-width: 3.5; stroke-dasharray: 14 11; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: hh-dash 1.1s linear infinite; }
@keyframes hh-dash { to { stroke-dashoffset: -25; } } /* 25 = 14 + 11 (um ciclo do tracejado): os tracinhos andam para a direita */
@media (prefers-reduced-motion: reduce) { .hh-line { animation: none; } .hh-runner { display: none; } }
.hh-dot { fill: #0d0d0d; stroke: #4ade80; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hh-copy { position: relative; z-index: 1; align-self: center; max-width: 480px; }
.hh-title { margin: 0; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.12; letter-spacing: -.015em; font-weight: 700; }
.hh-sub { margin: 10px 0 16px; max-width: 420px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.hh-cta { gap: 7px; padding: 7px 14px; border-radius: 6px; font-size: 13.5px; }
.hh-cta svg { width: 14px; height: 14px; }
.hh-card { position: relative; z-index: 1; }
.hh-card-in { display: grid; gap: 10px; padding: 13px 15px; color: var(--text); text-decoration: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; }
.hh-card-in { position: relative; }
.hh-card-in.is-live { transition: border-color .15s; }
.hh-card-in.is-live:hover { border-color: var(--hover-line); }
.hc-link { color: inherit; text-decoration: none; }
.hc-link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; } /* o nome vira um link que cobre o cartão inteiro; os botões ficam por cima */
.hc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-ca { position: relative; z-index: 2; appearance: none; display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 0; background: transparent; border: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; cursor: pointer; transition: color .15s; }
.hc-ca:hover { color: var(--white); }
.hc-ca-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 4px; border: 1px solid var(--line-2); transition: color .15s, background .15s, border-color .15s; }
.hc-ca:hover .hc-ca-icon { border-color: var(--hover-line); }
.hc-ca-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hc-ca.done { color: var(--white); }
.hc-ca.done .hc-ca-icon { color: #000; background: var(--white); border-color: var(--white); }
.hc-buy { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 13px; border-radius: 6px; background: #4ade80; color: #04210f; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: filter .15s; }
.hc-buy:hover { filter: brightness(1.1); }
.hc-buy svg { width: 12px; height: 12px; }
.hc-top { display: flex; align-items: center; gap: 10px; }
.hc-logo { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #080808; border: 1px solid var(--line-2); }
.hc-id { min-width: 0; flex: 1; }
.hc-name { display: flex; align-items: center; gap: 5px; font-size: 14px; letter-spacing: -.01em; }
.hc-verified { width: 14px; height: 14px; flex: none; }
.hc-sym { margin-top: 1px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.hc-arrow { width: 16px; height: 16px; color: var(--muted); flex: none; }
.hc-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 11.5px; color: var(--muted); }
.hc-pair b { color: var(--text); }
.hc-pair img { border-radius: 50%; }
.hc-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.hc-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.hc-stats { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hc-left { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hc-value { font-family: var(--num); font-size: 16px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--white); }
.hc-label { font-size: 11px; color: var(--muted); }
.hc-change { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.hc-change.up { color: #4ade80; }
.hc-change.down { color: #f87171; }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; align-items: start; padding: 28px 22px; gap: 24px; min-height: 0; }
  .hh-wave { width: 100%; opacity: .6; }
}

/* botão com o ícone do X no cabeçalho (o link da conta fica no href de #socialX nas três páginas) */
.social-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); transition: border-color .15s, background .15s; }
.social-btn:hover { border-color: var(--hover-line); background: rgba(255,255,255,.06); }
.social-btn svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 560px) { .social-btn { display: none; } } /* sem espaço no celular */

/* etiqueta HOT (aba Trending) */
.coin-card .hot-tag { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: #ff9a9a; background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.4); border-radius: 4px; padding: 0 6px; line-height: 16px; }

/* cabeçalho de largura total (igual ao da página da moeda): ocupa a janela inteira, não só a largura do conteúdo */
.topbar-wide { width: calc(100% - 32px); margin-inline: auto; }

/* histórico do criador (quantas moedas já criou e quantas migraram) abaixo do endereço do dev */
.dev-hist { display: flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 16px; font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dev-hist[hidden] { display: none; }
.dev-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dev-fol { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dev-fol svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dev-fol[data-tier="big"] { color: var(--text); font-weight: 700; }
.dev-fol[data-tier="huge"] { color: #fbbf24; font-weight: 700; }
.dev-bal { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dev-bal[hidden] { display: none; }
.dev-bal img { width: 12px; height: 12px; flex: none; }
.dev-bal-label { flex: none; margin-right: 2px; color: var(--muted); font-weight: 400; } /* "Dev balance": o nome fica sempre cinza, só o valor muda de cor */
.dev-bal[data-tier="big"] { color: var(--text); font-weight: 700; }
.dev-bal[data-tier="huge"] { color: #fbbf24; font-weight: 700; }
.coins.is-table .dev-bal { display: none; } /* na tabela a linha do dev não tem espaço para o saldo */
.dev-hist[data-tone="good"] { color: var(--green); }
.dev-hist[data-tone="bad"] { color: #f87171; }
.dev-hist:empty { visibility: hidden; }
.coins.is-table .dev-hist { grid-column: 7; grid-row: 2; align-self: start; margin: 0; min-width: 0; }
.coins.is-table .dev { grid-row: 1; align-self: end; }
.dev[data-named] { font-family: var(--sans); font-size: 12.5px; }
.dev-k { color: var(--muted); }
.dev-name { color: var(--text); font-weight: 600; }
.dev-av { width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; object-fit: cover; vertical-align: -3px; background: #1d1d1d; }
/* X do dev: etiqueta verde com o X azul (cores diferentes do X da moeda, nos botões de links abaixo) */
.dev-x { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 22px; height: 16px; border-radius: 4px; border: 1px solid rgba(74,222,128,.55); background: rgba(74,222,128,.12); color: #1d9bf0; transition: background .15s, border-color .15s; }
.dev-x:hover { background: rgba(74,222,128,.24); border-color: #4ade80; }
.dev-x svg { width: 10px; height: 10px; fill: currentColor; }

/* ---------- estados vazios: fantasminha acima do texto (gráfico sem negociações, tabelas, listas, perfil) ---------- */
:root { --ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72'%3E%3Cg fill='none' stroke='black' stroke-width='3.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M16 62V30C16 18.4 23.2 10 32 10C40.8 10 48 18.4 48 30V62H41V52H35V62H29V52H23V62Z'/%3E%3Cpath d='M16 33L6 27V43L16 47'/%3E%3Cpath d='M48 33L58 27V43L48 47'/%3E%3C/g%3E%3Ccircle cx='26' cy='31' r='2.6' fill='black'/%3E%3Ccircle cx='38' cy='31' r='2.6' fill='black'/%3E%3C/svg%3E"); }
.chart-empty::before, .tbl-empty::before, .trend-empty::before, .pf-empty::before, .empty::before {
  content: ""; display: block; width: 52px; height: 58px; margin: 0 auto 14px; background: #6b6b6b;
  -webkit-mask: var(--ghost) center / contain no-repeat; mask: var(--ghost) center / contain no-repeat;
}
.trend-empty, .tbl-empty { text-align: center; }
.trend-empty { list-style: none; padding: 36px 14px; }
.tbl-empty { padding: 40px 14px; }
.pf-empty, .empty { padding-top: 40px; padding-bottom: 40px; }
/* lista da home vazia: o ícone da plataforma, um título e uma frase (sem o fantasminha, sem a moldura) */
.empty-home { border: 0; padding: 56px 16px 48px; display: grid; justify-items: center; gap: 10px; }
.empty-home[hidden] { display: none; }
.empty-home::before { display: none; }
.empty-home .empty-mark { width: 84px; height: 84px; margin-bottom: 8px; opacity: .9; }
.empty-home b { color: var(--text); font-size: 15px; font-weight: 700; }
.empty-home p { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.empty-home p:empty { display: none; }

/* clipes prontos como fundo do banner (pasta clips) */
.sh-clips { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.sh-clips[hidden] { display: none; }
.sh-clips .sh-bg-label { padding-top: 14px; }
.sh-clip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-clip { appearance: none; padding: 0; width: 52px; aspect-ratio: 1; /* quadrado 1:1, ocupa pouco espaço */ overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: #000; cursor: pointer; transition: border-color .15s; }
.sh-clip:hover { border-color: var(--hover-line); }
.sh-clip.on { border-color: var(--green); }
.sh-clip video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.acct-avatar { overflow: hidden; }
.acct-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* link "Docs" do cabeçalho (depois da busca) */
.nav-link { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-link[aria-current="page"] { color: var(--white); }
@media (max-width: 560px) { .nav-link { display: none; } } /* sem espaço no celular */
.docs { padding: 80px 0; }
.docs .empty { border: 0; }
.nav-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* seta do painel de boas-vindas (recolher/abrir) */
.hh-toggle { appearance: none; position: absolute; top: 4px; right: 4px; z-index: 3; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s; } /* só a seta, sem fundo nem borda, colada no canto */
.hh-toggle:hover { color: var(--white); }
.hh-toggle:focus-visible { outline: none; color: var(--white); }
.hh-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.home-hero.is-collapsed { min-height: 0; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 0; padding: 10px 40px 10px 18px; cursor: pointer; }
.home-hero.is-collapsed .hh-wave, .home-hero.is-collapsed .hh-card, .home-hero.is-collapsed .hh-sub, .home-hero.is-collapsed .hh-cta { display: none; }
.home-hero.is-collapsed .hh-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.home-hero.is-collapsed .hh-toggle { top: 50%; transform: translateY(-50%); }
.home-hero.is-collapsed .hh-toggle svg { transform: rotate(180deg); }
@media (max-width: 900px) { .hh-title { padding-right: 34px; } }
