:root {
  --dao-blue: #28567a;
  --dao-blue-dark: #1f435f;
  --dao-blue-deep: #18364e;
  --dao-blue-light: #2c5e86;
  --dao-red: #ff3b38;
  --dao-red-hover: #e63330;
  --dao-green: #5cb75a;
  --foreground: #ffffff;
  --muted-foreground: rgba(255, 255, 255, 0.66);
  --faint-foreground: rgba(255, 255, 255, 0.4);
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(44, 94, 134, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --destructive: #ffaaa8;
  --warning: #ffd37c;
  --success: #8ee38d;
  --font-display: "Inter Tight", Inter, system-ui, sans-serif;
  --font-body: "Inter Tight", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-panel: 0 22px 60px rgba(13, 42, 65, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-red: 0 14px 30px rgba(108, 24, 27, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

body {
  margin: 0;
  background: var(--dao-blue);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.025), transparent 38%), linear-gradient(315deg, rgba(11,43,67,.24), transparent 48%), var(--dao-blue);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(145deg, var(--dao-blue) 0%, var(--dao-blue-dark) 58%, var(--dao-blue) 100%);
}

.site-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  z-index: 40;
  width: min(72rem, calc(100% - 3rem));
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(27, 69, 100, 0.68);
  box-shadow: 0 14px 42px rgba(9,37,58,.2), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  animation: nav-enter .65s cubic-bezier(.22,1,.36,1) both;
}

.header-inner, .wide-inner, .footer-inner {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand span span, .brand .muted { color: var(--muted-foreground); font-weight: 400; }

.dao-mark {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: 0 0 auto;
  border-radius: .45rem;
  background: url("./favicon.png") center / cover no-repeat;
  box-shadow: 0 5px 14px rgba(84,12,15,.26);
}

.dao-mark::before, .dao-mark::after { content: none; }
.dao-mark.mini { width: 1.1rem; height: 1.1rem; border-radius: .25rem; }
.dao-mark.small { width: 1.75rem; height: 1.75rem; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: rgba(255,255,255,.76);
  font-size: .95rem;
  font-weight: 300;
}

.main-nav a, .footer-links a, .token-link, .verify-pill {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.main-nav a:hover, .footer-links a:hover { color: var(--dao-green); }

.token-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-left: 1px solid var(--border);
  padding-left: 1.2rem;
  color: rgba(255,255,255,.66);
  font-size: .75rem;
  white-space: nowrap;
}

.token-link:hover, .verify-pill:hover { color: var(--dao-green); }

.hero-section {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dao-blue) 0%, var(--dao-blue-dark) 100%);
}

.hero-section::before, .hero-section::after { content: ""; position: absolute; pointer-events: none; }

.hero-section::before {
  inset: 0;
  background: linear-gradient(120deg, transparent 0 43%, rgba(255,255,255,.025) 43.1% 43.5%, transparent 43.6% 100%), linear-gradient(300deg, transparent 0 64%, rgba(92,183,90,.035) 64.1% 64.4%, transparent 64.5% 100%);
}

.hero-section::after {
  left: 8%; right: 8%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
}

.grid-backdrop {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  animation: grid-drift 18s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: 8.5rem 1.5rem 6rem;
  text-align: center;
}

.hero-inner > * { animation: fade-in-up .7s cubic-bezier(.22,1,.36,1) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .24s; }

.verify-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  padding: .55rem .9rem;
  color: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
  font-size: .78rem;
  font-weight: 400;
}

.verify-pill:hover { border-color: rgba(92,183,90,.5); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.verify-pill svg:first-child { width: 1rem; height: 1rem; color: var(--dao-green); }
.verify-pill svg:last-child { width: .8rem; height: .8rem; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: 0; }

.hero-inner h1 {
  max-width: 52rem;
  margin: 2rem auto 0;
  font-size: 3.75rem;
  line-height: 1.04;
  font-weight: 400;
}

.hero-inner h1 span, .primary { color: var(--dao-green); }

.pool-card {
  position: relative;
  width: min(100%, 38rem);
  margin: 2.75rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 1rem;
  background: var(--card-strong);
  padding: 2.25rem 2.5rem 2rem;
  box-shadow: var(--shadow-panel);
  isolation: isolate;
  animation-name: fade-in-up, card-float !important;
  animation-duration: .7s, 7s !important;
  animation-delay: .16s, 1s !important;
  animation-timing-function: cubic-bezier(.22,1,.36,1), ease-in-out !important;
  animation-iteration-count: 1, infinite !important;
  animation-fill-mode: both, none !important;
}

.pool-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 46%); }
.pool-strip { position: absolute; inset: 0 0 auto; height: .28rem; background: var(--dao-red); }

