:root {
    --bg: #08090d;
    --panel: rgba(255, 255, 255, 0.035);
    --line: rgba(255, 255, 255, 0.075);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #eef1f7;
    --text-dim: #a3abbd;
    --muted: #6f778a;
    --gold: #f0c04a;
    --gold-deep: #d9a02a;
    --gold-soft: rgba(240, 192, 74, 0.12);
    --ok: #3ddc97;
    --warn: #ffc857;
    --err: #ff7a7a;
    --radius: 20px;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.95);
    --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.page-glow,
.page-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.page-glow {
    background:
        radial-gradient(720px 420px at 12% -6%, rgba(240, 192, 74, 0.16), transparent 62%),
        radial-gradient(760px 520px at 88% 4%, rgba(64, 128, 255, 0.12), transparent 64%),
        radial-gradient(900px 620px at 50% 118%, rgba(240, 192, 74, 0.05), transparent 70%);
}

.page-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 82% 62% at 50% 26%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 82% 62% at 50% 26%, #000 35%, transparent 100%);
    opacity: 0.7;
}

.site-header,
.page,
.site-footer {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------------ header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 24px 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--line-strong), 0 10px 26px -12px rgba(240, 192, 74, 0.65);
}

.brand-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(240, 192, 74, 0.28);
    background: rgba(240, 192, 74, 0.08);
    border-radius: 999px;
    padding: 3px 8px;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 12.5px;
    color: var(--text-dim);
    white-space: nowrap;
}

.status-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.status-pill.is-ok .dot {
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.12);
    animation: pulse 2.6s ease-in-out infinite;
}

.status-pill.is-warn .dot {
    background: var(--warn);
    box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.12);
}

/* -------------------------------------------------------------------- hero */

.page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    padding: 44px 0 34px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-dim);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: fade-up 0.6s both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(240, 192, 74, 0.14);
}

.hero h1 {
    margin: 20px 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.035em;
    background: linear-gradient(180deg, #ffffff 18%, #cfd6e4 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fade-up 0.6s 0.06s both;
}

.hero-sub {
    margin: 0 auto;
    max-width: 660px;
    color: var(--text-dim);
    font-size: 15.5px;
    animation: fade-up 0.6s 0.12s both;
}

/* ------------------------------------------------------------------ layout */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
    gap: 20px;
    align-items: start;
    padding-bottom: 34px;
}

.col-main {
    display: grid;
    gap: 20px;
    align-content: start;
    min-width: 0;
}

.side {
    display: grid;
    gap: 20px;
}

.card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.014));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fade-up 0.6s 0.18s both;
}

.side .card:first-child {
    animation-delay: 0.24s;
}

.side .card:last-child {
    animation-delay: 0.3s;
}

.card-claim {
    padding: 28px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.card-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.tag {
    padding: 5px 10px;
    border: 1px solid rgba(240, 192, 74, 0.24);
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.card-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: var(--text);
}

/* ------------------------------------------------------------------- form */

.field-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #0a0c12;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
    border-color: rgba(240, 192, 74, 0.55);
    box-shadow: 0 0 0 4px rgba(240, 192, 74, 0.1);
}

.input-wrap.is-invalid {
    border-color: rgba(255, 122, 122, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 122, 122, 0.08);
}

.input-icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.address-input {
    flex: 1;
    min-width: 0;
    padding: 12px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--mono);
    font-size: 14.5px;
    letter-spacing: 0.01em;
}

.address-input::placeholder {
    color: #565e70;
    font-family: inherit;
}

