/**
 * site.css：定义客户站各板块、弹窗、客服与移动端布局，保持业务后台主题独立。
 */
html.staking-document { background: #f4f6fc; }

body.staking-customer {
    margin: 0;
    color: #212529;
    background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-synthesis: none;
}

.staking-app {
    --staking-primary: #524bff;
    --staking-muted: #9599a7;
    --staking-line: #e9ebf2;
    min-width: 0;
    color: #212529;
}

.staking-app *, .staking-app *::before, .staking-app *::after { box-sizing: border-box; }
body.staking-customer [hidden], .staking-app[hidden], .staking-app [hidden] { display: none !important; }
.staking-app :is(button, input, select, textarea) { font-family: inherit; }
.staking-app :is(button, a, select) { -webkit-tap-highlight-color: transparent; }
.staking-app a { color: inherit; text-decoration: none; }
.staking-app button { cursor: pointer; }
.staking-app :is(button, .btn):disabled { cursor: wait; opacity: .55; }
.staking-app .staking-container { width: 100%; max-width: 1040px; margin: 0 auto; }

/* Match the reference header without inheriting Bootstrap container gutters. */
.staking-app .staking-header { position: relative; z-index: 20; height: 82px; color: #fff; background: #514bff; }
.staking-app .staking-header > .staking-container {
    display: flex; align-items: center; gap: 16px;
    width: 100%; max-width: none; height: 100%; padding: 14px 24px;
}
.staking-app .staking-brand {
    display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto;
    color: inherit; font-size: 29px; font-weight: 800; letter-spacing: 1px; white-space: nowrap;
}
.staking-app .staking-brand-symbol {
    flex: 0 0 40px; width: 40px; height: 40px; border: 2px solid #c5d2ff; border-radius: 50%;
    font-size: 23px; font-weight: 800; line-height: 36px; text-align: center;
}
.staking-app .staking-menu-toggle {
    flex: 0 0 auto; min-width: 0; min-height: 44px; padding: 6px 8px; border: 0;
    color: inherit; background: transparent; font-size: 28px; line-height: 1;
}
.staking-app .staking-top-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.staking-app .staking-header .staking-wallet-select, .staking-app .staking-wallet-button, .staking-app .staking-top-actions .btn-light {
    width: auto; max-width: 145px; min-height: 44px; margin: 0; padding: 10px 15px;
    border: 0; border-radius: 7px; color: #141625; background: #fff;
    font-size: 16px; font-weight: 600; line-height: 1.5; white-space: nowrap; box-shadow: none;
}
.staking-app .staking-header .staking-wallet-select { width: 145px; padding-right: 15px; background-image: none; }
.staking-app .staking-active-wallet { color: #fff; font-size: 14px; white-space: nowrap; }
.staking-app .staking-auto-wallet-dialog { width: min(360px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 16px; color: #212529; box-shadow: 0 20px 60px #20243e40; }
.staking-app .staking-auto-wallet-dialog::backdrop { background: #14162566; }
.staking-app .staking-auto-wallet-dialog h2 { margin: 0 0 10px; font-size: 20px; }
.staking-app .staking-auto-wallet-dialog p { margin-bottom: 18px; color: #656c7c; font-size: 14px; }
.staking-app .staking-auto-wallet-options { display: grid; gap: 10px; }
.staking-app .staking-auto-wallet-options button { min-height: 48px; padding: 12px 16px; border: 1px solid #d6d9ee; border-radius: 10px; background: #fff; color: #212529; text-align: left; font-size: 16px; touch-action: manipulation; }
.staking-app .staking-auto-wallet-options button:is(:hover, :focus-visible) { border-color: #514bff; background: #f1f0ff; }
.staking-app .staking-auto-wallet-cancel { display: block; min-height: 44px; margin: 16px auto 0; padding: 8px 24px; border: 0; background: transparent; color: #656c7c; }
.staking-app .staking-wallet-logout {
    padding: 8px 12px; border: 1px solid #c5d2ff; border-radius: 7px;
    color: inherit; background: transparent; font-size: 14px; white-space: nowrap;
}
.staking-app .staking-network-chip { padding: 8px 10px; font-size: 11px; font-weight: 500; }
.staking-app .staking-navigation {
    position: absolute; top: 78px; left: 20px; z-index: 30;
    display: grid; gap: 3px; min-width: 220px; max-width: calc(100% - 40px); padding: 16px;
    border-radius: 16px; background: #fff; box-shadow: 0 18px 50px #20243e30;
}
.staking-app .staking-navigation :is(a, button) {
    display: block; min-height: 44px; padding: 12px; border: 0;
    color: #31394d; background: transparent; text-align: left;
}
.staking-app .staking-navigation :is(a, button):hover,
.staking-app .staking-navigation [aria-current="page"] { border-radius: 8px; background: #f1f0ff; }
.staking-app .staking-main { min-width: 0; max-width: 1040px; padding: 0 0 60px; }
.staking-app .staking-page { min-width: 0; }
.staking-app .staking-page:not([data-page="home"]) { padding: 20px; }

.staking-app .staking-hero {
    position: relative; display: flex; align-items: center; height: 305px; padding: 40px;
    overflow: hidden; border-radius: 0 0 38px 38px; color: #fff;
    background: linear-gradient(125deg, #4849ff, #5c47f8);
}
.staking-app .staking-hero-copy { position: relative; z-index: 1; }
.staking-app .staking-hero-copy h1 { margin: 13px 0; font-size: 48px; font-weight: 500; letter-spacing: -1.5px; line-height: 1.2; }
.staking-app .staking-hero-copy > p:last-child { margin: 0; font-size: 22px; opacity: .85; }
.staking-app .staking-hero-copy .staking-eyebrow { margin: 0 0 16px; color: inherit; font-size: 12px; letter-spacing: 3px; opacity: .8; }
.staking-app .staking-hero-art { position: absolute; top: 25px; right: 15px; width: 290px; height: auto; opacity: .85; pointer-events: none; }
.staking-app .staking-overview, .staking-app .staking-content-card, .staking-app .staking-product-card {
    min-width: 0; padding: 30px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 10px 40px #30397308;
}
.staking-app .staking-overview { position: relative; z-index: 1; margin: -37px 26px 26px; text-align: center; }
.staking-app .staking-caption { margin: 0 0 22px; color: #656c7c; font-size: 17px; line-height: 1.5; }
.staking-app .staking-overview > div:first-child { position: relative; margin-bottom: 22px; }
.staking-app .staking-overview-caption { flex: 1; margin: 0 0 22px; color: #656c7c; font-size: 17px; text-align: center; }
.staking-app .staking-overview [data-refresh-dashboard] { position: absolute; top: 50%; right: 0; padding: 6px; transform: translateY(-50%); }
.staking-app .staking-overview-note { margin: 10px 0 0; color: #969bab; font-size: 13px; line-height: 1.8; }
.staking-app .staking-overview-settlement { display: inline-block; margin: 8px auto 26px; padding: 13px 23px; border-radius: 30px; color: #212529; background: #f4f5f8; font-size: 15px; }
.staking-app .staking-overview-settlement strong { margin-left: 8px; font-variant-numeric: tabular-nums; }
.staking-app .staking-total { min-width: 0; font-size: 44px; font-weight: 600; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.staking-app .staking-total strong { font-weight: inherit; }
.staking-app .staking-total small { font-size: 25px; font-weight: 500; }
.staking-app .staking-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 38px 0 28px; }
.staking-app .staking-metric { min-width: 0; }
.staking-app .staking-metric:nth-child(odd) { border-right: 1px solid var(--staking-line); }
.staking-app .staking-metric p { margin: 0 0 10px; color: var(--staking-muted); font-size: 17px; }
.staking-app .staking-metric strong { font-size: 27px; font-weight: 600; letter-spacing: -.5px; overflow-wrap: anywhere; }
.staking-app .staking-metric small { font-size: 13px; }
.staking-app .staking-home-actions { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0; }
.staking-app .staking-home-actions .btn { display: block; min-width: 235px; margin: 0 auto 16px; font-size: 19px; }
.staking-app .staking-home-actions .staking-caption { color: #969bab; font-size: 13px; line-height: 1.8; }
.staking-app .staking-content-card { margin: 26px; }
.staking-app .staking-content-card > h2 { margin: 0 0 24px; font-size: 21px; font-weight: 500; }
.staking-app .staking-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.staking-app .staking-feature { display: block; min-width: 0; padding: 22px; border: 0; border-radius: 16px; color: inherit; background: #f7f7ff; text-align: left; }
.staking-app .staking-feature > :is(span, i):first-child { color: #7066ff; font-size: 35px; }
.staking-app .staking-feature :is(h2, h3) { margin: 12px 0; font-size: 18px; font-weight: 500; }
.staking-app .staking-feature p { margin: 0 0 16px; color: #9296a4; font-size: 13px; line-height: 1.6; }
.staking-app .staking-feature > span:last-child { display: block; color: #7066ff; font-size: 13px; }
.staking-app .staking-info-note { color: #969bab; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.staking-app .staking-info-note:last-child { margin-bottom: 0; }
.staking-app [data-page="home"] > .staking-info-note { margin: 18px 26px; }
.staking-app .staking-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.staking-app .staking-section-heading h2 { margin: 0; font-size: 21px; font-weight: 500; }
.staking-app .staking-section-heading > a { color: var(--staking-primary); font-size: 13px; }
.staking-app .staking-page-intro { margin-bottom: 0; }
.staking-app .staking-page-intro h1 { margin: 18px 6px; font-size: 25px; font-weight: 500; }
.staking-app .staking-page-intro > p { margin: 0 0 16px; color: #969bab; font-size: 13px; line-height: 1.8; }

/* Forms and records retain their existing Bootstrap components and safe scrolling. */
.staking-app .card { min-width: 0; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 10px 40px #30397308; }
.staking-app .card-header { padding: 30px 30px 0; border: 0; border-radius: 22px 22px 0 0; background: transparent; }
.staking-app .card-header :is(h2, h3) { margin: 0; font-size: 21px; font-weight: 500; }
.staking-app .card-body { min-width: 0; padding: 30px; }
.staking-app .card-footer { padding: 0 30px 30px; border: 0; border-radius: 0 0 22px 22px; background: transparent; }
.staking-app .btn { max-width: 100%; padding: 11px 17px; border-radius: 20px; font-size: 16px; line-height: 1.5; white-space: normal; }
.staking-app .btn-primary { padding: 13px 27px; border: 0; border-radius: 24px; color: #fff; background: linear-gradient(100deg, #4c5bff, #7b5bff); box-shadow: 0 7px 20px #6052ff22; }
.staking-app .btn-primary:hover { background: linear-gradient(100deg, #454ff0, #7050ee); }
.staking-app .btn-outline-primary { border-color: #d6d9ee; color: #212529; background: #fff; }
.staking-app .btn-outline-primary:hover { border-color: #b5afff; color: #4540d4; background: #f7f7ff; }
.staking-app .btn-outline-secondary { border-color: #d6d9ee; color: #626780; background: #fff; }
.staking-app .btn-outline-secondary:hover { border-color: #cfccff; color: var(--staking-primary); background: #f7f7ff; }
.staking-app .btn-link { border: 0; color: var(--staking-primary); background: transparent; box-shadow: none; }
.staking-app .form-control, .staking-app .form-select { min-width: 0; min-height: 44px; padding: 12px; border: 1px solid #dce1ed; border-radius: 9px; color: #1e2944; background-color: #fff; font-size: 15px; }
.staking-app .form-select { padding-right: 36px; }
.staking-app .form-control:focus, .staking-app .form-select:focus { border-color: #a09bff; box-shadow: 0 0 0 3px #524bff14; }
.staking-app .form-label { color: #6f788d; font-size: 14px; }
.staking-app .form-check-label { color: #6f788d; font-size: 13px; line-height: 1.7; }
.staking-app .form-check-input:checked { border-color: var(--staking-primary); background-color: var(--staking-primary); }
.staking-app .staking-product-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.staking-app .staking-product-filters button { min-height: 40px; padding: 8px 15px; border: 1px solid #d6d9ee; border-radius: 20px; color: #6f788d; background: #fff; font-size: 13px; }
.staking-app .staking-product-filters [aria-pressed="true"] { border-color: #cfccff; color: #4540d4; background: #f1f0ff; }
.staking-app [data-products] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 0; }
.staking-app [data-products] > * { width: 100%; min-width: 0; margin: 0; padding: 0; }
.staking-app .staking-product-card { height: 100%; }
.staking-app .staking-product-topline { min-width: 0; }
.staking-app .staking-product-name { margin: 0 0 8px; font-size: 22px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.staking-app .staking-product-term { display: block; margin-bottom: 16px; color: #777e90; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.staking-app .staking-product-rate { display: block; margin: 0; color: var(--staking-primary); font-size: 32px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.staking-app .staking-product-minimum, .staking-app .staking-product-description { margin: 0 0 16px; color: #777e90; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.staking-app .staking-tier-list { min-width: 0; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--staking-line); }
.staking-app .staking-tier-heading { margin: 0; color: #263047; font-size: 18px; font-weight: 500; line-height: 1.5; }
.staking-app .staking-tier-cards { display: grid; gap: 12px; margin-top: 16px; }
.staking-app .staking-tier-card { min-width: 0; padding: 16px; border: 1px solid #e1e3f1; border-radius: 14px; background: #f7f7ff; }
.staking-app .staking-tier-title { margin: 0 0 12px; color: #39445e; font-size: 16px; font-weight: 500; line-height: 1.5; }
.staking-app .staking-tier-details { display: grid; gap: 10px; margin: 0; font-size: 16px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.staking-app .staking-tier-detail { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 12px; }
.staking-app .staking-tier-detail dt { color: #545e73; font-weight: 700; }
.staking-app .staking-tier-detail dd { min-width: 0; margin: 0; color: #263047; text-align: right; overflow-wrap: anywhere; }
.staking-app .staking-tier-detail .staking-tier-rate { color: #4540d4; font-size: 24px; font-weight: 700; }
.staking-app .staking-product-rule { margin: 14px 0 0; color: #545e73; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.staking-app .staking-product-action { margin-top: 20px; }
.staking-app .staking-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.staking-app .staking-product-actions .staking-product-action { margin-top: 0; }
.staking-app [data-products-panel][data-has-order="true"] :is([data-product-id], [data-start-new-product]):disabled {
    cursor: not-allowed; opacity: 1; color: #626b7e; background: #e9ebf2; box-shadow: none;
}
.staking-app [data-products-receipt] { white-space: pre-line; overflow-wrap: anywhere; }
.staking-app .staking-product-action[aria-pressed="true"] { outline: 2px solid #b5afff; outline-offset: 3px; }
.staking-app .staking-table-wrap, .staking-app .table-responsive { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.staking-app .table { width: 100%; min-width: 680px; margin-bottom: 18px; border-color: var(--staking-line); font-size: 14px; }
.staking-app .table th { padding: 14px 12px; color: #8991a2; font-weight: 500; white-space: nowrap; }
.staking-app .table td { max-width: 25rem; padding: 16px 12px; color: #343f57; vertical-align: middle; overflow-wrap: anywhere; }
.staking-app .table .btn { padding: 9px 12px; font-size: 12px; }
.staking-app .table .form-control { min-width: 12rem; }
.staking-app .staking-address { max-width: 100%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-word; overflow-wrap: anywhere; }
.staking-app .staking-lead { max-width: 42rem; line-height: 1.8; }
.staking-app .staking-status { min-height: 24px; line-height: 1.7; overflow-wrap: anywhere; }
.staking-app details { padding: 20px 0; border-bottom: 1px solid var(--staking-line); }
.staking-app details:last-child { border-bottom: 0; }
.staking-app summary { font-weight: 600; cursor: pointer; }
.staking-app details p { margin: 16px 0; color: #788193; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Records use the reference card hierarchy rather than a wide table. */
.staking-app .staking-order-card, .staking-app .staking-history-card { min-width: 0; margin: 12px 0; padding: 20px; border: 0; border-radius: 14px; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
.staking-app .staking-order-name { margin: 0 0 8px; font-size: calc(1.3rem + .6vw); font-weight: 500; line-height: 1.2; }
.staking-app .staking-order-meta { margin: 0 0 16px; font-size: 14px; }
.staking-app .staking-order-details, .staking-app .staking-history-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 12px; margin: 0 0 16px; line-height: 1.9; }
.staking-app .staking-order-details dt, .staking-app .staking-history-details dt { min-width: 0; color: #8991a2; }
.staking-app .staking-order-value, .staking-app .staking-history-value { min-width: 0; margin: 0; color: #212529; overflow-wrap: anywhere; }
.staking-app .staking-history-value { white-space: pre-wrap; }
.staking-app .staking-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.staking-app .staking-order-actions .btn { min-height: 44px; }
.staking-app .staking-order-actions .staking-registration-caption { flex-basis: 100%; margin: 0; color: #5f687b; font-size: 14px; line-height: 1.6; }
.staking-app .staking-order-actions [data-registration-order] {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
    min-width: 9.5rem; padding: 10px 16px; border: 1px solid #d9d7f8; border-radius: 12px;
    color: #4338a7; background: #f4f3ff; font-size: 15px; font-weight: 600;
}
.staking-app [data-registration-order]::after {
    content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-right: 2px;
    border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
}
.staking-app .staking-order-transaction-input { flex: 1 1 260px; width: auto; min-width: 0; max-width: 100%; }
.staking-app .staking-history-title { margin: 0 0 16px; font-size: 16px; font-weight: 500; line-height: 1.2; }
.staking-app .staking-empty-state { grid-column: 1 / -1; min-width: 0; padding: 55px 20px; border: 0; border-radius: 20px; color: #9ba3b3; background: #fff; text-align: center; overflow-wrap: anywhere; }
.staking-app .staking-empty-state > p:last-child { margin-bottom: 0; }

/* 各数据源独立结束加载，已显示的数字不随后台刷新闪动。 */
.staking-app[data-ledger-loading="true"] :is([data-overview], [data-account-overview]),
.staking-app [data-reward-loading="true"] [data-reward-overview],
.staking-app [data-balance-loading="true"] [data-site-balance-overview],
.staking-app [data-credit-loading="true"] [data-credit-amount] {
    --staking-loading-bar: inline-block;
    --staking-loading-fallback: none;
}
.staking-app .staking-value-loading {
    display: var(--staking-loading-bar, none);
    position: relative;
    width: 3.25em;
    max-width: 90%;
    height: .65em;
    vertical-align: .02em;
    border-radius: .2em;
    background: #e3e5ef;
    animation: staking-loading-pulse 1.6s ease-in-out .18s infinite alternate;
}
.staking-app .staking-value-fallback { display: var(--staking-loading-fallback, inline); font-size: .7em; font-weight: 500; color: #606779; }
.staking-app .staking-list-loading, .staking-app .staking-inline-loading {
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: 0;
    color: #606779;
    font-size: .9rem;
}
.staking-app .staking-list-loading { display: none; min-height: 5rem; }
.staking-app [aria-busy="true"]:empty + .staking-list-loading, .staking-app .staking-inline-loading { display: flex; }
.staking-app .staking-inline-loading { justify-content: flex-start; margin: .5rem 0; }
.staking-app .staking-list-loading::before, .staking-app .staking-inline-loading::before {
    content: "";
    width: 1em;
    height: 1em;
    flex: none;
    border: 2px solid #dedef1;
    border-top-color: var(--staking-primary);
    border-radius: 50%;
    animation: staking-loading-spin .9s linear .18s infinite;
}
@keyframes staking-loading-pulse { to { opacity: .48; } }
@keyframes staking-loading-spin { to { transform: rotate(1turn); } }
.staking-app .staking-page .staking-account-card { margin: 18px 0; }
.staking-app .staking-account-mode-label { display: block; margin: 0; color: #727a8d; font-size: 14px; }
.staking-app .staking-account-mode { min-height: 38px; margin-bottom: 22px; padding: 6px 36px 6px 12px; border-color: #dee2e6; border-radius: 6px; color: #212529; background-color: #fff; font-size: 16px; line-height: 1.5; opacity: 1; }
.staking-app .staking-account-mode:disabled { background-color: #e9ecef; opacity: 1; }
.staking-app .staking-account-destination, .staking-app .staking-account-help { margin: 0 0 16px; color: #969bab; font-size: 13px; line-height: 1.8; }
.staking-app .staking-account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.staking-app .staking-account-metrics > * { min-width: 0; }
.staking-app .staking-account-metrics p { margin: 0 0 16px; color: #9197a7; font-size: 13px; }
.staking-app .staking-account-metrics strong { display: block; min-width: 0; font-size: 23px; font-weight: 700; overflow-wrap: anywhere; }
.staking-app .staking-account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.staking-app .staking-account-actions > * { min-height: 44px; padding: 11px 18px; border: 0; border-radius: 17px; color: var(--staking-primary); background: #f0efff; font-size: 14px; line-height: 1.5; box-shadow: none; }
.staking-app .staking-account-actions > :hover { color: #4540d4; background: #e8e6ff; }
.staking-app .staking-account-wallet { min-width: 0; margin-top: 18px; }
.staking-app .staking-account-wallet summary { color: #727a8d; font-size: 14px; }
.staking-app .staking-account-wallet .staking-address { color: #788193; font-size: 13px; }
.staking-app .staking-account-wallet .form-select { max-width: 320px; margin-top: 10px; }
.staking-app .staking-page .staking-faq-card { margin: 26px; padding: 30px; border: 0; border-radius: 22px; color: #212529; background: #fff; box-shadow: 0 10px 40px #30397308; }
.staking-app .staking-faq-card summary { color: #212529; font-size: 16px; font-weight: 600; line-height: 1.5; }
.staking-app .staking-faq-card p { margin: 0 0 16px; color: #788193; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }

/* Floating WhatsApp contact shortcut. */
.staking-app .staking-support-button {
    position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(28px, env(safe-area-inset-bottom, 0px)); z-index: 40;
    display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0;
    border: 0; border-radius: 50%; color: #5351ff; background: #fff; box-shadow: 0 6px 30px #5560a32b; font-size: 38px; line-height: 1;
}

/* Keep native dialogs in the top layer and preserve keyboard-visible controls. */
.staking-app .staking-registration-dialog {
    position: fixed;
    inset: 0;
    z-index: 4000;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 1rem;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    background: rgba(23, 28, 46, .55);
    color: #242941;
}
.staking-app .staking-registration-dialog:not([open]) { display: none; }
.staking-app .staking-registration-dialog[open] { display: flex; }
.staking-app .staking-registration-dialog::backdrop { background: transparent; }
.staking-app .staking-registration-card {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
    width: min(100%, 25rem); margin: auto; padding: clamp(18px, 5vw, 24px);
    border-radius: 20px; background: #fff; box-shadow: 0 18px 60px #151c3b38;
}
.staking-app .staking-registration-header {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px;
    padding-bottom: 14px; border-bottom: 1px solid #e7e9f1;
}
.staking-app .staking-registration-header h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.4; }
.staking-app .staking-registration-header h2:focus { outline: none; }
.staking-app .staking-registration-order { color: #626b80; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.staking-app .staking-registration-status { display: flex; align-items: center; gap: 12px; }
.staking-app .staking-registration-status p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.staking-app .staking-registration-mark {
    position: relative; display: grid; place-items: center; flex: 0 0 40px; height: 40px;
    border-radius: 50%; color: #5448bc; background: #efedff;
}
.staking-app .staking-registration-mark::before {
    content: ""; width: 19px; height: 19px; border: 2px solid currentColor; border-radius: 50%;
}
.staking-app .staking-registration-mark::after {
    content: ""; position: absolute; top: 13px; left: 19px; width: 6px; height: 8px;
    border: solid currentColor; border-width: 0 0 2px 2px;
}
.staking-app [data-state="loading"] .staking-registration-mark::before { border-color: #c9c3f2; border-top-color: currentColor; animation: staking-loading-spin .8s linear infinite; }
.staking-app [data-state="loading"] .staking-registration-mark::after,
.staking-app [data-state="confirmed"] .staking-registration-mark::after,
.staking-app [data-state="failed"] .staking-registration-mark::after,
.staking-app [data-state="unavailable"] .staking-registration-mark::after { content: none; }
.staking-app [data-state="confirmed"] .staking-registration-mark { color: #167151; background: #e4f5ec; }
.staking-app [data-state="confirmed"] .staking-registration-mark::before {
    width: 17px; height: 10px; margin-top: -4px; border-width: 0 0 2.5px 2.5px; border-radius: 0; transform: rotate(-45deg);
}
.staking-app [data-state="failed"] .staking-registration-mark,
.staking-app [data-state="unavailable"] .staking-registration-mark { color: #915015; background: #fff1dc; }
.staking-app [data-state="failed"] .staking-registration-mark::before,
.staking-app [data-state="unavailable"] .staking-registration-mark::before {
    content: "!"; width: auto; height: auto; border: 0; font-size: 23px; font-weight: 700; line-height: 1;
}
.staking-app .staking-registration-receipt { min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid #e5e8f0; border-radius: 12px; background: #f7f8fb; }
.staking-app .staking-registration-receipt dt { margin-bottom: 4px; color: #5e687d; font-size: 13px; font-weight: 500; }
.staking-app .staking-registration-receipt dd {
    margin: 0; color: #333d54; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
    overflow-wrap: anywhere; word-break: break-all; user-select: text;
}
.staking-app .staking-registration-confirm {
    width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 12px;
    color: #fff; background: #5044c7; font-size: 16px; font-weight: 600; line-height: 1.5;
}
@media (hover: hover) {
    .staking-app .staking-order-actions [data-registration-order]:hover { border-color: #b5afed; background: #eceaff; }
    .staking-app .staking-registration-confirm:hover { background: #4439b0; }
}
.staking-app .staking-order-actions [data-registration-order]:active { background: #e6e3ff; }
.staking-app .staking-registration-confirm:active { background: #3e349f; }
.staking-app .staking-order-actions [data-registration-order],
.staking-app .staking-registration-confirm { -webkit-appearance: none; appearance: none; }
.staking-app .staking-order-actions [data-registration-order]:focus,
.staking-app .staking-registration-card .staking-registration-confirm:focus {
    outline: 2px solid transparent; outline-offset: -3px; box-shadow: inset 0 0 0 2px #5245b5;
}
.staking-app .staking-registration-card .staking-registration-confirm:focus { box-shadow: inset 0 0 0 3px #c6c0ff; }
.staking-app .staking-order-actions [data-registration-order]:focus:not(:focus-visible),
.staking-app .staking-registration-card .staking-registration-confirm:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.staking-app .staking-order-actions [data-registration-order][data-pointer-focus]:focus,
.staking-app .staking-registration-card[data-pointer-focus] .staking-registration-confirm:focus {
    outline: none; box-shadow: none;
}
body.staking-customer .staking-action-dialog { width: min(560px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); margin: auto; padding: 0; overflow-y: auto; border: 0; border-radius: 24px; color: #212529; background: #fff; box-shadow: 0 24px 80px #19215340; }
body.staking-customer .staking-action-dialog::backdrop { background: #0008; }
.staking-app .staking-action-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 22px 60px 10px 26px; }
.staking-app .staking-action-header h2 { min-width: 0; margin: 0; font-size: 20px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.staking-app .staking-action-close { position: absolute; top: 12px; right: 14px; width: 44px; min-height: 44px; padding: 10px; border: 0; color: #738099; background-color: transparent; font-size: 24px; line-height: 1; }
.staking-app .staking-action-content { min-width: 0; padding: 0 26px 26px; }
.staking-app .staking-action-content form { display: flex; flex-direction: column; min-width: 0; }
.staking-app .staking-action-content .form-label { margin-bottom: 8px; color: #6f788d; font-size: 14px; }
.staking-app .staking-action-content .staking-caption { color: #969bab; font-size: 13px; line-height: 1.8; }
.staking-app .staking-action-content form > button[type="submit"] { align-self: flex-end; }
.staking-app .staking-load-more { display: block; margin: 20px auto 28px; padding: 12px 24px; border: 1px solid #d6d9ee; border-radius: 24px; color: var(--staking-primary); background: #fff; font-size: 14px; }
.staking-app .staking-promotion-card { margin: 26px; overflow-wrap: anywhere; }
.staking-app [data-invitation-panel] > .staking-promotion-card { margin: 18px 0; }
.staking-app .staking-promotion-card .staking-caption { color: #969bab; font-size: 13px; line-height: 1.8; }
.staking-app .staking-promotion-card [data-invite-rule] { margin-bottom: 16px; }
.staking-app .staking-invitation-field { display: block; margin: 0 0 22px; color: #727a8d; font-size: 14px; }
.staking-app .staking-promotion-card .staking-invitation-field .form-control { margin-top: 10px; padding: 15px; border-color: var(--staking-line); border-radius: 10px; color: #1e2944; background: #f8f9fc; font-size: 15px; line-height: 1.5; box-shadow: none; }
.staking-app [data-invite-status]:empty { display: none; }
.staking-app [data-reward-status]:empty { display: none; }
.staking-app [data-paged-status]:empty, .staking-app [data-airdrop-status]:empty { display: none; }
.staking-app .staking-promotion-card .form-label { display: block; margin-bottom: 6px; color: #727a8d; font-size: 14px; }
.staking-app .staking-promotion-card .form-control { min-height: 44px; padding: 12px 14px; border: 1px solid #d6d9ee; border-radius: 10px; font-size: 14px; }
.staking-app .staking-plain-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.staking-app .staking-announcement-dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; color: #212529; background: #fff; box-shadow: 0 24px 80px #19215340; }
.staking-app .staking-announcement-dialog[open] { display: flex; flex-direction: column; }
.staking-app .staking-announcement-dialog::backdrop { background: #0008; }
.staking-app .staking-announcement-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid #dee2e6; }
.staking-app .staking-announcement-header h2 { min-width: 0; margin: 0; font-size: 20px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.staking-app .staking-announcement-header .btn-close { flex-shrink: 0; padding: 8px; }
.staking-app .staking-announcement-content { min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; line-height: 1.8; }
.staking-app .staking-announcement-content .staking-caption { margin-bottom: 16px; font-size: 16px; }
.staking-app .staking-announcement-footer { display: flex; flex-shrink: 0; justify-content: flex-end; padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid #dee2e6; }
.staking-app .staking-session-notice { position: fixed; top: max(94px, env(safe-area-inset-top, 0px)); left: 50%; z-index: 3000; width: max-content; max-width: calc(100% - 32px); padding: 16px 22px; transform: translateX(-50%); border: 1px solid #dedaff; border-radius: 14px; color: #3a3378; background: #fff; box-shadow: 0 8px 28px #19215325; pointer-events: none; }
.staking-app .staking-session-notice p { margin: 0; overflow-wrap: anywhere; }
.staking-app .staking-session-notice[data-error="true"] { border-color: #f2c9cd; color: #a72438; }
.staking-app .staking-record-tools { margin-top: 20px; }
body.staking-customer .staking-wallet-dialog { width: min(560px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 22px 26px 26px; overflow-y: auto; border: 0; border-radius: 24px; color: #212529; background: #fff; box-shadow: 0 24px 80px #19215340; }
body.staking-customer .staking-wallet-dialog::backdrop { background: #0008; }
body.staking-customer .staking-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
body.staking-customer .staking-dialog-heading h2 { margin: 0; font-size: 20px; font-weight: 500; }
body.staking-customer .staking-dialog-heading button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
body.staking-customer .staking-wallet-dialog .staking-caption { color: #6f788d; font-size: 14px; line-height: 1.8; }
body.staking-customer .staking-wallet-dialog .wallet-choice { min-height: 44px; padding: 12px 18px; border: 1px solid #d6d9ee; border-radius: 20px; color: #263047; background: #fff; font-size: 15px; }
body.staking-customer .staking-wallet-dialog .wallet-choice:hover { border-color: #b5afff; color: #4540d4; background: #f7f7ff; }
.staking-app :is(a, button, input, select, textarea, summary):focus-visible,
body.staking-customer .staking-action-dialog :is(a, button, input, select, textarea):focus-visible,
body.staking-customer .staking-wallet-dialog :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--staking-primary, #524bff); outline-offset: 3px; }
.staking-app .staking-header :is(a, button, select):focus-visible { outline-color: #fff; }
body.staking-customer .staking-error { width: calc(100% - 32px); max-width: 600px; margin: 90px auto; padding: 0; }

@media (min-width: 1100px) {
    .staking-app .staking-header > .staking-container { padding-right: max(30px, calc((100vw - 1040px) / 2)); padding-left: max(30px, calc((100vw - 1040px) / 2)); }
    .staking-app .staking-hero { border-radius: 0 0 40px 40px; }
    .staking-app .staking-overview { margin-right: 50px; margin-left: 50px; }
    .staking-app .staking-hero-art { right: 100px; width: 320px; }
}
@media (min-width: 1200px) {
    .staking-app .staking-order-name { font-size: 28px; }
}
@media (max-width: 800px) {
    .staking-app .staking-header { height: 128px; }
    .staking-app .staking-header > .staking-container { display: grid; grid-template-columns: 44px minmax(0, 1fr) 112px; grid-template-rows: 44px 44px; gap: 12px 9px; }
    .staking-app .staking-menu-toggle { grid-column: 1; grid-row: 1; }
    .staking-app .staking-brand { grid-column: 2; grid-row: 1; margin-right: 0; }
    .staking-app .staking-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .staking-app .staking-top-actions { display: contents; }
    .staking-app .staking-active-wallet { grid-column: 1 / 3; grid-row: 2; }
    .staking-app .staking-header .staking-wallet-select { grid-column: 1 / 3; grid-row: 2; width: 100%; max-width: none; }
    .staking-app .staking-wallet-button, .staking-app .staking-top-actions .btn-light { grid-column: 3; grid-row: 2; width: 100%; max-width: none; }
    .staking-app .staking-wallet-logout, .staking-app .staking-network-chip { grid-column: 3; grid-row: 1; justify-self: end; }
    .staking-app .staking-navigation { top: 128px; }
    .staking-app[data-authenticated="false"] .staking-header { height: 72px; }
    .staking-app[data-authenticated="false"] .staking-header > .staking-container { grid-template-rows: 44px; }
    .staking-app[data-authenticated="false"] .staking-wallet-button { grid-row: 1; }
    .staking-app[data-authenticated="false"] .staking-navigation { top: 72px; }
}
@media (max-width: 600px) {
    .staking-app .staking-header { height: 113px; }
    .staking-app .staking-header > .staking-container { grid-template-rows: 40px 40px; gap: 9px; padding: 12px; }
    .staking-app .staking-brand { min-width: 90px; font-size: 21px; letter-spacing: 0; }
    .staking-app .staking-brand-symbol { flex-basis: 31px; width: 31px; height: 31px; font-size: 18px; line-height: 27px; }
    .staking-app .staking-menu-toggle { padding: 2px 4px; font-size: 24px; }
    .staking-app .staking-header .staking-wallet-select, .staking-app .staking-wallet-button, .staking-app .staking-top-actions .btn-light { min-height: 40px; padding: 10px 9px; font-size: 13px; }
    .staking-app .staking-header .staking-wallet-select { padding-right: 9px; }
    .staking-app .staking-navigation { top: 113px; }
    .staking-app[data-authenticated="false"] .staking-header { height: 64px; }
    .staking-app[data-authenticated="false"] .staking-header > .staking-container { grid-template-rows: 40px; }
    .staking-app[data-authenticated="false"] .staking-navigation { top: 64px; }
    .staking-app .staking-hero { height: 256px; padding: 27px 21px; }
    .staking-app .staking-hero-copy h1 { max-width: 235px; font-size: 34px; letter-spacing: -1px; }
    .staking-app .staking-hero-copy > p:last-child { max-width: 230px; font-size: 16px; line-height: 1.7; }
    .staking-app .staking-hero-art { top: 53px; right: -25px; width: 205px; opacity: .45; }
    .staking-app .staking-overview { margin: -25px 16px 22px; padding: 26px 18px; }
    .staking-app .staking-total { font-size: 33px; }
    .staking-app .staking-total small { font-size: 18px; }
    .staking-app .staking-caption, .staking-app .staking-overview-caption { font-size: 15px; }
    .staking-app .staking-metric-grid { gap: 30px 10px; margin-top: 32px; }
    /* 手机端指标名称可换两行，为左右金额保留一致的垂直起点。 */
    .staking-app .staking-metric p { min-height: 3em; font-size: 14px; }
    .staking-app .staking-metric strong { font-size: 23px; }
    .staking-app .staking-metric small { font-size: 10px; }
    .staking-app .staking-overview-settlement { font-size: 13px; }
    .staking-app .staking-content-card { margin: 18px 16px; padding: 22px; }
    .staking-app .staking-promotion-card { margin: 18px 16px; }
    .staking-app .staking-feature-grid { gap: 10px; }
    .staking-app .staking-feature { padding: 16px; }
    .staking-app .staking-feature h3 { font-size: 16px; }
    .staking-app .staking-page:not([data-page="home"]) { padding: 14px 16px; }
    .staking-app .staking-order-actions [data-registration-order] { width: 100%; }
    .staking-app [data-page="home"] > .staking-info-note { margin-right: 16px; margin-left: 16px; }
    .staking-app [data-products] { grid-template-columns: minmax(0, 1fr); }
    .staking-app .staking-product-card { padding: 24px; }
    .staking-app .staking-tier-details { gap: 12px; }
    .staking-app .staking-tier-detail { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .staking-app .staking-tier-detail dd { text-align: left; }
    .staking-app .card-header { padding: 22px 22px 0; }
    .staking-app .card-body { padding: 22px; }
    .staking-app .card-footer { padding: 0 22px 22px; }
    .staking-app .staking-account-metrics strong { font-size: 18px; }
    .staking-app .staking-account-metrics p { min-height: 3em; font-size: 12px; line-height: 1.5; }
    .staking-app .staking-account-actions { gap: 8px; }
    .staking-app .staking-account-actions > * { padding: 10px 13px; }
    .staking-app .staking-page .staking-faq-card { margin: 18px 16px; padding: 22px; }
    .staking-app .staking-support-button { right: max(15px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); width: 55px; height: 55px; }
}
@media (max-width: 575.98px) {
    body.staking-customer .staking-action-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
}
@media (max-width: 400px) {
    .staking-app[data-authenticated="false"] .staking-brand { grid-column: 2 / -1; }
    .staking-app .staking-metric-grid { column-gap: 6px; }
    .staking-app[data-authenticated="true"] .staking-metric strong { display: block; max-width: 100%; font-size: clamp(16px, 5vw, 20px); font-variant-numeric: tabular-nums; }
    .staking-app[data-authenticated="true"] .staking-metric small { display: block; margin-top: 4px; }
    .staking-app .staking-account-metrics { column-gap: 6px; }
    .staking-app .staking-account-metrics strong { font-size: clamp(13px, 4vw, 18px); font-variant-numeric: tabular-nums; }
}


@media (prefers-reduced-motion: reduce) {
    .staking-app *, .staking-app *::before, .staking-app *::after,
    body.staking-customer .staking-action-dialog, body.staking-customer .staking-action-dialog *,
    body.staking-customer .staking-wallet-dialog, body.staking-customer .staking-wallet-dialog * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.staking-app .staking-error-header { height: 82px; }
.staking-app .staking-error-header > .staking-container { display: flex; }
@media (max-width: 600px) {
    .staking-app .staking-error-header { height: 64px; }
}

/* 收益状态按实际资金位置分开显示，窄屏以两列展示且不隐藏关键授权和付款说明。 */
.staking-app .staking-account-flow {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;margin:20px 0 28px;padding:0;}
.staking-app .staking-account-flow li {padding:12px;border:1px solid #e8e6ff;border-radius:10px;background:#faf9ff;min-width:0;}
.staking-app .staking-account-flow strong,.staking-app .staking-account-flow span {display:block;}
.staking-app .staking-account-flow strong {font-size:14px;color:#4e43e8;}
.staking-app .staking-account-flow span {margin-top:6px;font-size:12px;color:#838aa0;line-height:1.5;}
.staking-app [data-account-kind="interest"] .staking-account-metrics {grid-template-columns:repeat(4,minmax(0,1fr));}
.staking-app .staking-account-metrics small {display:block;margin-top:8px;color:#9197a7;font-size:12px;line-height:1.6;}
@media(max-width:767px) {.staking-app .staking-account-flow,.staking-app [data-account-kind="interest"] .staking-account-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}.staking-app .staking-account-flow {gap:8px;}.staking-app .staking-account-metrics small {font-size:11px;}}