.mono-label {
  margin: 0;
  color: rgba(255,255,255,.52);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pool-number { display: flex; align-items: baseline; justify-content: center; gap: .75rem; margin-top: .4rem; }
.pool-number strong { color: #fff; font-family: var(--font-display); font-size: 4.5rem; line-height: 1.08; font-weight: 600; letter-spacing: 0; }
.pool-number span { color: var(--dao-green); font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }

.pool-note { margin: .65rem 0 0; display: flex; align-items: center; justify-content: center; gap: .45rem; color: rgba(255,255,255,.62); font-size: .8rem; }
.pool-note svg { width: .95rem; height: .95rem; color: var(--dao-green); }

.hero-copy, .section-copy, .steps-grid p, .faq-inner details p, .footer-brand p, .disclaimer, .tx-note { color: var(--muted-foreground); line-height: 1.7; }
.hero-copy { max-width: 39rem; margin: 2.25rem auto 0; font-size: 1rem; }

.check-section, .faq-section, .how-section { position: relative; border-bottom: 1px solid var(--border-soft); }
.check-section { background: rgba(31,67,95,.82); }

.check-inner, .faq-inner { width: min(100%, 48rem); margin: 0 auto; padding: 7rem 1.5rem; text-align: center; }
.check-inner h2, .faq-inner h2, .wide-inner h2 { margin-top: .8rem; font-size: 3rem; line-height: 1.12; font-weight: 300; }
.section-copy { max-width: 36rem; margin: 1rem auto 0; font-size: 1rem; }
.section-copy.left { max-width: 42rem; margin-inline: 0; }

.lookup-form {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 2.5rem;
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: rgba(255,255,255,.055);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  text-align: left;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.lookup-form:focus-within { border-color: rgba(92,183,90,.62); background: rgba(255,255,255,.075); transform: translateY(-2px); }
.address-field { min-width: 0; flex: 1; display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; color: var(--faint-foreground); }
.address-field svg { width: 1rem; height: 1rem; flex: 0 0 auto; }

.address-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .84rem;
}

.address-field input::placeholder { color: rgba(255,255,255,.32); }

.primary-button, .secondary-button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .55rem;
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.primary-button { background: var(--dao-red); color: #fff; box-shadow: var(--shadow-red); }
.secondary-button { background: rgba(255,255,255,.06); color: #fff; border-color: var(--border); }
.primary-button:hover, .secondary-button:hover { transform: scale(1.025); }
.primary-button:hover { background: var(--dao-red-hover); }
.secondary-button:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.primary-button:active, .secondary-button:active { transform: scale(.97); }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.quiet-button { margin-top: 1.5rem; border: 0; background: transparent; color: var(--dao-green); font-size: .875rem; }
.form-message { min-height: 1.5rem; margin: 1rem 0 0; color: var(--destructive); font-size: .875rem; }

.how-section { background: var(--dao-blue); }
.how-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(155deg, rgba(255,255,255,.035), transparent 35%); }
.wide-inner { position: relative; padding-top: 7rem; padding-bottom: 7rem; }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-top: 3rem; }

.steps-grid article {
  min-height: 18rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.05);
  padding: 1.8rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}

.steps-grid article:hover { transform: translateY(-7px); background: rgba(255,255,255,.075); border-color: rgba(92,183,90,.38); }

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(92,183,90,.3);
  border-radius: .6rem;
  background: rgba(92,183,90,.1);
  color: var(--dao-green);
  font-size: .8rem;
  font-weight: 600;
}

.steps-grid h3 { margin-top: 1.5rem; font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }
.steps-grid p { margin: .8rem 0 0; font-size: .9rem; }

.faq-section { background: var(--dao-blue-deep); }
.faq-inner { max-width: 58rem; text-align: left; }

.accordion {
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.045);
  padding: 0 1.5rem;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(20px);
}

.accordion details { position: relative; border-bottom: 1px solid var(--border-soft); }
.accordion details:last-child { border-bottom: 0; }

