/* Stock Gift presentation from the supplied stoxcredit-gift.html.
   Scoped to the live route; wallet, balances, transactions and claims stay in stoxcredit-gift.js. */
html[data-gift-route] body.app-mode #giftView.gift-shell {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding: 48px 24px 64px; color: var(--ref-text);
  font-family: Inter, system-ui, sans-serif;
}
#giftView .gift-heading { margin: 0 0 18px; }
#giftView .gift-heading .section-label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  color: var(--ref-accent); font: 500 12px/1.5 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .14em; text-transform: uppercase;
}
#giftView .gift-heading .section-label::before { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: .55; }
#giftView .gift-title-row { gap: 12px; }
#giftView .gift-head-icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--ref-accent-soft);
  color: var(--ref-accent); font: 20px/1 Inter, sans-serif; animation: none;
}
#giftView .gift-heading h1 {
  margin: 0; font: 400 clamp(30px, 4vw, 40px)/1.18 Fraunces, Georgia, serif;
  letter-spacing: -.01em; color: var(--ref-text);
}
#giftView .gift-heading p { max-width: 46ch; margin: 8px 0 0; color: var(--ref-muted); font-size: 18px; line-height: 1.5; }
#giftView .gift-tabs { gap: 24px; margin: 0 0 24px; border-bottom: 1px solid var(--ref-border); }
#giftView .gift-tabs a { padding: 14px 2px; margin-bottom: -1px; color: var(--ref-muted); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
#giftView .gift-tabs a:hover { color: var(--ref-text); }
#giftView .gift-tabs a[aria-current="page"] { color: var(--ref-text); border-bottom-color: var(--ref-accent); }
#giftView .gift-tabs a:not([aria-current="page"]).gift-tab-airdrop { color: var(--ref-muted); border-bottom-color: transparent; }
#giftView .gift-built {
  display: inline-flex; align-items: center; height: 30px; margin: 0 0 24px; padding: 0 12px;
  border: 1px solid var(--ref-accent); border-radius: 999px; background: var(--ref-raised);
  color: var(--ref-accent); font-size: 12px; font-weight: 400;
}
#giftView .gift-create-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
#giftView .gift-card {
  gap: 16px; padding: 24px; border: 1px solid var(--ref-border); border-radius: 26px;
  background: var(--ref-raised); box-shadow: var(--ref-shadow);
}
#giftView .gift-form-intro { display: block; padding: 0; border: 0; }
#giftView .gift-form-intro .gift-eyebrow { color: var(--ref-subtle); font-size: 11px; font-weight: 400; letter-spacing: .08em; }
#giftView .gift-form-intro h2 { margin: 4px 0 6px; color: var(--ref-text); font-family: Fraunces, Georgia, serif !important; font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }
#giftView .gift-form-intro p { margin: 0 0 8px; max-width: none; color: var(--ref-muted); font-size: 14px; line-height: 1.5; }
#giftView .gift-field { gap: 7px; }
#giftView .gift-field label, #giftView .gift-label, #giftView .gift-fieldset legend {
  color: var(--ref-muted); font-size: 13px; font-weight: 400;
}
#giftView .gift-balance, #giftView .gift-count { color: var(--ref-subtle); font-size: 13px; }
#giftView .gift-input, #giftView .gift-picker-button, #giftView select {
  min-height: 52px; padding: 0 14px; border: 1px solid var(--ref-border); border-radius: 12px;
  background: var(--ref-bg); color: var(--ref-text); font: 400 16px/1.4 Inter, system-ui, sans-serif;
}
#giftView .gift-input:focus, #giftView .gift-picker-button:focus-visible { border-color: var(--ref-accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ref-accent) 14%, transparent); }
#giftView .gift-picker-button { width: 100%; min-height: 56px; gap: 12px; padding: 8px 14px; text-align: left; }
#giftView .gift-picker-current { min-width: 0; gap: 12px; }
#giftView .gift-picker-current .gift-logo { width: 32px; height: 32px; }
#giftView .gift-picker-current .gift-picker-name { min-width: 0; }
#giftView .gift-picker-current .gift-picker-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ref-text); font-size: 15px; }
#giftView .gift-picker-current .gift-picker-name small { color: var(--ref-muted); font-size: 12px; }
#giftView .gift-picker-caret { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--ref-muted); transition: transform .18s ease; }
#giftView .gift-picker-caret svg { display: block; width: 18px; height: 18px; }
#giftView .gift-picker-button[aria-expanded="true"] .gift-picker-caret { transform: rotate(180deg); }
#giftView .gift-picker-list { border-color: var(--ref-border); border-radius: 12px; background: var(--ref-raised); }
#giftView .gift-amount { min-height: 56px; border: 1px solid var(--ref-border); border-radius: 12px; background: var(--ref-bg); }
#giftView .gift-amount .gift-input { min-height: 54px; border: 0; background: transparent; font: 400 20px/1.3 'JetBrains Mono', ui-monospace, monospace; }
#giftView .gift-unit { color: var(--ref-text); font-size: 14px; }
#giftView .gift-ghost { border: 0; background: transparent; color: var(--ref-accent); font-size: 11px; }
#giftView .gift-grid { gap: 12px; }
#giftView .gift-grid .gift-input { min-height: 48px; }
#giftView .gift-switch { display: flex; max-width: none; gap: 8px; padding: 0; background: transparent; }
#giftView .gift-switch button {
  flex: 1; min-height: 46px; border: 1.5px solid var(--ref-border); border-radius: 12px;
  background: transparent; color: var(--ref-muted); font-size: 14px; font-weight: 600;
}
#giftView .gift-switch button.on { border-color: var(--ref-accent); background: var(--ref-accent-soft); color: var(--ref-accent); }
#giftView textarea#giftMessage { display: block; width: 100%; min-height: 84px; padding: 12px 14px; resize: vertical; font-size: 14px; }
#giftView .gift-options { margin: 0; border: 1px solid var(--ref-border); border-radius: 12px; background: transparent; overflow: hidden; }
#giftView .gift-options > summary { min-height: 50px; padding: 14px 16px; background: var(--ref-sunken); color: var(--ref-text); font-size: 14px; font-weight: 600; }
#giftView .gift-options > summary::after { display: block; content: '▾'; margin-left: 0; color: var(--ref-subtle); font-size: 14px; }
#giftView .gift-options > summary span { color: var(--ref-subtle); }
#giftView .gift-options-body { gap: 16px; padding: 16px; }
#giftView .gift-fieldset { gap: 14px; border-top: 0; padding-top: 0; }
#giftView .gift-fieldset legend { color: var(--ref-text); font-weight: 600; }
#giftView .gift-refund-warning {
  margin: 8px 0 0; padding: 14px 16px; border: 1px solid #ab7114; border-left: 3px solid #ab7114;
  border-radius: 12px; background: #f7ead0; color: var(--ref-text); font-size: 13px;
}
html[data-theme="dark"] #giftView .gift-refund-warning { border-color: #e0a94a; background: #2b2410; }
#giftView .gift-refund-warning strong { color: #ab7114; }
html[data-theme="dark"] #giftView .gift-refund-warning strong { color: #e0a94a; }
#giftView .gift-ack { margin: 0; font-size: 14px; }
#giftView .gift-primary, #giftView .gift-secondary { min-height: 46px; border-radius: 999px; font-size: 14px; }
#giftView .gift-primary { background: linear-gradient(135deg,#1a52ff,#0b32c8); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--ref-accent) 35%, transparent); }
html[data-theme="dark"] #giftView .gift-primary { background: linear-gradient(135deg,#5b84ff,#3257e6); color: #0a0c10; }
#giftView .gift-note, #giftView .gift-muted { color: var(--ref-subtle); font-size: 12px; line-height: 1.5; }
#giftView .gift-preview-column { min-width: 0; }
#giftView .gift-preview-top { width: 100%; margin: 0 0 12px; color: var(--ref-subtle); }
#giftView .gift-preview-top .gift-eyebrow { color: var(--ref-subtle); font-size: 11px; font-weight: 400; letter-spacing: .08em; }
#giftView .gift-preview-private { padding: 5px 12px; border: 1px solid var(--ref-border); border-radius: 999px; background: var(--ref-raised); color: var(--ref-muted); font-size: 12px; font-weight: 400; }
#giftView .gift-preview {
  position: sticky; top: 18px; display: grid; justify-items: center; gap: 10px;
  min-height: 0; padding: 48px 32px; border: 1px solid var(--ref-border); border-radius: 26px;
  background: linear-gradient(145deg,var(--ref-accent-soft),var(--ref-raised));
  color: var(--ref-text); text-align: center;
}
#giftView .gift-preview::before { display: none; }
#giftView .gift-present { width: 100px; height: 100px; margin: 0 auto 16px; filter: none; animation: none; cursor: pointer; transition: transform .24s cubic-bezier(.2,.6,.2,1); }
#giftView .gift-present:hover { transform: scale(1.05) rotate(-2deg); }
#giftView .gift-present svg { display: block; width: 100%; height: 100%; overflow: visible; }
#giftView .gift-present.is-opened .gift-svg-lid, #giftView .gift-present.is-opened .gift-svg-bow { transform: translate(-8px,-14px) rotate(-10deg); transform-origin: 30% 30%; }
#giftView .gift-present.is-opened .gift-svg-ribbon { opacity: .25; }
#giftView .gift-svg-lid, #giftView .gift-svg-bow, #giftView .gift-svg-ribbon { transition: transform .5s cubic-bezier(.2,.6,.2,1), opacity .5s; }
#giftView .gift-preview-kicker { color: var(--ref-subtle); font-size: 13px; font-weight: 400; }
#giftView .gift-preview h2 { color: var(--ref-text); font: 400 28px/1.25 Fraunces, Georgia, serif; letter-spacing: -.01em; }
#giftView .gift-preview blockquote { max-width: 100%; color: var(--ref-muted); font-size: 14px; }
#giftView .gift-preview-action { width: 100%; max-width: none; min-height: 46px; justify-content: center; gap: 8px; margin: 10px 0 0; border-radius: 999px; background: linear-gradient(135deg,#1a52ff,#0b32c8); color: #fff; }
#giftView .gift-preview-foot { max-width: none; margin: 6px 0 0; color: var(--ref-subtle); font-size: 12px; }
#giftView .gift-section-title { margin: 32px 0 14px; font: 400 28px/1.25 Fraunces, Georgia, serif; }
#giftView #giftMineInline.gift-card { display: block; padding: 24px; }
#giftView #giftMine.gift-card { max-width: 1180px; margin-inline: auto; }
#giftView .gift-filters { margin: 0 0 20px; }
#giftView .gift-filter { min-height: 36px; padding: 0 14px; color: var(--ref-muted); background: transparent; border-color: var(--ref-border); font-size: 13px; font-weight: 400; }
#giftView .gift-filter[aria-pressed="true"] { background: var(--ref-text); border-color: var(--ref-text); color: var(--ref-bg); }
#giftView .gift-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#giftView .gift-box, #giftView #giftMine .gift-box {
  display: block; min-width: 0; margin: 0; padding: 0; border: 1px solid var(--ref-border);
  border-radius: 18px; background: var(--ref-raised); overflow: hidden;
}
#giftView .gift-box[hidden] { display: none !important; }
#giftView .gift-box + .gift-box { margin-top: 0; }
#giftView .gift-box-head { box-sizing: border-box; min-height: 68px; padding: 12px 16px; border-bottom: 1px solid var(--ref-border); background: var(--ref-sunken); }
#giftView .gift-box-title strong { font-size: 15px; }
#giftView .gift-box-title small { color: var(--ref-muted); font-size: 12px; }
#giftView .gift-box-status { padding: 5px 9px; border-radius: 7px; font-size: 11px; }
#giftView .gift-box-facts { margin: 0; padding: 13px 16px; border: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#giftView .gift-box-facts > div { padding: 0 8px 0 0; }
#giftView .gift-box-facts > div + div { padding: 0 8px 0 12px; border-left: 1px solid var(--ref-border); }
#giftView .gift-box-facts dt { color: var(--ref-subtle); font-size: 11px; }
#giftView .gift-box-facts dd { margin-top: 4px; color: var(--ref-text); font-size: 13px; line-height: 1.35; }
#giftView .gift-box-more { margin: 0; padding: 9px 16px 0; border-top: 1px solid var(--ref-border); }
#giftView .gift-box-more > summary { min-height: 22px; font-size: 12px; }
#giftView .gift-box-more .gift-facts { margin: 8px 0 4px; }
#giftView .gift-refund-note { margin: 0; padding: 8px 16px; color: var(--ref-muted); font-size: 12px; line-height: 1.4; }
#giftView .gift-box-actions, #giftView #giftMine .gift-box-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 16px 14px; }
#giftView .gift-box-actions :is(.gift-primary, .gift-secondary) { min-width: 0; min-height: 38px; padding: 6px 8px; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
#giftView .gift-box .gift-xtasks { margin: 0 16px 14px; padding-top: 10px; }
#giftView .gift-box > .gift-error, #giftView .gift-box > .gift-steps { margin: 0 16px 14px; }
@media (max-width: 820px) {
  #giftView .gift-create-layout { grid-template-columns: 1fr; }
  #giftView .gift-preview { position: static; }
  #giftView .gift-boxes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  html[data-gift-route] body.app-mode #giftView.gift-shell { padding: 24px 16px 40px; }
  #giftView .gift-heading p { font-size: 16px; }
  #giftView .gift-tabs { gap: 16px; overflow-x: auto; }
  #giftView .gift-tabs a { white-space: nowrap; }
  #giftView .gift-card { padding: 18px; }
  #giftView .gift-preview { padding: 32px 20px; }
  #giftView #giftMineInline.gift-card { padding: 16px; }
  #giftView .gift-box-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #giftView .gift-box-facts > div:nth-child(3) { grid-column: auto; margin: 0; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--ref-border); }
  #giftView .gift-box-actions, #giftView #giftMine .gift-box-actions { grid-template-columns: 1fr 1fr; }
  #giftView .gift-box-actions > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  #giftView .gift-present, #giftView .gift-present * { animation: none !important; transition: none !important; }
}
