:root {
  --wallet-ink: #262626;
  --wallet-muted: #707070;
  --wallet-line: #ececec;
  --wallet-soft: #f7f7f5;
  --wallet-orange: #f48120;
  --wallet-orange-deep: #bd4818;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body.wallet-sale-page {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--wallet-ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wallet-sale-page button,
.wallet-sale-page input,
.wallet-sale-page select,
.wallet-sale-page textarea { font: inherit; }

.wallet-sale-page button,
.wallet-sale-page a { -webkit-tap-highlight-color: transparent; }

.wallet-domain-page { overflow: hidden; background: #fff; }

.wallet-nav {
  width: min(1100px, calc(100% - 40px));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wallet-nav > div { display: flex; align-items: center; gap: 10px; }

.wallet-wordmark,
.domain-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  letter-spacing: -.04em;
  font-weight: 750;
  text-decoration: none;
}

.wallet-wordmark { min-width: 0; font-size: 17px; }
.wallet-wordmark img,
.domain-card-brand img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }

.wallet-mark {
  width: 28px;
  height: 18px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--wallet-orange);
}

.wallet-mark::before,
.wallet-mark::after { content: ""; position: absolute; background: currentColor; }
.wallet-mark::before { width: 23px; height: 8px; left: 2px; bottom: 1px; border-radius: 10px 10px 4px 4px; }
.wallet-mark::after { width: 13px; height: 13px; left: 7px; bottom: 4px; border-radius: 50%; box-shadow: -7px 5px 0 -2px currentColor, 9px 5px 0 -3px currentColor; }
.wallet-mark.dark { color: #35180c; }

.wallet-back,
.wallet-language {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #303030;
  border: 1px solid var(--wallet-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wallet-back { padding: 0 17px; }
.wallet-language { width: 40px; padding: 0; }
.wallet-back:hover,
.wallet-language:hover { transform: translateY(-2px); border-color: #d2d2d2; box-shadow: 0 8px 24px rgba(0,0,0,.07); }

.wallet-hero {
  width: min(980px, calc(100% - 40px));
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  padding: clamp(55px, 8vh, 90px) 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(62px, 8vw, 94px);
}

.domain-card-wrap { width: min(720px, 92%); }
.domain-card-scene { width: 100%; aspect-ratio: 1.76; perspective: 1400px; }
.domain-card-float { width: 100%; height: 100%; transform-style: preserve-3d; animation: wallet-card-float 4.2s ease-in-out infinite; }
.domain-card-orbit { width: 100%; height: 100%; position: relative; cursor: pointer; transform-style: preserve-3d; will-change: transform; animation: wallet-card-orbit 22s linear infinite; }
.domain-card-scene:hover .domain-card-orbit,
.domain-card-orbit.is-paused { animation-play-state: paused; }

.domain-card-depth {
  position: absolute;
  inset: 3px 4px 3px 1px;
  border: 1px solid rgba(119, 40, 10, .28);
  border-radius: clamp(16px, 2.4vw, 24px);
  background: linear-gradient(90deg, #a53a12 0, #d6531a 45%, #f17b32 100%);
  transform: translate3d(-4px, 1px, -5px);
  box-shadow: -3px 2px 8px rgba(96, 31, 8, .18);
}

.domain-card-face {
  isolation: isolate;
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: clamp(25px, 4.3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: clamp(16px, 2.4vw, 24px);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 38px 75px -34px rgba(35,25,18,.48), inset 0 1px 1px #fff;
}

.domain-card-front {
  color: #2a160d;
  background: radial-gradient(ellipse at 18% 15%, rgba(255,192,128,.68), transparent 31%), radial-gradient(ellipse at 75% 84%, rgba(255,190,121,.34), transparent 34%), linear-gradient(133deg, #e96521 0%, #f88135 31%, #ef6c25 58%, #ff974e 100%);
  transform: rotateY(0deg) translateZ(2px);
}

.domain-card-front::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: -42%;
  opacity: .74;
  background: linear-gradient(116deg, transparent 38%, rgba(255,211,158,.2) 43%, rgba(255,236,201,.95) 48%, rgba(255,195,121,.26) 53%, transparent 59%);
  filter: blur(2px);
  transform: rotate(-12deg) translate(6%, 1%);
  animation: wallet-foil-sweep 6.6s ease-in-out infinite;
}

.domain-card-front::after {
  content: "";
  z-index: -2;
  position: absolute;
  inset: 0;
  opacity: .38;
  background: repeating-linear-gradient(168deg, rgba(255,255,255,.15) 0 1px, transparent 1px 7px), linear-gradient(180deg, rgba(255,255,255,.2), transparent 26%);
  mix-blend-mode: soft-light;
}

.domain-card-back {
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #351609;
  text-align: center;
  background: radial-gradient(circle at 72% 22%, #ffb06d 0, transparent 26%), radial-gradient(circle at 22% 82%, #a9360c 0, transparent 38%), linear-gradient(135deg, #ff7a2d, #dc4e12 53%, #f9792b);
  transform: rotateY(180deg) translateZ(2px);
}

.domain-card-back .back-mark { color: #371408; transform: scale(3.8); opacity: .45; }
.domain-card-back strong { margin-top: 34px; font-size: clamp(24px, 4.5vw, 44px); letter-spacing: -.045em; }
.domain-card-back small { font: 700 clamp(7px, .9vw, 10px)/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .18em; opacity: .65; }

.domain-card-top,
.domain-card-bottom { z-index: 2; position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; transform: translateZ(8px); }
.domain-card-brand { color: rgba(42,20,10,.8); font-size: clamp(11px, 1.5vw, 14px); text-shadow: 0 1px rgba(255,184,115,.48); }
.domain-card-edition,
.domain-card-bottom span,
.domain-card-bottom strong { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; text-transform: uppercase; }
.domain-card-edition,
.domain-card-bottom span { color: rgba(46,21,9,.66); letter-spacing: .15em; font-size: clamp(7px, .9vw, 9px); font-weight: 700; }
.domain-card-name { z-index: 2; position: relative; margin: -.08em 0; overflow: hidden; color: rgba(45,20,9,.87); text-align: center; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -.065em; font-size: clamp(32px, 7vw, 64px); font-weight: 690; line-height: 1.12; text-shadow: 0 -1px 1px rgba(82,23,4,.42), 0 1px 1px rgba(255,194,126,.5); transform: translateZ(11px); }
.domain-card-bottom > div { display: grid; gap: 7px; }
.domain-card-bottom strong { color: rgba(42,19,9,.8); letter-spacing: .06em; font-size: clamp(8px, 1vw, 10px); line-height: 1; }
.domain-card-expiry { text-align: right; }

.wallet-sale-copy { max-width: 620px; text-align: center; }
.wallet-available { display: inline-flex; align-items: center; gap: 8px; color: #696969; font-size: 11px; font-weight: 750; letter-spacing: .16em; }
.wallet-available i { width: 7px; height: 7px; border-radius: 50%; background: #29a966; box-shadow: 0 0 0 5px rgba(41,169,102,.1); }
.wallet-sale-copy h1 { margin: 17px 0 0; overflow-wrap: anywhere; color: #292929; letter-spacing: -.055em; font-size: clamp(48px, 7vw, 72px); font-weight: 550; line-height: .98; }
.wallet-sale-copy p { max-width: 540px; margin: 21px auto 0; color: var(--wallet-muted); font-size: 17px; line-height: 1.65; text-wrap: balance; }
.wallet-price { display: block; margin-top: 18px; color: #1f1f1f; font-size: clamp(19px, 2.8vw, 27px); font-weight: 700; }
.wallet-inquiry-button,
.wallet-outline-button { border-radius: 999px; cursor: pointer; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.wallet-inquiry-button { min-height: 48px; margin-top: 28px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; border: 1px solid #171717; background: #171717; font-size: 14px; }
.wallet-inquiry-button span { font-size: 20px; font-weight: 400; line-height: 1; }
.wallet-inquiry-button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.wallet-detail-link { width: max-content; margin: 18px auto 0; display: block; color: #777; font-size: 13px; text-decoration: none; }

.wallet-details { padding: clamp(76px, 10vw, 128px) max(20px, calc((100% - 1100px) / 2)); background: var(--wallet-soft); border-top: 1px solid #efefec; }
.wallet-details > header { max-width: 620px; margin-bottom: 42px; }
.wallet-details > header span,
.wallet-card-index { color: var(--wallet-orange); font: 750 10px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .17em; }
.wallet-details > header h2 { margin: 12px 0 8px; color: #222; letter-spacing: -.04em; font-size: clamp(34px, 5vw, 52px); font-weight: 600; }
.wallet-details > header p { margin: 0; color: #777; font-size: 15px; line-height: 1.7; }
.wallet-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: stretch; }
.wallet-detail-grid > article { min-width: 0; padding: clamp(25px, 3vw, 34px); border: 1px solid #e5e5e1; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px -42px rgba(0,0,0,.3); }
.wallet-detail-grid h3 { margin: 8px 0 28px; letter-spacing: -.025em; font-size: 23px; }
.wallet-facts-card { grid-row: span 2; }
.wallet-facts-card dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.wallet-facts-card dl div { min-width: 0; padding: 18px 0; border-top: 1px solid #ededeb; }
.wallet-facts-card dt { margin-bottom: 8px; color: #929292; font-size: 12px; }
.wallet-facts-card dd { margin: 0; overflow-wrap: anywhere; color: #2d2d2d; font-size: 15px; font-weight: 700; }
.wallet-owner-profile { display: flex; align-items: center; gap: 16px; }
.wallet-owner-profile > img,
.wallet-owner-profile > span { width: 62px; height: 62px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #f8e1ce; color: #8d3b14; font-size: 24px; font-weight: 800; }
.wallet-owner-profile div { min-width: 0; display: grid; gap: 2px; }
.wallet-owner-profile small { color: #9a9a9a; font: 700 9px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
.wallet-owner-profile b,
.wallet-owner-profile em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-owner-profile b { font-size: 17px; }
.wallet-owner-profile em { color: #888; font-size: 12px; font-style: normal; }
.wallet-owner-card > p { margin: 22px 0; color: #777; font-size: 14px; line-height: 1.75; }
.wallet-outline-button { min-height: 42px; padding: 0 17px; color: #292929; border: 1px solid #dcdcdc; background: #fff; }
.wallet-outline-button:hover { transform: translateY(-2px); border-color: #aaa; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.wallet-contact-list { display: grid; gap: 10px; }
.wallet-contact-item { min-width: 0; padding: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid #ececea; border-radius: 14px; }
.wallet-contact-item > i { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #f5f5f2; font-style: normal; }
.wallet-contact-item > i svg,
.wallet-contact-item > i img { width: 19px; height: 19px; display: block; }
.wallet-contact-item > span { min-width: 0; flex: 1; display: grid; gap: 1px; }
.wallet-contact-item small { color: #999; font-size: 10px; }
.wallet-contact-item b { overflow: hidden; color: #353535; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-contact-item > a,
.wallet-contact-item > button { flex: 0 0 auto; color: #555; border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: none; }
.wallet-contact-item > img { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; }
.wallet-no-contact { margin: 0; color: #888; font-size: 14px; line-height: 1.7; }

.wallet-more-domains { margin-top: 30px; padding: clamp(24px, 3vw, 34px) 0 0; border-top: 1px solid #e4e4e0; overflow: hidden; }
.wallet-more-domains > header { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.wallet-more-domains > header div { display: grid; gap: 7px; }
.wallet-more-domains > header span { color: var(--wallet-orange); font: 750 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .17em; }
.wallet-more-domains > header h3 { margin: 0; color: #242424; letter-spacing: -.035em; font-size: clamp(22px, 3vw, 30px); }
.wallet-more-domains > header a { color: #555; font-size: 12px; font-weight: 750; text-decoration: none; }
.wallet-domain-marquee { position: relative; width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.wallet-domain-marquee::before,
.wallet-domain-marquee::after { content: ""; z-index: 2; position: absolute; top: 0; bottom: 0; width: 38px; pointer-events: none; }
.wallet-domain-marquee::before { left: 0; background: linear-gradient(90deg, var(--wallet-soft), transparent); }
.wallet-domain-marquee::after { right: 0; background: linear-gradient(270deg, var(--wallet-soft), transparent); }
.wallet-domain-track { width: max-content; display: flex; animation: wallet-domain-marquee 32s linear infinite; will-change: transform; }
.wallet-domain-marquee:hover .wallet-domain-track,
.wallet-domain-marquee:focus-within .wallet-domain-track { animation-play-state: paused; }
.wallet-domain-set { display: flex; gap: 12px; padding-right: 12px; }
.wallet-domain-set > a { width: clamp(250px, 28vw, 340px); min-height: 92px; padding: 17px 18px; display: grid; grid-template-columns: minmax(0,1fr) auto 22px; align-items: center; gap: 14px; color: #292929; border: 1px solid #e2e2de; border-radius: 17px; background: #fff; box-shadow: 0 14px 34px -30px rgba(0,0,0,.35); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.wallet-domain-set > a:hover { z-index: 1; border-color: #f1a36f; transform: translateY(-3px); box-shadow: 0 18px 38px -28px rgba(122,55,16,.34); }
.wallet-domain-set > a > span { min-width: 0; display: grid; gap: 5px; }
.wallet-domain-set strong { overflow: hidden; font-size: 17px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.wallet-domain-set small { color: #999; font: 700 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; }
.wallet-domain-set > a > b { color: var(--wallet-orange-deep); font-size: 12px; white-space: nowrap; }
.wallet-domain-set > a > i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f8eee7; color: #9f4218; font-size: 12px; font-style: normal; }

.wallet-footer { min-height: 96px; padding: 24px max(20px, calc((100% - 1100px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #8b8b8b; border-top: 1px solid #efefef; background: #fff; font-size: 12px; }
.wallet-footer a { color: inherit; text-decoration: none; }
.wallet-footer a:hover { color: #333; }

.domain-inquiry-modal { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; color: #272727; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.domain-inquiry-modal::backdrop { background: rgba(18,18,18,.52); backdrop-filter: blur(7px); }
.domain-inquiry-modal form { padding: clamp(24px, 4vw, 38px); }
.domain-inquiry-modal header { margin-bottom: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.domain-inquiry-modal header span { color: var(--wallet-orange); font: 750 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .17em; }
.domain-inquiry-modal h2 { margin: 8px 0 5px; letter-spacing: -.035em; font-size: 30px; }
.domain-inquiry-modal header p { margin: 0; color: #888; font-size: 13px; }
.domain-inquiry-modal header button { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #555; border: 1px solid #e8e8e8; border-radius: 50%; background: #fff; cursor: pointer; font-size: 20px; }
.domain-inquiry-fields { display: grid; gap: 15px; }
.domain-inquiry-fields > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.domain-inquiry-fields label { display: grid; gap: 7px; color: #595959; font-size: 12px; font-weight: 700; }
.domain-inquiry-fields input,
.domain-inquiry-fields select,
.domain-inquiry-fields textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: #222; outline: none; border: 1px solid #dedede; border-radius: 12px; background: #fbfbfa; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.domain-inquiry-fields textarea { resize: vertical; }
.domain-inquiry-fields input:focus,
.domain-inquiry-fields select:focus,
.domain-inquiry-fields textarea:focus { border-color: var(--wallet-orange); background: #fff; box-shadow: 0 0 0 4px rgba(244,129,32,.11); }
.domain-inquiry-modal footer { margin-top: 23px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.domain-inquiry-modal footer small { max-width: 330px; color: #929292; line-height: 1.55; }
.domain-inquiry-modal footer button { min-height: 46px; padding: 0 20px; flex: 0 0 auto; color: #fff; border: 0; border-radius: 999px; background: #181818; cursor: pointer; font-weight: 750; }
.honeypot { position: absolute !important; left: -9999px !important; }

.wallet-flash { z-index: 1000; position: fixed; top: 20px; left: 50%; max-width: min(520px, calc(100% - 32px)); padding: 13px 18px; border: 1px solid #ddd; border-radius: 999px; background: #fff; box-shadow: 0 14px 44px rgba(0,0,0,.15); font-size: 13px; font-weight: 700; transform: translateX(-50%); }
.wallet-flash.success { border-color: #bce4ca; color: #176a37; }
.wallet-flash.error { border-color: #f0c2c2; color: #9c2424; }

@keyframes wallet-card-orbit {
  0% { transform: rotateX(3deg) rotateY(-8deg); }
  25% { transform: rotateX(-2deg) rotateY(82deg); }
  50% { transform: rotateX(3deg) rotateY(172deg); }
  75% { transform: rotateX(-3deg) rotateY(262deg); }
  100% { transform: rotateX(3deg) rotateY(352deg); }
}

@keyframes wallet-card-float {
  0%, 100% { transform: translateY(0) rotate(-.25deg); }
  50% { transform: translateY(-12px) rotate(.25deg); }
}

@keyframes wallet-foil-sweep {
  0%, 18% { opacity: .28; transform: rotate(-12deg) translate(-23%, -5%); }
  49% { opacity: .85; transform: rotate(-12deg) translate(8%, 2%); }
  72%, 100% { opacity: .34; transform: rotate(-12deg) translate(33%, 8%); }
}

@keyframes wallet-domain-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
  .wallet-detail-grid { grid-template-columns: 1fr; }
  .wallet-facts-card { grid-row: auto; }
  .wallet-domain-set > a { width: 270px; }
  .wallet-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .wallet-nav { width: calc(100% - 30px); min-height: 70px; }
  .wallet-wordmark { max-width: 46%; }
  .wallet-wordmark > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wallet-language { display: none; }
  .wallet-back { min-height: 36px; padding-inline: 13px; font-size: 12px; }
  .wallet-hero { width: calc(100% - 30px); min-height: calc(100svh - 70px); padding: 48px 0 68px; gap: 58px; }
  .domain-card-wrap { width: 100%; }
  .domain-card-face { padding: 20px; border-radius: 14px; }
  .domain-card-depth { border-radius: 14px; }
  .domain-card-edition { display: none; }
  .domain-card-bottom strong { font-size: 7px; letter-spacing: .03em; }
  .domain-card-bottom span { font-size: 6px; }
  .wallet-sale-copy p { font-size: 15px; }
  .wallet-details { padding-inline: 15px; }
  .wallet-detail-grid > article { padding: 24px 20px; border-radius: 17px; }
  .wallet-facts-card dl { grid-template-columns: 1fr; }
  .domain-inquiry-fields > div { grid-template-columns: 1fr; }
  .domain-inquiry-modal footer { align-items: stretch; flex-direction: column; }
  .domain-inquiry-modal footer button { width: 100%; }
  .wallet-more-domains > header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .domain-card-float,
  .domain-card-orbit,
  .domain-card-front::before { animation: none; }
  .wallet-domain-track { animation: none; }
  .domain-card-orbit { transform: rotateX(2deg) rotateY(-8deg); }
  .wallet-sale-page *,
  .wallet-sale-page *::before,
  .wallet-sale-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
