/* ======================================================================
   PadQuiver — dark fintech design system
   ====================================================================== */

/* Guard the HTML `hidden` attribute against classes that set display */
[hidden] { display: none !important; }

:root {
  /* surfaces */
  --bg: #070a09;
  --bg-2: #0a0f0c;
  --surface: #0e1411;
  --surface-2: #131b16;
  --surface-3: #18211b;
  --hover: rgba(255, 255, 255, 0.04);

  /* borders */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-focus: rgba(77, 255, 171, 0.55);

  /* text */
  --text: #e9f2ec;
  --text-2: #aab6af;
  --muted: #7c8a82;

  /* brand — PadQuiver lime */
  --green: #C9F800;
  --green-2: #DBFF3D;
  --green-deep: #A6CC00;
  --green-soft: rgba(201, 248, 0, 0.12);
  --green-soft-2: rgba(201, 248, 0, 0.22);
  --green-ring: rgba(201, 248, 0, 0.35);

  /* status */
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.13);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.12);
  --blue: #56b6ff;

  /* shape */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px var(--green-ring), 0 12px 44px -14px rgba(201, 248, 0, 0.5);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(201, 248, 0, 0.10), transparent 60%),
    radial-gradient(700px 460px at 8% 4%, rgba(45, 130, 90, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.86em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ok { color: var(--green-2); }
.grad-text {
  background: linear-gradient(96deg, var(--green-2), var(--green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico { flex: 0 0 auto; }

/* ========================= TOPBAR ========================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(14px, 4vw, 26px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { display: block; width: 32px; height: 32px; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 10px rgba(201, 248, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__accent { color: var(--green-2); }

.nav { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.nav__item {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  transition: color .18s, background .18s;
}
.nav__item:hover { color: var(--text); }
.nav__item.is-active { background: var(--green); color: #0a0f00; }
.nav__item .ico { stroke-width: 1.9; }

.topbar__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ========================= BUTTONS ========================= */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 14px; line-height: 1;
  padding: 11px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-btn); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .18s, border-color .18s, box-shadow .18s, opacity .18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-focus); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green-ring); }

.btn--primary {
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #0a0f00; border-color: transparent; font-weight: 750;
  box-shadow: 0 8px 26px -10px rgba(201, 248, 0, 0.65);
}
.btn--primary:hover { box-shadow: 0 12px 34px -10px rgba(201, 248, 0, 0.8); border-color: transparent; }
.btn--ghost { background: var(--surface); }
.btn--wallet { background: var(--surface-2); }
.btn--wallet.is-connected { background: var(--green-soft); border-color: var(--green-ring); color: var(--green-2); }
.btn--lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r); }
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn__label { visibility: hidden; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 17px; height: 17px;
  border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.btn { position: relative; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--green-2); border-color: var(--green-ring); }