.accordion details::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: -1.5rem;
  width: 3px;
  border-radius: 3px;
  background: var(--dao-green);
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .25s ease, transform .25s ease;
}

.accordion details[open]::before { opacity: 1; transform: scaleY(1); }

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  cursor: pointer;
  color: rgba(255,255,255,.83);
  font-weight: 400;
  transition: color .2s ease;
}

.accordion summary:hover, .accordion details[open] summary { color: #fff; }
.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "";
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  border-right: 2px solid rgba(255,255,255,.42);
  border-bottom: 2px solid rgba(255,255,255,.42);
  transform: rotate(45deg) translateY(-.15rem);
  transition: transform .28s ease, border-color .28s ease;
}

.accordion details[open] summary::after { border-color: var(--dao-green); transform: rotate(225deg) translateY(-.05rem); }

.accordion p {
  margin: -.15rem 0 1.25rem;
  max-width: 48rem;
  border-left: 2px solid var(--dao-green);
  border-radius: .4rem;
  background: rgba(255,255,255,.035);
  padding: 1rem 1.1rem;
  font-size: .9rem;
  animation: faq-open .3s ease both;
}

.site-footer { background: #15344c; }
.footer-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(92,183,90,.6), transparent); }
.footer-inner { padding-top: 4rem; padding-bottom: 3rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.footer-brand { max-width: 26rem; }
.footer-brand p { margin: 1rem 0 0; font-size: .9rem; }
.footer-links { display: flex; gap: 4rem; font-size: .9rem; }
.footer-links a { display: block; margin-top: .6rem; color: var(--muted-foreground); }
.disclaimer { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); font-size: .75rem; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(10,34,51,.62);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  width: min(100%, 38rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(31,67,95,.96);
  box-shadow: 0 30px 80px rgba(8,27,41,.42), inset 0 1px 0 rgba(255,255,255,.06);
  animation: modal-in .32s cubic-bezier(.22,1,.36,1) both;
}

.close-button {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-soft);
  border-radius: .5rem;
  background: rgba(255,255,255,.04);
  color: var(--muted-foreground);
}

.close-button:hover { color: #fff; background: rgba(255,255,255,.09); }
.close-button svg { width: 1rem; height: 1rem; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.result-grid > div { min-width: 0; padding: 2rem 1.5rem 1.5rem; border-right: 1px solid var(--border-soft); background: rgba(255,255,255,.035); }
.result-grid > div:last-child { border-right: 0; }
.result-value { margin: .55rem 0 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; word-break: break-word; }
.result-value em { color: var(--muted-foreground); font-family: var(--font-body); font-size: 1rem; font-style: normal; }

.result-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-soft);
  padding: .9rem 1.5rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .75rem;
  word-break: break-all;
}

.result-address a { color: var(--dao-green); white-space: nowrap; }
.wallet-flow { border-top: 1px solid var(--border-soft); padding: 1.5rem; }
.warning { margin: 0 0 1rem; color: var(--warning); font-size: .875rem; line-height: 1.55; }
.action-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.tx-note { margin: 1rem 0 0; font-size: .75rem; }

