/* IDO page foundation and checkout. Public navigation lives in site-header.css. */
:root { color-scheme: light; --ido-ink: #122b42; --ido-muted: #617789; --ido-line: #dce9ef; --ido-accent: #078f9f; }
* { box-sizing: border-box; }
html { min-width: 0; background: #f2f9f8; scroll-padding-top: 152px; }
body.presale-page { margin: 0; color: var(--ido-ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: radial-gradient(ellipse at 80% 0, #daefff 0, transparent 650px), #f2f9f8; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: #067d98; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #1b73d1; outline-offset: 3px; }
h1:focus, h2:focus { outline: none; }
.presale-page [hidden] { display: none !important; }
body[data-ido-screen="checkout"] :is(.wow-chat-bubble-wrapper, .mobile-bottom-nav),
body[data-ido-screen="result"] :is(.wow-chat-bubble-wrapper, .mobile-bottom-nav) { display: none; }
.presale-shell { width: min(100%, 1248px); min-height: 85vh; margin: 0 auto; padding: 0 24px 72px; }
.tab-panel { min-width: 0; }
.eyebrow, .ido-eyebrow { color: #0792a6; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.ido-flow { display: flex; justify-content: center; gap: 36px; margin: 0; padding: 24px 0 18px; list-style: none; }
.ido-flow li { display: flex; align-items: center; gap: 9px; color: #748994; font-size: 13px; font-weight: 650; }
.ido-flow li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e3eded; }
.ido-flow li[aria-current] { color: #075f7e; }
.ido-flow li[aria-current] > span { color: white; background: #0c96af; }
.ido-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; min-height: 330px; padding: 24px 46px; border-radius: 26px; overflow: hidden; background: linear-gradient(120deg, #e9fbf6, #d7edff); }
.ido-hero-copy { position: relative; z-index: 1; }
.ido-hero h1 { margin: 10px 0 16px; font-size: clamp(30px, 4.3vw, 52px); line-height: 1.22; letter-spacing: -.035em; }
.ido-hero h1 em { display: inline-block; font-size: .49em; margin-top: 14px; font-weight: 600; color: #176991; font-style: normal; letter-spacing: .02em; }
.ido-hero-copy > p:not(.ido-eyebrow) { color: #5481a1; font-size: 11px; letter-spacing: .04em; }
.ido-network { display: inline-flex; padding: 7px 12px; border: 1px solid #bfdfdb; border-radius: 999px; color: #116b76; background: #f7fffc; font-size: 12px; line-height: 1.4; margin-top: 8px; }
.ido-hero-art { position: relative; align-self: stretch; min-height: 280px; }
.ido-earth { position: absolute; width: 90%; height: auto; right: -24px; top: -16px; opacity: .3; }
.ido-mascot { position: absolute; height: 112%; max-width: 100%; width: auto; object-fit: contain; right: 26px; bottom: -38px; filter: drop-shadow(0 18px 20px #33829a26); }
.ido-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.ido-metrics article { display: flex; flex-direction: column; min-width: 0; gap: 9px; padding: 20px; border: 1px solid var(--ido-line); border-radius: 17px; background: #ffffffeb; }
.ido-metrics article > span { color: var(--ido-muted); font-size: 13px; }
.ido-metrics strong { color: #075f91; font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.4; overflow-wrap: anywhere; }
.ido-metrics small { color: #7a8b99; font-size: 11px; line-height: 1.5; }
.ido-intro-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ido-phases { margin: 26px 0; }
.ido-phases-heading { margin-bottom: 16px; }
.ido-phases-heading h2 { margin: 0; font-size: 22px; }
.ido-phases-heading p { margin: 7px 0 0; color: var(--ido-muted); font-size: 13px; line-height: 1.7; }
.ido-phase-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ido-phase-card { min-width: 0; padding: 18px; border: 1px solid #d7e6f0; border-radius: 18px; background: #ffffffed; }
.ido-phase-card.is-current { border-color: #41b9da; background: linear-gradient(165deg,#eafdff,#fff 65%); box-shadow: 0 6px 20px #078faa10; }
.ido-phase-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.ido-phase-top > span { color: #8da3b4; font-size: 12px; font-weight: 750; }
.ido-phase-top h3 { margin: 0; font-size: 17px; }
.ido-phase-top small { flex-basis: 100%; margin-top: 3px; color: #7e93a4; font-size: 11px; }
.is-current .ido-phase-top small { color: #078f98; }
.ido-phase-card > img { display: block; width: 100%; height: 155px; margin: 10px auto; object-fit: contain; }
.ido-phase-card dl { display: grid; gap: 11px; margin: 16px 0 18px; }
.ido-phase-card dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ido-phase-card dt { color: #6b8394; font-size: 11px; line-height: 1.6; }
.ido-phase-card dd { margin: 0; color: #19557c; font-size: 12px; font-weight: 700; line-height: 1.6; text-align: right; }
.ido-phase-card dl > div:first-child dd { color: #0a85bf; font-size: 19px; line-height: 1; }
.ido-phase-card button { display: block; width: 100%; min-height: 42px; padding: 10px 6px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(110deg,#00bfbc,#0a80f2); font-weight: 700; font-size: 13px; }
.ido-phase-card button:disabled { opacity: 1; color: #8195a4; background: #edf3f7; }
@media(max-width:1023px) { .ido-phase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:479px) {
  .ido-phase-grid { gap: 10px; }
  .ido-phase-card { padding: 13px 11px; border-radius: 14px; }
  .ido-phase-card > img { height: 112px; margin-block: 7px; }
  .ido-phase-card dl { gap: 9px; margin-block: 12px; }
  .ido-phase-card dt { font-size: 10px; }
  .ido-phase-card dd { font-size: 10px; }
  .ido-phase-card button { font-size: 12px; }
}
.ido-card { min-width: 0; padding: 26px; border: 1px solid var(--ido-line); border-radius: 21px; background: white; box-shadow: 0 8px 26px #194d7510; }
.ido-card h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.ido-card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ido-card-title > strong { margin-left: auto; color: #086edf; font-size: 23px; }
.ido-rows { display: grid; margin: 8px 0 16px; }
.ido-rows > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-width: 0; padding: 14px 0; border-bottom: 1px solid #e9f0f5; }
.ido-rows > div:last-child { border-bottom: 0; }
.ido-rows dt { flex: 0 0 auto; color: var(--ido-muted); font-size: 14px; line-height: 1.7; }
.ido-rows dd { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; margin: 0; text-align: right; font-size: 16px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.ido-progress-track { height: 10px; border-radius: 100px; background: #e6f0f9; overflow: hidden; }
.ido-progress-track > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#16d386,#00bfd8); }
.ido-soft-note { margin: 10px 0 20px; padding: 15px; border-radius: 12px; color: #44718a; background: #f0f7fe; font-size: 14px; line-height: 1.7; }
.ido-primary, .ido-secondary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 14px 20px; border: 0; border-radius: 13px; color: white; background: linear-gradient(110deg, #00cfc6, #078ee9 66%, #1668f5); font-size: 17px; font-weight: 750; text-align: center; text-decoration: none; line-height: 1.5; }
.ido-primary:hover:not(:disabled) { filter: brightness(1.04); box-shadow: 0 7px 17px #107cb326; }
.ido-secondary { color: #1763b4; border: 1px solid #b4d4f4; background: #f8fbff; }
.ido-text-link, .ido-text-button { color: #067a99; font-size: 13px; font-weight: 600; line-height: 1.8; }
.ido-docs-link { display: block; margin-top: 14px; text-align: center; }
.ido-text-button { border: 0; padding: 10px; background: none; }
.ido-checkout { max-width: 720px; margin: 0 auto; }
.ido-screen-heading { display: flex; align-items: center; gap: 16px; margin: 16px 0 22px; }
.ido-screen-heading h1 { margin: 0; font-size: 24px; line-height: 1.5; }
.ido-back { flex: 0 0 40px; height: 40px; border: 1px solid #c9dce7; border-radius: 50%; color: #1c5178; background: white; font-size: 24px; }
.ido-benefit-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; padding: 20px; border-radius: 20px; background: white; border: 1px solid var(--ido-line); }
.ido-benefit-strip > div { min-width: 0; display: grid; gap: 7px; padding: 12px 4px; border-radius: 12px; background: #edf6ff; text-align: center; }
.ido-benefit-strip b { color: #086cde; font-size: 21px; overflow-wrap: anywhere; }
.ido-benefit-strip span { color: #547189; font-size: 12px; line-height: 1.5; }
.ido-checkout form { display: grid; gap: 20px; }
.ido-step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px !important; }
.ido-step-title > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(150deg,#04d6ca,#087cff); color: white; font-size: 16px; }
.ido-amounts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.ido-amounts button { display: grid; gap: 5px; padding: 16px 8px; border: 1px solid #d5e5f5; border-radius: 14px; color: #183759; background: white; }
.ido-amounts b { font-size: 22px; }
.ido-amounts small { color: #63849d; font-size: 12px; }
.ido-amounts button[aria-pressed="true"] { border-color: #198afa; background: #edf7ff; color: #086be7; box-shadow: 0 0 0 1px #198afa; }
.ido-label { display: block; margin: 20px 0 9px; font-weight: 650; font-size: 14px; }
.ido-amount-input { display: flex; align-items: center; min-width: 0; gap: 12px; padding: 7px 8px 7px 14px; border: 1px solid #d1e4f2; border-radius: 12px; background: #fafdff; }
.ido-amount-input input { min-width: 0; width: 100%; border: 0; padding: 10px 0; color: #174064; font-size: 22px; background: transparent; }
.ido-amount-input > span { font-size: 14px; color: #53738a; }
.ido-amount-input > button { flex: 0 0 auto; border: 0; padding: 12px; border-radius: 9px; color: #1162c6; background: #eaf3ff; font-weight: 600; }
.ido-wallet-summary { padding: 5px 16px; border: 1px solid #e2edf4; border-radius: 13px; }
.ido-wallet-summary dd { font-size: 14px; flex-wrap: wrap; }
.ido-inline-button, .ido-icon-button { flex: 0 0 auto; border: 0; border-radius: 7px; padding: 5px 8px; color: #0871b7; background: #eaf6fc; font-size: 12px; }
.ido-icon-button { min-width: 32px; min-height: 32px; font-size: 18px; }
.ido-referrer { display: block; width: 100%; min-width: 0; border: 1px solid #ccdde9; border-radius: 11px; padding: 13px; color: #183754; background: #fbfdff; font-size: 14px; }
.ido-referrer[aria-invalid="true"] { border-color: #db655b; }
.ido-hint { margin: 8px 0 0; color: #788c9c; font-size: 12px; line-height: 1.8; }
.ido-benefit-summary { padding: 18px; margin: 20px 0; border: 1px solid #cae9e7; border-radius: 14px; background: linear-gradient(145deg,#eafbf5,#f5fbff); }
.ido-benefit-summary h3 { margin: 0 0 6px; color: #0a7a70; font-size: 17px; }
.ido-benefit-summary .ido-rows { margin-bottom: 0; }
.ido-benefit-summary .ido-rows dd { font-size: 15px; color: #175387; }
.ido-feedback { margin: 12px 0; color: #52758a; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.ido-feedback:empty { display: none; }
.ido-feedback.is-error { color: #bc4b38; }
.ido-center { text-align: center; }
.ido-result { max-width: 720px; margin: 0 auto; }
.ido-result-hero { padding: 12px 8px 25px; text-align: center; }
.ido-result-hero img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 18px #0a778820); }
.ido-result-hero h1 { margin: 12px 0 9px; font-size: 30px; line-height: 1.4; letter-spacing: -.025em; }
.ido-result-hero p { max-width: 480px; margin: 0 auto; color: #637e91; font-size: 14px; line-height: 1.8; }
.ido-result[data-result-state="confirmed"] .ido-result-hero h1 { color: #008c7a; }
.ido-result-links { display: grid; gap: 12px; margin-top: 18px; }
.ido-recovery { margin-top: 18px; padding: 16px; border: 1px solid #e2d3b7; border-radius: 12px; background: #fffcf6; color: #756047; font-size: 13px; line-height: 1.7; }
.ido-recovery input, .ido-recovery button { margin-top: 12px; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid #b7dedf; border-radius: 11px; color: #086f83; background: #e9f9f6; font-weight: 650; }
.oc-gate, .oc-state { margin: 0; color: #6c8392; font-size: 14px; line-height: 1.8; }
.oc-empty { display: grid; gap: 8px; padding: 20px 0; }
.oc-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 16px; }
.oc-tab { border: 1px solid #dae7ee; background: #f7fbfd; color: #567187; border-radius: 10px; padding: 10px 13px; }
.oc-tab.is-active { border-color: #57b5c4; background: #e8f9f5; color: #096e7a; }
.oc-detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.oc-status-badge { padding: 6px 10px; background: #edf5ff; color: #366a9e; border-radius: 8px; font-size: 12px; }
.oc-status-badge[data-status="confirmed"], .oc-status-badge.is-ok { background: #e5f8ef; color: #16764d; }
.oc-status-badge[data-status="rejected"], .oc-status-badge.is-bad { background: #fff0eb; color: #b65c41; }
.oc-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.oc-meta-cell { min-width: 0; display: grid; gap: 8px; padding: 14px; border: 1px solid #e2edf3; border-radius: 10px; background: #fafdfd; }
.oc-meta-cell > span { color: #758c9c; font-size: 12px; }
.oc-meta-cell > strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.oc-timeline { border-top: 1px solid var(--ido-line); padding-top: 16px; }
.oc-tl-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.oc-tl-row i { flex: 0 0 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #14a8b0; }
.oc-tl-row u { color: #8095a2; margin-left: auto; text-decoration: none; }
.oc-payment-action { margin-top: 16px; padding: 16px; border-radius: 12px; background: #f0faf6; }
.oc-payment-hint, .oc-timeline-empty, .oc-reason, .oc-admin-note { font-size: 13px; color: #637d8f; line-height: 1.8; }
.oc-flags, .oc-release-error { color: #b2593e; font-size: 12px; }
.oc-section .gv-help { width: auto; height: auto; padding: 7px 10px; border-radius: 10px; overflow-wrap: anywhere; }
.mobile-bottom-nav { display: none; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 32px; max-width: min(90vw,520px); padding: 13px 20px; border-radius: 14px; transform: translate(-50%, 20px); background: #153d4e; color: white; font-size: 13px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible, .toast.is-show, .toast.show { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 800px) {
  .ido-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ido-intro-grid { gap: 14px; }
  .ido-hero { padding: 22px 28px; }
  .ido-hero-art { min-height: 240px; }
  .ido-mascot { right: -8px; }
  .ido-card { padding: 20px; }
  .oc-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .presale-shell { padding: 0 14px 105px; }
  body:is([data-ido-screen="checkout"], [data-ido-screen="result"]) .presale-shell { padding-bottom: 36px; }
  .ido-flow { gap: 22px; padding-block: 17px; }
  .ido-flow li { font-size: 11px; gap: 6px; }
  .ido-flow li > span { width: 21px; height: 21px; }
  .ido-hero { min-height: 245px; padding: 24px 18px; grid-template-columns: 1.4fr 1fr; border-radius: 19px; }
  .ido-hero h1 { font-size: 29px; }
  .ido-hero h1 em { font-size: 14px; white-space: nowrap; }
  .ido-hero-copy > p:not(.ido-eyebrow) { font-size: 8px; letter-spacing: 0; }
  .ido-hero-art { min-height: 180px; }
  .ido-earth { width: 170%; max-width: none; right: -70px; top: 0; }
  .ido-mascot { height: 95%; max-width: none; right: -46px; bottom: -24px; }
  .ido-network { font-size: 10px; padding: 6px 9px; }
  .ido-metrics { gap: 10px; margin: 14px 0; }
  .ido-metrics article { padding: 14px 12px; gap: 6px; }
  .ido-metrics strong { font-size: 18px; }
  .ido-metrics article > span { font-size: 12px; }
  .ido-metrics small { font-size: 10px; }
  .ido-intro-grid { grid-template-columns: 1fr; }
  .ido-card { border-radius: 18px; padding: 18px; }
  .ido-card h2 { font-size: 18px; }
  .ido-rows > div { gap: 12px; padding-block: 12px; }
  .ido-rows dt { font-size: 12px; }
  .ido-rows dd { font-size: 14px; }
  .ido-rows dd > span { min-width: 0; overflow-wrap: anywhere; }
  .ido-screen-heading { gap: 12px; margin-top: 10px; }
  .ido-screen-heading h1 { font-size: 20px; }
  .ido-benefit-strip { padding: 12px; gap: 7px; }
  .ido-benefit-strip b { font-size: 18px; }
  .ido-benefit-strip span { font-size: 10px; }
  .ido-amounts { gap: 9px; }
  .ido-amounts button { padding: 14px 5px; }
  .ido-amounts b { font-size: 20px; }
  .ido-wallet-summary { padding-inline: 12px; }
  .ido-wallet-summary dd { font-size: 12px; }
  .ido-benefit-summary { padding: 14px; }
  .ido-benefit-summary .ido-rows dd { font-size: 13px; }
  .ido-result-hero h1 { font-size: 25px; }
  .ido-result-hero img { width: 125px; height: 125px; }
  .ido-primary, .ido-secondary { font-size: 16px; }
  .oc-tl-row { flex-wrap: wrap; }
  .oc-tl-row u { margin-left: 20px; }
  .toast { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .toast { transition: none; } }

/* 支付前余额提示弹窗（缺 USDT 认购款 / 缺 BNB 矿工费）。
   toast 一闪而过，用户常常看不清就消失了，这里改成需要点确认的弹窗。
   配色沿用本页浅色主题（--ido-ink / --ido-line / --ido-accent）。 */
.wow-dialog { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(18, 43, 66, .42); backdrop-filter: blur(4px); }
.wow-dialog[hidden] { display: none; }
.wow-dialog-card { width: min(420px, 100%); padding: 24px 22px 20px; border: 1px solid var(--ido-line); border-radius: 17px; background: #fff; box-shadow: 0 24px 60px rgba(18, 43, 66, .22); }
.wow-dialog-card h3 { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--ido-ink); }
.wow-dialog-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wow-dialog-rows li { padding: 12px 14px; border: 1px solid var(--ido-line); border-radius: 12px; background: #f7fbfb; font-size: 13px; line-height: 1.65; color: var(--ido-muted); }
.wow-dialog-rows li b { display: block; margin-bottom: 4px; font-weight: 700; color: #b4530a; }
.wow-dialog-hint { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: var(--ido-muted); word-break: break-all; }
.wow-dialog-ok { margin-top: 16px; width: 100%; padding: 12px; border: 0; border-radius: 10px; color: #fff; background: var(--ido-accent); font-size: 14px; font-weight: 700; cursor: pointer; }
.wow-dialog-ok:hover { filter: brightness(1.08); }

/* 底部导航：与首页(home.min.css)保持一致 — 白色毛玻璃 + 绿色高亮，断点 767 */
@media (max-width: 767px) {
  .mobile-bottom-nav { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); min-height: 60px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid #e1edf1; background: rgba(255,255,255,.98); box-shadow: 0 -8px 24px rgba(32,68,92,.08); backdrop-filter: blur(18px); }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; border-radius: 10px; color: #7a8e9a; text-decoration: none; font-size: 10px; font-weight: 700; }
  .mobile-bottom-nav a > span { font-size: 22px; line-height: 1; }
  .mobile-bottom-nav a > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bottom-nav a.active { color: #0ea77c; background: rgba(14,167,124,.1); }
  .toast { bottom: 92px; }
}
