:root {
    --bg: #0a0d12;
    --bg-elevated: #10151d;
    --surface: rgba(18, 23, 32, 0.88);
    --surface-strong: #151b24;
    --surface-soft: rgba(255, 255, 255, 0.03);
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text: #e8edf5;
    --muted: #9aa7b8;
    --muted-strong: #c5d0de;
    --accent: #6d8dff;
    --accent-strong: #4b6fff;
    --accent-soft: rgba(109, 141, 255, 0.14);
    --success: #37d39a;
    --success-soft: rgba(55, 211, 154, 0.14);
    --warn: #ffb454;
    --warn-soft: rgba(255, 180, 84, 0.14);
    --danger: #ff6b81;
    --danger-soft: rgba(255, 107, 129, 0.14);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.42);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color-scheme: dark;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 500px at -10% -20%, rgba(91, 140, 255, 0.16), transparent 60%),
        radial-gradient(800px 540px at 110% 10%, rgba(95, 211, 255, 0.09), transparent 58%),
        linear-gradient(180deg, #0a0d12 0%, #0c1016 100%);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

code,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}


.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 13, 18, 0.78);
    backdrop-filter: blur(14px);
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}

.brand {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.link:hover,
.link:focus-visible {
    color: var(--text);
}

.cta,
.btn-primary,
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(75, 111, 255, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.cta:hover,
.btn-primary:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(75, 111, 255, 0.28);
    filter: brightness(1.04);
}

.btn-secondary,
.ghost-btn,
.nav-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.btn-secondary:hover,
.ghost-btn:hover,
.nav-ghost-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 141, 255, 0.42);
    background: rgba(255, 255, 255, 0.045);
}

.cta:focus-visible,
.btn-primary:focus-visible,
.primary-btn:focus-visible,
.btn-secondary:focus-visible,
.ghost-btn:focus-visible,
.nav-ghost-btn:focus-visible,
.link:focus-visible,
.hub-tab-btn:focus-visible,
.plan-btn:focus-visible,
.preset-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid rgba(109, 141, 255, 0.9);
    outline-offset: 2px;
}

.primary-btn:disabled,
.ghost-btn:disabled,
.nav-ghost-btn:disabled,
.preset-btn:disabled,
.plan-btn:disabled,
#token-purchase-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.nav-ghost-btn {
    min-height: 40px;
    padding: 0 14px;
    color: var(--muted-strong);
}


.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #a9b8ff;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
}

.muted,
.muted-text {
    color: var(--muted);
}

.page-shell {
    overflow: clip;
}


.hero {
    position: relative;
    padding: 118px 0 84px;
    text-align: center;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 2rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.features {
    padding: 26px 0 34px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card,
.step-card,
.panel-card,
.credits-card,
.info-card,
.response-card,
.detail-card {
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.016));
    box-shadow: var(--shadow-md);
}

.card {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.08rem;
}

.card p {
    color: var(--muted);
}

.scan-brief-section {
    padding: 0 0 86px;
}

.section-head {
    text-align: center;
    margin-bottom: 30px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.section-copy {
    max-width: 760px;
    margin: 0.35rem auto 0;
    color: var(--muted);
}

.section-head-left {
    text-align: left;
    margin-bottom: 22px;
}

.section-head-left h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.info-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.02rem;
}

.info-card p {
    color: var(--muted);
}

.stack-note,
.note-panel {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(109, 141, 255, 0.18);
    background: rgba(109, 141, 255, 0.08);
    color: #dfe7ff;
}

.steps-section {
    padding: 18px 0 90px;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(109, 141, 255, 0.3);
    color: #bfd0ff;
    font-weight: 800;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--muted);
}

.cta-section {
    padding: 0 0 100px;
}

.cta-inner {
    text-align: center;
    padding: 38px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background:
        radial-gradient(700px 240px at 50% 0%, rgba(109, 141, 255, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    box-shadow: var(--shadow-lg);
}

.cta-inner h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 0.45rem;
}

.cta-inner p {
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.btn-primary.large {
    min-height: 52px;
    padding: 0 24px;
    font-size: 1rem;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 10px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    flex-wrap: wrap;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--text);
}


.hub-shell {
    padding-top: 36px;
    padding-bottom: 72px;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
}

.flash.ok {
    background: var(--success-soft);
    color: #d7ffef;
    border-color: rgba(55, 211, 154, 0.26);
}

.flash.warn {
    background: var(--warn-soft);
    color: #ffe6c0;
    border-color: rgba(255, 180, 84, 0.3);
}

.hub-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 26px;
}

.hub-top h1 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 0.7rem;
}

