@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
: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: #2478e0; /* pontinhos de "ao vivo" / rede online e a idade recente dos tokens */
  --lazarus: 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(--sans); /* números grandes (market cap, preços, saldos): Inter, com algarismos tabulares nos pontos que alinham colunas */
  --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: #ed1c24; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(36, 120, 224,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(36, 120, 224,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: #2478e0; } 100% { color: inherit; } }
@keyframes mc-down { 0% { color: #ed1c24; } 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 */
/* box do dev: quadrado (sem cantos arredondados), com uma faixa de cor à esquerda que mostra de relance quem é o dev: verde (primeira moeda ou já migrou), vermelho (muitas moedas, nenhuma migrou), cinza (ainda carregando ou neutro) */
.dev-box { margin-top: 12px; padding: 8px 10px 9px; border: 1px solid #2a2a2a; border-left: 3px solid #3d3d3d; border-radius: 0; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); display: grid; gap: 4px; }
.dev-box:has(.dev-hist[data-tone="good"]) { border-left-color: var(--green); background: linear-gradient(90deg, rgba(36, 120, 224,.11), rgba(36, 120, 224,.02)); }
.dev-box:has(.dev-hist[data-tone="bad"]) { border-left-color: #ed1c24; background: linear-gradient(90deg, rgba(237, 28, 36,.12), rgba(237, 28, 36,.02)); }
/* conta com 10 mil seguidores ou mais: azul. Dev com 1.000 SOL ou mais na carteira: roxo (vale mais que o azul e que o verde/vermelho do histórico) */
.coin-card .dev-box[data-fame] { border-color: rgba(96,165,250,.35); border-left-color: #3b82f6; background: linear-gradient(90deg, rgba(59,130,246,.16), rgba(59,130,246,.03)); }
.coin-card .dev-box[data-whale] { border-color: rgba(192,132,252,.35); border-left-color: #a855f7; background: linear-gradient(90deg, rgba(168,85,247,.18), rgba(168,85,247,.03)); }
.dev-box[data-fame] .dev-fol { color: #60a5fa; font-weight: 700; }
.dev-bal[data-tier="whale"] { color: #c084fc; font-weight: 700; }
.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: 800; letter-spacing: .08em; color: #111; background: #f2f2f2; border: 1px solid #ed1c24; border-radius: 0; padding: 0 6px; line-height: 16px; } /* etiqueta DEV amarela com texto preto */
.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(--lazarus) center / contain no-repeat; mask: var(--lazarus) 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; }
/* grade: as redes sociais ficam no canto esquerdo da IMAGEM e a estrela no canto direito. Tabela e Split mantêm o lugar de sempre. */
.coins:not(.is-table):not(.is-split) .links { position: absolute; top: 13px; left: 10px; margin: 0; gap: 4px; z-index: 3; }
.coins:not(.is-table):not(.is-split) .star { left: auto; right: 10px; } /* a estrela vai para o canto direito da imagem */
.coins:not(.is-table):not(.is-split) .links a { width: 28px; height: 28px; background: rgba(0, 0, 0, .55); border-color: transparent; color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.coins:not(.is-table):not(.is-split) .links a:hover { background: var(--white); color: #000; }
.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: transparent; border: 0; border-radius: 50%; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); /* só a estrela, sem o círculo; a sombra mantém ela visível sobre fotos claras */
  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: transparent; transform: scale(1.12); }
.star.on { color: #f2f2f2; }
.star.on svg { fill: #f2f2f2; }
.tabs { display: flex; gap: 4px; margin: 0; flex-wrap: wrap; }
/* celular: as 4 abas numa linha só; Favorites fica só com a estrela */
@media (max-width: 720px) { .tabs { flex-wrap: nowrap; } .tabs .tab { padding-left: 10px; padding-right: 10px; white-space: nowrap; } #tabFavs .tab-text, #tabFavs .count { display: none; } }
.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; }
  #viewMode [data-mode="split"] { display: none; }
  .explore-right { flex-wrap: wrap; }
  #viewMode { height: auto; }
  .viewmenu[open] { height: min(88vh, 720px); }
  #viewMode button { font-size: 0; gap: 0; padding: 8px; }
  #viewMode button svg { display: block; width: 17px; height: 17px; }
  .topbar-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid2:has(#name) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .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: nowrap; }
.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: #ed1c24; }
/* 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 { padding: 0 10px; 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; }
/* os agrupamentos (seções, colunas, pares) só existem no desktop; no celular somem e os itens ficam em uma coluna só, como antes */
.vm-sec, .vm-cols, .vm-stack, .vm-pair, .vm-group { display: contents; }
.vm-card-title { display: none; }
@media (min-width: 860px) {
  .viewmenu { width: min(560px, calc(100vw - 64px)); max-height: min(92vh, 800px); border-radius: 14px; }
  .vm-head { padding: 16px 22px; }
  .vm-head h2 { font-size: 17px; }
  .vm-body { padding: 18px 22px 0; gap: 14px; }
  .vm-title, .vm-title:first-child { margin: 0; }
  .vm-sec { display: grid; align-content: start; gap: 14px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
  .vm-cols { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; } /* só a coluna "Coin" (os filtros de dev saíram) */
  .vm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .vm-group { display: grid; gap: 8px; }
  .vm-card-title { display: block; margin: 0; font-size: 14px; font-weight: 700; color: var(--white); }
  .vm-filters-title { margin: 6px 2px -4px; }
  .vm-field { padding: 0; gap: 6px; }
  .vm-note { margin: -6px 0 0; padding: 0; }
  .vm-sub { margin: 0; }
  /* "Display": título à esquerda e as duas opções ao lado, em uma faixa só */
  .vm-display { grid-template-columns: auto 1fr; align-items: center; gap: 14px 24px; padding: 12px 18px; }
  /* as opções viram botões de marcar: a borda acende em verde quando ligadas */
  .vm-stack { display: flex; flex-wrap: wrap; gap: 8px; }
  .vm-checks { padding: 0; gap: 8px; }
  .vm-stack label, .vm-checks label { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 13px; background: var(--field); transition: border-color .15s, background .15s; }
  .vm-stack label:hover, .vm-checks label:hover { background: rgba(255,255,255,.06); border-color: var(--hover-line); }
  .vm-stack label:has(input:checked), .vm-checks label:has(input:checked) { border-color: rgba(36, 120, 224,.55); background: rgba(36, 120, 224,.08); }
  .vm-foot { margin: 4px -22px 0; padding: 12px 22px 16px; }
  .vm-foot .btn { padding: 8px 14px; font-size: 13px; }
}
.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: #06223f;
  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); } }
/* Nos cartões da grade os botões ficam sobre a foto da moeda: a cor é meio transparente (sem desfoque), a foto aparece um pouco por baixo. */
.coins:not(.is-table) .qb { background: rgba(36, 120, 224,.62); }
.coins:not(.is-table) .qb:hover { background: rgba(36, 120, 224,.82); filter: none; }
.coins:not(.is-table) .qb[data-state] { background: rgba(255,255,255,.7); }
/* "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, #ed1c24); 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; }
.coins:not(.is-table) .qs { background: rgba(237, 28, 36,.62); }
.coins:not(.is-table) .qs:hover { background: rgba(237, 28, 36,.82); filter: none; }
.coins:not(.is-table) .qs[data-state] { background: rgba(255,255,255,.7); }.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(36, 120, 224,.13); stroke: none; }
.spark[data-dir="down"] .spark-line { stroke: var(--sell); }
.spark[data-dir="down"] .spark-area { fill: rgba(237, 28, 36,.12); }
/* o gráfico fica por cima da foto da moeda nos cartões da grade: linha e área meio transparentes, para a imagem continuar aparecendo por baixo */
.coins:not(.is-table) .spark-line { stroke-opacity: .55; }
.coins:not(.is-table) .spark-area { fill: rgba(36, 120, 224,.07); }
.coins:not(.is-table) .spark[data-dir="down"] .spark-area { fill: rgba(237, 28, 36,.07); }
body.no-spark .spark { display: none; }
body.no-desc .desc { display: none; }

/* ---------- visão em tabela (cada moeda é uma linha): # | Coin | Graph | MCAP | ATH | Age | Dev | Links | CA | Buy ---------- */
:root { --tbl-cols: 26px 26px 44px minmax(180px, 280px) 0px 100px 140px 58px 70px 170px 112px; --tbl-min: 1062px; } /* --tbl-min = soma das colunas + espaços (10 px) + margens + borda */
/* a tabela precisa de mais largura que os cartões */
main.feed:has(.coins.is-table) { width: min(1370px, 100% - 32px); }
.table-head { display: none; }
.table-head:not([hidden]) { display: grid; grid-template-columns: var(--tbl-cols); column-gap: 10px; 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; }
.table-head span:nth-child(2) { text-align: center; } /* # */
.table-head span:nth-child(6), .table-head span:nth-child(8) { text-align: right; } /* MCAP e Age alinhados à direita, como os valores */
.coins.is-table { display: block; counter-reset: row; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 8px 8px; overflow: hidden; }
.coins.is-table .coin-card { counter-increment: row; container-type: normal; display: grid; grid-template-columns: var(--tbl-cols); grid-template-rows: auto auto; align-items: center; column-gap: 10px; 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 .coin-card::before { content: counter(row); grid-column: 2; grid-row: 1 / span 2; text-align: center; color: var(--faint); font-family: var(--mono); font-size: 13px; } /* posição na lista */
.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: 3; 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: 4; grid-row: 1; align-self: end; min-width: 0; }
.coins.is-table .card-sym { grid-column: 4; grid-row: 2; align-self: start; min-width: 0; }
.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 { display: none; } /* tabela sem a coluna do gráfico */
.coins.is-table .spark-line { stroke-width: 1.6; filter: none; }
.coins.is-table .mc { grid-column: 6; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; }
.coins.is-table .mc span:not(.pair), .coins.is-table .mc .pair span { display: none; }
.coins.is-table .mc .pair { display: none; } /* tabela: sem o ícone do par ao lado do MCAP */
.coins.is-table .mc-val { font-size: 16px; }
/* o market cap leva a cor da tendência do gráfico ao lado: verde subindo, vermelho caindo */
.coins.is-table .spark.on[data-dir="up"] ~ .card-body .mc-val { color: var(--green); }
.coins.is-table .spark.on[data-dir="down"] ~ .card-body .mc-val { color: var(--sell); }
/* ATH: barra (quanto o market cap de agora é do topo) + valor do topo; no topo a barra fica dourada e brilha */
.ath { display: none; }
.ath-label { display: none; }
/* cartões da grade: duas colunas lado a lado, cada uma com o NOME em cima e o VALOR embaixo (como no exemplo da tabela):
       MCAP              ATH
       $71.63K     ▬▬▬ $107K
   O corpo do cartão vira uma linha que quebra: cada bloco ocupa a largura toda, menos o market cap e o ATH, que ficam lado a lado. */
.coins:not(.is-table) .card-body { display: flex; flex-wrap: wrap; align-items: stretch; column-gap: 14px; align-content: flex-start; }
.coins:not(.is-table) .card-body > * { flex: 0 0 100%; min-width: 0; }
.coins:not(.is-table) .card-body > .mc { flex: 0 0 auto; }
.coins:not(.is-table) .card-body > .ath { flex: 1 1 0; min-width: 0; } /* base 0: nunca desce de linha; ocupa o que sobra, alinhado à direita */
.coins:not(.is-table) .mc { display: grid; grid-template-columns: auto auto; grid-template-areas: "lab lab" "val pair"; justify-content: start; align-items: center; column-gap: 6px; row-gap: 3px; }
.coins:not(.is-table) .mc > span:not(.pair) { grid-area: lab; color: var(--muted); font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.coins:not(.is-table) .mc-val { grid-area: val; }
.coins:not(.is-table) .mc .pair { display: none; } /* o selo do par (SOL, ou o ícone da pump.fun nas moedas pareadas com outro ativo) não aparece nos cartões da grade */
.coins:not(.is-table) .ath { display: grid; grid-template-columns: minmax(40px, 72px) max-content; grid-template-areas: "lab lab" "bar val"; justify-content: end; align-items: center; column-gap: 7px; row-gap: 3px; margin-top: 10px; font-family: var(--num); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.coins:not(.is-table) .ath-label { display: block; grid-area: lab; justify-self: end; color: var(--muted); font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.coins:not(.is-table) .ath .ath-bar { grid-area: bar; width: auto; height: 8px; border-radius: 4px; }
.coins:not(.is-table) .ath .ath-bar i { border-radius: 4px; }
.coins:not(.is-table) .ath .ath-val { grid-area: val; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* cartão estreito: barra menor e, para o par SOL (o normal), nenhum selo; só aparece o ícone quando o par é OUTRO ativo */
@container (max-width: 259px) {
  .coins:not(.is-table) .ath { grid-template-columns: minmax(24px, 56px) max-content; font-size: 12px; column-gap: 6px; }
  .coins:not(.is-table) .mc-val { font-size: 16px; }
  .coins:not(.is-table) .card-body { column-gap: 6px; }
}
.coins:not(.is-table) .ath:not(:has(.ath-val:not(:empty))) { visibility: hidden; } /* sem o valor ainda: guarda o espaço, não mostra uma barra vazia */
.coins.is-table .ath { display: flex; align-items: center; gap: 10px; grid-column: 7; grid-row: 1 / span 2; min-width: 0; font-family: var(--num); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ath-bar { flex: none; width: 54px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.ath-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: #2478e0; transition: width .4s, background .3s; }
.ath-val { color: var(--text); white-space: nowrap; }
.ath-bar { position: relative; }
.ath-bar i { position: relative; overflow: hidden; }
.ath.at-top .ath-bar { overflow: visible; animation: ath-glow 1.8s ease-in-out infinite; }
.ath.at-top .ath-bar i { background: linear-gradient(90deg, #ed1c24, #ffffff); }
/* no topo: brilho que pulsa, um reflexo que corre pela barra e faíscas que piscam na ponta (como na referência) */
.ath.at-top .ath-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.9) 50%, transparent 85%); transform: translateX(-100%); animation: ath-shine 1.7s ease-in-out infinite; }
.ath.at-top .ath-bar::after { content: ""; position: absolute; right: -16px; top: 50%; width: 30px; height: 30px; pointer-events: none;
  background: radial-gradient(circle at 18% 28%, #ffffff 0 1.3px, transparent 1.9px), radial-gradient(circle at 68% 16%, #fff 0 1.1px, transparent 1.7px), radial-gradient(circle at 88% 62%, #f2f2f2 0 1.4px, transparent 2px),
    radial-gradient(circle at 38% 82%, #fff 0 1.1px, transparent 1.7px), radial-gradient(circle at 56% 48%, #ffffff 0 1.1px, transparent 1.6px), radial-gradient(circle at 8% 70%, #fff 0 .9px, transparent 1.5px);
  animation: ath-sparkle 1.3s ease-in-out infinite; }
@keyframes ath-glow { 0%, 100% { box-shadow: 0 0 8px 0 rgba(237, 28, 36,.45); } 50% { box-shadow: 0 0 18px 3px rgba(237, 28, 36,.9); } }
@keyframes ath-shine { 0% { transform: translateX(-100%); } 65%, 100% { transform: translateX(100%); } }
@keyframes ath-sparkle { 0%, 100% { opacity: 1; transform: translateY(-50%) rotate(0deg) scale(1); } 35% { opacity: .3; transform: translateY(-50%) rotate(20deg) scale(.9); } 70% { opacity: .9; transform: translateY(-50%) rotate(-15deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ath.at-top .ath-bar, .ath.at-top .ath-bar i::after, .ath.at-top .ath-bar::after { animation: none; } }
/* Os invólucros .card-sub (símbolo + idade) e .dev-box (box do dev) entram na grade como itens: cada um tem o seu lugar fixo, senão a linha se
   arruma sozinha e fica diferente de moeda para moeda (principalmente enquanto os dados ainda chegam). */
.coins.is-table .card-sub { display: contents; }
.coins.is-table .age { grid-column: 8; grid-row: 1 / span 2; justify-self: end; font-size: 14px; }
.coins.is-table .age::before { display: none; } /* só o tempo, sem o ícone */
.coins.is-table .dev-box { display: none; } /* tabela sem a coluna do dev */
.coins.is-table .desc-wrap { display: none; }
.coins.is-table .links { grid-column: 9; 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: 10; 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 .ca-actions { gap: 4px; } /* três ícones (copiar, compartilhar, clonar) na coluna estreita */
.coins.is-table .qb { position: static; grid-column: 11; 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: 11; 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: 26px 26px 44px minmax(180px, 280px) 0px 100px 140px 58px 70px 170px 212px; --tbl-min: 1162px; width: min(1450px, 100% - 32px); }
/* celular: a tabela vira uma lista compacta (estrela, imagem, nome, market cap e botão de compra), sem rolar para o lado */
@media (max-width: 720px) {
  :root, main.feed:has(.coins.is-table .qs:not([hidden])) { --tbl-cols: 26px 44px minmax(0, 1fr) auto auto !important; }
  main.feed:has(.coins.is-table) { width: calc(100% - 24px); overflow-x: visible; }
  .table-head, .table-head:not([hidden]) { display: none; }
  .coins.is-table, main.feed:has(.coins.is-table .qs:not([hidden])) .coins.is-table { min-width: 0 !important; }
  .coins.is-table .coin-card { column-gap: 10px; padding: 10px 10px; }
  .coins.is-table .coin-card::before, .coins.is-table .spark, .coins.is-table .ath, .coins.is-table .age, .coins.is-table .dev-box, .coins.is-table .links, .coins.is-table .ca, .coins.is-table .qs, .coins.is-table .desc { display: none; }
  .coins.is-table .thumb img { grid-column: 2; }
  .coins.is-table .card-name, .coins.is-table .card-sym { grid-column: 3; }
  .coins.is-table .mc { grid-column: 4; }
  .coins.is-table .mc .pair { display: none; } /* o selo do par não cabe: o nome da moeda precisa do espaço */
  .coins.is-table .mc-val { font-size: 14px; }
  .coins.is-table .qb { grid-column: 5; padding: 6px 9px; font-size: 11.5px; }
  .coins.is-table .qb img { display: none; }
}
@media (max-width: 1360px) {
  main.feed:has(.coins.is-table) { overflow-x: auto; }
  .coins.is-table, .table-head { min-width: var(--tbl-min); } /* soma das colunas (com os mínimos), espaços e margens */
}
@media (max-width: 1100px) { main.feed { overflow-x: auto; } }
@media (min-width: 1361px) and (max-width: 1472px) { /* modo Instant: a tabela com o "Sell 100%" é mais larga (1420 px) */
  main.feed:has(.coins.is-table .qs:not([hidden])) { overflow-x: auto; }
  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: var(--tbl-min); }
}

/* ---------- conta conectada: saldo + avatar abrem o menu (endereço, Configurações, Desconectar) ---------- */
.account { position: relative; flex: none; } /* o saldo nunca é espremido pelos outros itens do cabeçalho */
.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; white-space: nowrap; }
.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, #ed1c24); }
.acct-item.danger:hover { background: rgba(237, 28, 36,.12); }
@media (max-width: 720px) { .acct-chev { display: none; } .acct-btn { padding-left: 6px; } .acct-bal { white-space: nowrap; } .account.is-instant .acct-bal::before { margin-right: 3px; } } /* o saldo continua aparecendo no celular (inclusive 0) */
/* telas médias: o cabeçalho (com o seletor Manual | Instant) passava da largura; some o atalho "Ctrl K" da busca para caber */
@media (max-width: 1100px) { .search-trigger .st-kbd { display: none; } .topbar #socialX, .topbar #socialTg { display: none; } }
/* cabeçalho cheio (com a carteira Instant e o saldo): aperta os espaços e, em telas mais estreitas, tira os botões de X e Telegram, para o saldo e a carteira nunca ficarem espremidos */
@media (max-width: 1500px) { .topbar-inner { gap: 12px; } .topbar .nav-link { padding-left: 9px; padding-right: 9px; } }
@media (max-width: 1300px) { .topbar #socialX, .topbar #socialTg { display: none; } }
@media (max-width: 1360px) { .topbar .nav-link[href="/live"]:not([aria-current]) { display: none; } } /* a página /live é a menos usada: sai do menu antes das outras quando falta espaço */
/* cabeçalho: todos os itens (busca, Docs, X, Launch coin, Manual | Instant, conectar/conta) com a mesma altura de 36 px, no desktop e no celular */
.topbar .nav-link, .topbar-right .btn, .topbar #connect { box-sizing: border-box; height: 36px; padding-top: 0; padding-bottom: 0; }
.topbar .mark { width: 36px; height: 36px; flex: none; } /* o ícone da marca também tem 36 px, igual à lupa ao lado */
.topbar .mark svg { width: 25px; height: 25px; }
/* celular: o botão "Launch coin" do cabeçalho some (sobra espaço para Manual/Instant e a conta) */
@media (max-width: 720px) { .topbar a.btn[href="/create"] { display: none; } }

/* ---------- 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 { -webkit-appearance: none; appearance: none; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0; border: 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: 0 1 auto; min-width: 150px; 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; min-width: 0; 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-sort { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.sd-sort[hidden] { display: none; }
.sd-sort button { appearance: none; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.sd-sort button:hover { color: var(--white); border-color: var(--hover-line); }
.sd-sort button[aria-pressed="true"] { color: var(--white); background: #1a1a1a; border-color: var(--hover-line); }
.sd-list { max-height: min(420px, 60vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; padding: 6px; } /* barra fina visível: a lista pode ter dezenas de moedas */
.sd-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; border-radius: 6px; }
.sd-item.nostar { grid-template-columns: minmax(0, 1fr); }
.sd-main { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 8px 2px; color: inherit; text-decoration: none; min-width: 0; }
.sd-item.nostar .sd-main { padding-left: 10px; }
.sd-star { appearance: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; padding: 0; background: transparent; border: 0; border-radius: 6px; color: var(--faint); cursor: pointer; transition: color .15s, background .15s; }
.sd-star svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sd-star:hover { color: var(--white); background: rgba(255,255,255,.08); }
.sd-star.on { color: #f2f2f2; }
.sd-star.on svg { fill: #f2f2f2; }
.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-addr { margin-left: 8px; color: var(--faint); }
.sd-sym:empty, .sd-sym.no-text { /* sem ticker/@: o endereço começa na margem */ }
.sd-sym.no-text .sd-addr { margin-left: 0; }
.sd-ageic { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sd-right { display: grid; justify-items: end; gap: 1px; }
.sd-mc { font-weight: 700; font-variant-numeric: tabular-nums; }
.sd-tag { font-size: 12px; color: var(--text-2,var(--muted)); }
.sd-migrated { color: var(--green); font-weight: 600; }
.sd-msg { margin: 0; padding: 24px 14px; text-align: center; color: var(--muted); font-size: 13.5px; }
.sd-tabs { display: flex; gap: 22px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.sd-tabs[hidden] { display: none; }
.sd-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 11px 0 9px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: color .15s; }
.sd-tab:hover { color: var(--text); }
.sd-tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--green); }
.sd-count { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); background: #1a1a1a; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 6px; line-height: 17px; }
.sd-foot { display: flex; align-items: center; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sd-foot kbd { display: inline-block; min-width: 18px; margin-right: 6px; padding: 1px 5px; font-family: var(--mono); font-size: 11px; text-align: center; color: var(--text); background: #141414; border: 1px solid var(--line-2); border-radius: 4px; }
.sd-foot kbd + kbd { margin-left: -2px; }
@media (max-width: 560px), (hover: none) { .sd-foot { display: none; } } /* no celular não há teclado: sem as dicas de atalho */
.sd-avatar { position: relative; display: grid; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff; }
.sd-avatar img { position: absolute; inset: 0; }

/* ---------- 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); }
.launch-dlg { width: min(440px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--text); }
.launch-dlg:focus, .launch-dlg:focus-visible { outline: none; }
.launch-dlg::backdrop { background: rgba(0,0,0,.78); }
.launch-dlg-inner { padding: 26px 24px 22px; }
.launch-dlg-title { margin: 0 0 20px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.launch-dlg-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.launch-dlg-btns .btn { min-width: 90px; }
.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(36, 120, 224,.12); border: 1px solid rgba(36, 120, 224,.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(36, 120, 224,.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: #2478e0; 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: #2478e0; color: #06223f; 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: #2478e0; }
.hc-change.down { color: #ed1c24; }
@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: #ff7a7e; background: rgba(237, 28, 36,.14); border: 1px solid rgba(237, 28, 36,.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: #f2f2f2; 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: #f2f2f2; 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: #ed1c24; }
.dev-hist:empty { visibility: hidden; }
.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(36, 120, 224,.55); background: rgba(36, 120, 224,.12); color: #4c93ee; transition: background .15s, border-color .15s; }
.dev-x:hover { background: rgba(36, 120, 224,.24); border-color: #2478e0; }
.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; } }

/* Aviso de "Clone" na página /create (formulário preenchido a partir de outra moeda) */
.clone-note { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid rgba(36, 120, 224,.4); border-radius: var(--radius); }
.clone-note[hidden] { display: none; }
.clone-note[data-state="err"] { border-color: rgba(237, 28, 36,.5); }
.clone-note[data-state="busy"] { border-color: var(--line-2); }
.clone-note img { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: #111; }
.clone-note[data-state="err"] img, .clone-note[data-state="busy"] img:not([src]) { display: none; }
.cn-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.cn-text strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-text span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.clone-note .btn { flex: none; padding: 6px 12px; }

/* ícone da Solana DENTRO do campo (Dev buy, Priority fee), à direita, no lugar do texto "SOL" */
.input-ico { position: relative; }
.input-ico input { padding-right: 48px; -moz-appearance: textfield; appearance: textfield; }
.input-ico input::-webkit-outer-spin-button, .input-ico input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-ico img { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); pointer-events: none; }

/* "?" ao lado dos rótulos Dev buy / Slippage / Priority fee (balão: .mode-pop em instant.css) */
label.lbl .field-help, .choice-body .field-help { appearance: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; padding: 0; vertical-align: -3px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 700 10.5px/1 var(--sans, inherit); letter-spacing: 0; text-transform: none; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
label.lbl .field-help:hover, label.lbl .field-help[aria-expanded="true"], .choice-body .field-help:hover, .choice-body .field-help[aria-expanded="true"] { color: var(--white); border-color: #555; background: #1a1a1a; }

/* prévia de /create: etiquetas "Launch Lazarus" (esta ferramenta) e "pump.fun" (onde a moeda nasce) */
.pv-chips { display: inline-flex; align-items: center; gap: 8px; }
.pv-chips .pv-brand { display: inline-flex; align-items: center; gap: 6px; }
.pv-chips .pv-brand svg { width: 13px; height: 13px; flex: none; }

/* selo de verificado da carteira oficial da Launch Lazarus (ao lado do nome/endereço dela) */
.official-badge { width: 15px; height: 15px; flex: none; margin-left: 5px; vertical-align: -2px; display: inline-block; }
.pf-name .official-badge { width: 22px; height: 22px; margin-left: 2px; align-self: center; }
.dev-box .official-badge, .holder .official-badge, .sd-name .official-badge { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; }
.acct-addr .official-badge { width: 14px; height: 14px; }

/* link "Affiliates" do cabeçalho: some em telas estreitas (continua no menu da conta e nos docs) */
@media (max-width: 1180px) { .nav-link.nav-aff { display: none; } }

/* ---------- visão Split: cada moeda é um cartão largo; token à esquerda, dados do dev à direita ---------- */
/* Só muda o layout: o conteúdo dos cartões é o mesmo da grade (feed.js). O corpo do cartão some (display: contents) para cada pedaço
   poder ser posto na sua linha/coluna, como na tabela. Esquerda (colunas 1-3): imagem, nome, market cap, ATH, gráfico, descrição, links.
   Direita (colunas 4-5): caixa do dev; no rodapé, Sell 100% (coluna 4) e Buy (coluna 5) lado a lado. */
.coins.is-split { grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 12px; } /* 540 px: com o painel lateral aberto ainda cabem 2 por linha */
.coins.is-split .coin-card { container-type: normal; display: grid; grid-template-columns: 96px auto minmax(0, 1fr) minmax(92px, .4fr) minmax(112px, .5fr); /* coluna 2 (MCAP) só do tamanho do valor; a 3 (barra do ATH) pega o resto; mais compacto para caber 2 cartões por linha */
  grid-template-rows: repeat(7, auto); column-gap: 12px; align-items: start; padding: 12px; }
.coins.is-split .card-body { display: contents; }
.coins.is-split .thumb { grid-column: 1; grid-row: 1 / span 3; width: 96px; }
.coins.is-split .star { top: 4px; left: 4px; width: 28px; height: 28px; }
.coins.is-split .card-name { grid-column: 2 / 4; grid-row: 1; align-self: end; min-width: 0; font-size: 16px; }
.coins.is-split .card-sub { grid-column: 2 / 4; grid-row: 2; margin-top: 2px; }
.coins.is-split .mc { grid-column: 2; grid-row: 3; margin-top: 8px; }
.coins.is-split .ath { grid-column: 3; grid-row: 3; margin-top: 8px; justify-self: stretch; justify-content: stretch; grid-template-columns: minmax(40px, 1fr) max-content; } /* a barra estica até o MCAP */
.coins.is-split .spark { display: none; } /* o Split não mostra o gráfico */
.coins.is-split .desc-wrap { grid-column: 1 / 4; grid-row: 5; margin-top: 10px; }
.coins.is-split .desc { margin-top: 0; }
/* redes sociais: dentro da barra do CA, no vão entre o endereço e os ícones de copiar/compartilhar/clonar (104px = largura desses 3 ícones + respiro) */
.coins.is-split .links { grid-column: 1 / 4; grid-row: 7; justify-self: end; align-self: end; margin: 0 104px 6px 0; position: relative; z-index: 3; }
.coins.is-split .links a { background: var(--s3, #1e1e1e); }
.coins.is-split .links a:hover { background: var(--s4, #292929); color: #fff; }
.coins.is-split .dev-box { grid-column: 4 / 6; grid-row: 1 / span 6; margin: 0; align-self: stretch; align-content: start; gap: 8px; padding: 12px 14px; }
.coins.is-split .dev-box .dev-row { font-size: 13px; }
.coins.is-split .dev-hist, .coins.is-split .dev-bal { font-size: 12.5px; }
/* rodapé: CA à esquerda; Sell 100% e Buy à direita, lado a lado e sempre visíveis (o Sell é do modo Manual e do Instant; ver quickbuy.js) */
.coins.is-split .ca { grid-column: 1 / 4; grid-row: 7; width: auto; margin-top: 14px; padding: 8px 8px 8px 12px; background: var(--field); }
.coins.is-split .qb, .coins.is-split .qs { position: static; grid-row: 7; margin-top: 14px; align-self: stretch; justify-self: stretch; opacity: 1; pointer-events: auto; transform: none; white-space: nowrap; }
.coins.is-split .qb { grid-column: 5; background: var(--buy, #2478e0); }
.coins.is-split .qb:hover { background: var(--buy, #2478e0); filter: brightness(1.08); }
.coins.is-split .qb[data-state] { background: var(--white); }
.coins.is-split .qs { grid-column: 4; margin-right: -8px; padding: 0 10px; background: var(--sell, #ed1c24); } /* -8px: o vão entre Sell e Buy fica em 8px */
.coins.is-split .qs:hover { background: var(--sell, #ed1c24); filter: brightness(1.08); }
.coins.is-split .qs[data-state] { background: var(--white); }
.coins.is-split .qs[data-empty="1"] { opacity: .4; } /* Instant: a carteira não tem esta moeda (o clique avisa) */
.coins.is-split .qs[data-instant="0"] .qb-label::before { display: none; } /* o raio é só do Instant */
/* celular: uma coluna; a caixa do dev desce para baixo do token; CA em uma linha e, embaixo, Sell 100% e Buy */
@media (max-width: 640px) {
  .coins.is-split { grid-template-columns: minmax(0, 1fr); }
  .coins.is-split .coin-card { grid-template-columns: 88px auto minmax(0, 1fr); }
  .coins.is-split .thumb { width: 88px; }
  .coins.is-split .dev-box { grid-column: 1 / 4; grid-row: 7; margin-top: 14px; }
  .coins.is-split .ca { grid-column: 1 / 4; grid-row: 8; }
  .coins.is-split .links { grid-row: 8; }
  .coins.is-split .qs { grid-column: 1; grid-row: 9; margin-right: 0; padding: 0 6px; min-height: 38px; }
  .coins.is-split .qb { grid-column: 2 / 4; grid-row: 9; min-height: 38px; }
}

/* menu da carteira: @nome em cima e o endereço embaixo, como na barra lateral */
.acct-who { display: grid; gap: 2px; min-width: 0; }
.acct-who #accountName { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who #accountAddr { font-size: 12.5px; color: var(--muted); }

/* Tabela na aba Trending: colunas Trades / 24H Vol / Holders depois da idade (dados da lista de trending da pump.fun). Só em telas largas: no celular a tabela é uma lista compacta. */
.ts, .th-ts { display: none; }
@media (min-width: 721px) {
  .table-head.has-tstats .th-ts { display: block; text-align: right; }
  .coins.is-table.has-tstats .ts { display: block; grid-row: 1 / span 2; justify-self: end; font-family: var(--num); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .coins.is-table.has-tstats .ts-trades { grid-column: 9; }
  .coins.is-table.has-tstats .ts-vol { grid-column: 10; }
  .coins.is-table.has-tstats .ts-holders { grid-column: 11; }
  .coins.is-table.has-tstats .links { display: none; } /* sem a coluna de links nesta visão: a tabela cabe na tela */
  .table-head.has-tstats span:nth-child(12) { display: none; }
  .coins.is-table.has-tstats .ca { grid-column: 12; }
  .coins.is-table.has-tstats .qb, .coins.is-table.has-tstats .qs { grid-column: 13; }
  .coins.is-table.has-tstats .coin-card, .table-head.has-tstats { column-gap: 8px; }
  main.feed:has(.coins.is-table.has-tstats) { --tbl-cols: 26px 26px 44px minmax(180px, 260px) 0px 90px 120px 58px 70px 90px 70px 130px 112px; --tbl-min: 1180px; }
  main.feed:has(.coins.is-table.has-tstats .qs:not([hidden])) { --tbl-cols: 26px 26px 44px minmax(180px, 260px) 0px 90px 120px 58px 70px 90px 70px 130px 212px; --tbl-min: 1280px; }
}

/* tabela: a sobra de largura é repartida entre as colunas (o nome não estica sozinho e deixa um vão enorme) */
@media (min-width: 721px) { .coins.is-table .coin-card, .table-head:not([hidden]) { justify-content: space-between; } }

/* visão Advanced: o cartão do X (Twitter) já aberto dentro do cartão da moeda */
.xpv { display: none; }
.coins.is-split .xpv { display: block; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--field); color: inherit; text-decoration: none; min-width: 0; transition: border-color .15s, background .15s; }
.coins.is-split .xpv:hover { border-color: #5a5a5a; background: var(--s3, #1e1e1e); }
.xpv-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xpv .hc-who { flex: 1; min-width: 0; }
.xpv .hc-name { font-size: 14px; }
.xpv .hc-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpv .hc-handle { font-size: 12.5px; }
.xpv-x { width: 16px; height: 16px; color: var(--muted); flex: none; }
.xpv-x-solo { color: var(--text); }
.xpv-text { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #d6d6d6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xpv .hc-stats { margin-top: 8px; font-size: 12.5px; gap: 2px 14px; }

/* idade na lista da busca: o mesmo broto e as mesmas cores do feed */
.sd-tag .age { display: inline-flex; align-items: center; gap: 4px; }
.sd-age::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--lazarus) center / contain no-repeat; mask: var(--lazarus) center / contain no-repeat; }

.xpv-title { margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xpv-site .hc-host { font-size: 12px; }
/* Advanced: o cartão só aparece quando o token tem X/Twitter */
.coins.is-split .coin-card[data-x="0"] { display: none; }

/* imagem da página do site dentro do cartão do site */
.xpv-shot { width: 100%; aspect-ratio: 700 / 440; margin-bottom: 8px; border-radius: 6px; background: #0e0e0e; overflow: hidden; border: 1px solid var(--line); }
.xpv-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }


/* ===== Advanced: metade esquerda com o visual do cartão da Grid; metade direita com o cartão do X e o do site ===== */
.coins.is-split .coin-card { container-type: normal; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 0; align-items: start; padding: 0; }
.coins.is-split .thumb { grid-column: 1; grid-row: 1; width: 100%; }
.coins.is-split .star { top: 10px; left: 10px; width: 34px; height: 34px; }
.coins.is-split .spark { display: block; position: static; grid-column: 1; grid-row: 1; align-self: end; width: 100%; height: 64px; top: auto; z-index: 1; }
.coins.is-split .card-body { display: flex; grid-column: 1; grid-row: 2; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.coins.is-split .card-name { grid-column: auto; grid-row: auto; font-size: inherit; align-self: auto; }
.coins.is-split .card-sub { grid-column: auto; grid-row: auto; margin-top: 1px; }
.coins.is-split .mc { grid-column: auto; grid-row: auto; margin-top: 0; }
.coins.is-split .ath { grid-column: auto; grid-row: auto; margin-top: 0; justify-self: auto; justify-content: end; grid-template-columns: minmax(40px, 72px) max-content; }
.coins.is-split .desc-wrap { grid-column: auto; grid-row: auto; margin-top: 0; }
.coins.is-split .links { display: none; } /* X e site viram cartões do outro lado */
.coins.is-split .dev-box { display: none; }
.coins.is-split .ca { grid-column: 1; grid-row: 3; width: auto; margin: 0; padding: 8px 12px; background: transparent; border-top: 1px solid var(--line); }
.coins.is-split .qs, .coins.is-split .qb { grid-row: 4; margin: 10px 12px 12px; min-height: 40px; align-self: stretch; width: calc(50% - 18px); }
.coins.is-split .qs { grid-column: 1; justify-self: start; padding: 0 8px; }
.coins.is-split .qb { grid-column: 1; justify-self: end; }
.coins.is-split .xpv-wrap { grid-column: 2; grid-row: 1 / span 5; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 12px; border-left: 1px solid var(--line); min-width: 0; align-self: stretch; }
.coins.is-split .xpv:not(.xpv-site), .coins.is-split .xpv-site { grid-column: auto; grid-row: auto; margin: 0; display: block; }
.coins.is-split .xpv-site .xpv-shot { width: 100%; margin: 0 0 8px; }
.coins.is-split .xpv-site .xpv-text { display: -webkit-box; -webkit-line-clamp: 2; margin-top: 4px; }
.coins.is-split .xpv-site .xpv-title { -webkit-line-clamp: 2; }
@media (max-width: 640px) {
  .coins.is-split .xpv-wrap { grid-column: 1; grid-row: 5; border-left: 0; border-top: 1px solid var(--line); }
}

/* Advanced mais baixo: imagem em formato largo, espaços menores e captura do site mais curta */
.coins.is-split .thumb { aspect-ratio: 16 / 9; }
.coins.is-split .spark { height: 48px; }
.coins.is-split .card-body { padding: 10px 12px 10px; }
.coins.is-split .ca { padding: 6px 12px; }
.coins.is-split .qs, .coins.is-split .qb { margin: 8px 12px 10px; min-height: 36px; }
.coins.is-split .xpv-wrap { padding: 10px; gap: 8px; }
.coins.is-split .xpv { padding: 8px 10px; }
.coins.is-split .xpv-site .xpv-shot { aspect-ratio: 16 / 8; margin-bottom: 6px; }
.coins.is-split .xpv-site .xpv-text { display: none; }
.coins.is-split .xpv-text { -webkit-line-clamp: 2; }

/* quadros de espera enquanto os cartões do X e do site carregam */
.xpv-skel { min-height: 88px; border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(90deg, #0c0c0c 25%, #151515 50%, #0c0c0c 75%); background-size: 200% 100%; animation: xpv-shimmer 1.3s linear infinite; }
.xpv-skel-site { min-height: 150px; }
@keyframes xpv-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .xpv-skel { animation: none; } }

/* Advanced: sem o mini-gráfico em cima da imagem; no lugar dele, as informações do dev dentro da imagem (faixa translúcida embaixo) */
.coins.is-split .spark { display: none; }
.coins.is-split .dev-box { display: grid; grid-column: 1; grid-row: 1; align-self: end; justify-self: stretch; margin: 8px; z-index: 2; gap: 2px; padding: 6px 10px; min-width: 0; font-size: 12px; background: rgba(0, 0, 0, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); border-left-width: 3px; border-radius: 6px; }
.coins.is-split .dev-box:has(.dev-hist[data-tone="good"]) { background: rgba(0, 40, 20, .7); }
.coins.is-split .dev-box:has(.dev-hist[data-tone="bad"]) { background: rgba(50, 8, 12, .72); }
.coins.is-split .dev-box[hidden] { display: none; }
.coins.is-split .dev-box .dev-row, .coins.is-split .dev-box .dev-hist, .coins.is-split .dev-box .dev-bal { font-size: 12px; }

/* o dev fica por cima da base da imagem: ancorado no topo do corpo do cartão (que começa logo abaixo da imagem) */
.coins.is-split .card-body { position: relative; }
.coins.is-split .dev-box { position: absolute; left: 8px; right: 8px; bottom: 100%; top: auto; margin: 0 0 8px; grid-column: auto; grid-row: auto; width: auto; }

/* dev sobre a imagem: fundo bem transparente (dá para ver a foto), texto com sombra para continuar legível */
.coins.is-split .dev-box { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); border-color: rgba(255, 255, 255, .18); text-shadow: 0 1px 3px rgba(0, 0, 0, .9); padding: 5px 9px; }
.coins.is-split .dev-box:has(.dev-hist[data-tone="good"]) { background: rgba(0, 60, 30, .34); }
.coins.is-split .dev-box:has(.dev-hist[data-tone="bad"]) { background: rgba(90, 10, 16, .36); }

/* lupa de pesquisa com o campo vazio: "Recently viewed" + Clear */
.sd-recent-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; }
.sd-recent-title { font-size: 14px; font-weight: 700; color: var(--white); }
.sd-recent-clear { appearance: none; background: transparent; border: 0; padding: 2px 4px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 4px; }
.sd-recent-clear:hover { color: var(--white); background: rgba(255, 255, 255, .08); }

/* balão de ajuda ("?") dos campos da página de criar */
.mode-pop { position: fixed; z-index: 90; width: min(320px, calc(100vw - 24px)); padding: 14px 16px 12px; background: var(--card, #0d0d0d); border: 1px solid var(--line-2, #2a2a2a); border-radius: 10px; box-shadow: 0 12px 34px rgba(0, 0, 0, .6); color: var(--text, #ededed); font-size: 13px; line-height: 1.55; }
.mode-pop p { margin: 3px 0 0; color: var(--muted, #a3a3a3); }
.mode-pop em { color: var(--text, #ededed); font-style: normal; font-weight: 600; }
.mp-item + .mp-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, #1c1c1c); }
.mp-name { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--white, #fff); }
.mp-name svg { width: 12px; height: 12px; fill: currentColor; }
.mp-more { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--white, #fff); text-decoration: underline; text-decoration-color: var(--line-2, #2a2a2a); text-underline-offset: 3px; }
.mp-more:hover { text-decoration-color: var(--green, #2478e0); }
