/* Coins section: passing list + funnel, live launch feed, coin page. Builds on style.css tokens. */

.c-page { padding-top: 24px; padding-bottom: 40px; }
.c-page .violet { color: var(--violet); }
.c-page .wrap-text { white-space: normal; overflow: visible; text-overflow: clip; }
.c-page .meta.wrap2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Header */
.c-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.c-head h1 { font-size: clamp(32px, 5vw, 40px); line-height: 1.1; margin: 0 0 4px; }
.c-head .sub { margin: 0; }
.c-head-r { display: flex; gap: 8px; }
.c-segrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 16px; flex-wrap: wrap; }
.c-seg { margin-bottom: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.c-seg::-webkit-scrollbar { display: none; }
.c-seg a {
  font-weight: 600; font-size: 15px; color: var(--label3); padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.c-seg a:hover { color: var(--label); }
.c-seg a.on { background: var(--fill-strong); color: var(--label); }
.c-seg-sm { margin: 0; }
.c-seg-sm button { font-size: 13px; padding: 5px 12px; }
.c-badge { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--amber); }
.c-badge.on { color: var(--mint); }

/* Cards and labels */
.c-page .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.c-h3 { font-weight: 700; font-size: 17px; }
.c-label { color: var(--label3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 22px 0 8px; }
.c-label .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
.c-sublabel { color: var(--label3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.c-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--fill); border: 1px solid var(--line); color: var(--label2); font: 600 13px var(--font); cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.c-chip:hover { background: var(--fill-strong); color: var(--label); }
.c-link { background: none; border: 0; padding: 0; color: var(--mint); font: 600 14px var(--font); cursor: pointer; justify-self: start; }
.c-btn-sm { height: 36px; padding: 0 14px; font-size: 14px; flex: none; }

/* Passing tab layout */
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.c-side { position: sticky; top: 76px; }
.c-alert { grid-template-columns: 1fr auto; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--mint-tint), transparent 70%), var(--surface) !important; }
.c-alert .meta { margin-top: 2px; }
.c-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.c-tiles-3 { grid-template-columns: repeat(3, 1fr); margin-top: 2px; }
.c-tile { background: var(--fill); border-radius: 12px; padding: 10px 6px; text-align: center; min-width: 0; }
.c-tile b { display: block; font-size: 22px; line-height: 1.2; }
.c-tile span { color: var(--label3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.c-topsig { margin-top: 8px; }

/* Rows */
.c-row { min-height: 68px; }
.c-row .title { font-size: 16px; }
.c-name { color: var(--label3); font-weight: 400; font-size: 13px; }
.c-dim { opacity: 0.62; }
.c-cap { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.c-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.c-row .right .pill { height: 20px; font-size: 10px; padding: 0 8px; }
.c-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.c-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--fill); white-space: nowrap; }
.c-tag.red { background: var(--danger-tint); }
.c-tag.amber { background: var(--amber-tint); }

/* Avatars: letter underneath, image on top (falls back if the image fails). */
.c-av { position: relative; color: var(--label3); }
.c-av img { position: absolute; inset: 0; }
.c-av.xl { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.c-av.mint { background: var(--mint-tint); color: var(--mint); }
.c-av.amber { background: var(--amber-tint); color: var(--amber); }
.c-av.red { background: var(--danger-tint); color: var(--danger); }

/* Funnel */
.c-hist { display: flex; align-items: flex-end; gap: 8px; height: 104px; }
.c-hcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11px; color: var(--label3); }
.c-hcol i { display: block; width: 100%; border-radius: 5px; transition: height 0.4s ease; }
.c-sigs { display: grid; gap: 10px; }
.c-sig { display: grid; gap: 4px; }
.c-sig-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.c-sig-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sig-n { font-size: 12px; white-space: nowrap; flex: none; }
.c-track { display: flex; height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.c-track i { display: block; height: 100%; transition: width 0.4s ease; }

/* Live feed */
.c-note { max-width: 62em; font-size: 15px; }
.c-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.c-toolbar .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.c-toolbar .seg button { white-space: nowrap; }
.c-toolbar-r { display: flex; align-items: center; gap: 10px; }
.c-lrow { align-items: center; }
.c-nameline { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.c-nameline .title { flex: 0 1 auto; min-width: 0; }
.c-nameline .c-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-age { font-size: 13px; font-weight: 600; color: var(--label4); flex: none; }
.c-age.fresh { color: var(--mint); }
.c-dots { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12px; margin-top: 3px; }
.c-flag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--fill); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.c-flag.red { background: var(--danger-tint); }
.c-flag.amber { background: var(--amber-tint); }
.c-flag.mint { background: var(--mint-tint); }
.c-flag.violet { background: var(--violet-tint); color: var(--violet); }
.c-flag.muted { color: var(--label3); }
.c-new { animation: c-in 1.6s ease-out; }
@keyframes c-in {
  0% { background: var(--mint-tint); transform: translateY(-6px); opacity: 0; }
  15% { opacity: 1; transform: none; }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .c-new { animation: none; } }

/* Coin page */
.cd-hero { gap: 14px !important; position: relative; overflow: hidden; }
.cd-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.9; }
.cd-hero.tone-mint::before { background: radial-gradient(120% 90% at 0% 0%, var(--mint-tint), transparent 60%); }
.cd-hero.tone-amber::before { background: radial-gradient(120% 90% at 0% 0%, var(--amber-tint), transparent 60%); }
.cd-hero.tone-red::before { background: radial-gradient(120% 90% at 0% 0%, var(--danger-tint), transparent 60%); }
.cd-hero > * { position: relative; }
.cd-hero-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cd-sym { font-size: clamp(26px, 5vw, 34px); line-height: 1.1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-hero-px { text-align: right; flex: none; font-size: 13px; font-weight: 600; }
.cd-px { font-size: 22px; font-weight: 700; }
.cd-px sub { font-size: 0.6em; }
.cd-verdict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-vpill { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 16px; background: var(--fill); }
.cd-vpill.mint { background: var(--mint-tint); }
.cd-vpill.amber { background: var(--amber-tint); }
.cd-vpill.red { background: var(--danger-tint); }
.cd-vpill.muted { color: var(--label2); }
.cd-score { font-size: 20px; font-weight: 700; color: var(--label2); }
.cd-mint { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.28); border-radius: 12px; padding: 6px 6px 6px 12px; min-width: 0; }
.cd-mint > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--label2); }
.cd-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.cd-actions .btn { justify-content: center; white-space: nowrap; padding: 0 14px; font-size: 15px; }
.btn.primary.danger { background: var(--danger); color: #1a0402; }
.btn.phantom { background: rgba(171, 159, 242, 0.18); color: #c9c0ff; }
.cd-warn { color: var(--danger); margin: 10px 0 0; font-size: 14px; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.cd-col { display: grid; gap: 14px; min-width: 0; }
.cd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }

/* Chart */
.cd-chart { position: relative; height: 290px; }
.cd-chart svg { width: 100%; height: calc(100% - 4px); display: block; touch-action: pan-y; cursor: crosshair; }
.cd-chart-empty { height: 100%; display: grid; place-items: center; color: var(--label3); font-size: 14px; text-align: center; }
.cd-chart-empty > .skel { width: 100%; }
.cd-axis { position: absolute; top: 0; right: 0; bottom: 60px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.cd-axis span { font-size: 11px; color: var(--label3); background: rgba(20, 22, 28, 0.8); padding: 0 4px; border-radius: 4px; }
.cd-tip { position: absolute; left: 0; top: -2px; right: 70px; font-size: 12px; color: var(--label2); background: rgba(28, 31, 39, 0.92); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Live panel */
.cd-livehead { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.cd-livehead .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
.cd-alert.red-tint { background: var(--danger-tint) !important; border-color: rgba(255, 88, 77, 0.35) !important; margin-bottom: 10px; gap: 2px !important; }
.cd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-stat {
  display: grid; gap: 3px; align-content: start; text-align: left; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--label); font: inherit; cursor: pointer; min-width: 0;
  transition: border-color 0.15s;
}
.cd-stat:hover, .cd-stat.on { border-color: rgba(92, 242, 176, 0.4); }
.cd-stat-k { font-size: 12px; color: var(--label3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.cd-stat b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-stat b sub { font-size: 0.65em; }
.cd-stat-s { font-size: 12px; color: var(--label4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-why { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--fill); color: var(--label2); font-size: 14px; }
.cd-pressure { width: 100%; margin-top: 8px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cd-pressure .cd-row { font-size: 14px; font-weight: 600; }
.cd-pbar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.cd-pbar i { display: block; transition: flex 0.4s ease; }

/* Trade tape */
.cd-tape { display: grid; }
.cd-trade { display: grid; grid-template-columns: 44px 84px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; font-size: 14px; }
.cd-trade:hover { background: var(--fill); }
.cd-side { height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; }
.cd-side.buy { background: var(--mint-tint); color: var(--mint); }
.cd-side.sell { background: var(--danger-tint); color: var(--danger); }
.cd-usd { font-weight: 600; color: var(--label2); }
.cd-usd.whale { font-weight: 800; color: var(--label); }
.cd-wallet { font-family: var(--mono); font-size: 12px; color: var(--label3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-wallet.amber { color: var(--amber); }

/* Checklist */
.cd-checks { display: grid; gap: 2px; }
.cd-check {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 9px 8px; margin: 0 -8px; width: calc(100% + 16px);
  background: none; border: 0; border-radius: 12px; color: inherit; font: inherit; cursor: pointer; transition: background 0.12s;
}
.cd-check:hover, .cd-check.open { background: var(--fill); }
.cd-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; margin-top: 1px; }
.cd-ic.pass { background: var(--mint-tint); color: var(--mint); }
.cd-ic.warn { background: var(--amber-tint); color: var(--amber); }
.cd-ic.fail { background: var(--danger-tint); color: var(--danger); }
.cd-ic.unknown, .cd-ic.pending { background: var(--fill); color: var(--label4); }
.cd-cl { display: block; font-weight: 600; font-size: 15px; }
.cd-cd { display: block; color: var(--label3); font-size: 13px; overflow-wrap: anywhere; }
.cd-cwhy { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); color: var(--label2); font-size: 14px; }

/* Intel */
.cd-sec { display: grid; gap: 6px; }
.cd-sep { height: 1px; background: var(--line); }
.cd-k { font-weight: 600; }
.cd-reason { color: var(--label2); font-size: 14px; }
.cd-devline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cd-addr { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.pill.muted-pill { color: var(--label3); background: var(--fill); }
.cd-mini { display: grid; gap: 2px; }
.cd-mini-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; min-width: 0; }
a.cd-mini-row:hover { color: var(--mint); }
.cd-mini-r { font-size: 12px; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Holders, socials, links */
.cd-holders { display: grid; gap: 8px; }
.cd-holder { display: grid; gap: 4px; font-size: 14px; }
.cd-socials { display: grid; gap: 4px; }
.cd-social { display: flex; gap: 12px; align-items: flex-start; padding: 8px; margin: 0 -8px; border-radius: 12px; min-width: 0; }
.cd-social:hover { background: var(--fill); }
.cd-sic { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
.cd-social .grow { min-width: 0; }
.cd-social .cd-cd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-desc { margin: 0; color: var(--label2); font-size: 14px; font-style: italic; overflow-wrap: anywhere; }
.cd-links { display: flex; flex-wrap: wrap; gap: 8px; }
#cd-links .c-label { margin-top: 4px; }
.c-foot { color: var(--label4); font-size: 13px; text-align: center; margin: 28px auto 0; max-width: 44em; }

@media (max-width: 960px) {
  .c-grid { grid-template-columns: 1fr; }
  .c-side { position: static; }
  .cd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .c-page { padding-top: 16px; }
  .c-head-r, .c-head-r .find { width: 100%; }
  .c-head-r .find input { flex: 1; width: auto; min-width: 0; }
  .c-segrow { margin: 14px 0 12px; }
  .c-seg a { padding: 7px 12px; font-size: 14px; }
  .c-tile b { font-size: 18px; }
  .c-tile span { font-size: 9px; }
  .cd-actions { grid-template-columns: 1fr 1fr; }
  .cd-actions .btn:first-child { grid-column: 1 / -1; }
  .cd-stats { grid-template-columns: 1fr 1fr; }
  .cd-chart { height: 240px; }
  .cd-hero-px .cd-px { font-size: 18px; }
  .c-alert { grid-template-columns: 1fr; }
  .c-alert .btn { justify-self: start; }
  .c-row .c-name { display: none; }
  .c-nameline .c-name { display: none; }
  .c-flag { max-width: 160px; }
  .cd-trade { grid-template-columns: 40px 70px minmax(0, 1fr) auto; gap: 8px; }
}

/* Check cells (mini checklist) */
.c-checkline { display: flex; align-items: center; gap: 8px; margin-top: 5px; min-width: 0; }
.c-cells { display: inline-flex; gap: 3px; flex: none; }
.c-cells i { display: block; width: 9px; height: 9px; border-radius: 3px; background: var(--fill-strong); }
.c-cells i.s-pass { background: var(--mint); }
.c-cells i.s-warn { background: var(--amber); }
.c-cells i.s-fail { background: var(--danger); }
.c-cells i.s-pending { background: var(--fill-strong); animation: c-pulse 1.4s ease-in-out infinite; }
@keyframes c-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .c-cells i.s-pending { animation: none; } }
.c-checkmsg { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-hero .c-cells i { width: 14px; height: 14px; border-radius: 4px; }
.c-lright { min-width: 92px; }
.c-capline { display: flex; align-items: center; gap: 6px; }
.c-spark { width: 54px; height: 20px; flex: none; }
.c-vpill { margin-top: 2px; }
.c-rugged { background: linear-gradient(90deg, var(--danger-tint), transparent 55%); }
.c-livestats { margin: -4px 0 12px; }
.c-livestats .c-tiles { margin-top: 0; }
.cd-embed { height: 420px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.cd-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) {
  .c-spark { display: none; }
  .c-cells i { width: 7px; height: 7px; }
  .cd-embed { height: 360px; }
}
.cd-social .cd-cl { overflow-wrap: anywhere; }
.cd-social .grow { overflow: hidden; }
.c-page .card { overflow: hidden; }
@media (max-width: 760px) {
  .c-tile span { white-space: normal; display: block; line-height: 1.2; }
  .c-note { font-size: 14px; }
  .c-lright { min-width: 0; }
  .c-lrow { gap: 10px; padding: 10px 12px; }
  .c-checkmsg { display: none; }
  .cd-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-actions .btn { font-size: 13px; padding: 0 8px; height: 42px; overflow: hidden; text-overflow: ellipsis; }
  .cd-actions .btn:first-child { font-size: 15px; height: 46px; }
}