.paste-btn {
    flex: none;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.paste-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.hint {
    min-height: 18px;
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.hint.is-error {
    color: var(--err);
}

.hint.is-warn {
    color: var(--warn);
}

.hint.is-ok {
    color: var(--ok);
}

.hint-muted {
    color: #596173;
    font-size: 12px;
}

.turnstile-wrap {
    display: flex;
    justify-content: flex-start;
    min-height: 66px;
    margin-top: 16px;
}

/* ----------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn-ghost {
    padding: 9px 15px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-size: 13px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
    border-radius: 10px;
}

.btn-primary {
    width: 100%;
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8d97f, #eab63d 52%, #d99b28);
    color: #171207;
    font-size: 15.5px;
    font-weight: 700;
    box-shadow: 0 14px 32px -14px rgba(240, 192, 74, 0.7);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(233, 238, 247, 0.38);
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
    filter: none;
}

.btn-primary[data-loading="true"] .btn-text {
    opacity: 0.55;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(23, 18, 7, 0.32);
    border-top-color: #171207;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-primary[data-loading="true"] .spinner {
    display: inline-block;
}

.fineprint {
    margin: 16px 0 0;
    color: #5c6373;
    font-size: 12px;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ result */

.result {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    animation: fade-up 0.35s both;
}

.result.is-success {
    border-color: rgba(61, 220, 151, 0.3);
    background: rgba(61, 220, 151, 0.07);
}

.result.is-error {
    border-color: rgba(255, 122, 122, 0.28);
    background: rgba(255, 122, 122, 0.06);
}

.result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 650;
}

.result-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.result.is-success .result-icon {
    background: rgba(61, 220, 151, 0.18);
    color: var(--ok);
}

.result.is-error .result-icon {
    background: rgba(255, 122, 122, 0.16);
    color: var(--err);
}

.result-rows {
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.result-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.result-row .value {
    color: var(--text);
    font-family: var(--mono);
    font-size: 12.5px;
    text-align: right;
    word-break: break-all;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 192, 74, 0.3);
}

.link:hover {
    border-bottom-color: var(--gold);
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid rgba(240, 192, 74, 0.3);
    border-radius: 9px;
    background: rgba(240, 192, 74, 0.08);
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.copy-btn,
.copy-mini {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover,
.copy-mini:hover {
    color: var(--gold);
    border-color: rgba(240, 192, 74, 0.4);
}

.countdown {
    color: var(--warn);
    font-family: var(--mono);
    font-size: 12.5px;
}

/* --------------------------------------------------------------- side cards */

.rule-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rule-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: var(--muted);
}

.rule-list strong {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.balance-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.balance-value {
    display: block;
    margin-top: 2px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
}

.chip {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.65;
}

.steps .num {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(240, 192, 74, 0.26);
    border-radius: 8px;
    background: rgba(240, 192, 74, 0.09);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.steps strong {
    display: block;
    margin-bottom: 1px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
}

.chip-warn {
    background: linear-gradient(180deg, #ffd374, #f0b53a);
    color: #1a1206;
}

.net-list {
    display: grid;
    gap: 15px;
    margin: 0;
}

.net-list > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.net-list dt {
    color: var(--muted);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.net-list dd {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 13.5px;
}

.mono {
    font-family: var(--mono);
    font-size: 12.5px;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.muted {
    color: var(--muted);
}

/* -------------------------------------------------------------------- faq */

.faq {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 0 44px;
}

.faq-title {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.faq-item {
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    color: var(--text);
    font-size: 14.5px;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: none;
    color: var(--gold);
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-body {
    padding-top: 12px;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.8;
}

.faq-body p {
    margin: 0 0 8px;
}

.faq-body ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--text-dim);
}

.faq-body li {
    margin-bottom: 4px;
}

.faq-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    word-break: break-all;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 24px 30px;
    color: var(--muted);
    font-size: 12.5px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.footer-brand img {
    border-radius: 6px;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sep {
    color: #3c4352;
}

/* ------------------------------------------------------------------ toast */

.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 60;
    max-width: min(90vw, 420px);
    padding: 11px 18px;
    transform: translate(-50%, 8px);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #141822;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.95);
    color: var(--text);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- animations */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.1);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(61, 220, 151, 0.04);
    }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 980px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding: 34px 0 28px;
        text-align: left;
    }

    .hero-sub {
        margin: 0;
    }

    .side {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        display: grid;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 18px 16px 8px;
        gap: 10px;
    }

    .page {
        padding: 0 16px;
    }

    .card,
    .card-claim {
        padding: 20px;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .status-pill {
        display: none;
    }

    .brand-sub {
        display: none;
    }

    .footer-inner {
        padding: 18px 16px 26px;
    }

    .result-row {
        flex-direction: column;
        gap: 2px;
    }

    .result-row .value {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
