/* AUTOGENERATED by packages/ui/sync.mjs — do not edit.
   Edit packages/ui/poqu.css (shared) or packages/ui/parts/<app>.css, then re-run:
     node packages/ui/sync.mjs
*/

/* ═══════════════════════════════════════════════════════════════════════
   PoQu design system — "Prism"
   Canonical source. Do not edit apps/<app>/app/globals.css by hand:
   run `node packages/ui/sync.mjs` to regenerate them from this file
   plus the per-app section in packages/ui/parts/.

   The signature device is the spectral edge (--edge): a 2px violet→mint
   rule that marks what is cryptographically signed or verified, and
   nothing else. Used sparingly it ties the family together; used as
   decoration it stops meaning anything.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ground + surfaces */
  --bg: #0c0d16;
  --bg-2: #12142099;
  --bg-2-solid: #121420;
  --bg-3: #1a1c2c;
  --bg-inset: #08090f;
  --line: #23263a;
  --line-2: #313550;

  /* ink */
  --text: #eceaf5;
  --text-dim: #a49fbd;
  --muted: #8f8aa8;
  --muted-2: #5d5978;

  /* signal — violet + mint at matched depth, the existing brand DNA */
  --accent: #7c5cff;
  --accent-press: #6b4df0;
  --accent-soft: #c9bcff;
  --accent-wash: rgba(124, 92, 255, 0.14);
  --accent-2: #38d9a9;
  --accent-2-soft: #7fe7c8;
  --danger: #ff7a8a;
  --warn: #ffb454;

  /* the signature */
  --edge: linear-gradient(90deg, var(--accent), var(--accent-2));

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-pop: 0 18px 48px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* atmosphere: two soft field tints, fixed so they never scroll away */
  background-image:
    radial-gradient(880px 440px at 8% -6%, rgba(124, 92, 255, 0.16), transparent 62%),
    radial-gradient(700px 380px at 96% 4%, rgba(56, 217, 169, 0.085), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

code, .mono, .num {
  font-family: var(--mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
/* money and quantities line up in columns wherever they appear */
.table td, .stat b, .price, .amt-box input, .big-input input, .kv b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--accent-wash); color: #fff; }

/* ── shell ───────────────────────────────────────────────────────────── */

.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(12, 13, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand .dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  /* the prism mark: a lattice diamond, not a generic bullet */
  background: var(--edge);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.nav-links a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.spacer { flex: 1; }

/* ── controls ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.08s var(--ease);
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: var(--line-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* the primary action is where a signature actually happens — it carries the edge */
.btn.primary {
  position: relative;
  background: #fff;
  border-color: #fff;
  color: #0c0d16;
  font-family: var(--font-display);
  font-weight: 700;
  overflow: hidden;
}
.btn.primary::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--edge);
}
.btn.primary:hover:not(:disabled) { background: #f2f0ff; border-color: #f2f0ff; }

.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 122, 138, 0.42); color: var(--danger); background: rgba(255, 122, 138, 0.08); }
.btn.danger:hover:not(:disabled) { background: rgba(255, 122, 138, 0.14); }
.btn.sm { min-height: 32px; padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.wide { width: 100%; }

/* ── surfaces ────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* opt-in signature: a verified/primary surface */
.card.signed { position: relative; overflow: hidden; }
.card.signed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--edge);
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* Grid and flex children default to min-width:auto, so one wide table inside a
   column blows the whole page past the viewport instead of scrolling. This is
   the single most common cause of horizontal overflow here — keep it. */
.grid > *, .two > *, .item-layout > *, .nav-inner > * { min-width: 0; }

.nft-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.nft-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.nft-card .img {
  aspect-ratio: 1;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 12px;
  overflow: hidden;
}
.nft-card .img img { width: 100%; height: 100%; object-fit: cover; }
.nft-card .body { padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.nft-card .title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-card .sub { color: var(--muted); font-size: 12px; }
.nft-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--accent-2);
}

/* ── page furniture ──────────────────────────────────────────────────── */