.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: grid; gap: .75rem; width: min(22rem, calc(100vw - 2rem)); }
.toast { border: 1px solid var(--border); border-radius: .75rem; background: rgba(31,67,95,.95); padding: .9rem 1rem; box-shadow: var(--shadow-panel); color: #fff; font-size: .875rem; backdrop-filter: blur(18px); animation: toast-in .35s ease both; }
.toast.success { border-color: rgba(92,183,90,.55); }
.toast.error { border-color: rgba(255,59,56,.55); }
.toast small { display: block; margin-top: .25rem; color: var(--muted-foreground); }

.wallet-picker {
  position: absolute;
  inset: 0;
  z-index: 4;
  min-height: 100%;
  padding: 1.4rem;
  background: rgba(31, 67, 95, 0.99);
  overflow-y: auto;
}

.wallet-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-picker-header h3 {
  margin: .35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.wallet-picker-close {
  position: static;
  flex: 0 0 auto;
}

.wallet-picker-copy {
  margin: .8rem 0 1.1rem;
  color: var(--muted-foreground);
  font-size: .88rem;
}

.wallet-options {
  display: grid;
  gap: .65rem;
}

.wallet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .75rem .9rem;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  text-align: left;
}

.wallet-option:hover {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
}

.wallet-option small {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: .68rem;
}

.reveal-ready { opacity: 0; transform: translateY(22px); transition: opacity .65s ease var(--reveal-delay,0ms), transform .65s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes nav-enter { from { opacity: 0; transform: translate(-50%,-20px); } to { opacity: 1; transform: translate(-50%,0); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes grid-drift { from { background-position: 0 0,0 0; } to { background-position: 0 76px,76px 0; } }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 960px) {
  .site-header { width: calc(100% - 2rem); }
  .main-nav { gap: 1.2rem; font-size: .86rem; }
  .token-link { display: none; }
  .hero-inner h1 { font-size: 3rem; }
  .check-inner h2, .faq-inner h2, .wide-inner h2 { font-size: 2.4rem; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps-grid article { min-height: auto; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 5.5rem; }
  .site-header { top: 1rem; width: calc(100% - 2rem); }
  .header-inner { height: 3.6rem; padding-inline: 1rem; }
  .main-nav { gap: .9rem; margin-left: auto; }
  .main-nav a:nth-child(2) { display: none; }
  .brand { font-size: 0; gap: 0; }
  .dao-mark { width: 2rem; height: 2rem; }
  .hero-inner { padding: 7.5rem 1rem 4.5rem; }
  .verify-pill { max-width: 100%; font-size: .7rem; }
  .hero-inner h1 { margin-top: 1.6rem; font-size: 2.15rem; line-height: 1.08; }
  .pool-card { margin-top: 2rem; padding: 1.8rem 1rem 1.5rem; }
  .pool-number strong { font-size: 2.8rem; }
  .pool-number span { font-size: 1.3rem; }
  .hero-copy { margin-top: 1.8rem; font-size: .9rem; }
  .wide-inner, .check-inner, .faq-inner, .footer-inner { padding-top: 5rem; padding-bottom: 5rem; }
  .check-inner h2, .faq-inner h2, .wide-inner h2 { font-size: 2rem; }
  .lookup-form, .result-address, .action-row { flex-direction: column; align-items: stretch; }
  .lookup-form .primary-button, .action-row button { width: 100%; }
  .steps-grid, .result-grid { grid-template-columns: 1fr; }
  .steps-grid article { padding: 1.5rem; }
  .accordion { padding-inline: 1.1rem; }
  .accordion details::before { left: -1.1rem; }
  .accordion summary { font-size: .92rem; }
  .footer-top { flex-direction: column; }
  .footer-links { width: 100%; gap: 2rem; justify-content: space-between; }
  .result-grid > div { border-right: 0; border-bottom: 1px solid var(--border-soft); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The refund result follows the original thedaorefund.com claim flow. */
.modal {
  background: rgba(9, 16, 21, 0.68);
  backdrop-filter: blur(11px) saturate(80%);
  -webkit-backdrop-filter: blur(11px) saturate(80%);
}

.modal-panel {
  width: min(100%, 50rem);
  border: 1px solid #d9d3d3;
  border-radius: 2px;
  background: #fcf9f9;
  color: #1d1a1b;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, Arial, sans-serif;
}

.close-button {
  top: 1.15rem;
  right: 1.15rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7b7474;
}

.close-button:hover {
  background: transparent;
  color: var(--dao-red);
}

.result-grid {
  border-bottom: 1px solid #ded8d8;
  background: #fcf9f9;
}

.result-grid > div {
  min-height: 8.8rem;
  padding: 2rem 2rem 1.65rem;
  border-right: 1px solid #ded8d8;
  background: #fcf9f9;
}

.result-grid > div:last-child {
  border-right: 0;
}

.modal .mono-label,
.flow-label {
  color: #8b8383;
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-value {
  margin-top: .7rem;
  color: #181516;
  font-family: Inter, Arial, sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 500;
}

.result-value.primary {
  color: var(--dao-red);
}

.result-value em {
  color: #7e7676;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.result-address {
  min-height: 3.5rem;
  border-top: 0;
  border-bottom: 1px solid #ded8d8;
  padding: .9rem 2rem;
  color: #8b8383;
  font-family: var(--font-mono);
  font-size: .75rem;
}

.result-address a {
  color: var(--dao-red);
  font-family: Inter, Arial, sans-serif;
  font-size: .82rem;
}

.wallet-flow {
  border-top: 0;
  padding: 0;
  background: #fcf9f9;
}

.wallet-flow .warning {
  display: none;
}

.flow-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  min-height: 6.25rem;
  border-bottom: 1px solid #ded8d8;
  padding: 1.35rem 2rem;
}

.flow-copy {
  min-width: 0;
}

.flow-label {
  margin: 0;
}

.flow-description {
  margin: .55rem 0 0;
  color: #716a6a;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.flow-step .secondary-button,
.flow-step .primary-button {
  min-width: 8.4rem;
  border-radius: 0;
  box-shadow: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
}

.flow-step .secondary-button {
  border: 1px solid #d8d0d0;
  background: #fcf9f9;
  color: #272122;
}

.flow-step .secondary-button:hover {
  border-color: #a89e9e;
  background: #f5eeee;
}

.flow-step .primary-button {
  background: #ffb4b2;
  color: #fff;
}

.flow-step .primary-button:not(:disabled) {
  background: var(--dao-red);
}

.flow-step .primary-button:disabled {
  border: 1px solid #eee6e6;
  background: #fcf9f9;
  color: #aaa1a1;
  opacity: 1;
}

.withdraw-step {
  display: block;
  min-height: 9rem;
  border-bottom: 0;
}

.withdraw-step .primary-button {
  margin-top: 1rem;
}

.wallet-flow .tx-note {
  display: none;
}

@media (max-width: 640px) {
  .modal-panel {
    width: 100%;
  }

  .result-grid > div,
  .result-address,
  .flow-step {
    padding-inline: 1.25rem;
  }

  .result-grid > div {
    min-height: 7rem;
  }

  .result-value {
    font-size: 1.65rem;
  }

  .flow-step {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1rem;
  }

  .flow-step .secondary-button,
  .flow-step .primary-button {
    width: 100%;
  }
}

/* Keep the existing blue modal palette; only the claim-flow layout is changed. */
.modal {
  background: rgba(10, 34, 51, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-panel {
  border-color: var(--border);
  border-radius: 1rem;
  background: rgba(31, 67, 95, 0.96);
  color: var(--foreground);
  box-shadow: 0 30px 80px rgba(8, 27, 41, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.close-button {
  border: 1px solid var(--border-soft);
  border-radius: .5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-foreground);
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.result-grid {
  border-bottom-color: var(--border-soft);
  background: transparent;
}

.result-grid > div {
  border-right-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.035);
}

.modal .mono-label,
.flow-label {
  color: rgba(255, 255, 255, 0.52);
}

.result-value {
  color: #fff;
}

.result-value.primary {
  color: var(--dao-green);
}

.result-value em {
  color: var(--muted-foreground);
}

.result-address {
  border-bottom-color: var(--border-soft);
  color: var(--muted-foreground);
}

.result-address a {
  color: var(--dao-green);
}

.wallet-flow {
  background: transparent;
}

.empty-state {
  border-top: 1px solid var(--border-soft);
  padding: 1.35rem 1.2rem 1.5rem;
  color: var(--muted-foreground);
  font-size: .95rem;
  line-height: 1.5;
}

.flow-step {
  border-bottom-color: var(--border-soft);
}

.flow-description {
  color: var(--muted-foreground);
}

.contract-identity {
  color: var(--dao-green);
  white-space: nowrap;
}

.contract-identity:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.flow-step .secondary-button {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.flow-step .secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.flow-step .primary-button,
.flow-step .primary-button:not(:disabled) {
  border-color: transparent;
  background: var(--dao-red);
  color: #fff;
}

.flow-step .primary-button:disabled {
  border-color: transparent;
  background: var(--dao-red);
  color: #fff;
  opacity: .45;
}

/* Match the compact desktop footprint of the reference refund dialog. */
.modal-panel {
  width: min(100%, 38.75rem);
}

.result-grid > div {
  min-height: 6.5rem;
  padding: 1.2rem 1.2rem 1.05rem;
}

.result-value {
  margin-top: .45rem;
  font-size: 1.65rem;
}

.result-address {
  min-height: 2.7rem;
  padding: .6rem 1.2rem;
}

.flow-step {
  min-height: 4.65rem;
  padding: .8rem 1.2rem;
}

.flow-description {
  margin-top: .3rem;
  font-size: .88rem;
}

.withdraw-step {
  min-height: 6.55rem;
}
