/* Merit site. Clean fintech look, testnet only. */
:root {
  --bg: #0a0e14;
  --panel: #111826;
  --panel2: #16202f;
  --text: #e8eef7;
  --muted: #93a1b5;
  --accent: #e8b93e;
  --accent2: #7cc4ff;
  --accent3: #b78bff;
  --warn: #f0b429;
  --danger: #e5484d;
  --line: #22304a;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  /* Soft tints for banners and success states (dark theme). */
  --accent-soft: rgba(232, 185, 62, 0.12);
  --seal: #d9a83f;
  --seal-soft: rgba(217, 168, 63, 0.14);
  --ok: #3fae7f;
  --ok-soft: rgba(63, 174, 127, 0.14);
  --danger-soft: rgba(229, 72, 77, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}
a { color: var(--accent2); }
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
header.top .brand { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--text); }
/* Logo mark beside the wordmark: fixed size, vertically centred. */
header.top .brand { display: inline-flex; align-items: center; gap: 8px; }
header.top .brand .brand-mark { width: 28px; height: 28px; flex: none; }
header.top nav a { margin-left: 16px; color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--text); }
main { max-width: 960px; margin: 0 auto; padding: 24px 20px 80px; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 12px; overflow-wrap: break-word; }
h2 { font-size: 22px; margin: 36px 0 10px; }
h3 { font-size: 17px; margin: 18px 0 8px; }
p.lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
}
.panel h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
/* Five things a Merit does: five across in one horizontal row on
   wide screens. On a narrow phone the five cards stack in one
   column, full width, so the words read left to right instead of
   breaking letter by letter down a narrow column. */
.grid.five-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.five-grid .card { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 760px) {
  .grid.five-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}
/* Long ids and hashes (account ids, evidence hashes) wrap instead
   of overflowing a narrow phone screen. */
.mono { overflow-wrap: anywhere; }
/* The header account button truncates a long account id with an
   ellipsis instead of pushing the header wider than the screen. */
