/* Layouts for Explore, Launch and Cashflow. Same tokens as meta.css. */

/* Compact page header card */
.page-head { margin: 8px; border-radius: 6px; padding: 36px 32px; background: linear-gradient(135deg, #007aff 0%, #298fff 55%, #5eabff 100%); color: var(--white); position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; box-shadow: var(--shadow-blue); }
.page-head::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 8px); pointer-events: none; }
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.page-head p { margin-top: 14px; max-width: 560px; font-size: 16px; line-height: 1.5; opacity: .95; }
.btn-white.sm { height: 44px; font-size: 16px; padding: 0 18px; }
.sec-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 16px 12px; }
.sec-title h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.sec-title a { font-size: 14px; color: var(--muted); }
.sec-title a:hover { color: var(--blue-deep); }

/* Generated token art (no external images) */
.art { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--blue-deep); }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art .sym-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 40px; letter-spacing: -0.04em; text-shadow: 0 6px 24px rgba(0, 40, 120, .35); }
.art.round { border-radius: 50%; }
.art .tok-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.live-err { padding: 16px 8px; color: var(--muted); font-size: 14px; }

/* Trending strip */
.trend { display: flex; gap: 8px; overflow-x: auto; padding: 0 8px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.trend::-webkit-scrollbar { display: none; }
.trend > a { flex: 0 0 280px; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.trend .art { width: 46px; flex: none; }
.trend .art .sym-mark { font-size: 15px; }
.trend .nm { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.trend .tk { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.trend .rt { margin-left: auto; text-align: right; }
.trend .rt .k { font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.trend .rt .v { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }

/* Controls row */
.bar3 { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 8px 8px; align-items: center; }
.pillset { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.pillset button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.pillset button:hover { color: var(--black); }
.pillset .on, .pillset .on:hover { background: var(--blue-soft); color: var(--blue-deep); font-weight: 500; }
.venue { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #5eabff, #0051ad); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: 0; flex: none; }
.search.round { border-radius: 999px; height: 44px; }

/* Launch cards grid */
.lgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 8px 8px; }
.lcard { padding: 8px; display: block; }
.lcard .art .tag { position: absolute; top: 8px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; z-index: 1; }
.lcard .art .tag.l { left: 8px; padding: 0 2px; }
.lcard .art .tag.r { right: 8px; }
.lcard .art .who { position: absolute; left: 8px; bottom: 8px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: rgba(0, 25, 70, .55); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); z-index: 1; }
.lcard .art .who i { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--blue-deep); font-style: normal; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lcard .art .who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .meta { padding: 10px 6px 4px; }
.lcard .nm { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .nm span { font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-left: 4px; }
.lcard .nums { display: flex; gap: 12px; margin-top: 6px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; transition: color .25s; }
.lcard .nums small { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 3px; }
.lcard .ca { margin-top: 8px; font-family: ui-monospace, "Fragment Mono", monospace; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; padding: 0; }
.lcard .ca:hover { color: var(--blue-deep); }
.lcard:hover .nums { color: var(--blue-deep); }
.lcard:hover { border-color: var(--blue-20); }
.lcard .art svg { transition: transform .6s var(--ease); }
.lcard:hover .art svg { transform: scale(1.04); }

/* Launch form: two columns with live preview */
.lform { display: grid; grid-template-columns: 1.35fr 1fr; margin: 8px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); }
.lform .left { padding: 32px; }
.lform .right { padding: 32px; border-left: 1px solid var(--line); background-color: var(--page-alt); background-image: radial-gradient(var(--blue-10) 1px, transparent 1px); background-size: 6px 6px; }
.lform .sticky { position: sticky; top: 80px; }
.lform h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.lform .grp { margin-top: 22px; }
.lform .lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 16px; margin-top: 24px; }
.fs > legend { padding: 0 6px; font-size: 14px; font-weight: 500; }
.choice { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 4px; border: 1px solid var(--blue-deep); background: var(--blue-soft); color: var(--blue-deep); font-weight: 500; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.sep { height: 1px; background: var(--line); margin: 24px 0; }
.sfx-wrap { position: relative; }
.sfx-wrap .input { padding-right: 76px; }
.sfx-wrap .sfx { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--blue-deep); display: inline-flex; align-items: center; gap: 6px; }
.imgpick { display: flex; align-items: center; gap: 14px; height: 72px; border: 1px dashed var(--faint); border-radius: 6px; padding: 0 12px; background: var(--surface); cursor: pointer; transition: border-color .2s; }
.imgpick:hover { border-color: var(--blue-deep); }
.imgpick .thumb { width: 48px; height: 48px; border-radius: 4px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; flex: none; }
.imgpick .thumb img { width: 100%; height: 100%; object-fit: cover; }
.connect-row { display: flex; gap: 8px; align-items: center; }
.connect-row .input { flex: 1; color: var(--muted); display: flex; align-items: center; }
details.more summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); list-style: none; margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { color: var(--blue-deep); }
details.more .two { margin-top: 12px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--blue-deep); margin-top: 1px; flex: none; }
.check-row a, .fine a { text-decoration: underline; text-underline-offset: 3px; color: var(--black); }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
.counter { font-size: 12px; color: var(--muted); margin-top: 6px; }

.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px; box-shadow: var(--shadow-card); }
.toast .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.toast .ic img { width: 24px; height: 24px; }
.toast .t { font-size: 14px; line-height: 1.4; }
.toast .t b { font-weight: 600; }
.toast .w { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toast.swap { animation: rowIn .45s var(--ease) both; }
.preview { margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 12px; box-shadow: var(--shadow-card); }
.preview .art.empty { background: var(--surface); border: 1px solid var(--line); }
.preview .art.empty .sym-mark { color: var(--faint); text-shadow: none; font-size: 28px; }
.preview .nm { margin-top: 14px; font-weight: 500; font-size: 16px; }
.preview .nm span { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-left: 6px; }
.preview .nums { display: flex; gap: 14px; margin-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.preview .nums small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 3px; }
.preview .rows { margin-top: 12px; border-top: 1px solid var(--line); }
.preview .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.preview .rows div:last-child { border-bottom: 0; }
.preview .rows b { font-weight: 600; color: var(--black); font-variant-numeric: tabular-nums; }

/* Cashflow: rolling counters */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.totals .k { font-size: 15px; opacity: .9; }
.totals .odo { font-size: 46px; font-weight: 500; letter-spacing: -0.02em; margin-top: 8px; }
.odo { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; overflow: hidden; height: 1.08em; }
.odo .d { display: inline-block; height: 1.08em; overflow: hidden; }
.odo .d > span { display: flex; flex-direction: column; transition: transform 1.4s var(--ease); }
.odo .d > span > i { font-style: normal; height: 1.08em; display: block; text-align: center; }
.odo .s { display: inline-block; }

/* Cashflow: list rows */
.cf { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; padding: 0 8px 8px; align-items: start; }
.pager { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.pager button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.pager button:hover:not(:disabled) { border-color: var(--blue-deep); color: var(--blue-deep); }
.pager button:disabled { opacity: .4; cursor: default; }
.orow { padding: 0; overflow: hidden; margin-bottom: 8px; }
.orow > button { width: 100%; display: grid; grid-template-columns: 1fr auto 70px; gap: 16px; align-items: center; padding: 14px 16px; background: none; border: 0; cursor: pointer; text-align: left; }
.orow .amt { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.orow .by { font-size: 14px; color: var(--muted); margin-top: 2px; }
.orow .by b { color: var(--black); font-weight: 600; }
.orow .art { width: 40px; }
.orow .art .sym-mark { font-size: 13px; }
.orow .tm { text-align: right; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.orow .tm svg { transition: transform .3s var(--ease); }
.orow.open .tm svg { transform: rotate(180deg); }
.orow .detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.orow.open .detail { grid-template-rows: 1fr; }
.orow .detail > div { overflow: hidden; }
.orow .detail .inner2 { border-top: 1px solid var(--line); padding: 14px 16px 16px; background: var(--page-alt); }
.orow .kv { margin-bottom: 12px; }
.orow.enter { animation: rowIn .45s var(--ease) both; }
.trow { display: grid; grid-template-columns: auto auto auto 1fr; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 8px; }
.trow .art { width: 40px; }
.trow .art .sym-mark { font-size: 13px; }
.trow .arrow-i { color: var(--muted); }
.trow .meta-i { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.trow .meta-i img { width: 22px; height: 22px; }
.trow .r { text-align: right; }
.trow .r .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trow .r .u { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 1200px) { .lgrid { grid-template-columns: repeat(3, 1fr); } .totals .odo { font-size: 36px; } }
@media (max-width: 900px) {
  .page-head { flex-direction: column; padding: 28px 20px; }
  .page-head h1 { font-size: 30px; }
  .bar3 { grid-template-columns: 1fr; }
  .bar3 .pillset { overflow-x: auto; max-width: 100%; }
  .lgrid { grid-template-columns: repeat(2, 1fr); }
  .lform { grid-template-columns: 1fr; }
  .lform .left, .lform .right { padding: 20px; }
  .lform .right { border-left: 0; border-top: 1px solid var(--line); }
  .two { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr; gap: 18px; }
  .totals .odo { font-size: 34px; }
  .cf { grid-template-columns: 1fr; }
  .orow .amt { font-size: 22px; }
  .orow > button { grid-template-columns: 1fr auto 50px; gap: 10px; }
}

.lgrid > *, .cf > *, .trend > * { min-width: 0; }
.trow .nm2 { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .nm2 span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .06em; font-weight: 400; }
.trow { grid-template-columns: auto auto auto minmax(0,1fr) auto; }
.art .sym-mark { font-size: calc(40px * var(--fs, 1)); }
.trend .art .sym-mark { font-size: calc(15px * var(--fs, 1)); }

/* Analytics v2 */
.an-top { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 8px 4px; }
.an-top .updated { align-self: flex-start; }
.seg.round { border-radius: 999px; padding: 4px; background: var(--white); }
.seg.round button { border-radius: 999px; height: 36px; padding: 0 18px; font-size: 15px; }
.seg.round button.on { background: var(--blue-deep); color: var(--white); box-shadow: none; }
.bars-card { padding: 22px; }
.bars-card .k { font-size: 15px; font-weight: 500; }
.bars-card .v { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.bars-card .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.bars { margin-top: 18px; border-radius: 6px; background-color: var(--page-alt); background-image: radial-gradient(var(--blue-10) 1px, transparent 1px); background-size: 6px 6px; border: 1px solid var(--line); padding: 16px 14px 10px; }
.bars .cols { height: 150px; display: flex; align-items: flex-end; gap: 6px; }
.bars .cols i { flex: 1; min-height: 4px; border-radius: 3px 3px 1px 1px; background: var(--bar); height: 4px; transition: height .9s var(--ease), background .3s; }
.bars .cols i.hi { background: var(--blue-deep); }
.bars .cols i:hover { background: var(--blue); }
.bars .ax { display: flex; justify-content: space-between; margin-top: 8px; font-family: ui-monospace, "Fragment Mono", monospace; font-size: 11px; color: var(--muted); }
.tabs-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 28px 8px 12px; }
.tabs-row h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.tabs-row .pager { margin-left: auto; }
.tabs { display: inline-flex; gap: 2px; }
.tabs button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button.on { background: var(--blue-soft); color: var(--blue-deep); font-weight: 500; }
.sumrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px 20px; margin-bottom: 8px; }
.sumrow .k { font-family: ui-monospace, "Fragment Mono", monospace; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.sumrow .v { font-size: 20px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.frow > button { grid-template-columns: 1fr auto 150px; }
.icons { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.icons .c { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.icons .c.sol { background: var(--black); color: var(--white); }
.icons .c.usd { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--bar); font-size: 13px; }
.icons .c.meta { background: var(--blue); }
.icons .c.meta img { width: 24px; height: 24px; }
.icons .c.dim { opacity: .3; filter: grayscale(1); }
.st-row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.st-row .chip { height: 24px; font-size: 11px; padding: 0 8px; }
.st-row .chip::before { width: 7px; height: 7px; }
.rank { padding: 8px 24px; }
.rank .hd { display: flex; justify-content: space-between; padding: 16px 0 8px; font-size: 14px; font-weight: 500; }
.rank .hd span { font-size: 12px; color: var(--muted); font-weight: 400; }
.rank .r { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rank .r .art { width: 40px; }
.rank .r .art .sym-mark { font-size: 13px; }
.rank .r .n { font-size: 15px; }
.rank .r .n b { font-weight: 600; }
.rank .r .n span { color: var(--muted); }
.rank .r .track2 { height: 4px; border-radius: 99px; background: var(--blue-soft); margin-top: 8px; overflow: hidden; }
.rank .r .track2 i { display: block; height: 100%; width: 0; background: var(--blue-deep); border-radius: 99px; transition: width 1.2s var(--ease); }
.rank .r .amt2 { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.about { padding: 24px; }
.about h4 { font-size: 15px; font-weight: 600; }
.about p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 10px; }
.about details { margin-top: 12px; }
.about summary { cursor: pointer; font-size: 14px; font-weight: 500; }
.perf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.perf .card { padding: 18px; }
.perf .stat .value { font-size: 24px; }
@media (max-width: 900px) {
  .sumrow { grid-template-columns: 1fr 1fr; }
  .frow > button { grid-template-columns: 1fr auto; }
  .frow .icons { display: none; }
  .perf { grid-template-columns: 1fr 1fr; }
  .rank { padding: 8px 16px; }
}

/* Brand marks */
.venue { background: none !important; width: 22px; height: 22px; }
.venue svg { width: 100%; height: 100%; display: block; }
.lcard .art .tag.l { padding: 0 3px; background: rgba(255,255,255,.95); }
.icons .c.sol svg { width: 100%; height: 100%; }
.icons .ex { display: inline-flex; align-items: center; }
.icons .ex .c { width: 30px; height: 30px; border: 2px solid var(--white); overflow: hidden; }
.icons .ex .c + .c { margin-left: -9px; }
.icons .c.kr { background: #7132f5; }
.icons .c.kr img { width: 100%; height: 100%; display: block; }
.icons .c.bn { background: #181a20; }
.icons .c.bn svg { width: 100%; height: 100%; }
.trend > a.card:hover { transform: none; }
.icons .ex.dimx { opacity: .35; filter: grayscale(1); }

/* Wallet button in nav */
.nav .bar { gap: 12px; }
.nav .bar > .wallet-btn { margin-left: auto; background: rgba(255,255,255,.12); cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }
.nav .bar > .wallet-btn + .btn-outline { margin-left: 0; }
.wallet-btn .wdot { width: 8px; height: 8px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 0 3px rgba(124,255,178,.25); }
@media (max-width: 900px) { .nav .bar > .wallet-btn { display: inline-flex; height: 36px; padding: 0 12px; font-size: 14px; } }