.hub-top p {
    max-width: 760px;
    color: var(--muted);
}

.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(55, 211, 154, 0.24);
    background: rgba(55, 211, 154, 0.1);
    color: #dcfff3;
    font-weight: 700;
    white-space: nowrap;
}

.pill.subtle {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
}

.pill.warn {
    border-color: rgba(255, 180, 84, 0.3);
    background: rgba(255, 180, 84, 0.12);
    color: #ffe0b3;
}

.hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    margin-bottom: 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hub-tab-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.hub-tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.hub-tab-btn.active {
    color: #fff;
    background: rgba(109, 141, 255, 0.16);
    border-color: rgba(109, 141, 255, 0.26);
    box-shadow: 0 8px 20px rgba(75, 111, 255, 0.14);
}

.hub-tab-panel[hidden] {
    display: none !important;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.panel-card {
    padding: 24px;
    border-radius: 20px;
}

.panel-card h2 {
    font-size: 1.24rem;
    margin-bottom: 0.85rem;
}

.meta-list {
    display: grid;
    gap: 12px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meta-label {
    color: var(--muted);
}

.toggle-row {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted-strong);
    cursor: pointer;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--accent);
}

.field-label {
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.api-output {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.api-output-live {
    border-color: rgba(55, 211, 154, 0.26);
    background: rgba(55, 211, 154, 0.08);
}

.reveal-box {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed rgba(55, 211, 154, 0.28);
    background: rgba(55, 211, 154, 0.06);
}

.inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.plan-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 88px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.plan-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 141, 255, 0.28);
    background: rgba(109, 141, 255, 0.08);
}

.plan-btn span {
    color: var(--muted-strong);
    font-weight: 700;
}

.plan-btn strong {
    font-size: 1rem;
}

.docs-card {
    padding-top: 26px;
}

.docs-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.docs-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.docs-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(109, 141, 255, 0.22);
    background: rgba(109, 141, 255, 0.11);
    color: #d8e1ff;
    font-size: 0.9rem;
    font-weight: 700;
}

.doc-steps {
    display: grid;
    gap: 16px;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.doc-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-step strong {
    display: block;
    margin-bottom: 0.3rem;
}

.doc-step p {
    color: var(--muted);
}

.doc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(109, 141, 255, 0.28);
    color: #c8d6ff;
    font-weight: 800;
}