.hero { padding: 64px 0 34px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.62;
  max-width: 620px;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

h2.section {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 40px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
h2.section small { color: var(--muted); font-weight: 400; font-size: 13px; letter-spacing: 0; font-family: var(--font); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.table tbody tr { transition: background 0.12s var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.ok { color: var(--accent-2); border-color: rgba(56, 217, 169, 0.38); background: rgba(56, 217, 169, 0.08); }
.pill.accent { color: var(--accent-soft); border-color: rgba(124, 92, 255, 0.42); background: var(--accent-wash); }
.pill.warn { color: var(--warn); border-color: rgba(255, 180, 84, 0.42); background: rgba(255, 180, 84, 0.08); }

/* the post-quantum badge — the one place the edge appears as a chip */
.pq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-soft);
  background: var(--accent-wash);
  border: 1px solid rgba(124, 92, 255, 0.32);
}
.pq-badge svg { flex: 0 0 auto; }

/* ── forms ───────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  outline: none;
  width: 100%;
  min-height: 42px;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #0a0b13; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field .hint { font-size: 11px; color: var(--muted); line-height: 1.5; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* column-ratio variants live here, not in inline styles, so the responsive
   collapse below can actually win (an inline grid-template-columns cannot be
   overridden by a media query) */
.two.lead { grid-template-columns: 1.1fr 1fr; }

/* ── text utilities ──────────────────────────────────────────────────── */

.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.err { color: var(--danger); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.ok { color: var(--accent-2); font-size: 13px; }

.stat { display: flex; flex-direction: column; gap: 3px; }
.stat b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.stat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; }

.banner {
  border-radius: var(--radius);
  background:
    radial-gradient(420px 180px at 22% 0%, rgba(124, 92, 255, 0.5), transparent 70%),
    radial-gradient(420px 200px at 78% 100%, rgba(56, 217, 169, 0.34), transparent 72%),
    var(--bg-3);
  height: 170px;
  margin-bottom: -50px;
}
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: var(--bg-3);
  border: 4px solid var(--bg);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 9px; }
.trait { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; }
.trait .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; }
.trait .v { font-size: 13px; font-weight: 600; word-break: break-word; }

.item-layout { display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: 30px; margin-top: 26px; }
/* the launchpad token page leads with the chart and keeps the trade box aside */
.item-layout.aside { grid-template-columns: 1fr minmax(300px, 420px); }
.item-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
}
.item-img img { width: 100%; height: 100%; object-fit: contain; }

.tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); margin: 22px 0 16px; }
.tabs button {
  background: none;
  border: 0;
  padding: 11px 14px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.14s var(--ease);
}
.tabs button:hover { color: var(--text-dim); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

.empty {
  color: var(--muted);
  padding: 34px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  max-width: 380px;
  font-size: 13px;
  z-index: 50;
  box-shadow: var(--shadow-pop);
}

.footer {
  color: var(--muted);
  font-size: 12px;
  padding: 54px 0 34px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── wallet menu ─────────────────────────────────────────────────────── */

.wallet-menu { position: relative; }
.wallet-list {
  position: absolute;
  right: 0;
  top: 48px;
  background: var(--bg-2-solid);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-pop);
}
.wallet-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 11px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  min-height: 40px;
}
.wallet-list button:hover { background: rgba(255, 255, 255, 0.07); }
.wallet-list img { width: 22px; height: 22px; border-radius: 6px; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .two, .two.lead { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
}
@media (max-width: 860px) {
  .item-layout, .item-layout.aside { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .nav-inner { gap: 8px; height: 58px; }
  /* nav links scroll rather than push the header past the viewport */
  .nav-links { gap: 0; margin-left: -4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 8px 8px; font-size: 13px; }
  .brand { font-size: 15px; gap: 8px; flex-shrink: 0; }
  .brand .dot { width: 15px; height: 15px; flex-basis: 15px; }
  .spacer { display: none; }
  .wallet-menu { flex-shrink: 0; }
  .wide-only { display: none; }
  .btn { padding: 9px 12px; font-size: 13px; }
  .hero { padding: 40px 0 26px; }
  .stats { gap: 16px 24px; }
  /* a table wider than the phone scrolls inside its card */
  .card { padding: 16px; overflow-x: auto; }
  .table th, .table td { padding: 9px 8px; }
  .footer { gap: 12px; padding: 36px 0 28px; margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .nft-card:hover { transform: none; }
}