#connectBtn { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.card .big { font-size: 28px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; }
.card .label { color: var(--muted); font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
/* One coloured edge per card, so a row of numbers is scannable at a glance. */
.card.tone-green { border-top: 3px solid var(--accent); }
.card.tone-blue { border-top: 3px solid var(--accent2); }
.card.tone-amber { border-top: 3px solid var(--warn); }
.card.tone-purple { border-top: 3px solid var(--accent3); }
.card.tone-green .label::before,
.card.tone-blue .label::before,
.card.tone-amber .label::before,
.card.tone-purple .label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.card.tone-green .label::before { background: var(--accent); }
.card.tone-blue .label::before { background: var(--accent2); }
.card.tone-amber .label::before { background: var(--warn); }
.card.tone-purple .label::before { background: var(--accent3); }
/* Member initials as coloured circles, like avatar chips. */
.member-dots { display: flex; gap: 6px; margin: 10px 0 4px; }
.member-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #06130b;
  border: 2px solid var(--bg);
}
.member-dot.tone-0 { background: var(--accent); }
.member-dot.tone-1 { background: var(--accent2); color: #06101f; }
.member-dot.tone-2 { background: var(--warn); }
.member-dot.tone-3 { background: var(--accent3); color: #160a2e; }
/* Funding progress: a pill track with a filled bar. */
.progress { height: 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 4px; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
/* Member deposits and payouts chart: two bars per member, one scale. */
.dep-card { margin: 14px 0; }
.dep-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dep-head .full { color: var(--muted); font-size: 13px; font-weight: 400; }
.dep-row { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 4px; font-size: 14px; }
.dep-row .amt { font-family: var(--mono); white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot.blue { background: var(--accent2); }
.dot.green { background: var(--accent); }
.bar-track { height: 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.bar-track > i { display: block; height: 100%; border-radius: 99px; }
.bar-fill.dep { background: var(--accent2); }
.bar-fill.pay { background: var(--accent); }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 13px; margin: 6px 0 2px; }
button, .btn {
  background: var(--accent);
  color: #06130b;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
header.top nav a { padding: 6px 2px; }
p { overflow-wrap: break-word; }
/* Long hashes and account ids wrap instead of overflowing a card. */
.hash { word-break: break-all; font-family: var(--mono); font-size: 13px; }
/* Wide tables scroll inside their panel on a phone instead of
   pushing the whole page sideways. */
.tableScroll { overflow-x: auto; }
.tableScroll table { min-width: 560px; }
button.secondary, .btn.secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: 0.5; cursor: default; }
input, select, textarea {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  width: 100%;
  margin: 4px 0 10px;
}
label { font-size: 14px; color: var(--muted); display: block; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--panel2);
  border: 1px solid var(--line);
}
.tag.ok { color: var(--accent); border-color: var(--accent); }
.tag.warn { color: var(--warn); border-color: var(--warn); }
.flow { counter-reset: step; list-style: none; padding: 0; }
.flow li {
  counter-increment: step;
  padding: 10px 0 10px 44px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.flow li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.flow li.done::before { background: var(--accent); color: #06130b; border-color: var(--accent); }
.flow li.now::before { background: var(--warn); color: #1a1200; border-color: var(--warn); }
#pageStatus, .status { color: var(--warn); min-height: 1.2em; }
footer { border-top: 1px solid var(--line); padding: 18px 20px; color: var(--muted); font-size: 13px; text-align: center; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--accent2); }
/* Member deposits and payouts: one column on a phone, two side by
   side on a desktop, exactly like the stat cards. */
.dep-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.dep-grid .legend { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .dep-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  /* Mobile header: brand and wallet button share the first row, the
     navigation gets its own clean second row. */
  header.top { flex-wrap: wrap; padding: 12px 14px; row-gap: 10px; }
  header.top .brand { font-size: 18px; }
  header.top nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; }
  header.top nav a { margin-left: 0; font-size: 14px; }
  #connectBtn { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  main { padding: 18px 14px 64px; }
  .card .big { font-size: 24px; }
}
/* DAO choice on the create page: two compact rows, the radio inline
   on the left and its label on the same line to the right, so the
   section fits a phone screen. The selected row is bold with a
   highlighted background, so the choice reads from the font itself,
   not only from the radio dot. */
.dao-choice { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.dao-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  margin: 0;
}
.dao-option input[type="radio"] {
  flex: none;
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}
.dao-option span { flex: 1; }
.dao-option.selected {
  background: #123324;
  border-color: var(--accent);
  font-weight: 700;
}

/* ---- Bottom tab bar (mobile) ---- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 2px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.active { color: var(--accent); }
@media (min-width: 760px) { .tabbar { display: none; } }

/* ---- Chips ---- */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
}
.chip.locked { background: var(--seal-soft); color: var(--seal); border-color: var(--seal); }
.chip.open { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.chip.status { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chip.not-held { background: var(--panel2); color: var(--muted); border: 1px dashed var(--line); }

/* ---- Key/value rows ---- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv b { text-align: right; }

/* ---- Two-column form rows ---- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---- Merit switcher (picker chips on the detail page) ---- */
.merit-switch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 4px; }
.merit-switch a.chip:hover { text-decoration: none; }
.merit-switch .chip.active { background: var(--accent); color: #06130b; border-color: var(--accent); }

/* ---- The Merit seal: identity from the level tier alone ---- */
.merit-badge { position: relative; flex: none; width: 118px; height: 118px; border-radius: 50%; padding: 9px; filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.4)); }
.merit-badge.tier-gold { background: radial-gradient(circle at 32% 26%, #f8dc82 0%, #eec84e 32%, #c9931d 62%, #9a6c10 88%, #7d560b 100%); box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -6px 9px rgba(96, 54, 0, 0.5), inset 0 0 0 2px rgba(125, 86, 11, 0.55), 0 0 18px rgba(238, 200, 78, 0.55), 0 0 42px rgba(238, 200, 78, 0.22); }
.merit-badge.tier-silver { background: radial-gradient(circle at 32% 26%, #ffffff 0%, #e3e7ec 32%, #b9c1cb 62%, #8b96a3 88%, #6e7987 100%); box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.85), inset 0 -6px 9px rgba(52, 64, 78, 0.5), inset 0 0 0 2px rgba(110, 121, 135, 0.55), 0 0 18px rgba(190, 210, 235, 0.55), 0 0 42px rgba(190, 210, 235, 0.22); }
.merit-badge.tier-bronze { background: radial-gradient(circle at 32% 26%, #f6c48b 0%, #e09a52 32%, #b06a2c 62%, #7f4214 88%, #5f2f0d 100%); box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65), inset 0 -6px 9px rgba(80, 40, 4, 0.55), inset 0 0 0 2px rgba(95, 47, 13, 0.55), 0 0 18px rgba(224, 154, 82, 0.55), 0 0 42px rgba(224, 154, 82, 0.22); }
.badge-core { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 38%, #16407e 0%, #0a1f4d 48%, #050b1e 100%); box-shadow: inset 0 0 22px rgba(47, 127, 224, 0.65), inset 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 -3px 6px rgba(127, 227, 255, 0.2); }
.badge-core::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(127, 227, 255, 0.07) 0 6px, rgba(127, 227, 255, 0) 6px 13px); }
.badge-core::after { content: ""; position: absolute; inset: -45%; background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.13) 16deg, transparent 38deg, transparent 180deg, rgba(255, 255, 255, 0.09) 196deg, transparent 218deg); animation: badgeShimmer 9s linear infinite; pointer-events: none; }
@keyframes badgeShimmer { to { transform: rotate(360deg); } }
.badge-holo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 6px rgba(47, 127, 224, 0.8)); }
.badge-core > :not(.badge-holo) { position: relative; z-index: 1; }
.badge-icon svg { width: 34px; height: 34px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.badge-skill { font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.15; max-width: 82%; text-shadow: 0 0 6px rgba(127, 227, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6); }
.badge-pips { display: flex; gap: 3px; justify-content: center; margin-top: 3px; min-height: 6px; }
.badge-pips i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 4px rgba(127, 227, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.5); }
.badge-ringtext { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.badge-ringtext text { font-family: system-ui, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 0.13em; fill: rgba(74, 48, 2, 0.78); }
.merit-badge.tier-silver .badge-ringtext text { fill: rgba(43, 53, 64, 0.8); }
.badge-count { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: #0a1f4d; color: #d6ecff; border: 1px solid rgba(127, 227, 255, 0.6); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; padding: 2px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35), 0 0 10px rgba(47, 127, 224, 0.5); }
.tier-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; vertical-align: middle; }
.tier-chip.tier-gold { background: #f7ecd2; color: #8a5f10; }
.tier-chip.tier-silver { background: #e8ecf0; color: #4c5a68; }
.tier-chip.tier-bronze { background: #f6e3cd; color: #7f4214; }

/* ---- Level badge (round number badge beside the credential card) ---- */
.level-badge { flex: none; margin-left: auto; text-align: center; }
.lb-num { width: 86px; height: 86px; border-radius: 50%; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 32% 26%, #f8dc82 0%, #eec84e 32%, #c9931d 62%, #9a6c10 88%, #7d560b 100%); box-shadow: 0 7px 14px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -6px 9px rgba(96, 54, 0, 0.5), inset 0 0 0 3px rgba(125, 86, 11, 0.55), inset 0 0 0 6px rgba(255, 238, 175, 0.38); text-shadow: 0 1px 2px rgba(96, 54, 0, 0.55); }
.lb-num b { font-size: 2.05rem; line-height: 1; font-weight: 800; }
.lb-num span { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.lb-cap { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 140px; }
.lb-num.tier-gold { background: radial-gradient(circle at 32% 26%, #f8dc82 0%, #eec84e 32%, #c9931d 62%, #9a6c10 88%, #7d560b 100%); box-shadow: 0 7px 14px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -6px 9px rgba(96, 54, 0, 0.5), inset 0 0 0 3px rgba(125, 86, 11, 0.55), inset 0 0 0 6px rgba(255, 238, 175, 0.38); text-shadow: 0 1px 2px rgba(96, 54, 0, 0.55); }
.lb-num.tier-silver { background: radial-gradient(circle at 32% 26%, #ffffff 0%, #e3e7ec 32%, #b9c1cb 62%, #8b96a3 88%, #6e7987 100%); box-shadow: 0 7px 14px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.85), inset 0 -6px 9px rgba(52, 64, 78, 0.5), inset 0 0 0 3px rgba(110, 121, 135, 0.55), inset 0 0 0 6px rgba(240, 244, 248, 0.4); text-shadow: 0 1px 2px rgba(52, 64, 78, 0.55); }
.lb-num.tier-bronze { background: radial-gradient(circle at 32% 26%, #f6c48b 0%, #e09a52 32%, #b06a2c 62%, #7f4214 88%, #5f2f0d 100%); box-shadow: 0 7px 14px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.65), inset 0 -6px 9px rgba(80, 40, 4, 0.55), inset 0 0 0 3px rgba(95, 47, 13, 0.55), inset 0 0 0 6px rgba(255, 219, 170, 0.35); text-shadow: 0 1px 2px rgba(80, 40, 4, 0.6); }
@media (max-width: 560px) { .level-badge { margin-left: 0; } }

/* ---- Merit credential card ---- */
.merit-card { position: relative; overflow: hidden; border-radius: 18px; background: #0d3b2a; border: 1px solid #082a1d; color: #f3efe2; padding: 22px; box-shadow: var(--shadow); }
.merit-card .rings { position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; opacity: 0.14; pointer-events: none; }
.merit-card-in { position: relative; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mc-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #bcd8c6; }
.mc-id { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin: 2px 0; }
.mc-meta { font-size: 14px; color: #bcd8c6; }
.mc-meta .mono { color: #f3efe2; }

/* ---- Stamp seals: design from the LEVEL, never the skill ---- */
.stamp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.stamp-badge { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px 13px; text-align: center; box-shadow: var(--shadow); }
.stamp-seal { position: relative; width: 78px; height: 78px; margin: 0 auto 10px; border-radius: 50%; color: #6b4503; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 32% 26%, #f8dc82 0%, #eec84e 32%, #c9931d 62%, #9a6c10 88%, #7d560b 100%); box-shadow: 0 7px 14px rgba(96, 64, 4, 0.38), 0 2px 3px rgba(96, 64, 4, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -6px 9px rgba(96, 54, 0, 0.5), inset 0 0 0 3px rgba(125, 86, 11, 0.55), inset 0 0 0 6px rgba(255, 238, 175, 0.38); }
.stamp-seal.seal-lv1 { color: #4a2a08; background: radial-gradient(circle at 32% 26%, #eec39a 0%, #cf8a4a 34%, #a05e24 64%, #71400f 90%, #57300a 100%); box-shadow: 0 4px 9px rgba(80, 44, 6, 0.35), 0 1px 2px rgba(80, 44, 6, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.55), inset 0 -5px 8px rgba(80, 40, 4, 0.5), inset 0 0 0 3px rgba(87, 48, 10, 0.55), inset 0 0 0 6px rgba(255, 219, 170, 0.28); }
.stamp-seal.seal-lv2 { color: #33404d; background: radial-gradient(circle at 32% 26%, #ffffff 0%, #e8edf1 30%, #bcc6cf 60%, #8b96a3 88%, #67727f 100%); box-shadow: 0 6px 12px rgba(40, 52, 64, 0.35), 0 2px 3px rgba(40, 52, 64, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.9), inset 0 -6px 9px rgba(52, 64, 78, 0.5), inset 0 0 0 3px rgba(103, 114, 127, 0.55), inset 0 0 0 6px rgba(240, 244, 248, 0.45); }
.stamp-seal.seal-lv3 { color: #6b4503; background: radial-gradient(circle at 32% 26%, #fbe99b 0%, #f2cd52 30%, #d29f22 60%, #a3740f 86%, #7d560b 100%); box-shadow: 0 8px 16px rgba(96, 64, 4, 0.42), 0 2px 3px rgba(96, 64, 4, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.75), inset 0 -6px 9px rgba(96, 54, 0, 0.5), inset 0 0 0 3px rgba(125, 86, 11, 0.6), inset 0 0 0 6px rgba(255, 238, 175, 0.45), 0 0 0 2px rgba(247, 236, 210, 0.85), 0 0 0 4px rgba(125, 86, 11, 0.45); }
.stamp-seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%); }
.stamp-seal::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; box-shadow: inset 0 2px 3px rgba(96, 54, 0, 0.55), inset 0 -2px 3px rgba(255, 246, 200, 0.55), 0 0 0 1px rgba(125, 86, 11, 0.5); }
.stamp-seal.seal-lv1::after { box-shadow: inset 0 2px 3px rgba(80, 40, 4, 0.5), inset 0 -2px 3px rgba(255, 226, 180, 0.45), 0 0 0 1px rgba(87, 48, 10, 0.5); }
.stamp-seal.seal-lv2::after { box-shadow: inset 0 2px 3px rgba(52, 64, 78, 0.5), inset 0 -2px 3px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(103, 114, 127, 0.5); }
.stamp-seal.seal-lv3::after { inset: 8px; box-shadow: inset 0 2px 3px rgba(96, 54, 0, 0.55), inset 0 -2px 3px rgba(255, 246, 200, 0.6), 0 0 0 1px rgba(125, 86, 11, 0.55), inset 0 0 0 3px rgba(255, 238, 175, 0.35); }
.stamp-seal svg { position: relative; z-index: 1; width: 32px; height: 32px; filter: drop-shadow(0 1px 0 rgba(255, 242, 190, 0.75)) drop-shadow(0 -1px 1px rgba(96, 54, 0, 0.5)); }
.stamp-seal.seal-lv1 svg { filter: drop-shadow(0 1px 0 rgba(255, 226, 180, 0.6)) drop-shadow(0 -1px 1px rgba(80, 40, 4, 0.5)); }
.stamp-seal.seal-lv2 svg { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8)) drop-shadow(0 -1px 1px rgba(52, 64, 78, 0.5)); }
.stamp-badge .sk { font-weight: 700; line-height: 1.25; }
.stamp-pips { display: flex; gap: 4px; justify-content: center; margin: 7px 0 3px; min-height: 9px; }
.stamp-pips i { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f8dc82, #b97f16 78%); box-shadow: 0 1px 2px rgba(96, 64, 4, 0.45), inset 0 -1px 1px rgba(96, 54, 0, 0.45); }
.stamp-pips.pips-lv1 i { background: radial-gradient(circle at 35% 30%, #f6c48b, #a05e24 78%); box-shadow: 0 1px 2px rgba(80, 44, 6, 0.45), inset 0 -1px 1px rgba(80, 40, 4, 0.45); }
.stamp-pips.pips-lv2 i { background: radial-gradient(circle at 35% 30%, #ffffff, #8b96a3 78%); box-shadow: 0 1px 2px rgba(40, 52, 64, 0.4), inset 0 -1px 1px rgba(52, 64, 78, 0.45); }
.stamp-badge .lv { font-size: 13px; font-weight: 700; color: var(--seal); }
.stamp-badge .lv.lv1 { color: #a05e24; }
.stamp-badge .lv.lv2 { color: #66727e; }

/* ---- Merit list card visual (All Merits on Home) ---- */
.merit-list-visual { position: relative; overflow: hidden; background: #0d3b2a; border: 1px solid #082a1d; border-radius: 12px; padding: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; color: #f3efe2; }
.merit-list-visual .rings { position: absolute; right: -60px; top: -72px; width: 220px; height: 220px; opacity: 0.14; pointer-events: none; }
.merit-list-visual > * { position: relative; }
.merit-list-visual .merit-badge { width: 88px; height: 88px; padding: 7px; }
.merit-list-visual .badge-icon svg { width: 24px; height: 24px; }
.merit-list-visual .badge-skill { font-size: 7px; }
.merit-list-visual .badge-ringtext text { font-size: 8.5px; }
.merit-list-visual .badge-count { bottom: -8px; font-size: 10px; padding: 1px 8px; }
.merit-list-visual .level-badge { margin-left: auto; }
.merit-list-visual .lb-num { width: 76px; height: 76px; }
.merit-list-visual .lb-num b { font-size: 1.8rem; }
.list-visual-meta { min-width: 150px; flex: 1; }
.list-visual-id { font-size: 21px; font-weight: 800; line-height: 1.2; color: #f3efe2; margin: 2px 0; }
.list-visual-sub { font-size: 14px; color: #bcd8c6; }
@media (max-width: 560px) { .merit-list-visual .level-badge { margin-left: auto; } }

/* ---- Badges gallery page ---- */
.badge-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .badge-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .badge-grid { grid-template-columns: repeat(3, 1fr); } }
.badge-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 14px; box-shadow: var(--shadow); text-align: center; }
.badge-card .stamp-seal { width: 94px; height: 94px; }
.badge-card .stamp-seal svg { width: 38px; height: 38px; }
.badge-card h3 { margin: 0.35em 0 0.2em; font-size: 18px; }
.badge-card .certifies { color: var(--muted); font-size: 15px; margin: 0.2em 0 0.6em; text-align: left; }
.badge-card .issued { font-size: 14px; margin: 0.3em 0; text-align: left; }
.badge-levels { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; text-align: left; }
.level-line { display: flex; gap: 9px; align-items: baseline; font-size: 14px; line-height: 1.45; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.level-line:last-child { border-bottom: 0; }
.lv-tag { flex: none; font-weight: 800; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--seal); white-space: nowrap; }
.lv-tag.lv1 { color: #a05e24; }
.lv-tag.lv2 { color: #66727e; }
.mini-seal { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; align-self: center; color: #6b4503; box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), inset 0 -2px 3px rgba(0, 0, 0, 0.28), inset 0 0 0 2px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.3); }
.mini-seal svg { width: 14px; height: 14px; }
.mini-seal.seal-lv1 { color: #4a2a08; background: radial-gradient(circle at 32% 26%, #eec39a 0%, #cf8a4a 40%, #71400f 100%); }
.mini-seal.seal-lv2 { color: #33404d; background: radial-gradient(circle at 32% 26%, #ffffff 0%, #bcc6cf 45%, #67727f 100%); }
.mini-seal.seal-lv3 { color: #6b4503; background: radial-gradient(circle at 32% 26%, #fbe99b 0%, #d29f22 55%, #7d560b 100%); }
.badge-holders { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; text-align: left; }
.badge-holders .bh-label { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.holder-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.holder-row:last-child { border-bottom: 0; }
.holder-lv { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--seal); font-size: 14px; white-space: nowrap; }
.holder-pips { display: inline-flex; gap: 3px; }
.holder-pips i { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f8dc82, #b97f16 78%); box-shadow: 0 1px 2px rgba(96, 64, 4, 0.45), inset 0 -1px 1px rgba(96, 54, 0, 0.45); }
.holder-pips.pips-lv1 i { background: radial-gradient(circle at 35% 30%, #f6c48b, #a05e24 78%); box-shadow: 0 1px 2px rgba(80, 44, 6, 0.45), inset 0 -1px 1px rgba(80, 40, 4, 0.45); }
.holder-pips.pips-lv2 i { background: radial-gradient(circle at 35% 30%, #ffffff, #8b96a3 78%); box-shadow: 0 1px 2px rgba(40, 52, 64, 0.4), inset 0 -1px 1px rgba(52, 64, 78, 0.45); }
.badge-section-title { font-size: 21px; margin: 1.4em 0 0.2em; }
.badge-section-title:first-child { margin-top: 0.4em; }
.badge-section-note { color: var(--muted); font-size: 15px; margin: 0.2em 0 12px; max-width: 62ch; }
.badge-card.earnable { border-style: dashed; }
.earns-from { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; text-align: left; font-size: 15px; }
.earns-from .ef-label { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.not-held-note { margin: 10px 0 2px; padding: 9px 11px; border-radius: 10px; background: var(--panel2); color: var(--muted); font-size: 14px; font-weight: 600; text-align: left; }

/* ---- Jobs hub ---- */
.jobs-header { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 6px; }
.jobs-header h1 { margin-top: 0; }
.jobs-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; max-width: 520px; }
.jobs-count { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; box-shadow: var(--shadow); }
.jobs-count .num { font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.jobs-count .cap { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.jobs-hub-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 760px) { .jobs-hub-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.hub-card:hover { text-decoration: none; border-color: var(--accent); }
.hub-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hub-card h2 { margin: 0.45em 0 0.3em; font-size: 21px; }
.hub-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.hub-card .hub-go { font-weight: 700; color: var(--accent); }
.subpage-head { margin-bottom: 4px; }
.section-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #06130b; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.count-badge { flex: none; margin-left: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.job-card-top .label { margin-bottom: 0; }
.job-subhead { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.outcome-row { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 15px; }
.outcome-row .stamp-seal { width: 40px; height: 40px; margin: 0; flex: none; }
.outcome-row .stamp-seal svg { width: 18px; height: 18px; }
.vote-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.vote-row .btn { flex: 1; min-width: 130px; }
.refusal { background: var(--danger-soft); border: 1px solid var(--danger); border-radius: 10px; padding: 11px 14px; font-weight: 600; }
.granted { background: var(--ok-soft); border: 1px solid var(--ok); border-radius: 10px; padding: 11px 14px; font-weight: 600; }
.msg { min-height: 1.2em; }

/* ---- Job offers search ---- */
.job-search-panel { margin-bottom: 14px; }
.job-search-panel label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.job-search-row { display: flex; gap: 8px; align-items: stretch; }
.job-search-row input { flex: 1; min-width: 0; }
.job-search-row .btn { flex: none; white-space: nowrap; }
.job-search-panel .hint { margin: 8px 0 0; }
.job-search-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.job-search-chip { appearance: none; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); }
.job-search-chip:hover { border-color: var(--accent); color: var(--accent); }
.job-search-chip.active { background: var(--accent); border-color: var(--accent); color: #06130b; }
.job-search-status { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); min-height: 1.3em; }
.job-pay-banner { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; }
.job-pay-banner .pay-label { font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.job-pay-banner .pay-amount { font-size: 25px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.job-pay-banner .pay-note { font-size: 13px; color: var(--muted); margin-left: auto; text-align: right; }
@media (max-width: 480px) {
  .job-search-row { flex-wrap: wrap; }
  .job-search-row input { flex: 1 1 100%; }
  .job-search-row .btn { flex: 1 1 auto; }
  .job-pay-banner .pay-note { margin-left: 0; text-align: left; }
}

/* ---- Job offers: horizontal layout ----
   One job per row, full width, like the phone view. The old
   multi-across grid squeezed each card into a tall narrow tower
   and the words wrapped down a narrow column. Here the card is
   wide: title and pay share the head row, the facts sit side by
   side in a strip, and the token input and buttons share one
   action row. On a narrow phone the strip and the action row
   stack again, exactly as the phone view already did. */
.jobs-list-h { display: flex; flex-direction: column; gap: 14px; }
.job-card-h .jh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.job-card-h .jh-head-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.job-card-h .jh-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.job-card-h .jh-head-left .job-type { margin: 0; }
.job-card-h .jh-pay { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; flex: none; text-align: right; }
.job-card-h .jh-pay .pay-label { font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.job-card-h .jh-pay .pay-amount { font-size: 25px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.job-card-h .jh-pay .pay-note { font-size: 13px; color: var(--muted); }
.job-card-h .jh-facts { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.job-card-h .jh-fact { flex: 1 1 150px; min-width: 0; }
.job-card-h .jh-fact span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.job-card-h .jh-fact b { font-size: 15px; }
.job-card-h .jh-action { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.job-card-h .jh-token { flex: 1 1 260px; min-width: 0; }
.job-card-h .jh-token input { width: 100%; }
.job-card-h .jh-buttons { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.job-card-h .jh-buttons .btn { min-width: 130px; }
@media (max-width: 640px) {
  .job-card-h .jh-head { flex-direction: column; gap: 8px; }
  .job-card-h .jh-pay { text-align: left; }
  .job-card-h .jh-facts { flex-direction: column; gap: 8px; }
  .job-card-h .jh-action { flex-direction: column; align-items: stretch; }
  .job-card-h .jh-buttons .btn { flex: 1; }
}

/* ---- Loading shimmer: placeholders read as loading, not bare dots ---- */
@keyframes merit-shimmer { 0% { opacity: 0.55; } 50% { opacity: 1; } 100% { opacity: 0.55; } }
.loading { animation: merit-shimmer 1.4s ease-in-out infinite; }

/* ---- Journey strip: the happy path at a glance ---- */
.journey { display: flex; gap: 4px; margin: 18px 0 8px; position: relative; }
.journey-step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; padding: 0 2px; }
.journey-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.journey-step:first-child::before { display: none; }
.journey-num { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.journey-step:first-child .journey-num { background: var(--accent); color: #06130b; }
.journey-label { font-size: 12px; font-weight: 700; line-height: 1.25; color: var(--text); }
.journey-sub { font-size: 11px; line-height: 1.3; color: var(--muted); }
@media (max-width: 640px) {
  .journey { flex-wrap: wrap; gap: 10px 4px; }
  .journey-step { flex: 1 1 30%; }
  .journey-step::before { display: none; }
  .journey-label { font-size: 11px; }
}

/* ---- Balance hero: the sub-account balance, big and first ---- */
.balance-hero { text-align: center; padding: 10px 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.balance-hero-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.balance-hero-num { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-family: var(--mono); margin: 4px 0 2px; }
.balance-hero-sub { font-size: 13px; color: var(--muted); }
.balance-hero-sub .mono { color: var(--text); }
@media (max-width: 640px) { .balance-hero-num { font-size: 34px; } }
.withdraw-hero-btn { width: 100%; margin: 12px 0 4px; font-size: 16px; padding: 12px 18px; }
.success-banner { background: var(--ok-soft); border: 1px solid var(--ok); border-radius: 10px; padding: 11px 14px; font-weight: 600; margin-bottom: 12px; }

/* ---- Next step CTA on the Merit page ---- */
.next-step { margin: 16px 0 4px; }
.next-step-card { display: flex; gap: 14px; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.next-step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #06130b; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.next-step-body { flex: 1; min-width: 0; }
.next-step-label { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.next-step-text { font-weight: 700; font-size: 16px; line-height: 1.35; margin: 2px 0 0; }
.next-step-card .btn { flex: none; white-space: nowrap; }
@media (max-width: 560px) {
  .next-step-card { flex-wrap: wrap; }
  .next-step-card .btn { width: 100%; }
}

/* ---- Stamps, large on the Merit page ---- */
.stamp-grid-large { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.stamp-grid-large .stamp-seal { width: 96px; height: 96px; }
.stamp-grid-large .stamp-seal svg { width: 40px; height: 40px; }
.stamp-grid-large .stamp-badge { padding: 20px 12px 15px; }
.stamp-grid-large .stamp-badge .sk { font-size: 16px; }

/* ---- Gate outcome on job offers: green unlock, plain missing stamp ---- */
.card.gate-open { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), var(--shadow); }
.card.gate-open .acceptBtn { background: var(--ok); color: #06130b; }
.card.gate-closed { border-color: var(--line); }
.gate-need { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-weight: 600; }
.evidence-flag { background: #3a2a00; border: 1px solid #b98a1d; color: #ffd97a; border-radius: 10px; padding: 11px 14px; font-weight: 600; }
/* Evidence content shown inline on the page, in the card that holds
the evidence hash. Long text wraps and scrolls instead of
overflowing the card on a phone. */
.evidenceContent { margin: 6px 0 10px; }
.evidence-text { white-space: pre-wrap; word-break: break-word; background: var(--panel2); border: 1px solid #2a3a52; border-radius: 10px; padding: 11px 14px; font-size: 14px; max-height: 260px; overflow: auto; margin: 0; }
/* Transaction hash line: the shortened hash links to Nearblocks,
   the Copy button takes the full hash, and the next step sits below. */
.tx-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 0; }
.tx-hash-link { font-family: var(--mono); font-size: 13px; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.tx-hash-link:hover { text-decoration: underline; }
.hash-short { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.copy-hash-btn { appearance: none; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); flex: none; }
.copy-hash-btn:hover { border-color: var(--accent); color: var(--accent); }
.tx-next { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
/* Withdraw amount and Max button sit on one row. */
.withdraw-row { display: flex; gap: 8px; align-items: stretch; }
.withdraw-row input { flex: 1; min-width: 0; }
.withdraw-row .btn { flex: none; white-space: nowrap; }
.gate-need b { color: var(--accent); }
