/* ============================================================
   MC airdrop + claim pages - professional design system (standalone).
   Used by airdrop.html and claim.html only. index.html keeps css/style.css.
   Class prefix: px-
   ============================================================ */
:root {
  --violet-2: #6a9bcc;
  --mono: ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.px {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
.px img { max-width: 100%; display: block; }
.px a { color: var(--primary-soft); text-underline-offset: 3px; }
.px-hidden { display: none !important; }
.px-wrap { width: 100%; margin: 0 auto; padding: 0 20px; }
.px :focus-visible { outline: 2px solid var(--primary-soft); outline-offset: 3px; border-radius: 8px; }

/* ---------- background ---------- */
.px-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.px-bg::before {
  content: '';
  position: absolute;
  inset: 0;
}
.px-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- header ---------- */
.px-header { position: sticky; top: 0; z-index: 40; padding: 12px 0 0; }
.px-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  width: calc(100% - 28px);
}
.px-brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none; min-width: 0; }
.px-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-brand-logo { width: 34px; height: 34px; border-radius: 50%; }
.px-nav { display: flex; align-items: center; }
.px-nav a { color: var(--muted); text-decoration: none; font-weight: 600; border-radius: 999px; transition: color .2s, background .2s; }
.px-nav a:hover { color: var(--text); }
.px-nav .px-nav-cta { color: #2a1f08; }
.px-nav .px-nav-cta:hover { color: #2a1f08; filter: brightness(1.08); }

/* ---------- type ---------- */
.px-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(212, 168, 75, .09); border: 1px solid rgba(232, 200, 119, .25); }
.px-dot { width: 7px; height: 7px; border-radius: 50%; animation: px-ping 2s infinite; }
.px-h1 { margin: 18px 0 14px; }

.px-lead { font-size: clamp(16px, 2.4vw, 19px); max-width: 640px; margin: 0 auto; }
.px-lead strong { color: var(--text); }
.px-h2 { margin: 8px 0 0; }

.px-fine { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.px-fine-pad { padding: 0 4px; margin-top: 16px; }
.px-link { font-weight: 600; font-size: 14px; }
.px-msg { min-height: 20px; margin: 10px auto 0; color: var(--warn); font-size: 14px; max-width: 640px; }

/* ---------- layout ---------- */
.px-hero { text-align: center; }



/* ---------- buttons ---------- */
.px-btn {
  gap: 8px;
  font: 700 15px/1 var(--font);
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
}

.px-btn:disabled { cursor: not-allowed; }

.px-btn-block { width: 100%; }
.px-btn-ghost { border-color: var(--line-2); }

/* ---------- cards / badges ---------- */

.px-badge { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.px-badge.good { color: var(--primary-soft); border-color: rgba(232, 200, 119, .45); background: rgba(212, 168, 75, .1); }
.px-badge.warn { color: var(--warn); border-color: rgba(225, 181, 91, .45); background: rgba(225, 181, 91, .08); }
.px-badge.bad { color: var(--danger); border-color: rgba(229, 120, 109, .45); background: rgba(229, 120, 109, .08); }

/* ---------- timeline ---------- */
.px-timeline { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; position: relative; }
.px-tl { position: relative; text-align: center; }
.px-tl::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; }
.px-tl:first-child::before { left: 50%; right: -12px; }
.px-tl:last-child::before { right: 50%; }
.px-tl-dot { position: absolute; left: 50%; border-radius: 50%; z-index: 1; transition: all .3s; }
.px-tl[data-state="live"] .px-tl-dot { border-color: var(--primary-soft); background: var(--primary); box-shadow: 0 0 0 5px rgba(212, 168, 75, .2), 0 0 18px rgba(212, 168, 75, .7); }
.px-tl[data-tl="nft"][data-state="live"] .px-tl-dot { border-color: var(--violet-2); background: var(--violet); box-shadow: 0 0 0 5px rgba(106, 155, 204, .22), 0 0 18px rgba(106, 155, 204, .7); }
.px-tl-meta { color: var(--muted); }

/* ---------- pools ---------- */
.px-pools { display: grid; grid-template-columns: 1fr; }
.px-pool {
  --accent: var(--primary);
  --accent-2: var(--primary-soft);
  --accent-rgb: 212, 168, 75;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.px-pool[data-pool="nft"] { --accent: var(--violet); --accent-2: var(--violet-2); --accent-rgb: 106, 155, 204; }

.px-pool::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 160px; background: radial-gradient(60% 100% at 50% 0%, rgba(var(--accent-rgb), .22), transparent 75%); pointer-events: none; }
.px-pool[data-state="live"] { border-color: rgba(var(--accent-rgb), .5); }
.px-pool.is-claimed { border-color: rgba(var(--accent-rgb), .7); }
.px-pool > * { position: relative; }

.px-pool-head { display: flex; gap: 14px; }
.px-pool-ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--accent-2); background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .35); }
.px-pool-title { min-width: 0; }
.px-pool-name { margin: 0; font-size: 19px; font-weight: 800; }
.px-pool-sub { margin: 2px 0 0; color: var(--muted); line-height: 1.4; }
.px-pill { flex: none; font-weight: 800; padding: 6px 11px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line-2); background: var(--glass); }
.px-pool[data-state="live"] .px-pill { color: #1f1e1d; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.px-pool[data-state="ended"] .px-pill { color: var(--faint); }

.px-pool-total .px-label { margin-bottom: 4px; }
.px-big { line-height: 1.05; }
.px-big small { color: var(--accent-2); }

/* meter */

.px-meter-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: var(--muted); }
.px-meter-pct b { color: var(--text); font-size: 15px; }
.px-live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.px-live i { width: 8px; height: 8px; border-radius: 50%; }
.px-live.is-live { color: var(--accent-2); }
.px-live.is-live i { background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); animation: px-ping-accent 1.8s infinite; }

