:root {
    --bg: #f3f5f7;
    --surface: #ffffff;
    --ink: #1c2430;
    --muted: #66768a;
    --line: #dde3ea;
    --accent: #1f8a5b;
    --accent-ink: #ffffff;
    --accent-soft: #e8f6ef;
    --danger: #c2410c;
    --ok: #15803d;
    --shadow: 0 1px 2px rgba(28, 36, 48, 0.06), 0 8px 24px rgba(28, 36, 48, 0.06);
    --sans: "Manrope", "Segoe UI", sans-serif;
    --display: "Sora", "Manrope", sans-serif;
    --radius: 10px;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 450;
    line-height: 1.5;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.shell { width: min(var(--shell), calc(100% - 32px)); margin: 0 auto; }
.row-actions, .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    min-height: 64px;
}
.brand {
    font-family: var(--display);
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.header-search {
    display: grid;
    grid-template-columns: 1fr auto;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}
.header-search input {
    border: 0;
    background: transparent;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
}
.header-search button {
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--accent);
    color: #fff;
    padding: 0 16px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}
.header-catalog {
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.header-catalog:hover { color: var(--ink); text-decoration: none; }
.header-connect {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.9rem;
}
.header-connect.is-connected {
    background: #143528;
    color: #e8f6ef;
}
@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 56px;
    }
    .brand {
        font-size: 0.92rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-search { display: none; }
    .header-catalog { display: none; }
    .header-actions { gap: 0; min-width: 0; }
    .header-connect {
        padding: 8px 11px;
        font-size: 0.82rem;
    }
}

.market-hero {
    background:
        linear-gradient(180deg, #ffffff 0%, #eef3f7 100%);
    border-bottom: 1px solid var(--line);
    padding: 36px 0 28px;
}
.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.market-hero h1,
.product-copy h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.4vw, 2.45rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 18ch;
}
.lede {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 12px 0 0;
}
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.hero-pills span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 550;
}

.market {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 28px 0 56px;
    align-items: start;
}
.market-side {
    position: sticky;
    top: 84px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.market-side h2 {
    margin: 0 0 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cat-btn {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--ink);
    border-radius: 8px;
    padding: 9px 10px;
    font: inherit;
    font-weight: 550;
    cursor: pointer;
}
.cat-btn:hover, .cat-btn.on {
    background: var(--accent-soft);
    color: var(--accent);
}
.side-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}
.side-note strong { display: block; color: var(--ink); margin-bottom: 4px; }

.market-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
}
.market-toolbar strong { color: var(--ink); }
.sort-label { margin: 0; font-size: 0.9rem; }

