/* ═══════════════════════════════════════════
   SVERSE DEMO — app shell
   ═══════════════════════════════════════════ */

:root {
  --bg: #0a0416;
  --bg-2: #120a26;
  --panel: #0f0722;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.18);
  --text: #f3effc;
  --text-dim: #a89ec6;
  --violet: #7b2ff7;
  --magenta: #e935c1;
  --pink: #ff4ecd;
  --cyan: #3ee6e0;
  --green: #28c840;
  --amber: #ffbe3d;
  --grad: linear-gradient(96deg, #7b2ff7, #e935c1 60%, #ff4ecd);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sidebar: 232px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(59, 20, 120, 0.5), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; }
::selection { background: var(--magenta); color: #fff; }

/* ══ demo banner ══════════════════════════ */
.demobar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(96deg, rgba(123, 47, 247, 0.35), rgba(233, 53, 193, 0.3));
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.demobar b { color: var(--pink); }
.demobar a { text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
.demobar a:hover { opacity: 1; }

/* ══ layout ═══════════════════════════════ */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: calc(100vh - 38px); }

.side {
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: calc(100vh - 38px);
}

.side__logo { display: flex; align-items: center; gap: 9px; padding: 0 8px; }
.side__logo svg { width: 27px; height: 27px; color: #fff; }
.side__logo span { font-weight: 800; letter-spacing: 0.24em; font-size: 0.92rem; }

.side__nav { display: grid; gap: 3px; }
.side__label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 10px 6px;
  font-weight: 700;
}
.side__nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: background 0.18s, color 0.18s;
}
.side__nav a:hover { background: var(--surface); color: var(--text); }
.side__nav a.is-active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.side__nav a.is-active::before {
  content: "";
  width: 3px; height: 18px;
  border-radius: 3px;
  background: var(--grad);
  margin-left: -6px;
  margin-right: 2px;
}
.side__ico { font-size: 1.02rem; width: 20px; text-align: center; }

.side__foot { margin-top: auto; display: grid; gap: 10px; }
.side__reset {
  width: 100%;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: 0.18s;
}
.side__reset:hover { border-color: var(--pink); color: var(--pink); }
.side__back { font-size: 0.78rem; color: var(--text-dim); padding: 0 4px; }
.side__back:hover { color: var(--text); }

/* ══ topbar ═══════════════════════════════ */
.main { min-width: 0; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 4, 22, 0.72);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.top__crumb { font-size: 0.85rem; color: var(--text-dim); }
.top__crumb b { color: var(--text); font-weight: 600; }

.top__right { display: flex; align-items: center; gap: 12px; }

.balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.balance__coin {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
}
.balance.is-flash { animation: flash 0.6s ease; }
@keyframes flash {
  0%, 100% { border-color: var(--border); }
  40% { border-color: var(--pink); box-shadow: 0 0 20px rgba(255, 78, 205, 0.4); }
}

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid var(--border-2);
}

/* ══ page ═════════════════════════════════ */
.page { padding: 30px; max-width: 1240px; }
.page--wide { max-width: none; }

.page__head { margin-bottom: 26px; }
.page__head h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.01em; }
.page__head p { color: var(--text-dim); font-size: 0.93rem; margin-top: 6px; max-width: 660px; }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 8px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ══ buttons ══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(233, 53, 193, 0.3); }
.btn--grad:hover { box-shadow: 0 10px 26px rgba(233, 53, 193, 0.45); }
.btn--light { background: #fff; color: #16092e; }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn--sm { padding: 7px 14px; font-size: 0.8rem; border-radius: 9px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ══ tabs ═════════════════════════════════ */
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
}
.tabs button {
  padding: 8px 17px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: 0.18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.is-active { background: var(--surface-2); color: var(--text); font-weight: 600; }

.tabpane { display: none; }
.tabpane.is-active { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ══ chips / badges ═══════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
}
.chip--t0 { color: #9aa6ff; border-color: rgba(154, 166, 255, 0.35); background: rgba(154, 166, 255, 0.1); }
.chip--t1 { color: var(--cyan); border-color: rgba(62, 230, 224, 0.35); background: rgba(62, 230, 224, 0.1); }
.chip--t2 { color: var(--pink); border-color: rgba(255, 78, 205, 0.35); background: rgba(255, 78, 205, 0.1); }
.chip--live { color: var(--green); border-color: rgba(40, 200, 64, 0.35); background: rgba(40, 200, 64, 0.1); }
.chip--yours { background: var(--grad); color: #fff; border-color: transparent; }
.chip--lvl { color: var(--amber); border-color: rgba(255, 190, 61, 0.3); background: rgba(255, 190, 61, 0.1); }

.dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(40, 200, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

/* ══ cards ════════════════════════════════ */
.card {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* game card */
.gcard {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, border-color 0.22s;
  cursor: pointer;
}
.gcard:hover { transform: translateY(-5px); border-color: rgba(233, 53, 193, 0.45); }
.gcard__art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  position: relative;
}
.gcard__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 4, 22, 0.75), transparent 55%);
}
.gcard__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; flex-wrap: wrap; }
.gcard__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.gcard__title { font-size: 1rem; font-weight: 700; }
.gcard__studio { font-size: 0.78rem; color: var(--text-dim); font-family: var(--mono); }
.gcard__blurb { font-size: 0.8rem; color: var(--text-dim); margin: 4px 0 10px; flex: 1; }
.gcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 11px; border-top: 1px solid var(--border);
  font-size: 0.78rem;
}
.gcard__players { color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.gcard__price { font-weight: 700; color: var(--text); }

/* pack card */
.pack {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.pack:hover { border-color: var(--border-2); background: var(--surface-2); }
.pack__art {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--grad);
  flex-shrink: 0;
}
.pack__info { flex: 1; min-width: 0; }
.pack__name { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pack__desc { font-size: 0.82rem; color: var(--text-dim); }
.pack__buy { text-align: right; flex-shrink: 0; }
.pack__srv { font-weight: 700; font-size: 0.98rem; }
.pack__usd { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 7px; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tile__k { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.tile__v { font-size: 1.5rem; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; }
.tile__sub { font-size: 0.76rem; color: var(--text-dim); }

/* ══ passport card ════════════════════════ */
.pcard {
  padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(123, 47, 247, 0.28), rgba(10, 4, 22, 0.85) 60%), var(--bg-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(123, 47, 247, 0.16);
}
.pcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pcard__chip { width: 40px; height: 29px; border-radius: 6px; background: linear-gradient(135deg, #d4af37, #f5e28a 50%, #b8912e); }
.pcard__lbl { font-weight: 800; letter-spacing: 0.26em; font-size: 0.72rem; color: var(--pink); }
.pcard__id { font-family: var(--mono); color: var(--text-dim); font-size: 0.9rem; }
.pcard__rows { margin-top: 18px; }
.pcard__rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.87rem;
}
.pcard__rows span { color: var(--text-dim); }
.pcard__rows strong { font-weight: 600; }
.pcard__badge {
  display: inline-block; margin-top: 18px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--grad);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em;
}

/* ══ item grid ════════════════════════════ */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.item:hover { border-color: var(--border-2); transform: translateY(-3px); }
.item__art {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 2.1rem;
  background: linear-gradient(150deg, rgba(123, 47, 247, 0.3), rgba(233, 53, 193, 0.18));
  position: relative;
}
.item__tier { position: absolute; top: 8px; right: 8px; }
.item__body { padding: 12px 13px 14px; }
.item__name { font-size: 0.86rem; font-weight: 600; }
.item__game { font-size: 0.73rem; color: var(--text-dim); font-family: var(--mono); }
.item__row { display: flex; gap: 6px; margin-top: 10px; }
.item__row .btn { flex: 1; }

/* ══ deed ledger ══════════════════════════ */
.ledger { display: grid; gap: 12px; }
.deed {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.deed__ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1rem;
  background: rgba(233, 53, 193, 0.14);
  border: 1px solid rgba(233, 53, 193, 0.3);
}
.deed__name { font-weight: 600; font-size: 0.9rem; font-family: var(--mono); }
.deed__detail { font-size: 0.8rem; color: var(--text-dim); }
.deed__meta { text-align: right; font-size: 0.72rem; color: var(--text-dim); }
.deed__verified { color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ══ club thread ══════════════════════════ */
.thread { display: grid; gap: 13px; }
.post {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.post.is-auto { background: rgba(233, 53, 193, 0.07); border-color: rgba(233, 53, 193, 0.25); }
.post.is-dimmed { opacity: 0.42; }
.post__av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700;
}
.post__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.post__author { font-weight: 600; font-size: 0.87rem; font-family: var(--mono); }
.post__time { font-size: 0.74rem; color: var(--text-dim); margin-left: auto; }
.post__body { font-size: 0.89rem; color: #ded7ef; }
.post__body em { color: var(--pink); font-style: normal; }
.post__rep { font-size: 0.7rem; color: var(--text-dim); font-weight: 700; }

.badge {
  padding: 2px 8px; border-radius: 6px;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--studio { background: var(--grad); }
.badge--founder { background: rgba(255, 190, 61, 0.18); color: var(--amber); border: 1px solid rgba(255, 190, 61, 0.4); }
.badge--curator { background: rgba(62, 230, 224, 0.15); color: var(--cyan); border: 1px solid rgba(62, 230, 224, 0.4); }
.badge--auto { background: rgba(233, 53, 193, 0.2); color: var(--pink); border: 1px solid rgba(233, 53, 193, 0.4); }

/* ══ modal ════════════════════════════════ */
.backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 1, 12, 0.78);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
  animation: fade 0.2s ease;
}
.backdrop[hidden] { display: none; }

.modal {
  width: min(480px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: pop 0.26s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.modal--wide { width: min(620px, 100%); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(14px); } to { opacity: 1; transform: none; } }

.modal__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.modal__head h3 { font-size: 1.08rem; }
.modal__head p { font-size: 0.82rem; color: var(--text-dim); margin-top: 3px; }
.modal__x {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--text-dim); font-size: 1.15rem;
  flex-shrink: 0;
}
.modal__x:hover { background: var(--surface-2); color: var(--text); }
.modal__body { padding: 22px 24px; }
.modal__foot { padding: 18px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.modal__foot .btn { flex: 1; }

/* receipt rows */
.rows { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.rows > div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  font-size: 0.86rem;
}
.rows > div span { color: var(--text-dim); }
.rows > div strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.rows > div.is-total { background: var(--surface-2); }
.rows > div.is-total strong { font-size: 1rem; }

.split { display: grid; gap: 8px; margin-top: 16px; }
.split__bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.split__seg { display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; }
.split__note { font-size: 0.76rem; color: var(--text-dim); }

/* ══ toast ════════════════════════════════ */
.toasts {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: grid; gap: 10px;
  max-width: 340px;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 17px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: slidein 0.3s cubic-bezier(0.2, 1.2, 0.3, 1);
  font-size: 0.85rem;
}
.toast.is-out { animation: slideout 0.25s ease forwards; }
@keyframes slidein { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideout { to { opacity: 0; transform: translateX(28px); } }
.toast__ico { font-size: 1.05rem; line-height: 1.3; }
.toast strong { display: block; font-weight: 600; margin-bottom: 1px; }
.toast small { color: var(--text-dim); font-size: 0.78rem; }

/* ══ terminal (publish wizard) ════════════ */
.term {
  border-radius: 14px;
  background: #0b0518;
  border: 1px solid var(--border-2);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.term__bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term__title { margin-left: 9px; font-family: var(--mono); font-size: 0.73rem; color: var(--text-dim); }
.term__body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.81rem;
  line-height: 1.85;
  min-height: 250px;
  max-height: 340px;
  overflow-y: auto;
}
.term__line { display: flex; gap: 10px; }
.term__line--in { color: var(--text); }
.term__line--in b { color: var(--pink); }
.tick { color: var(--green); font-weight: 700; }
.spin { color: var(--amber); }
.dim { color: #635f86; }
.term__cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--pink); vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ══ steps ════════════════════════════════ */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; color: var(--text-dim); }
.step__n {
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-2);
  font-size: 0.76rem; font-weight: 700;
  flex-shrink: 0;
}
.step.is-done .step__n { background: var(--green); border-color: transparent; color: #04210a; }
.step.is-now { color: var(--text); font-weight: 600; }
.step.is-now .step__n { background: var(--grad); border-color: transparent; }
.step__line { width: 40px; height: 1px; background: var(--border); margin: 0 14px; }

/* ══ radio cards ══════════════════════════ */
.picks { display: grid; gap: 12px; }
.pick {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 17px 19px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.18s;
}
.pick:hover { border-color: var(--border-2); background: var(--surface-2); }
.pick.is-on { border-color: var(--pink); background: rgba(233, 53, 193, 0.08); }
.pick__radio {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--border-2);
  flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
}
.pick.is-on .pick__radio { border-color: var(--pink); }
.pick.is-on .pick__radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.pick__t { font-weight: 600; font-size: 0.93rem; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pick__d { font-size: 0.82rem; color: var(--text-dim); margin-top: 3px; }

/* ══ misc ═════════════════════════════════ */
.empty {
  padding: 50px 30px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--border-2);
  color: var(--text-dim);
}
.empty__ico { font-size: 2rem; margin-bottom: 10px; }

.note {
  display: flex; gap: 12px;
  padding: 15px 18px;
  border-radius: 13px;
  background: rgba(62, 230, 224, 0.07);
  border: 1px solid rgba(62, 230, 224, 0.25);
  font-size: 0.85rem;
  color: #cfe9e8;
}
.note__ico { flex-shrink: 0; }
.note strong { color: var(--cyan); }

.section-t {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 700;
  margin: 30px 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-t::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.bar-mini { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-mini > div { height: 100%; background: var(--grad); border-radius: 4px; }

/* envelope viz (interop) */
.env { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.env__box { padding: 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.env__box h5 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 9px; }
.env__box div { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 3px 0; }
.env__box div span { color: var(--text-dim); }
.env__arrow { font-size: 1.4rem; color: var(--pink); }
.env__box--out { border-color: rgba(255, 78, 205, 0.4); background: rgba(255, 78, 205, 0.07); }

/* hub cards */
.hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hubcard {
  padding: 26px 26px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: 0.22s;
  display: flex; flex-direction: column;
}
.hubcard:hover { transform: translateY(-4px); border-color: rgba(233, 53, 193, 0.45); background: var(--surface-2); }
.hubcard__n { font-family: var(--mono); font-size: 0.78rem; color: var(--pink); font-weight: 600; }
.hubcard h3 { font-size: 1.14rem; margin: 9px 0 8px; }
.hubcard p { font-size: 0.88rem; color: var(--text-dim); flex: 1; margin-bottom: 16px; }
.hubcard__go { font-size: 0.84rem; font-weight: 600; color: var(--pink); }

/* ══ responsive ═══════════════════════════ */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto;
    flex-direction: row; align-items: center; gap: 14px;
    overflow-x: auto; padding: 12px 16px;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .side__nav { display: flex; gap: 4px; }
  .side__label, .side__foot, .side__back { display: none; }
  .side__nav a.is-active::before { display: none; }
  .grid--4, .grid--3, .grid--2, .hub { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 22px 18px; }
  .top { padding: 14px 18px; }
  .env { grid-template-columns: 1fr; }
  .env__arrow { transform: rotate(90deg); text-align: center; }
}
@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2, .hub, .tiles { grid-template-columns: 1fr; }
  .pack { flex-wrap: wrap; }
  .steps { display: none; }
  .toasts { left: 16px; right: 16px; max-width: none; }
}