/* ========================= CHIPS ========================= */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 13px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: border-color .18s, color .18s;
}
.chip--net.is-ok { color: var(--green-2); border-color: var(--green-ring); }
.chip--net.is-wrong { color: var(--amber); border-color: rgba(255, 181, 71, 0.4); background: var(--amber-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px transparent; }
.chip--net.is-ok .dot { background: var(--green); box-shadow: 0 0 10px 1px var(--green); }
.chip--net.is-wrong .dot { background: var(--amber); box-shadow: 0 0 10px 1px var(--amber); }

/* ========================= LAYOUT ========================= */
.main { max-width: var(--maxw); margin: 0 auto; padding: clamp(18px, 3vw, 34px) clamp(14px, 4vw, 26px) 60px; }
.view[hidden] { display: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 40px 2px 18px; }
.section-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.section-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ========================= BANNER ========================= */
.banner {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: var(--r); margin-bottom: 22px;
  border: 1px solid var(--line);
}
.banner--warn { background: var(--amber-soft); border-color: rgba(255, 181, 71, 0.35); color: #ffdca8; }
.banner--warn .ico { color: var(--amber); }
.banner__body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.banner__body strong { color: #ffe6c2; }
.banner code { background: rgba(0, 0, 0, 0.3); padding: 1px 6px; border-radius: 5px; }

/* ========================= HERO ========================= */
.masthead {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 20px; box-shadow: 0 10px 44px rgba(201, 248, 0, .07);
}

.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  padding: clamp(26px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.hero__glow {
  position: absolute; width: 520px; height: 520px; right: -140px; top: -220px;
  background: radial-gradient(circle, rgba(201, 248, 0, 0.22), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero__content { position: relative; max-width: 720px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--green-2);
  background: var(--green-soft); border: 1px solid var(--green-ring);
  padding: 6px 12px; border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
.hero__title { font-size: clamp(28px, 5.5vw, 50px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 850; margin: 18px 0 14px; }
.hero__sub { font-size: clamp(15px, 2vw, 18px); color: var(--text-2); max-width: 600px; margin: 0 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prop { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.015); }
.prop__ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green-2); flex: 0 0 auto; }
.prop b { display: block; font-size: 14.5px; }
.prop small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* ========================= GRID / CARDS ========================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.tcard {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .16s ease, border-color .18s, box-shadow .18s;
  font: inherit; color: inherit;
}
.tcard:hover { transform: translateY(-3px); border-color: var(--green-ring); box-shadow: var(--glow); }
.tcard:focus-visible { outline: none; border-color: var(--green-ring); box-shadow: 0 0 0 3px var(--green-ring); }
.tcard__top { display: flex; align-items: center; gap: 12px; }
.tcard__logo {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.tcard__id { min-width: 0; }
.tcard__name { font-weight: 750; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard__sym { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.tcard__reward {
  margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--green-2);
  background: var(--green-soft); border: 1px solid var(--green-ring);
  padding: 5px 9px; border-radius: 999px;
}
.tcard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; }
.tcard__meta div { min-width: 0; }
.tcard__meta dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.tcard__meta dd { margin: 2px 0 0; font-size: 13px; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard__go { position: absolute; top: 16px; right: 16px; color: var(--muted); opacity: 0; transition: opacity .18s; }
.tcard:hover .tcard__go { opacity: 1; color: var(--green-2); }

/* skeleton */
.skel-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.skel { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
.skel-row { display: flex; align-items: center; gap: 12px; }
.skel-logo { width: 46px; height: 46px; border-radius: 13px; }
.skel-line { height: 12px; }

/* empty / error */
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.empty__art { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); }
.empty h3 { margin: 0 0 6px; font-size: 19px; }
.empty p { margin: 0 0 20px; color: var(--muted); }

.error-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--red-soft); border: 1px solid rgba(255, 107, 107, 0.3); }
.error-box .ico { color: var(--red); flex: 0 0 auto; }
.error-box strong { display: block; }
.error-box span { color: var(--text-2); font-size: 13px; word-break: break-word; }
.error-box .btn { margin-left: auto; flex: 0 0 auto; }

/* ========================= CREATE ========================= */
.create-layout { display: grid; grid-template-columns: 1fr minmax(280px, 340px); gap: 20px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.form-card { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 20px; }
.card__head { display: flex; flex-direction: column; gap: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 8px; }
.field__hint { color: var(--muted); font-size: 12px; }
.tag-info { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 2px 7px; border-radius: 6px; }

input[type="text"] {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder { color: #5c6a62; }
input[type="text"]:focus { outline: none; border-color: var(--line-focus); box-shadow: 0 0 0 3px var(--green-ring); background: var(--surface); }
input.is-invalid { border-color: rgba(255, 107, 107, 0.6); box-shadow: 0 0 0 3px var(--red-soft); }

.input-suffix { position: relative; }
.input-suffix input { padding-right: 92px; }
.input-suffix__tag { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 4px 9px; border-radius: 7px; pointer-events: none; }

.segmented { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px; }
.segmented__opt { flex: 1; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--text-2); background: transparent; border: 0; border-radius: 7px; padding: 9px 6px; cursor: pointer; transition: background .16s, color .16s; }
.segmented__opt:hover { color: var(--text); }
.segmented__opt.is-active { background: var(--green-soft); color: var(--green-2); box-shadow: inset 0 0 0 1px var(--green-ring); }
.segmented__opt.is-soon { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.segmented__opt:disabled { opacity: .5; cursor: not-allowed; }
.segmented__opt:disabled:hover { color: var(--text-2); }

/* Custom reward token live validation feedback */
.reward-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.reward-check.is-pending { border-color: rgba(86, 182, 255, 0.4); background: rgba(86, 182, 255, 0.08); color: #b9e0ff; }
.reward-check.is-ok { border-color: var(--green-ring); background: var(--green-soft); color: #cdeedb; }
.reward-check.is-error { border-color: rgba(255, 107, 107, 0.4); background: var(--red-soft); color: #ffc9c9; }
.reward-check__ic { flex: 0 0 auto; font-weight: 800; display: inline-flex; }
.reward-check span:last-child { word-break: break-word; }
.reward-check .spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: 0 0 auto; }

/* "Soon" badge */
.soon-tag {
  font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
  color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(255, 181, 71, 0.35);
  padding: 2px 5px; border-radius: 5px; white-space: nowrap; flex: 0 0 auto;
}

/* Tokenized stocks — display-only "soon" cards */
.stock-soon-wrap { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.stock-soon-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stock-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.stock-card {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-2);
  opacity: .72; cursor: not-allowed; user-select: none;
}
.stock-card__id { display: flex; flex-direction: column; min-width: 0; }
.stock-card__id b { font-size: 13px; font-weight: 750; }
.stock-card__id span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-card .soon-tag { margin-left: auto; }

.fee-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fee-opt {
  cursor: pointer; text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2);
  padding: 12px; display: flex; flex-direction: column; gap: 3px; transition: border-color .16s, background .16s, box-shadow .16s;
}
.fee-opt:hover { border-color: var(--line-focus); }
.fee-opt.is-active { border-color: var(--green-ring); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-ring); }
.fee-opt__pct { font-weight: 800; font-size: 17px; }
.fee-opt.is-active .fee-opt__pct { color: var(--green-2); }
.fee-opt__note { font-size: 11px; color: var(--muted); }

.reward-tiers { display: grid; grid-template-columns: 1fr; gap: 10px; }
.reward-opt {
  cursor: pointer; text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; transition: border-color .16s, background .16s, box-shadow .16s;
}
.reward-opt:hover { border-color: var(--line-focus); }
.reward-opt.is-active { border-color: var(--green-ring); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-ring); }
.reward-opt__title { font-weight: 750; font-size: 14.5px; }
.reward-opt.is-active .reward-opt__title { color: var(--green-2); }
.reward-opt__note { font-size: 11.5px; color: var(--muted); }

.note { display: flex; gap: 11px; padding: 14px; border-radius: var(--r); background: var(--green-soft); border: 1px solid var(--green-ring); }
.note .ico { color: var(--green-2); flex: 0 0 auto; margin-top: 1px; }
.note p { margin: 0; font-size: 13px; color: #cdeedb; }
.note code { background: rgba(0, 0, 0, 0.3); padding: 1px 5px; border-radius: 5px; }

.form-status { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.form-status[hidden] { display: none; }
.form-status.is-pending { border-color: rgba(86, 182, 255, 0.4); background: rgba(86, 182, 255, 0.08); color: #b9e0ff; }
.form-status.is-error { border-color: rgba(255, 107, 107, 0.4); background: var(--red-soft); color: #ffc9c9; }
.form-status.is-ok { border-color: var(--green-ring); background: var(--green-soft); color: #cdeedb; }
.form-status .spin { width: 15px; height: 15px; border-radius: 50%; border: 2.3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: 0 0 auto; }

.fee-line { text-align: center; font-size: 12px; color: var(--muted); margin: -6px 0 0; }

/* summary */
.summary-card { padding: 22px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.summary__title { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.summary__token { display: flex; align-items: center; gap: 12px; }
.summary__logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green-deep)); }
.summary__token b { font-size: 16px; }
.summary__list { margin: 0; display: flex; flex-direction: column; gap: 0; }
.summary__list > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary__list > div:last-child { border-bottom: 0; }
.summary__list dt { color: var(--muted); font-size: 13px; }
.summary__list dd { margin: 0; font-weight: 650; font-size: 13.5px; }
.summary__flow { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.flowstep { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.flowstep span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); flex: 0 0 auto; }

/* result */
.result-card { margin-top: 22px; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border-color: var(--green-ring); box-shadow: var(--glow); }
.result__badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green)); margin-bottom: 6px; }
.result-card h3 { margin: 0; font-size: 22px; }
.result__addr { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); max-width: 100%; }
.result__addr code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ========================= DRAWER (detail) ========================= */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2, 5, 4, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s ease; }
.drawer-backdrop[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(520px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  animation: slideIn .28s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.drawer[hidden] { display: none; }
.drawer__scroll { overflow-y: auto; padding: 22px clamp(18px, 3vw, 26px) 30px; }

.dh { display: flex; align-items: flex-start; gap: 14px; }
.dh__logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 21px; color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green-deep)); flex: 0 0 auto; }
.dh__id { flex: 1; min-width: 0; }
.dh__name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.dh__sym { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.dh__close { margin-left: auto; }
.dh__addr { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.dh__addr a { color: var(--green-2); }

.reward-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 6px 11px; border-radius: 999px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.stat { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.stat--accent { border-color: var(--green-ring); background: var(--green-soft); }
.stat__label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat--accent .stat__label { color: var(--green-2); }
.stat__val { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-top: 6px; word-break: break-word; }
.stat__val small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat__sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat__val .link { color: var(--green-2); cursor: pointer; font-size: 13px; font-weight: 600; }

.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: 16px; margin-bottom: 14px; }
.panel__title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; }

.trade-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; margin-bottom: 14px; }
.trade-tab { flex: 1; font: inherit; font-weight: 700; font-size: 14px; color: var(--text-2); background: transparent; border: 0; border-radius: 7px; padding: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .16s, color .16s; }
.trade-tab.is-active[data-side="buy"] { background: var(--green-soft); color: var(--green-2); }
.trade-tab.is-active[data-side="sell"] { background: var(--red-soft); color: var(--red); }

.amount { position: relative; margin-bottom: 12px; }
.amount input { padding-right: 108px; font-size: 17px; font-family: var(--mono); }
.amount__right { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.amount__unit { font-size: 13px; font-weight: 700; color: var(--text-2); }
.amount__max { font-size: 11px; font-weight: 700; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.amount__bal { font-size: 12px; color: var(--muted); margin: -4px 2px 12px; display: flex; justify-content: space-between; }

.dual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.dist-all { margin-top: 12px; }
.harvest-note { display: flex; gap: 9px; font-size: 12px; color: var(--text-2); margin-top: 12px; padding: 11px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.harvest-note .ico { color: var(--green-2); flex: 0 0 auto; }
.harvest-note b { color: var(--green-2); }

.drawer .form-status { margin-top: 12px; }

.dh-skel { display: flex; flex-direction: column; gap: 16px; }

/* ========================= TOASTS ========================= */
.toasts { position: fixed; z-index: 90; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface-3); box-shadow: var(--shadow-lg); color: var(--text);
  animation: toastIn .28s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-out { animation: toastOut .25s forwards; }
.toast__ic { flex: 0 0 auto; margin-top: 1px; }
.toast--pending { border-color: rgba(86, 182, 255, 0.4); } .toast--pending .toast__ic { color: var(--blue); }
.toast--ok { border-color: var(--green-ring); } .toast--ok .toast__ic { color: var(--green-2); }
.toast--error { border-color: rgba(255, 107, 107, 0.5); } .toast--error .toast__ic { color: var(--red); }
.toast__body { font-size: 13.5px; min-width: 0; }
.toast__body b { display: block; margin-bottom: 1px; }
.toast__body span { color: var(--text-2); word-break: break-word; }
.toast__body a { color: var(--green-2); }
.toast__spin { width: 16px; height: 16px; border-radius: 50%; border: 2.3px solid var(--blue); border-right-color: transparent; animation: spin .7s linear infinite; }
.toast__x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; flex: 0 0 auto; }
.toast__x:hover { color: var(--text); }

/* ========================= FOOTER ========================= */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 26px clamp(14px, 4vw, 26px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-2); }

/* ========================= ANIM ========================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,248,0,.5); } 70% { box-shadow: 0 0 0 8px rgba(201,248,0,0); } 100% { box-shadow: 0 0 0 0 rgba(201,248,0,0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastIn { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }
@keyframes riseIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.rise { animation: riseIn .4s ease both; }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 900px) {
  .create-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; order: -1; }
  .hero__props { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 55; box-shadow: var(--shadow-lg); }
  .nav__item span { display: none; }
  .nav__item { padding: 11px 16px; }
  .brand__name { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .fee-tiers { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
  .main { padding-bottom: 90px; }
  .toasts { bottom: 78px; }
}
@media (max-width: 420px) {
  .connect-hide-sm { display: none; }
  .hero__cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