.item-list {
    display: grid;
    gap: 12px;
}
.item-row {
    display: grid;
    grid-template-columns: 220px 1fr 150px;
    gap: 18px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.item-row:hover {
    border-color: #b9c6d4;
    transform: translateY(-1px);
}
.item-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e8eef3;
}
.item-thumb img {
    width: 100%;
    height: 138px;
    object-fit: cover;
}
.item-title {
    display: inline-block;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 650;
    font-size: 1.12rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.item-title:hover { color: var(--accent); text-decoration: none; }
.item-excerpt {
    margin: 6px 0 10px;
    color: var(--muted);
    max-width: 52ch;
}
.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.item-meta span {
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.78rem;
    font-weight: 550;
}
.item-buy {
    display: grid;
    justify-items: end;
    gap: 10px;
    align-content: center;
}
.item-price {
    margin: 0;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
}
.empty-list {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.btn, button.btn, .filters button {
    appearance: none;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 650;
    border-radius: 8px;
    padding: 11px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:hover { filter: brightness(0.96); text-decoration: none; }
.btn:disabled, button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-sm { padding: 8px 12px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.product-page { padding-bottom: 48px; }
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.breadcrumb a { color: var(--muted); }
.product-hero {
    position: relative;
    min-height: clamp(280px, 42vw, 420px);
    margin-bottom: 28px;
    overflow: hidden;
    background: #0f1a22;
}
.product-hero-media {
    position: absolute;
    inset: 0;
}
.product-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.05);
}
.product-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 16, 22, 0.88) 0%, rgba(8, 16, 22, 0.55) 48%, rgba(8, 16, 22, 0.28) 100%),
        linear-gradient(to top, rgba(8, 16, 22, 0.55), transparent 45%);
}
.product-hero-inner {
    position: relative;
    z-index: 1;
    padding: 28px 0 40px;
    color: #f4f7fa;
    max-width: 42rem;
}
.product-hero-crumb { padding-top: 0; color: rgba(244, 247, 250, 0.72); }
.product-hero-crumb a { color: rgba(244, 247, 250, 0.82); }
.product-hero .eyebrow { color: #9fe3c0; }
.product-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
}
.product-hero-tagline {
    margin: 12px 0 0;
    font-size: 1.12rem;
    color: rgba(244, 247, 250, 0.88);
    max-width: 36ch;
}
.product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.product-hero-actions .btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
}
.product-hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.14); }
.product-layout {
    display: grid;
    grid-template-columns: 1.55fr 0.75fr;
    gap: 22px;
    align-items: start;
}
.product-main { display: grid; gap: 18px; }
.product-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
}
.product-features-head { margin-bottom: 8px; }
.product-features-head .section-title { margin-top: 0; }
.tagline { color: var(--accent); font-weight: 550; margin: 8px 0 0; }
.prose { color: var(--ink); line-height: 1.65; }
.product-prose { margin-top: 8px; }
.product-prose p { margin: 0 0 0.9em; }
.product-prose p:last-child { margin-bottom: 0; }
.product-prose ul, .product-prose ol { margin: 0 0 0.9em; padding-left: 1.2rem; }
.product-prose li { margin: 0.25em 0; }
.section-title {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.feature-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 16px 14px;
    background:
        linear-gradient(180deg, #fcfdff 0%, #f7fafc 100%);
}
.feature-index {
    display: inline-block;
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}
.feature-card h3 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}
.feature-body { font-size: 0.94rem; color: var(--muted); }
.feature-body p { margin: 0 0 0.55em; color: var(--ink); }
.feature-body p:last-child { margin-bottom: 0; }
.feature-body ul, .feature-body ol { margin: 0; padding-left: 1.1rem; color: var(--ink); }
.feature-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 6px;
}
.related-card-wrap {
    display: grid;
    gap: 6px;
}
.related-demo {
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
}
.feature-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.feature-admin-head h2 { margin: 0; font-size: 1.1rem; }
.feature-rows { display: grid; gap: 12px; margin-top: 10px; }
.note-editor.note-frame { border-radius: 8px; border-color: var(--line); }
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; }
    .product-hero-inner { max-width: none; }
}
.buy-box {
    position: sticky;
    top: 84px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.price.big {
    margin: 0;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
}
.nets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.net {
    text-align: left;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 10px 12px;
    font: inherit;
    cursor: pointer;
}
.net small { display: block; color: var(--muted); font-weight: 450; }
.net.on { border-color: var(--accent); background: var(--accent-soft); }
.quote { min-height: 1.4em; color: var(--muted); }
.fine, .muted { color: var(--muted); font-size: 0.92rem; }
.warn { color: var(--danger); }
.buy-facts {
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.buy-facts div { display: flex; justify-content: space-between; gap: 12px; }
.buy-facts dt { color: var(--muted); }
.buy-facts dd { margin: 0; font-weight: 550; }

.airdrop-banner {
    background: #143528;
    color: #e8f6ef;
    font-size: 0.9rem;
}
.airdrop-banner-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}
.airdrop-banner strong {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.airdrop-banner a { color: #9fe3c0; font-weight: 650; }
.test-mode-banner {
    background: #5c2b00;
    color: #ffe8cc;
    font-size: 0.9rem;
    border-bottom: 1px solid #a85a12;
}
.test-mode-banner strong {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #ffd089;
}
.badge-test {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #5c2b00;
    color: #ffd089;
    vertical-align: middle;
}
.airdrop-mark {
    font-style: normal;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-left: 6px;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(900px 280px at 12% 0%, rgba(31, 138, 91, 0.10), transparent 60%),
        linear-gradient(180deg, #eef3f7 0%, #e4ebf2 100%);
    color: var(--muted);
    padding: 0 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.65fr);
    gap: 40px 48px;
    padding: 48px 0 36px;
}
.footer-brand { max-width: 36ch; }
.footer-logo {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}
.footer-logo:hover { text-decoration: none; color: var(--ink); }
.footer-logo em {
    font-style: normal;
    color: var(--accent);
    margin-left: 4px;
}
.footer-lead {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
}
.footer-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-btn-ghost {
    background: transparent !important;
    color: var(--ink) !important;
    border: 1px solid var(--line);
}
.footer-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px;
}
.footer-col h3 {
    margin: 0 0 12px;
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}
.footer-col a {
    display: block;
    color: var(--muted);
    font-weight: 550;
    margin: 0 0 8px;
    text-decoration: none;
}
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-disclaimer {
    padding: 22px 0 8px;
    border-top: 1px solid color-mix(in srgb, var(--line) 80%, #fff);
}
.footer-disclaimer h2 {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid color-mix(in srgb, var(--line) 80%, #fff);
    font-size: 0.84rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}
.footer-bottom-links a {
    color: var(--muted);
    font-weight: 550;
    text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--ink); }
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-brand { max-width: none; }
}
@media (max-width: 560px) {
    .footer-cols { grid-template-columns: 1fr; }
}
.disclaimer-text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
    max-width: 72ch;
}

.eula-dialog {
    width: min(640px, calc(100% - 24px));
    max-height: min(88vh, 820px);
    padding: 0;
    overflow: hidden;
}
.eula-form {
    display: grid;
    gap: 14px;
    padding: 22px;
}
.eula-scroll {
    max-height: min(42vh, 360px);
    overflow: auto;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.92rem;
}
.eula-scroll p { margin: 0 0 12px; }
.eula-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    color: var(--ink);
    font-size: 0.92rem;
}
.eula-check input { width: auto; margin-top: 3px; }
.eula-page { padding: 28px 0 48px; }
.eula-page h1 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 18ch; }
.eula-static { max-width: 72ch; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 550;
    cursor: pointer;
}
.btn-ghost:hover { text-decoration: none; background: #f8fafc; }

.flash {
    width: min(var(--shell), calc(100% - 32px));
    margin: 10px auto;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--ink);
}
.flash-error { background: #ffedd5; color: #9a3412; }
.narrow { max-width: 460px; padding: 28px 0 48px; margin: 0 auto; }
.narrow h1 { font-family: var(--display); font-size: 1.8rem; max-width: none; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 8px; }
.facts dt { color: var(--muted); font-size: 0.8rem; }
.facts dd { margin: 4px 0 0; }
.bar { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #e2e8f0; }
.status-paid { background: #dcfce7; color: var(--ok); }
.status-failed, .status-cancelled, .status-expired { background: #ffedd5; color: var(--danger); }
.license-box, .order-sheet { padding: 8px 0 28px; width: min(var(--shell), calc(100% - 32px)); margin: 0 auto; }
.order-sheet h1 { font-family: var(--display); font-size: 2rem; max-width: none; }
.key { font-family: ui-monospace, monospace; font-size: 1.2rem; letter-spacing: 0.04em; }
dialog {
    width: min(460px, calc(100% - 24px));
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 20px;
}
dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kicker { margin: 0 0 8px; color: var(--accent); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }

/* Admin remains dark and self-contained */
.admin-body {
    --bg: #10120d;
    --ink: #f4f1e8;
    --muted: #a8a292;
    --line: rgba(244, 241, 232, 0.14);
    --accent: #e2f26b;
    --accent-ink: #1b1d0e;
    --danger: #ff8d7a;
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
    background: #10120d;
    color: var(--ink);
}
.side { padding: 22px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: #0d0f0b; }
.side .brand { color: var(--ink); }
.side nav { display: grid; gap: 6px; }
.side a { color: var(--muted); padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.side a:hover, .side a.on { background: rgba(226, 242, 107, 0.12); color: var(--ink); }
.side-out { margin-top: auto; }
.side-out button, .text-danger { background: transparent; color: var(--danger); padding: 8px 10px; border: 0; cursor: pointer; font: inherit; }
.admin-main { padding: 22px 28px 48px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.admin-head h1 { font-family: var(--sans); font-size: 1.8rem; max-width: none; margin: 0; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stats article, .panel, .notice {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 14px;
}
.stats span { color: var(--muted); display: block; font-size: 0.82rem; }
.stats strong { font-size: 1.4rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { grid-template-columns: 18px 1fr; align-items: center; }
.check input { width: auto; }
.clip { max-width: 280px; overflow-wrap: anywhere; }
.inline-form { margin: -6px 0 18px; }
.auth-body { display: grid; place-items: center; min-height: 100vh; background: #10120d; color: #f4f1e8; }
.auth-card { width: min(420px, calc(100% - 28px)); display: grid; gap: 12px; }
.notice a { font-weight: 580; }

/* Dark admin/auth fields: light ink on white was unreadable */
.admin-body input,
.admin-body textarea,
.admin-body select,
.auth-body input,
.auth-body textarea,
.auth-body select {
    background: #1c1f17;
    color: #f7f4ea;
    border: 1px solid rgba(244, 241, 232, 0.28);
    caret-color: #e2f26b;
}
.admin-body input::placeholder,
.auth-body input::placeholder {
    color: #8b8678;
    opacity: 1;
}
.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus,
.auth-body input:focus {
    outline: 2px solid rgba(226, 242, 107, 0.45);
    outline-offset: 1px;
    border-color: #e2f26b;
}
.admin-body .btn,
.auth-body .btn {
    background: #e2f26b;
    color: #1b1d0e;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.admin-body .btn-secondary {
    background: transparent;
    color: #e2f26b;
    border: 1px solid rgba(226, 242, 107, 0.45);
}
.admin-body .btn-secondary:hover {
    background: rgba(226, 242, 107, 0.12);
}
.admin-body .flash {
    background: rgba(226, 242, 107, 0.14);
    color: #f7f4ea;
    border: 1px solid rgba(226, 242, 107, 0.28);
}
.admin-body .flash-error {
    background: rgba(255, 141, 122, 0.16);
    color: #ffc2b6;
    border-color: rgba(255, 141, 122, 0.35);
}
.admin-body .flash-ok {
    background: rgba(226, 242, 107, 0.14);
    color: #f7f4ea;
}
.admin-body label { color: #c5bfb0; }

.side-announce {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background: linear-gradient(180deg, #f4fbf7 0%, #f8fafc 100%);
}
.side-announce strong { font-size: 0.92rem; }
.side-version .version-check-form {
    display: grid;
    gap: 8px;
    margin: 8px 0 6px;
}
.side-version select,
.side-version input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 7px 9px;
    font: inherit;
    font-size: 0.86rem;
    color: var(--ink);
    background: #fff;
}
.version-check-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}
.version-result {
    margin: 0 0 8px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 550;
    line-height: 1.35;
}
.version-result.is-ok { background: var(--accent-soft); color: #146344; }
.version-result.is-warn { background: #fff7ed; color: #9a3412; }
.version-result.is-bad { background: #fef2f2; color: #991b1b; }
.version-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--line);
}
.version-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--muted);
}
.version-list li span:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    color: var(--ink);
}

@media (max-width: 980px) {
    .shell { width: calc(100% - 24px); }
    .header-inner, .market, .product-layout, .footer-top, .footer-cols, .item-row, .stats, .admin-body, .split {
        grid-template-columns: 1fr;
    }
    .header-search { max-width: none; }
    .market-side, .buy-box { position: static; width: 100%; }
    .item-row {
        padding: 12px;
        gap: 12px;
    }
    .item-thumb img { height: 150px; }
    .item-buy {
        justify-items: stretch;
        width: 100%;
    }
    .item-buy .btn { width: 100%; }
    .item-price { font-size: 1.2rem; }
    .product-hero {
        min-height: 0;
    }
    .product-hero-inner {
        padding: 18px 0 26px;
        max-width: none;
    }
    .product-hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .product-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .product-hero-actions .btn { width: 100%; justify-content: center; }
    .product-panel { padding: 16px; }
    .product-main, .buy-box, .product-panel, .feature-card {
        min-width: 0;
        max-width: 100%;
    }
    .feature-grid { grid-template-columns: 1fr; }
    .nets { grid-template-columns: 1fr 1fr; }
    .airdrop-banner-inner {
        gap: 8px;
        padding: 8px 0;
        font-size: 0.82rem;
    }
    .hero-actions .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
    .market-hero { padding: 24px 0 20px; }
    .market-hero h1 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
    .side { border-right: 0; border-bottom: 1px solid var(--line); }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .shell { width: calc(100% - 20px); }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-pills { gap: 6px; }
    .hero-pills span { font-size: 0.75rem; padding: 4px 8px; }
    .related-grid { grid-template-columns: 1fr; }
    .nets { grid-template-columns: 1fr; }
    .brand .airdrop-mark { display: none; }
}

.linkish { background: none; border: 0; color: var(--accent, #2a7); cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }

/* License wizard popup — one action per step */
.license-dialog {
  width: min(480px, calc(100% - 24px));
  max-height: min(88vh, 820px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
}
.license-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.license-dialog-inner { padding: 22px; }
.license-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: .65rem;
}
.license-dialog-head h2 { margin: .15rem 0 0; font-family: var(--display); font-size: 1.35rem; }
.license-dialog-close {
  border: 0; background: transparent; color: inherit;
  font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .55;
}
.license-dialog-close:hover { opacity: 1; }
.license-progress {
  height: 4px; border-radius: 99px; background: #e8ecf1; margin: 0 0 1.1rem; overflow: hidden;
}
.license-progress span {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width .25s ease;
}
.license-pane { gap: 12px; }
.license-pane[hidden],
#license-where-code[hidden],
#license-where-help[hidden] { display: none !important; }
.license-pane h3 { margin: 0; font-size: 1.1rem; }
.license-pane label { display: grid; gap: 6px; }
.license-choice { width: 100%; justify-content: center; }
.license-wallet-box {
  padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc;
  word-break: break-all; margin: 0;
}
.license-wallet-box.ok { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.license-pane .key {
  font-family: ui-monospace, monospace; font-size: 1.05rem; word-break: break-all;
  padding: .75rem; border-radius: 10px; border: 1px solid var(--line); background: #f8fafc;
}

.buy-email { display: grid; gap: 6px; margin: 10px 0 12px; font-size: 0.9rem; font-weight: 550; }
.buy-email input { width: 100%; }

.license-help-box {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.9rem;
}
.license-help-box h4 { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink); }
.license-help-list { margin: 0; padding-left: 1.2rem; }
.license-help-list li { margin: 0 0 6px; }
.license-help-box code { font-size: 0.82rem; word-break: break-all; }

.related-products { margin: 2.5rem auto 3rem; }
.related-products .section-title { margin-bottom: 0.35rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 1rem;
}
.related-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-card:hover {
  border-color: #b9c6d4;
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.related-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e8eef3;
}
.related-card strong { font-size: 0.95rem; }
.related-card span { color: var(--muted); font-size: 0.88rem; }