.px-bar-fill {
  width: 100%;
  transition: width 1s var(--ease);
}
.px-bar-fill::after { inset: 0; }
.px-meter-nums { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; }
.px-num { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.px-r { text-align: right; }
.px-r .px-num { color: var(--muted); }

/* countdown */
.px-when-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.px-when-date { font-size: 13px; color: var(--muted); }
.px-when-close { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.px-when-close .px-label { margin: 0; }
.px-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.px-cell { text-align: center; padding: 12px 4px 9px; border: 1px solid var(--line); }
.px-cell b { display: block; font-size: clamp(22px, 5.6vw, 28px); color: var(--accent-2); line-height: 1.1; }

/* allocation */
.px-alloc { padding: 16px 18px; }
.px-alloc-amt { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.px-alloc-amt.is-dim { font-size: 20px; color: var(--muted); font-weight: 700; }
.px-alloc-note { color: var(--muted); min-height: 18px; margin-top: 2px; }
.px-pool .px-btn { color: #1f1e1d; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 30px -12px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.px-pool[data-pool="nft"] .px-btn { color: #1f1e1d; }
.px-pool[data-pool="referral"] .px-btn { color: #1f1e1d; }
.px-pool .px-btn:disabled { background: var(--glass-2); box-shadow: none; color: var(--faint); }
.px-status { margin: -6px 0 0; min-height: 20px; text-align: center; color: var(--muted); line-height: 1.45; }

/* contract */
.px-contract { padding: 22px; }
.px-contract-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.px-contract-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.px-addr { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--text); word-break: break-all; }
.px-contract .px-link { display: inline-block; margin-top: 12px; }

/* ---------- footer ---------- */
.px-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 30px 0 calc(34px + env(safe-area-inset-bottom, 0px)); }
.px-footer-in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.px-footer-links { display: flex; gap: 22px; }
.px-footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.px-footer-links a:hover { color: var(--text); }
.px-footer-copy { color: var(--faint); font-size: 13px; }

/* ---------- animations ---------- */
@keyframes px-ping { 0% { box-shadow: 0 0 0 0 rgba(232, 200, 119, .55); } 70% { box-shadow: 0 0 0 9px rgba(232, 200, 119, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 200, 119, 0); } }
@keyframes px-ping-accent { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .65); } 70% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
@keyframes px-shimmer { to { transform: translateX(100%); } }
@keyframes px-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes px-pop { 0% { opacity: 0; transform: translateY(22px) scale(.94); } 100% { opacity: 1; transform: none; } }
.px-hero .px-wrap > *, .px-pool { animation: px-rise .7s var(--ease) both; }
.px-pool:nth-child(2) { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- desktop ---------- */
@media (min-width: 820px) {
  .px-pools { grid-template-columns: 1fr 1fr; gap: 24px; }
  .px-hero { padding: 70px 0 34px; }
  .px-pool { padding: 30px 28px 28px; }
}
@media (max-width: 480px) {
  .has-wallet .px-brand span { display: none; }
}
@media (max-width: 420px) {
  .px-wrap { padding: 0 16px; }
  .px-pool { padding: 22px 18px 20px; border-radius: 24px; }
  .px-contract-row { flex-direction: column; align-items: stretch; padding: 12px; }
}

/* ============================================================
   airdrop.html specific
   ============================================================ */

.px-center { text-align: center; }
.px-stats { display: grid; gap: 10px; max-width: 640px; margin: 30px auto 0; }
.px-stat { padding: 16px 8px; }
.px-stat-num { line-height: 1.15; }
.px-stat-label { margin-top: 6px; }

/* checker */
.px-steps { overflow: hidden; }
.px-step { padding: 24px 22px; }
.px-step + .px-step { border-top: 1px solid var(--line); }
.px-step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.px-step-num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-size: 14px; }
.px-step-title { font-weight: 800; font-size: 17px; }
.px-step-sub { color: var(--muted); font-size: 14px; margin-top: 1px; word-break: break-word; }
.px-input { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 16px; border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }

.px-input.is-valid { border-color: rgba(var(--ok-rgb), .55); }
.px-input.has-error { border-color: var(--danger); }
.px-input-ico { flex: none; color: var(--muted); }
.px-input input { flex: 1; min-width: 0; padding: 13px 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 15px var(--mono); }
.px-input input::placeholder { color: var(--faint); }
.px-chip { flex: none; padding: 11px 15px; border-radius: 999px; font: 700 13px var(--font); color: var(--primary-soft); background: rgba(212, 168, 75, .1); border: 1px solid rgba(232, 200, 119, .3); cursor: pointer; transition: background .2s, opacity .2s; }
.px-chip:hover:not(:disabled) { background: rgba(212, 168, 75, .2); }
.px-chip:disabled { cursor: not-allowed; opacity: .45; }

.px-chip-solid:hover:not(:disabled) { filter: brightness(1.08); background: linear-gradient(180deg, #ecca78 0%, #c19434 100%); }
.px-msg-left { text-align: left; margin: 8px 0 0; }

.px-tasks { display: flex; flex-direction: column; gap: 10px; }
.px-task { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 16px; transition: border-color .2s, opacity .2s; }
.px-task.done { border-color: rgba(var(--ok-rgb), .45); }
.px-task.locked { opacity: .55; }
.px-task-mark { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 13px; color: var(--muted); border: 1.5px solid var(--line-2); }
.px-task.done .px-task-mark { color: var(--bg); background: var(--ok); border-color: var(--ok); }
.px-task-text { flex: 1; min-width: 0; }
.px-task-title { font-weight: 700; font-size: 15px; }
.px-task-sub { color: var(--muted); font-size: 13px; }

/* result */
.px-result { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.px-result > .px-btn { width: 100%; }
.px-result-text { margin: 0; color: var(--muted); font-size: 15px; }
.px-result-total .px-big { color: var(--text); }
.px-brows { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.px-brow { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; text-align: left; }
.px-brow-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px rgba(212, 168, 75, .7); }
.px-brow.nft .px-brow-dot { background: var(--violet); box-shadow: 0 0 12px rgba(106, 155, 204, .7); }
.px-brow-body { flex: 1; min-width: 0; }
.px-brow-name { font-weight: 700; font-size: 15px; }
.px-brow-detail, .px-brow-date { color: var(--muted); font-size: 13px; line-height: 1.4; }
.px-brow-amt { font-weight: 800; font-size: 16px; white-space: nowrap; }
.px-skel { display: flex; flex-direction: column; gap: 10px; }
.px-skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(100deg, var(--glass) 30%, var(--glass-2) 50%, var(--glass) 70%); background-size: 200% 100%; animation: px-skel 1.3s infinite; }
.px-skel i:nth-child(1) { width: 60%; } .px-skel i:nth-child(2) { width: 90%; } .px-skel i:nth-child(3) { width: 40%; }
@keyframes px-skel { to { background-position: -200% 0; } }

/* tokenomics */
.px-alloc-card { display: grid; grid-template-columns: 1fr; align-items: center; }
.px-donut { position: relative; width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; margin: 0 auto; }
.px-donut-mid { position: absolute; inset: 17%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); }
.px-donut-mid b { font-size: 34px; letter-spacing: -.03em; }
.px-donut-mid span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.px-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.px-leg { display: flex; }
.px-leg-dot { flex: none; margin-top: 6px; }
.px-leg-body { flex: 1; min-width: 0; }
.px-leg-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }

.px-leg-amt { font-weight: 700; }
.px-leg-note { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* faq */
.px-faq { display: flex; flex-direction: column; gap: 10px; }
.px-faq-item { transition: border-color .2s, background .2s; }
.px-faq-item[open] { background: var(--glass-2); }
.px-faq-item summary { list-style: none; cursor: pointer; display: block; position: relative; padding: 18px 58px 18px 20px; font-size: 16px; }
.px-faq-item summary::-webkit-details-marker { display: none; }
.px-faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; margin-top: -14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; transition: transform .25s var(--ease); }
.px-faq-item[open] summary::after { transform: rotate(45deg); }
.px-faq-item p { margin: 0; padding: 0 20px 20px; font-size: 15px; }
.px-faq-item p strong { color: var(--text); }

/* popup */
body.px-modal-open { overflow: hidden; }
.px-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.px-modal-backdrop { position: absolute; inset: 0; background: rgba(31, 30, 29, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: px-fade .3s both; }
.px-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.px-modal-card { position: relative; z-index: 1; width: 100%; max-height: calc(100vh - 36px); overflow: auto; text-align: center; display: flex; flex-direction: column; animation: px-pop .55s var(--ease) both; }
.px-modal-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 180px; background: radial-gradient(60% 100% at 50% 0%, rgba(212, 168, 75, .3), transparent 75%); pointer-events: none; }
.px-modal-card > * { position: relative; }
.px-modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--glass-2); border: 1px solid var(--line); cursor: pointer; }
.px-modal-x:hover { color: var(--text); }
.px-modal-badge { margin: 0 auto 4px; display: grid; place-items: center; color: #2a1f08; }
.px-modal-title { margin: 0; }
.px-modal-sub { margin: 0; color: var(--muted); }
.px-modal-sub code { font-family: var(--mono); color: var(--text); }
.px-modal-amount { letter-spacing: -.035em; line-height: 1.1; background: linear-gradient(120deg, var(--primary), var(--primary-soft) 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-modal-amount small { font-size: .4em; margin-left: 8px; letter-spacing: .02em; }
.px-modal-rows { display: flex; flex-direction: column; }
@keyframes px-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 820px) {
  .px-alloc-card { grid-template-columns: 300px 1fr; gap: 44px; }
  .px-step { padding: 28px 30px; }
}

/* links styled as buttons keep button colours (beats ".px a") */
.px a.px-btn { text-decoration: none; }

/* Compact summary and eligibility dialog. Exact claim values remain in API proofs. */
.px-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.px-stat { min-width:0; }
.px-stat-num { font-size:clamp(20px,5vw,30px); }
.px-modal-card { padding:22px 20px 18px;gap:9px; }
.px-modal-card::before { display:none; }
.px-modal-badge { width:44px;height:44px;font-size:27px;box-shadow:none; }
.px-modal-title { line-height:1.2; }
.px-modal-sub { font-size:12px; }
.px-modal-amount { margin:2px 0; }
.px-modal-rows { gap:6px;margin:0; }
.px-modal-card .px-btn { min-height:var(--btn-sm);padding:0 18px;font-size:14px; }
@media(max-width:420px){.px-stat-label{font-size:11px;letter-spacing:.08em}.px-stat{padding:16px 10px}.px-modal-card{max-width:340px}}

.px-modal-rows .px-brow { padding:10px 12px;gap:10px; }
.px-modal-rows .px-brow-amt { display:none; }
.px-modal-rows .px-brow-body { min-width:0;flex:1; }
.px-modal-rows .px-brow-name { font-size:13px; }
.px-modal-rows .px-brow-detail,.px-modal-rows .px-brow-date { font-size:11px;line-height:1.4; }

/* ============================================================
   Wallet connection (js/wallet.js + claim.html wallet card)
   Class prefix: pw-
   ============================================================ */
@keyframes pw-spin { to { transform: rotate(360deg); } }
@keyframes pw-sheet { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pw-ring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

body.pw-lock { overflow: hidden; }
.pw-i { display: inline-flex; flex: none; line-height: 0; }

/* identity bits */
.pw-avatar { --sz: 28px; flex: none; display: inline-block; width: var(--sz); height: var(--sz); border-radius: 50%; background: conic-gradient(var(--primary), var(--violet), var(--primary-soft), var(--primary)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 4px 14px -4px rgba(0, 0, 0, .7); }
.pw-ndot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.pw-ndot-ok, .pw-net-ok .pw-ndot { --accent-rgb: var(--ok-rgb); background: var(--ok); box-shadow: 0 0 0 0 rgba(var(--ok-rgb), .6); animation: px-ping-accent 2.4s infinite; }
.pw-ndot-wrong, .pw-net-wrong .pw-ndot { background: var(--warn); }
.pw-net { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text); }
.pw-net-wrong { color: var(--warn); }
.pw-net-unknown, .pw-net-off { color: var(--muted); }

/* header button + chip */
.pw-wslot { position: relative; display: flex; align-items: center; }
.pw-wbtn, .pw-wchip { font: 700 14px/1 var(--font); cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; transition: transform .15s var(--ease), filter .2s, background .2s, border-color .2s; }

.pw-wchip { padding: 5px 11px 5px 5px; }
.pw-wchip:hover, .pw-wchip[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.pw-wchip.is-wrong { border-color: rgba(225, 181, 91, .5); }
.pw-wchip-a { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.pw-wchip .pw-i { color: var(--muted); }

/* account menu */
.pw-wmenu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: 300px; max-width: calc(100vw - 32px); padding: 8px; border-radius: 24px; background: linear-gradient(180deg, rgba(23, 24, 27, .98), rgba(31, 30, 29, .985)); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06); animation: pw-sheet .22s var(--ease); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pw-wmenu-h { display: flex; align-items: center; gap: 12px; padding: 12px 12px 10px; }
.pw-wmenu-t { min-width: 0; }
.pw-wmenu-n { font-weight: 800; font-size: 15px; }
.pw-wmenu-a { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pw-wmenu-meta { margin: 2px 4px 8px; padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.pw-wmenu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--muted); }
.pw-wmenu-row + .pw-wmenu-row { border-top: 1px solid var(--line); }
.pw-wmenu-row b { color: var(--text); font-size: 13px; font-weight: 700; }
.pw-wmenu-list { display: flex; flex-direction: column; gap: 2px; }
.pw-wmenu-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 600 14px/1.2 var(--font); text-align: left; text-decoration: none; cursor: pointer; transition: background .15s; }
.pw-wmenu-i .pw-i { color: var(--muted); }
.pw-wmenu-i:hover { background: var(--glass-2); }
.pw-wmenu-i.is-accent { color: var(--warn); background: rgba(225, 181, 91, .08); }
.pw-wmenu-i.is-accent .pw-i { color: var(--warn); }
.pw-wmenu-i.is-danger { color: var(--danger); }
.pw-wmenu-i.is-danger .pw-i { color: var(--danger); }
.pw-wmenu-i.is-danger:hover { background: rgba(229, 120, 109, .1); }

/* connect modal */
.pw-modal { position: fixed; inset: 0; z-index: 120; display: grid; }
.pw-modal-bg { position: absolute; inset: 0; background: rgba(31, 30, 29, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: pw-fade .25s ease both; }
.pw-modal-card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07); overscroll-behavior: contain; }
.pw-modal-card::before { content: ''; position: absolute; inset: 0 0 auto 0; pointer-events: none; background: radial-gradient(60% 100% at 50% 0%, rgba(212, 168, 75, .26), transparent 72%), radial-gradient(40% 80% at 100% 0%, rgba(106, 155, 204, .18), transparent 75%); }
.pw-modal-card > * { position: relative; }
.pw-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pw-modal-h { flex: none; }
.pw-modal-x { position: absolute !important; z-index: 5; touch-action: manipulation; -webkit-tap-highlight-color: transparent; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: var(--glass); cursor: pointer; transition: color .15s, background .15s; }
.pw-modal-x:hover { color: var(--text); background: var(--glass-2); }
.pw-modal-t { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.pw-modal-s { margin: 6px 0 0; color: var(--muted); }
.pw-wlist { display: flex; flex-direction: column; }
.pw-wsec { font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.pw-wsec:first-child { margin-top: 0; }
.pw-wrow { display: flex; align-items: center; width: 100%; border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass-2), var(--glass)); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), border-color .2s, background .2s, box-shadow .2s; }
.pw-wrow:hover:not(:disabled) { border-color: rgba(232, 200, 119, .45); background: linear-gradient(180deg, rgba(232, 200, 119, .1), rgba(232, 200, 119, .03)); box-shadow: 0 14px 30px -18px rgba(212, 168, 75, .7); transform: translateY(-1px); }
.pw-wrow:disabled:not(.is-busy) { opacity: .45; cursor: not-allowed; }
.pw-wrow.is-busy { border-color: rgba(232, 200, 119, .55); cursor: progress; }
.pw-wrow-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pw-wrow-n { font-weight: 700; }
.pw-wrow-s { color: var(--muted); }
.pw-wrow > .pw-i { color: var(--faint); transition: color .2s, transform .2s; }
.pw-wrow:hover:not(:disabled) > .pw-i { color: var(--primary-soft); transform: translateX(2px); }
.pw-wrow-tag { flex: none; font-weight: 700; color: var(--primary-soft); border-radius: 999px; border: 1px solid rgba(232, 200, 119, .3); background: rgba(212, 168, 75, .08); }
.pw-wrow-get .pw-wico { filter: saturate(.85); }
.pw-wico { flex: none; object-fit: cover; display: grid; place-items: center; background: var(--glass-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pw-wico-letter { color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pw-spin { flex: none; border-radius: 50%; border: 2.5px solid rgba(232, 200, 119, .25); border-top-color: var(--primary-soft); animation: pw-spin .8s linear infinite; }
.pw-wempty { display: flex; align-items: flex-start; border: 1px dashed var(--line-2); color: var(--muted); }
.pw-wempty .pw-i { color: var(--primary-soft); margin-top: 2px; }
.pw-wempty p { margin: 0; }
.pw-wmsg { margin: 12px 2px 0; color: var(--muted); }
.pw-wmsg.is-err { color: var(--danger); }
.pw-wmsg.is-ok { color: var(--ok); font-weight: 700; }
.pw-wnote { display: flex; align-items: flex-start; background: rgba(212, 168, 75, .06); border: 1px solid rgba(232, 200, 119, .16); color: var(--muted); line-height: 1.5; }
.pw-wnote .pw-i { color: var(--primary-soft); margin-top: 1px; }

/* claim page wallet card */
.pw-card { position: relative; overflow: hidden; overflow: clip; max-width: 640px; margin: 30px auto 0; padding: 18px; text-align: left; transition: border-color .3s; }
.pw-card::before { content: ''; position: absolute; inset: -40% 0 auto auto; width: 70%; height: 140%; pointer-events: none; background: radial-gradient(closest-side, rgba(212, 168, 75, .16), transparent 75%); transition: opacity .4s; opacity: .55; }
.pw-card[data-state="on"] { border-color: rgba(232, 200, 119, .4); }
.pw-card[data-state="on"]::before { opacity: 1; }
.pw-card[data-state="wrong"] { border-color: rgba(225, 181, 91, .5); }
.pw-card[data-state="wrong"]::before { background: radial-gradient(closest-side, rgba(225, 181, 91, .14), transparent 75%); opacity: 1; }
.pw-card > * { position: relative; }
.pw-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pw-card-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pw-card-av { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.pw-card[data-state="off"] .pw-card-av::after { content: ''; position: absolute; inset: -1px; border-radius: 16px; border: 1.5px solid var(--primary-soft); animation: pw-ring 2.4s ease-out infinite; }
.pw-card-av .pw-avatar { --sz: 52px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.pw-card-av.has-avatar { background: none; border: 0; }
.pw-card-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pw-card-sub { color: var(--muted); font-size: 13px; line-height: 1.4; }
.pw-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-card-actions .px-btn { flex: none; }
.pw-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; }
.pw-meta > div { padding: 11px 14px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); min-width: 0; }
.pw-meta dt { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--faint); margin: 0 0 4px; }
.pw-meta dd { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.pw-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 2px; padding: 0; counter-reset: pwstep; }
.pw-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--faint); text-align: center; }
.pw-step::before { counter-increment: pwstep; content: counter(pwstep); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 800; z-index: 1; color: var(--faint); background: #111214; border: 1.5px solid var(--line-2); transition: all .3s var(--ease); }
.pw-step::after { content: ''; position: absolute; top: 12px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line-2); transition: background .3s; }
.pw-step:last-child::after { display: none; }
.pw-step.is-done { color: var(--text); }
.pw-step.is-done::before { content: '\2713'; color: var(--bg); background: linear-gradient(135deg, #8fae6a, #3da974); border-color: transparent; }
.pw-step.is-done::after { background: linear-gradient(90deg, var(--ok), var(--line-2)); }
.pw-step.is-now { color: var(--text); }
.pw-step.is-now::before { color: var(--primary-soft); border-color: var(--primary-soft); box-shadow: 0 0 0 4px rgba(232, 200, 119, .12); }
.pw-step.is-warn::before { color: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px rgba(225, 181, 91, .12); }

/* mobile: the connect modal becomes a bottom sheet */
@media (max-width: 560px) {
  .pw-wbtn span:last-child { font-size: 14px; }
  .pw-wbtn { padding: 10px 14px; }
  .pw-wmenu { position: fixed; top: 74px; right: 16px; left: 16px; width: auto; max-width: none; }
  .pw-card { padding: 16px; border-radius: 24px; }
  .pw-card-actions { width: 100%; }
  .pw-card-actions .px-btn { flex: 1 1 0; }
}
@media (max-width: 380px) {
  .pw-wchip-a { font-size: 12px; }
  .pw-step { font-size: 11px; }
}

.px-header-in.has-wallet .px-nav { margin-left: auto; margin-right: 6px; }
@media (max-width: 640px) { .px-header-in.has-wallet { padding-right: 8px; } }

/* wallet polish */
.px a.pw-wrow, .px a.pw-wmenu-i { color: var(--text); }
.px a.pw-wmenu-i:hover, .px a.pw-wrow:hover { text-decoration: none; }
.pw-card-id { flex: 1 1 250px; }
.pw-card-actions { justify-content: flex-end; }
@media (max-width: 560px) {
  .pw-card-actions { justify-content: stretch; }
  #switchNetBtn { order: -1; flex: 1 1 100%; }
  .pw-meta > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .pw-wchip > .pw-i { display: none; }
  .pw-wchip { padding-right: 12px; }
}

/* wallet dialog: always centred, compact (about 30% smaller than the old sheet) */
.pw-modal { padding: 18px; place-items: center; }
.pw-modal-card { max-width: 360px; padding: 18px 14px 14px; border-radius: 20px; max-height: calc(100dvh - 36px); animation: pw-sheet .3s var(--ease) both; }
.pw-modal-card::before { height: 120px; }
.pw-modal-x { top: 10px; right: 10px; width: 28px; height: 28px; }
.pw-modal-h { margin-bottom: 10px; padding-right: 32px; }
.pw-modal-t { font-size: 17px; }
.pw-modal-s { margin-top: 3px; font-size: 12px; }
.pw-wlist { gap: 6px; }
.pw-wsec { margin: 8px 2px 1px; font-size: 11px; }
.pw-wrow { gap: 9px; padding: 7px 10px 7px 8px; border-radius: 12px; }
.pw-wico { width: 28px; height: 28px; border-radius: 8px; }
.pw-wico-letter { font-size: 13px; }
.pw-wrow-n { font-size: 13px; }
.pw-wrow-s { font-size: 11px; }
.pw-wrow-tag { padding: 4px 9px; font-size: 11px; }
.pw-spin { width: 15px; height: 15px; border-width: 2px; }
.pw-wempty { gap: 9px; padding: 9px 11px; border-radius: 12px; font-size: 12px; }
.pw-wmsg { margin-top: 8px; font-size: 12px; min-height: 0; }
.pw-wmsg:empty { display: none; }
.pw-wnote { margin-top: 8px; padding: 8px 10px; gap: 8px; border-radius: 12px; font-size: 11px; }

/* ---------- airdrop hero: subtitle + 4 compact stat boxes ---------- */
.px-sub { margin: -4px 0 16px; font-size: clamp(16px, 4.4vw, 22px); }
.px-stats.px-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.px-stats-4 .px-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px 11px; min-height: 76px; border-radius: 16px; }
.px-stats-4 .px-stat-num { display: flex; align-items: baseline; justify-content: center; gap: 5px; font-size: clamp(22px, 6.4vw, 28px); line-height: 1.05; white-space: nowrap; -webkit-background-clip: text; background-clip: text; }
.px-stats-4 .px-stat-num small { font-size: .5em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.px-stats-4 .px-stat-label { margin: 0; }
@media (min-width: 600px) {
  .px-stats.px-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 680px; }
}

/* ---------- schedule timeline: dots on a line, two glass cards ---------- */
.px-tl { padding: 0; }
.px-tl::before { top: 8px; }
.px-tl-dot { border: 3px solid rgba(232, 200, 119,.32); width: 20px; height: 20px; margin-left: -10px; top: -2px; }
.px-tl[data-state="ended"] .px-tl-dot { background: var(--faint); border-color: rgba(255,255,255,.14); box-shadow: none; }
.px-tl-stem { position: absolute; top: 18px; left: 50%; width: 2px; height: 20px; margin-left: -1px; }
.px-tl-card { margin-top: 38px; padding: 16px 12px 14px; }
.px-tl-top { display: flex; align-items: center; justify-content: center; gap: 10px; padding-bottom: 12px; margin-bottom: 11px; border-bottom: 1px solid var(--line); }
.px-tl-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.px-tl-ico svg { width: 20px; height: 20px; }
.px-tl-day { font-size: clamp(20px, 6vw, 28px); line-height: 1; white-space: nowrap; }
.px-tl-name { font-size: 14px; line-height: 1.25; }
.px-tl-meta { font-size: 13px; }
@media (max-width: 420px) { .px-tl-top { gap: 8px; } .px-tl-ico { width: 34px; height: 34px; } .px-tl-name { font-size: 13px; } .px-tl-meta { font-size: 12px; } }
.px-sec-head.px-center .px-kicker { display: inline-flex; align-items: center; gap: 12px; }
.px-sec-head.px-center .px-kicker::before, .px-sec-head.px-center .px-kicker::after { content: ''; width: 32px; height: 1px; background: rgba(232, 200, 119,.45); }
.px-brand-logo { object-fit: cover; object-position: 50% 40%; }
.px-tl-name { font-weight: 500; }

/* ---------- referral link card (checker result) ---------- */
.px-ref { margin-top: 16px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); display: flex; flex-direction: column; gap: 10px; }
.px-ref-title { font-weight: 800; font-size: 15px; color: var(--text); }
.px-ref .px-fine { margin: 0; }
@media (max-width: 719px) { .px-ref .px-contract-row { flex-direction: column; align-items: stretch; padding: 12px; } }

/* mobile overflow fix */
.px-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
.px-tl{min-width:0}
.px-tl-top{min-width:0;flex-wrap:wrap}
.px-tl-day{white-space:normal;min-width:0;overflow-wrap:anywhere;font-size:clamp(16px,5vw,26px)}
.px-tl-name,.px-tl-meta{overflow-wrap:anywhere}
.px-stat-num{overflow-wrap:anywhere;font-size:clamp(16px,5.2vw,28px)}
.px-stats-4 .px-stat-num{white-space:normal;flex-wrap:wrap;text-align:center;min-width:0;max-width:100%;overflow-wrap:anywhere}
