:root {
  --ink: #181918;
  --surface: #20211f;
  --muted: #6e716c;
  --line: #deded8;
  --cream: #f8f7f3;
  --orange: #f7931a;
  --orange-dark: #d76c00;
  --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(248, 247, 243, .92); border-bottom: 1px solid rgba(24, 25, 24, .08); backdrop-filter: blur(15px); }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1220px; height: 76px; margin: auto; padding: 0 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 850; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--orange); color: var(--white); font-size: 22px; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: var(--orange-dark); }
.nav-divider { width: 1px; height: 20px; margin: -2px -7px; background: rgba(24, 25, 24, .18); }
.finder-link { color: var(--orange-dark); }
.finder-intro { display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 70px; max-width: 1120px; margin: auto; padding: 72px 30px 58px; }
.eyebrow, .card-eyebrow { margin: 0; color: var(--orange-dark); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 16px 0 22px; font-size: clamp(58px, 8vw, 92px); line-height: .9; letter-spacing: -.075em; }
h1 span { color: var(--orange-dark); }
.intro-copy > p:last-child { max-width: 640px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.6; }
.tree-icon { width: min(320px, 100%); justify-self: center; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .2)); }
.search-panel { display: grid; grid-template-columns: .74fr 1.26fr; gap: 56px; max-width: 1160px; margin: 0 auto 76px; padding: 38px; border: 1px solid #e7bd77; border-radius: 30px; background: linear-gradient(135deg, #fff7e8, #ffe0a5); }
.search-panel h2, .result-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.06em; line-height: 1; }
.search-panel h2 + p { margin: 18px 0 0; color: #685b4a; line-height: 1.6; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
label { display: grid; gap: 7px; color: #513917; font-size: 12px; font-weight: 800; }
label span em { color: #836d50; font-style: normal; font-weight: 650; }
input[type="text"] { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #ddb76d; border-radius: 12px; outline: none; background: rgba(255, 255, 255, .72); color: var(--ink); font: 600 13px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
input[type="text"]:focus { border-color: var(--orange-dark); box-shadow: 0 0 0 3px rgba(247, 147, 26, .18); }
.remember-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 650; }
.remember-row input { accent-color: var(--orange-dark); }
button { border: 0; cursor: pointer; font: inherit; }
form > button { width: max-content; padding: 13px 17px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 850; }
form > button:hover { background: #383a36; }
.pizza-button { grid-column: 1 / -1; justify-self: start; padding: 3px 0; background: transparent; color: #9b5100; font-size: 12px; font-weight: 800; text-decoration: underline; text-decoration-color: #d99538; text-underline-offset: 3px; }
.pizza-button:hover { background: transparent; color: var(--orange-dark); }
.form-message { grid-column: 1 / -1; min-height: 18px; margin: 0; color: #a04100; font-size: 13px; font-weight: 700; }
.result { max-width: 1220px; margin: auto; padding: 0 30px 110px; scroll-margin-top: 94px; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.summary-confirmed, .summary-pending { display: inline-flex; padding: 9px 12px; border-radius: 999px; font-size: 13px; font-weight: 850; }
.summary-confirmed { background: #d9f2db; color: #19612a; }
.result-txid { display: block; margin-top: 5px; color: #67645f; font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.summary-pending { background: #fff0cf; color: #8b4e00; }
.tree-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 310px minmax(0, 1fr); align-items: center; gap: 30px; padding: 34px; overflow: hidden; border-radius: 30px; background: #20211f; }
.tree-shell::before, .tree-shell::after { position: absolute; top: 50%; width: 19%; height: 2px; background: linear-gradient(90deg, transparent, #f7931a); content: ""; }
.tree-shell::before { left: 23%; }
.tree-shell::after { right: 23%; background: linear-gradient(90deg, #f7931a, transparent); }
.tree-side { position: relative; z-index: 1; min-width: 0; }
.tree-side-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #d6d8d1; }
.tree-side-heading h3 { margin: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.tree-side-heading span { color: #aeb1aa; font-size: 13px; font-weight: 750; }
.tree-list { display: grid; gap: 10px; }
.entry-card { position: relative; padding: 16px; border: 1px solid #4b4d48; border-radius: 16px; background: #292b28; color: var(--white); box-shadow: 0 9px 18px rgba(0, 0, 0, .14); }
.entry-card.is-highlighted { border: 2px solid #ffae43; background: #3a2b14; box-shadow: 0 0 0 4px rgba(247, 147, 26, .14); }
.entry-head { display: flex; justify-content: space-between; gap: 10px; }
.entry-label { color: #ffc464; font-size: 12px; font-weight: 850; }
.entry-meta, .spent { color: #c6c9c2; font-size: 12px; font-weight: 750; }
.spent { color: #ffc464; }
.entry-value { display: block; margin: 8px 0; font-size: 18px; letter-spacing: -.04em; }
.entry-address { display: grid; gap: 3px; margin: 0; color: #aeb1aa; font-size: 11px; }
.entry-address code { color: #f2f3ee; font-size: 12px; }
.expand-button { padding: 10px; border-radius: 11px; background: transparent; color: #ffc464; font-size: 13px; font-weight: 800; text-align: left; }
.expand-button:hover { text-decoration: underline; }
.transaction-card { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 30px 18px; border-radius: 28px; background: linear-gradient(135deg, #ffb244, #e97b00); color: #fff; text-align: center; box-shadow: 0 22px 40px rgba(0, 0, 0, .3); }
.transaction-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 15px; background: rgba(255, 255, 255, .94); color: var(--orange-dark); font-size: 40px; font-weight: 900; }
.card-eyebrow { color: rgba(75, 37, 0, .78); }
.current-txid { max-width: 100%; overflow: hidden; color: #562b00; font-size: 13px; font-weight: 850; text-overflow: ellipsis; }
.status-pill { padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .3); color: #fff; font-size: 12px; font-weight: 850; }
.transaction-count { font-size: 17px; letter-spacing: -.035em; }
.transaction-total { color: #6a3600; font-size: 13px; font-weight: 800; }
.transaction-details { margin-top: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.transaction-details h3 { margin: 0 0 20px; font-size: 21px; letter-spacing: -.04em; }
.transaction-details dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.transaction-details dl div { min-width: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
.transaction-details dt { margin-bottom: 5px; color: var(--orange-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.transaction-details dd { margin: 0; color: #3a3c38; font-size: 14px; font-weight: 700; }
.tree-app-divider { height: 1px; margin: 40px 0 20px; border: 0; background: #e4e4df; }
.tree-app-promo { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 32px; margin-top: 22px; padding: 28px 32px; border-radius: 22px; background: var(--surface); color: var(--white); }
.tree-app-promo img { width: 160px; justify-self: center; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .36)); }
.tree-app-promo h3 { margin: 10px 0 12px; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.055em; line-height: 1; }
.tree-app-promo p:not(.eyebrow) { max-width: 620px; margin: 0; color: #c6c9c2; line-height: 1.6; }
.app-store-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 14px; border-radius: 11px; background: var(--orange); color: #2c1b05; font-size: 13px; font-weight: 850; }
.app-store-button span { font-size: 18px; line-height: 1; }
.app-store-button[aria-disabled="true"] { cursor: default; pointer-events: none; }
footer { display: flex; align-items: center; justify-content: space-between; max-width: 1220px; margin: auto; padding: 28px 30px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .brand { color: var(--ink); font-size: 16px; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .finder-intro { grid-template-columns: 1fr 260px; gap: 24px; }
  .tree-shell { grid-template-columns: 1fr; gap: 24px; }
  .tree-shell::before, .tree-shell::after { display: none; }
  .transaction-card { order: -1; }
  .tree-app-promo { grid-template-columns: 140px 1fr; }
  .transaction-details dl { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav { height: auto; min-height: 76px; padding: 15px 20px; align-items: flex-start; gap: 18px; }
  .nav-links { justify-content: flex-end; flex-wrap: wrap; gap: 12px 16px; font-size: 13px; }
  .nav-divider { display: none; }
  .finder-link { color: var(--orange-dark); }
  .finder-intro { grid-template-columns: 1fr; padding: 55px 24px 35px; }
  .tree-icon { width: 230px; order: -1; }
  h1 { font-size: 58px; }
  .intro-copy > p:last-child { font-size: 18px; }
  .search-panel { display: block; margin: 0 24px 55px; padding: 25px; }
  .search-panel h2 + p { margin-bottom: 25px; }
  form { grid-template-columns: 1fr; }
  .result { padding: 0 16px 75px; }
  .result-heading { align-items: start; flex-direction: column; }
  .tree-shell { padding: 18px; border-radius: 21px; }
  .transaction-details { padding: 20px; }
  .transaction-details dl { grid-template-columns: 1fr; }
  .tree-app-promo { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
  .tree-app-promo img { width: 130px; justify-self: start; }
  footer { align-items: flex-start; flex-direction: column; gap: 14px; padding: 24px; }
}