.docs-subsection {
    margin-top: 28px;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.response-card,
.detail-card {
    padding: 18px;
    border-radius: 18px;
}

.response-card h4,
.detail-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.response-card p,
.detail-card p {
    color: var(--muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.detail-list {
    padding-left: 1.05rem;
    color: var(--muted-strong);
}

.detail-list li + li {
    margin-top: 0.45rem;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.code-grid > div {
    min-width: 0;
}

pre {
    overflow: auto;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #0b1017;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

pre code {
    display: block;
    color: #dbe6f8;
    font-size: 0.92rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

code {
    color: #d4def3;
}


/* Scan history */

.scan-search-card {
    display: grid;
    gap: 18px;
}

.scan-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.scan-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.scan-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.scan-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.scan-results {
    display: grid;
    gap: 14px;
}

.scan-empty {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
}

.scan-record {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.022);
    box-shadow: var(--shadow-md);
}

.scan-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.scan-record-title {
    font-size: 1.05rem;
    font-weight: 800;
    word-break: break-word;
}

.scan-record-subtitle {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.94rem;
    word-break: break-word;
}

.scan-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.scan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.scan-badge.fine {
    background: rgba(55, 211, 154, 0.12);
    border: 1px solid rgba(55, 211, 154, 0.22);
    color: #d8fff0;
}

.scan-badge.suspicious {
    background: rgba(255, 180, 84, 0.14);
    border: 1px solid rgba(255, 180, 84, 0.28);
    color: #ffe4be;
}

.scan-badge.error {
    background: rgba(255, 107, 129, 0.14);
    border: 1px solid rgba(255, 107, 129, 0.26);
    color: #ffd8df;
}

.scan-badge.neutral {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    color: var(--muted-strong);
}

.scan-tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.scan-tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(109, 141, 255, 0.12);
    border: 1px solid rgba(109, 141, 255, 0.22);
    color: #d8e1ff;
    font-size: 0.84rem;
    font-weight: 700;
}

.scan-record-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.scan-kv {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.scan-kv-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.scan-kv-value {
    margin-top: 0.35rem;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.scan-kv-value.hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
}

.scan-findings {
    margin-top: 16px;
}

.scan-findings-list {
    padding-left: 1.05rem;
    color: var(--muted-strong);
}

.scan-findings-list li + li {
    margin-top: 0.45rem;
}

.scan-json {
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 0 14px 14px;
}

.scan-json summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
    color: var(--muted-strong);
}

.scan-json summary::-webkit-details-marker {
    display: none;
}

.scan-json-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.scan-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}


/* Credits */

#credits-container {
    display: block;
}

.credits-card {
    padding: 26px;
    border-radius: 22px;
}

.trust-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.hr-soft {
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.buy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.small-mono {
    color: var(--muted);
    font-size: 0.92rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.preset-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 700;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.preset-btn:hover,
.preset-btn.is-active {
    transform: translateY(-1px);
    border-color: rgba(109, 141, 255, 0.34);
    background: rgba(109, 141, 255, 0.12);
}

.input-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.input-stack input,
#token-purchase-amt {
    flex: 1 1 220px;
    min-width: 0;
}

.input-stack input,
#token-purchase-amt,
.summary-panel,
.history-box,
.faq details,
.legal-box {
    border-radius: 14px;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    background: rgba(8, 11, 16, 0.72);
    color: var(--text);
    border-radius: 14px;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8090a6;
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(148, 163, 184, 0.34);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    background: rgba(10, 14, 21, 0.86);
    box-shadow: 0 0 0 4px rgba(109, 141, 255, 0.12);
}

#token-purchase-btn {
    min-width: 160px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(75, 111, 255, 0.22);
}

.input-help {
    color: var(--muted);
    font-size: 0.92rem;
}

.notice-warn,
.notice-ok {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.notice-warn {
    background: var(--warn-soft);
    color: #ffe4bc;
    border-color: rgba(255, 180, 84, 0.26);
}

.notice-ok {
    background: var(--success-soft);
    color: #dbfff0;
    border-color: rgba(55, 211, 154, 0.24);
}

.summary-panel {
    padding: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-of-type {
    border-bottom: 0;
}

.summary-row strong {
    text-align: right;
}

.history-box {
    max-height: 380px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.024);
}

#history-list {
    display: grid;
    gap: 10px;
}

.txn-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.txn-main {
    min-width: 0;
}

.txn-topline {
    font-weight: 700;
    word-break: break-word;
}

.txn-subline {
    color: var(--muted);
    font-size: 0.93rem;
    word-break: break-word;
}

.txn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.txn-ok {
    background: rgba(55, 211, 154, 0.12);
    color: #d7fff0;
    border: 1px solid rgba(55, 211, 154, 0.22);
}

.txn-pending {
    background: rgba(255, 180, 84, 0.12);
    color: #ffe4be;
    border: 1px solid rgba(255, 180, 84, 0.24);
}

.txn-fail {
    background: rgba(255, 107, 129, 0.12);
    color: #ffd8df;
    border: 1px solid rgba(255, 107, 129, 0.24);
}

.faq {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.faq details {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.022);
    padding: 0 14px;
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details p {
    padding: 0 0 14px;
    color: var(--muted);
}

.faq a,
.legal-box a {
    color: #c6d4ff;
}

.faq a:hover,
.legal-box a:hover {
    color: #fff;
}

.legal-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.022);
    color: var(--muted);
    display: grid;
    gap: 6px;
}


@media (max-width: 980px) {
    .summary-grid,
    .code-grid,
    .buy-grid,
    .step-grid,
    .grid,
    .response-grid,
    .detail-grid,
    .info-grid,
    .scan-search-grid,
    .scan-record-meta,
    .scan-json-grid {
        grid-template-columns: 1fr;
    }

    .hub-top,
    .docs-intro {
        flex-direction: column;
    }

    .pill-row {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-row {
        min-height: 66px;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 62px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-tabs {
        width: 100%;
    }

    .hub-tab-btn {
        flex: 1 1 calc(50% - 4px);
        padding: 0 12px;
    }

    .panel-card,
    .credits-card,
    .cta-inner,
    .card,
    .step-card,
    .info-card,
    .response-card,
    .detail-card {
        padding: 20px;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .doc-step,
    .txn-item,
    .scan-record-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .txn-badge {
        min-width: 0;
    }

    .scan-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .nav-links {
        gap: 10px;
    }

    .brand {
        font-size: 1rem;
    }

    .hero h1,
    .hub-top h1 {
        letter-spacing: -0.02em;
    }

    .preset-row,
    .inline-actions,
    .input-stack,
    .docs-chip-row,
    .scan-actions,
    .scan-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-tabs {
        padding: 5px;
    }

    .hub-tab-btn {
        flex: 1 1 100%;
    }

    .summary-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}