/* ============================================================
   ONION MARKET — Cyberpunk terminal theme
   ============================================================ */

:root {
    --bg: #050505;
    --bg2: #08080a;
    --panel: #0b0b0d;
    --panel2: #101014;
    --line: #1c1c20;
    --line-red: rgba(225, 29, 46, .35);
    --red: #e11d2e;
    --red-bright: #ff2233;
    --red-dim: rgba(225, 29, 46, .15);
    --green: #26ff9c;
    --green-dim: rgba(38, 255, 156, .12);
    --orange: #ff9f43;
    --text: #d6d3d0;
    --muted: #8a8783;
    --font-mono: 'Consolas', 'Courier New', 'SF Mono', monospace;
    --font-body: 'Segoe UI', Tahoma, sans-serif;
    --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* scanline overlay */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, .14) 3px,
        rgba(0, 0, 0, .14) 4px
    );
    opacity: .5;
    mix-blend-mode: multiply;
}

.site-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.main { flex: 1; padding-bottom: 40px; }

.mono { font-family: var(--font-mono); }
.text-muted { color: var(--muted); font-size: .92em; }
.text-ok { color: var(--green); }
.text-danger { color: var(--red-bright); }

/* ---------------------------------- topbar ---------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, .94);
    border-bottom: 1px solid var(--line-red);
    box-shadow: 0 0 18px rgba(225, 29, 46, .12);
    backdrop-filter: blur(6px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 62px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--red-bright);
    text-shadow: 0 0 14px rgba(255, 34, 51, .55);
    white-space: nowrap;
}

.logo-img { max-height: 36px; max-width: 160px; }

.logo-text {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 3px;
}
.logo-text b { color: var(--text); }

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 1.5px;
    padding: 7px 10px;
    border: 1px solid transparent;
    transition: all .18s;
}

.main-nav a:hover {
    color: var(--red-bright);
    border-color: var(--line-red);
    text-shadow: 0 0 10px rgba(255, 34, 51, .5);
}

.main-nav a.active {
    color: var(--red-bright);
    background: var(--red-dim);
    border-color: var(--line-red);
    text-shadow: 0 0 10px rgba(255, 34, 51, .6);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-mobile-center {
    display: none;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 8px;
    margin-left: 8px;
}
.topbar-mobile-center .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
}

.nav-mobile-only { display: none; }

.nav-notif {
    position: relative;
    color: var(--muted);
    display: inline-flex;
    padding: 6px;
    text-decoration: none;
}
.nav-notif:hover { color: var(--red-bright); }

.notif-dot {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--red-bright);
    color: #fff;
    font-size: 9px;
    font-family: var(--font-mono);
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 8px rgba(255, 34, 51, .8);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    cursor: pointer;
    padding: 8px 7px;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--red-bright); }

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

.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    border: 1px solid var(--red-bright);
    padding: 9px 18px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all .18s;
    text-align: center;
    box-shadow: 0 0 12px rgba(225, 29, 46, .35);
}

.btn:hover {
    background: var(--red-bright);
    box-shadow: 0 0 24px rgba(255, 34, 51, .65);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    color: var(--red-bright);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--red-dim); }

.btn-sm { padding: 5px 11px; font-size: 11px; letter-spacing: 1.5px; }
.btn-xs { padding: 3px 8px; font-size: 10.5px; letter-spacing: 1px; }
.btn-lg { padding: 13px 30px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ---------------------------------- alerts ---------------------------------- */

.alert {
    border: 1px solid;
    padding: 11px 15px;
    margin: 14px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .5px;
    border-radius: var(--radius);
}

.alert-prefix { font-weight: 700; }

.alert-error { border-color: rgba(255, 85, 51, .6); color: #ff8a6b; background: rgba(255, 85, 51, .07); }
.alert-success { border-color: rgba(38, 255, 156, .5); color: var(--green); background: var(--green-dim); }
.alert-info { border-color: var(--line-red); color: #ffb3ba; background: var(--red-dim); }

/* ---------------------------------- terminal panels ---------------------------------- */

.terminal-panel {
    background: var(--panel);
    border: 1px solid var(--line-red);
    border-radius: var(--radius);
    box-shadow: 0 0 22px rgba(225, 29, 46, .09), inset 0 0 40px rgba(225, 29, 46, .03);
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
}

.terminal-panel::before,
.terminal-panel::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--red-bright);
    border-style: solid;
    opacity: .55;
    pointer-events: none;
}
.terminal-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.terminal-panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.terminal-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--panel2);
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red-bright); box-shadow: 0 0 8px rgba(255, 34, 51, .9); }
.dot.yel { background: var(--orange); box-shadow: 0 0 8px rgba(255, 159, 67, .8); }
.dot.grn { background: var(--green); box-shadow: 0 0 8px rgba(38, 255, 156, .8); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--red-bright);
    text-shadow: 0 0 8px rgba(255, 34, 51, .5);
    flex: 1;
}

.terminal-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 1px; }

.terminal-body { padding: 16px 18px; }

/* ---------------------------------- data table ---------------------------------- */

.data-table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--red-bright);
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-red);
    background: rgba(225, 29, 46, .05);
    white-space: nowrap;
}

.data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(225, 29, 46, .05); }

.data-table a { color: var(--red-bright); text-decoration: none; }
.data-table a:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(255, 34, 51, .4); }
.data-table a.btn, .data-table a.btn:hover { color: #fff; text-decoration: none; }

.thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--line-red);
    border-radius: var(--radius);
    display: inline-block;
}

.thumb-none {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--panel2);
    color: var(--red);
    font-size: 18px;
}

/* badge */
.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid;
    white-space: nowrap;
}

.badge.ok { color: var(--green); border-color: rgba(38, 255, 156, .5); background: var(--green-dim); }
.badge.warn { color: var(--orange); border-color: rgba(255, 159, 67, .5); background: rgba(255, 159, 67, .08); }
.badge.danger { color: var(--red-bright); border-color: rgba(255, 34, 51, .5); background: var(--red-dim); }
.badge.muted { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, .03); }

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

.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 50px;
    border-bottom: 1px solid var(--line-red);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(225, 29, 46, .13), transparent 60%),
        var(--bg);
    overflow: hidden;
}

.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--green);
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(38, 255, 156, .5);
    animation: flicker 6s linear infinite;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(28px, 5.4vw, 56px);
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--red-bright);
    text-shadow: 0 0 28px rgba(255, 34, 51, .65), 0 0 60px rgba(255, 34, 51, .3);
    margin-bottom: 14px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(15px, 2.4vw, 20px);
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.stat-num {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 14px rgba(255, 34, 51, .4);
}

.stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); }

.hero-onion {
    margin-bottom: 18px;
    display: inline-flex;
}

.onion-ring { animation: pulse-ring 4s ease-in-out infinite; transform-origin: center; }
.onion-ring.r2 { animation-delay: .6s; }
.onion-ring.r3 { animation-delay: 1.2s; }
.onion-core { animation: core-pulse 2.2s ease-in-out infinite; }

@keyframes pulse-ring {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}

@keyframes core-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 34, 51, .6)); }
    50% { filter: drop-shadow(0 0 18px rgba(255, 34, 51, 1)); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    3% { opacity: .5; } 5% { opacity: 1; }
    42% { opacity: 1; } 44% { opacity: .6; } 46% { opacity: 1; }
    71% { opacity: 1; } 73% { opacity: .4; } 75% { opacity: 1; }
}

/* glitch effect */
.glitch { position: relative; }

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(50% 0 50% 0);
    opacity: 0;
}

.glitch:hover::before {
    opacity: .75;
    color: var(--green);
    animation: glitch-a 0.4s steps(2, end) infinite;
}

.glitch:hover::after {
    opacity: .75;
    color: #fff;
    animation: glitch-b 0.4s steps(2, end) infinite;
}

@keyframes glitch-a {
    0% { clip-path: inset(12% 0 62% 0); transform: translate(-3px, -1px); }
    25% { clip-path: inset(48% 0 24% 0); transform: translate(3px, 1px); }
    50% { clip-path: inset(68% 0 8% 0); transform: translate(-2px, 2px); }
    75% { clip-path: inset(8% 0 76% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(38% 0 34% 0); transform: translate(-3px, 1px); }
}

@keyframes glitch-b {
    0% { clip-path: inset(62% 0 10% 0); transform: translate(3px, 1px); }
    25% { clip-path: inset(18% 0 58% 0); transform: translate(-3px, -1px); }
    50% { clip-path: inset(4% 0 82% 0); transform: translate(2px, -2px); }
    75% { clip-path: inset(52% 0 22% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(28% 0 48% 0); transform: translate(3px, -1px); }
}

/* ---------------------------------- sections ---------------------------------- */

.section { margin-top: 42px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 17px;
    letter-spacing: 3px;
    color: var(--text);
}

.prompt { color: var(--red-bright); text-shadow: 0 0 10px rgba(255, 34, 51, .7); }

.section-desc { color: var(--muted); font-size: 13px; }

.link-arrow {
    color: var(--red-bright);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
}
.link-arrow:hover { text-shadow: 0 0 10px rgba(255, 34, 51, .7); }

/* promo banner */
.promo-banner { margin-top: 30px; }

.promo-banner a {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 22px;
    border: 1px solid var(--line-red);
    background: linear-gradient(90deg, rgba(225, 29, 46, .12), transparent 70%);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all .2s;
}

.promo-banner a:hover { box-shadow: 0 0 26px rgba(225, 29, 46, .3); border-color: var(--red-bright); }

.promo-title { font-family: var(--font-mono); color: var(--red-bright); font-weight: 700; letter-spacing: 2px; font-size: 14px; }
.promo-text { color: var(--text); flex: 1; font-size: 13.5px; }
.promo-cta { font-family: var(--font-mono); color: var(--green); font-size: 12px; letter-spacing: 2px; }

/* ---------------------------------- product cards ---------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--panel);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--line-red);
    box-shadow: 0 0 22px rgba(225, 29, 46, .28);
    transform: translateY(-2px);
}

.product-card-img {
    position: relative;
    height: 130px;
    background: var(--panel2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.product-card-img img { width: 100%; height: 100%; object-fit: cover; }

.stock-flag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 1px;
    padding: 3px 7px;
    border-radius: 2px;
}

.stock-flag.in { background: rgba(38, 255, 156, .15); color: var(--green); border: 1px solid rgba(38, 255, 156, .5); }
.stock-flag.out { background: rgba(255, 34, 51, .15); color: var(--red-bright); border: 1px solid rgba(255, 34, 51, .5); }

.product-card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.product-card-cat {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--green);
}

.product-card h3 { font-size: 15.5px; font-weight: 600; }

.product-card-cta { margin-top: auto; color: var(--red-bright); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.5px; }

/* category cards */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.cat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all .2s;
}

.cat-card:hover { border-color: var(--line-red); box-shadow: 0 0 20px rgba(225, 29, 46, .25); }

.cat-icon {
    font-size: 22px;
    color: var(--red-bright);
    text-shadow: 0 0 12px rgba(255, 34, 51, .7);
}

.cat-name { font-family: var(--font-mono); font-weight: 700; letter-spacing: 2px; font-size: 14px; }
.cat-desc { color: var(--muted); font-size: 12.5px; }
.cat-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--green); letter-spacing: 1px; }

/* ---------------------------------- page heads ---------------------------------- */

.page-head { margin: 30px 0 22px; }

.page-title {
    font-family: var(--font-mono);
    font-size: clamp(22px, 4vw, 34px);
    letter-spacing: 4px;
    color: var(--red-bright);
    text-shadow: 0 0 18px rgba(255, 34, 51, .5);
}

.page-sub { color: var(--muted); margin-top: 6px; font-size: 13.5px; }

/* filter bar */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 9px 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    border-radius: var(--radius);
    outline: none;
}

.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--line-red); box-shadow: 0 0 12px rgba(225, 29, 46, .25); }

/* empty state */
.empty-state {
    border: 1px dashed var(--line);
    padding: 44px 20px;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 13.5px;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* ---------------------------------- forms ---------------------------------- */

.form { display: flex; flex-direction: column; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--red-bright);
}

.field-hint { color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); }

.field input,
.field select,
.field textarea {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--radius);
    outline: none;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--line-red);
    box-shadow: 0 0 14px rgba(225, 29, 46, .25);
}

.field textarea { resize: vertical; }

/* auth pages */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0; }

.auth-card { width: 100%; max-width: 430px; }

.auth-alt { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--red-bright); }

.auth-hint { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 1px; }

/* ---------------------------------- dashboard ---------------------------------- */

.dashboard-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: start;
}

.wallet-balance {
    font-family: var(--font-mono);
    font-size: 38px;
    font-weight: 800;
    color: var(--green);
    text-shadow: 0 0 24px rgba(38, 255, 156, .5);
    margin: 6px 0 16px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-actions a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 1px;
    border-radius: var(--radius);
    transition: all .15s;
}

.quick-actions a:hover { border-color: var(--line-red); color: var(--red-bright); background: var(--red-dim); }

.qa-icon { color: var(--green); font-size: 15px; }

/* ---------------------------------- wallet page ---------------------------------- */

.wallet-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.method-details {
    border: 1px solid var(--line-red);
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 4px;
}

.method-details .md-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
}

.method-details .md-label { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; min-width: 90px; }
.method-details .md-wallet { font-family: var(--font-mono); color: var(--green); word-break: break-all; font-size: 12.5px; }
.method-details img.md-qr { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: var(--radius); }
.method-details .md-instr { white-space: pre-line; color: var(--text); font-size: 12.5px; }

.fee-preview {
    border: 1px dashed var(--line-red);
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fee-preview > div { display: flex; justify-content: space-between; }
.fee-total { color: var(--green); font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }

/* ---------------------------------- product detail ---------------------------------- */

.product-detail {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 26px;
}

.product-detail-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    padding: 18px;
}

.product-img-box {
    position: relative;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    overflow: hidden;
}

.product-img-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.product-name { font-size: 24px; font-weight: 700; margin: 8px 0 10px; }

.product-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--green);
    border: 1px solid rgba(38, 255, 156, .35);
    padding: 3px 9px;
    border-radius: 2px;
}

.product-meta-grid { display: flex; flex-direction: column; gap: 9px; }
.product-meta-grid > div { display: flex; gap: 10px; font-size: 13px; }
.meta-label { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; min-width: 105px; }

/* buy panel */
.buy-panel .terminal-body { padding: 18px; }

.buy-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--green);
    margin: 6px 0 10px;
}

.variant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 9px;
    margin-bottom: 16px;
}

.variant-option {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 11px 8px;
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    font-family: var(--font-mono);
    transition: all .15s;
}

.variant-option:hover { border-color: var(--line-red); }

.variant-option.selected {
    border-color: var(--red-bright);
    background: var(--red-dim);
    box-shadow: 0 0 16px rgba(255, 34, 51, .4);
}

.variant-face { font-size: 15px; font-weight: 700; }
.variant-price { font-size: 14px; font-weight: 700; color: var(--text); }

.v-tag {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.variant-option.selected .v-tag { color: var(--red-bright); }

/* multiline secret details on order delivery */
.key-value.secret { white-space: pre-wrap; display: block; }
.key-value.secret .copy-btn { float: right; }

.buy-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}

.buy-price {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 800;
    color: var(--red-bright);
    text-shadow: 0 0 16px rgba(255, 34, 51, .6);
}

.wallet-line { font-family: var(--font-mono); font-size: 12.5px; margin-bottom: 12px; }

.buy-legend { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin: -6px 0 14px; }

.buy-detail-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg2);
    margin-bottom: 14px;
    overflow: hidden;
}

.buy-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    border-bottom: 1px solid var(--line);
}
.buy-detail-row:last-child { border-bottom: none; }
.buy-detail-row span:first-child { color: var(--muted); letter-spacing: 1px; }
.buy-detail-row span:last-child { color: var(--text); font-weight: 700; }
.buy-balance-row { border-bottom-color: var(--line-red); }
.buy-balance-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--green) !important; }
.buy-balance-value { font-size: 20px; color: var(--green) !important; text-shadow: 0 0 12px rgba(38, 255, 156, .4); }

.buy-detail-price span:last-child {
    color: var(--red-bright);
    font-size: 20px;
    text-shadow: 0 0 12px rgba(255, 34, 51, .5);
}

.buy-detail-remain span:last-child.text-ok { color: var(--green); }
.buy-detail-remain span:last-child.text-danger { color: var(--red-bright); }

.insufficient-box {
    border: 1px solid var(--red-bright);
    border-radius: var(--radius);
    background: rgba(225, 29, 46, .08);
    padding: 14px;
    margin-bottom: 14px;
}

.insufficient-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--red-bright);
    margin-bottom: 10px;
}

.insufficient-box .buy-detail-row span:first-child { color: var(--muted); }
.insufficient-box .buy-detail-row span:last-child { color: var(--text); }

.upload-size-error { font-family: var(--font-mono); font-size: 11px; color: var(--red-bright); margin-top: 6px; letter-spacing: 1px; }
.insufficient-box .insufficient-short span:last-child { color: var(--red-bright); font-size: 15px; }

/* product terminal rows */
.product-terminal { margin-bottom: 18px; }
.product-terminal-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--panel2);
}
.product-terminal-head .terminal-title { flex: 0 1 auto; }
.product-terminal-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 14px;
    font-size: 11px;
    font-family: var(--font-mono);
}

.variant-select {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 7px 9px;
    font-family: var(--font-mono);
    font-size: 12px;
    border-radius: var(--radius);
    max-width: 200px;
}

/* ---------------------------------- order page ---------------------------------- */

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 22px;
    align-items: start;
}

.order-meta { display: flex; flex-direction: column; gap: 11px; }
.order-meta > div { display: flex; justify-content: space-between; gap: 10px; }

.key-block { margin-bottom: 16px; }

.key-value {
    margin-top: 6px;
    background: var(--bg2);
    border: 1px solid var(--line-red);
    padding: 13px 15px;
    font-size: 16px;
    color: var(--green);
    text-shadow: 0 0 10px rgba(38, 255, 156, .35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    word-break: break-all;
    border-radius: var(--radius);
}

/* ---------------------------------- notifications ---------------------------------- */

.notif-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.notif-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 16px;
    background: var(--panel);
}

.notif-item.unread { border-color: var(--line-red); box-shadow: 0 0 14px rgba(225, 29, 46, .15); }

.notif-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.notif-title { font-weight: 700; font-size: 14px; }
.notif-msg { color: var(--muted); font-size: 13px; margin: 4px 0 6px; }

/* ---------------------------------- contact / legal ---------------------------------- */

.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.contact-row a { color: var(--green); }

.legal-body h2 {
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 1.5px;
    color: var(--red-bright);
    margin: 18px 0 8px;
}

.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 13.5px; }
.legal-body ul { padding-left: 22px; }
.legal-body a { color: var(--red-bright); }

.support-guest { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------- chat ---------------------------------- */

.chat-widget {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
    z-index: 200;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--red-bright);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 22px rgba(255, 34, 51, .6);
    transition: all .2s;
    position: relative;
    animation: chat-pulse 2.8s ease-in-out infinite;
}

.chat-toggle:hover { background: var(--red-bright); transform: scale(1.06); }
@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 34, 51, .55); }
    50% { box-shadow: 0 0 30px rgba(255, 34, 51, .85); }
}

.chat-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg);
    animation: core-pulse 1.6s ease-in-out infinite;
}

.chat-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 30px);
    height: 460px;
    max-height: calc(100vh - 120px);
    background: linear-gradient(180deg, rgba(16, 16, 20, .97), rgba(8, 8, 10, .98));
    backdrop-filter: blur(6px);
    border: 1px solid var(--line-red);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 34px rgba(225, 29, 46, .35), inset 0 0 40px rgba(225, 29, 46, .04);
    overflow: hidden;
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(90deg, var(--panel2), rgba(225, 29, 46, .08));
    border-bottom: 1px solid var(--line-red);
    flex-shrink: 0;
}

.chat-head-left { min-width: 0; }
.chat-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--red-bright);
    text-shadow: 0 0 8px rgba(255, 34, 51, .5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-status {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--green);
    margin-top: 2px;
}
.chat-status .dot { width: 6px; height: 6px; margin-right: 4px; }

.chat-head-actions { display: flex; gap: 2px; flex-shrink: 0; }
.chat-min, .chat-close {
    background: none;
    border: 1px solid transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    line-height: 1;
    padding: 0;
}
.chat-min:hover, .chat-close:hover { color: var(--red-bright); border-color: var(--line-red); }

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 13px 13px 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(225, 29, 46, .05), transparent 60%),
        var(--bg);
}

.chat-msg {
    max-width: 86%;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.chat-msg .msg-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    font-weight: 700;
}
.chat-msg .msg-meta {
    display: block;
    font-size: 9.5px;
    margin-top: 6px;
    font-family: var(--font-mono);
    color: var(--muted);
    letter-spacing: .5px;
    opacity: .85;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--red-dim);
    border: 1px solid var(--line-red);
    color: var(--text);
}
.chat-msg.user .msg-label { color: var(--red-bright); }

.chat-msg.admin {
    align-self: flex-start;
    background: var(--panel2);
    border: 1px solid var(--line);
    color: var(--text);
}
.chat-msg.admin .msg-label { color: var(--green); }

.chat-msg.sys {
    align-self: center;
    background: rgba(38, 255, 156, .06);
    border: 1px solid rgba(38, 255, 156, .3);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
}

.chat-body-empty {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
    padding: 30px 10px;
}

.chat-quick {
    padding: 8px 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}

.chat-quick button {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 5px 9px;
    border-radius: 2px;
    cursor: pointer;
    transition: all .15s;
}

.chat-quick button:hover { border-color: var(--line-red); color: var(--red-bright); }

/* composer */
.chat-composer {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    background: var(--panel2);
    flex-shrink: 0;
    flex-direction: column;
}
.chat-composer-row { display: flex; gap: 6px; align-items: center; }
.chat-composer input[type="text"] {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 9px 11px;
    font-size: 13px;
    border-radius: var(--radius);
    outline: none;
}
.chat-composer input[type="text"]:focus { border-color: var(--line-red); }
.chat-attach-btn {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s;
}
.chat-attach-btn:hover { color: var(--red-bright); border-color: var(--line-red); }
.chat-composer .btn { flex-shrink: 0; }
.chat-attach-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--bg);
    border: 1px dashed var(--line-red);
    border-radius: var(--radius);
}
.chat-attach-preview img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--line);
}
.chat-attach-preview span { flex: 1; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attach-remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
}
.chat-attach-remove:hover { color: var(--red-bright); }

/* guest locked state */
.chat-guest {
    align-self: center;
    text-align: center;
    max-width: 260px;
    padding: 18px 10px;
    border: 1px dashed var(--line-red);
    border-radius: var(--radius);
    background: rgba(225, 29, 46, .05);
}
.chat-guest .guest-lock { color: var(--red-bright); margin-bottom: 8px; display: block; }
.chat-guest h4 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px; color: var(--text); margin-bottom: 8px; }
.chat-guest p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.chat-guest .btn { margin: 0 3px 6px; }

/* message attachment */
.chat-attach-thumb {
    display: block;
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
    max-width: 210px;
    cursor: zoom-in;
    background: #000;
}
.chat-attach-thumb img { display: block; width: 100%; max-height: 140px; object-fit: cover; }

/* lightbox */
.chat-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.chat-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border: 1px solid var(--line-red);
    box-shadow: 0 0 40px rgba(225, 29, 46, .35);
    border-radius: var(--radius);
}
.chat-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: 1px solid var(--line-red);
    color: var(--red-bright);
    font-size: 18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: var(--radius);
}

/* full page chat */
.chat-page { display: flex; flex-direction: column; height: 520px; }
.chat-page .terminal-head { flex-shrink: 0; }
.chat-body-page { min-height: 0; }

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

.site-footer {
    border-top: 1px solid var(--line-red);
    background: var(--bg2);
    margin-top: 50px;
    padding: 36px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 26px;
}

.footer-logo { font-size: 17px; margin-bottom: 10px; }
.footer-logo b { color: var(--text); }

.footer-col p { color: var(--muted); font-size: 12.5px; }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--red-bright);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: color .15s;
}

.footer-col a:hover { color: var(--red-bright); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-terminal { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--green); }

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

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .wallet-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .order-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }

    .topbar-inner { gap: 10px; }

    .topbar-mobile-center { display: flex; }

    .topbar-actions .btn,
    .topbar-actions .nav-notif { display: none; }

    .nav-mobile-only { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, .98);
        border-bottom: 1px solid var(--line-red);
        flex-direction: column;
        padding: 12px 18px 18px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, .6);
    }

    .main-nav.open { display: flex; }
    .main-nav a { padding: 11px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }

    .topbar-actions .btn { display: none; }

    /* data tables -> stacked rows */
    .data-table thead { display: none; }

    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }

    .data-table tr {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 6px 0;
        background: var(--panel);
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        border-bottom: 1px solid var(--line);
        padding: 9px 12px;
        text-align: right;
    }

    .data-table td:last-child { border-bottom: none; }

    .data-table td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-size: 10px;
        letter-spacing: 1.5px;
        color: var(--red-bright);
        text-align: left;
        flex-shrink: 0;
    }

    .product-detail-body { grid-template-columns: 1fr; }
    .product-img-box { min-height: 170px; }

    .hero-stats { gap: 26px; }
}

@media (max-width: 520px) {
    .quick-actions { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-actions .btn { width: 100%; }
}
/* ============================================================
   LANDING PAGE v2 // premium sections
   ============================================================ */

/* hero terminal lines */
.hero-terminal-line {
    margin: 22px auto 6px;
    max-width: 620px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .45);
    padding: 10px 14px;
    border-radius: var(--radius);
    width: 100%;
}
.t-line i { color: var(--green); font-style: normal; opacity: .8; }

/* live market stats */
.live-market { padding: 46px 0 8px; }
.live-blink {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 2px;
    color: var(--green);
    animation: live-flicker 2.4s steps(2, start) infinite;
}
@keyframes live-flicker { 0%, 92% { opacity: 1; } 94% { opacity: .3; } 96% { opacity: 1; } 98% { opacity: .4; } 100% { opacity: 1; } }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 22px 0 0;
}
.stat-cell {
    border: 1px solid var(--line);
    border-top: 2px solid var(--red);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    transition: all .2s;
}
.stat-cell:hover { border-color: var(--line-red); transform: translateY(-2px); }
.stat-cell .icon { color: var(--red-bright); margin-bottom: 8px; }
.stat-cell-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}
.stat-cell-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-top: 4px;
}

/* who are we */
.who-section { padding: 56px 0 20px; }
.who-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
}
.who-console { font-family: var(--font-mono); font-size: 12.5px; line-height: 2; min-height: 230px; }
.wc-line { display: block; color: var(--muted); }
.wc-line.wc-out { color: var(--text); }
.wc-cursor { color: var(--green); animation: blink 1s steps(2, start) infinite; }
.who-text .section-title { margin: 10px 0 18px; }
.who-text p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.who-text b { color: var(--text); }
.check-list { list-style: none; margin-top: 16px; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
}
.check-list .icon { color: var(--green); flex-shrink: 0; }

/* why cards */
.why-section { padding: 20px 0; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.why-card {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    padding: 22px 20px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.why-card::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
    transition: left .4s;
}
.why-card:hover { border-color: var(--line-red); transform: translateY(-3px); }
.why-card:hover::after { left: 100%; }
.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border: 1px solid var(--line-red);
    border-radius: var(--radius);
    color: var(--red-bright);
    background: var(--red-dim);
    margin-bottom: 14px;
    transition: all .25s;
}
.why-card:hover .why-icon { box-shadow: 0 0 16px rgba(255, 34, 51, .45); transform: rotate(-4deg); }
.why-card h3 { font-size: 13px; letter-spacing: 1.5px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* how it works */
.how-section { padding: 20px 0; }
.steps {
    display: flex;
    align-items: stretch;
    margin-top: 28px;
}
.step {
    flex: 1;
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    transition: all .2s;
}
.step:hover { border-color: var(--line-red); }
.step-num {
    position: absolute;
    top: -14px;
    left: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--red-bright);
    background: var(--bg);
    border: 1px solid var(--line-red);
    border-radius: 3px;
    padding: 2px 8px;
}
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border: 1px solid var(--line-red);
    border-radius: 50%;
    color: var(--red-bright);
    background: var(--red-dim);
    margin: 8px 0 12px;
    animation: step-glow 3s ease-in-out infinite;
}
@keyframes step-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 34, 51, 0); }
    50% { box-shadow: 0 0 14px rgba(255, 34, 51, .4); }
}
.step h3 { font-size: 12.5px; letter-spacing: 1.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 12px; }
.step-connector {
    width: 34px;
    align-self: center;
    border-top: 1px dashed var(--line-red);
    position: relative;
    flex-shrink: 0;
}
.step-connector::after {
    content: ">";
    position: absolute;
    top: -10px; right: 0;
    color: var(--red-bright);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* security */
.security-section { padding: 20px 0; }
.sec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.sec-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    padding: 18px;
    transition: border-color .2s;
}
.sec-item:hover { border-color: var(--green-dim); }
.sec-item .icon { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.sec-item h4 { font-size: 12.5px; letter-spacing: 1px; margin-bottom: 5px; }
.sec-item p { color: var(--muted); font-size: 12px; line-height: 1.7; }

/* marketplace group tables */
.market-group { margin-bottom: 26px; }
.market-group-title {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--red-bright);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(90deg, var(--red-dim), transparent);
    border-left: 3px solid var(--red);
    margin-bottom: 10px;
}
.table-link { color: var(--text); font-weight: 600; }
.table-link:hover { color: var(--red-bright); }
.type-chip {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: var(--green);
    border: 1px solid var(--green-dim);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

/* trust terminal */
.trust-section { padding: 20px 0; }
.trust-terminal {
    border: 1px solid var(--line-red);
    background: rgba(0, 0, 0, .55);
    border-radius: var(--radius);
    max-width: 680px;
    margin: 0 auto;
}
.trust-body { font-family: var(--font-mono); font-size: 12.5px; }
.trust-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}
.trust-label { color: var(--muted); letter-spacing: 1px; }
.trust-val { color: var(--text); letter-spacing: 1px; }
.trust-val.ok { color: var(--green); }
.trust-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

/* faq */
.faq-section { padding: 20px 0 40px; }
.faq-list { margin-top: 24px; max-width: 760px; }
.faq-item {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: border-color .2s;
}
.faq-item[open] { border-color: var(--line-red); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 13.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red-bright); }
.faq-toggle {
    font-family: var(--font-mono);
    color: var(--red-bright);
    font-size: 18px;
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-a {
    padding: 0 18px 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
}

/* final cta */
.final-cta {
    padding: 70px 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 50% 120%, rgba(225, 29, 46, .18), transparent 60%),
        var(--bg2);
}
.final-cta-inner { text-align: center; }
.final-cta h2 {
    font-size: clamp(24px, 4.2vw, 40px);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.final-cta p { color: var(--muted); margin-bottom: 26px; }
.final-cta .hero-actions { justify-content: center; }

/* icons base */
.icon { vertical-align: middle; flex-shrink: 0; }

/* responsive */
@media (max-width: 900px) {
    .stats-bar { grid-template-columns: repeat(3, 1fr); }
    .who-grid { grid-template-columns: 1fr; gap: 26px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { flex-direction: column; gap: 22px; }
    .step-connector { width: 2px; height: 22px; border-top: none; border-left: 1px dashed var(--line-red); margin: 0 auto; align-self: center; }
    .step-connector::after { top: auto; bottom: -18px; right: -7px; }
}
@media (max-width: 600px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .sec-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- security notice popup ---------------------------------- */

.notice-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: notice-fade .25s ease-out;
}
@keyframes notice-fade { from { opacity: 0; } to { opacity: 1; } }
.notice-popup-panel {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: linear-gradient(180deg, #101014, #08080a);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    box-shadow: 0 0 50px rgba(225, 29, 46, .4), inset 0 0 60px rgba(225, 29, 46, .05);
    position: relative;
    animation: notice-in .3s ease-out;
}
@keyframes notice-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.notice-popup-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 34, 51, .04) 0 1px, transparent 1px 3px);
}
.notice-popup-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-red);
    background: linear-gradient(90deg, var(--red-dim), transparent);
}
.notice-shield { color: var(--red-bright); animation: step-glow 2.4s ease-in-out infinite; flex-shrink: 0; }
.notice-popup-head h3 { font-family: var(--font-mono); font-size: 15px; letter-spacing: 3px; color: var(--red-bright); }
.notice-sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }
.notice-x {
    margin-left: auto;
    background: none;
    border: 1px solid transparent;
    color: var(--muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    font-size: 15px;
    flex-shrink: 0;
}
.notice-x:hover { color: var(--red-bright); border-color: var(--line-red); }
.notice-popup-body { padding: 20px; }
.notice-popup-body p { color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 12px; }
.notice-important {
    border: 1px solid var(--line-red);
    background: var(--red-dim);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 0 !important;
}
.notice-important b { color: var(--red-bright); letter-spacing: 1px; }
.notice-warn { color: var(--red-bright); }
.notice-popup-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    border-top: 1px dashed var(--line);
    padding-top: 18px;
}
.notice-popup-actions .btn { flex: 1; }

/* ---------------------------------- landing polish ---------------------------------- */

/* faint cyber grid backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, .035) 1px, transparent 1px);
    background-size: 44px 44px;
}
.site-wrap { position: relative; z-index: 1; }

/* who-are-we visual terminal */
.who-console { position: relative; }
.who-console::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 34, 51, .05) 0 1px, transparent 1px 3px);
    pointer-events: none;
}
.who-terminal {
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
}
.who-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: var(--muted);
}
.who-status-row .dotted { flex: 1; border-bottom: 1px dotted var(--line); margin: 0 8px; }
.who-status-row .st { color: var(--green); }
.who-emblem {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.who-emblem .core {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--red-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-bright);
    background: var(--red-dim);
    box-shadow: 0 0 16px rgba(255, 34, 51, .4);
    animation: step-glow 3s ease-in-out infinite;
}
.who-emblem .id-line { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.who-emblem .id-line b { color: var(--red-bright); display: block; font-size: 12.5px; letter-spacing: 2px; }
.who-features { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 9px 11px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text);
}
.who-feature .icon { color: var(--green); }

/* timeline connector glow */
.step-connector { animation: connector-pulse 2s ease-in-out infinite; }
@keyframes connector-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 34, 51, 0); }
    50% { box-shadow: 0 0 8px rgba(255, 34, 51, .5); }
}

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------- reduced motion ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------- mobile chat tweaks ---------------------------------- */

@media (max-width: 420px) {
    .chat-panel { width: 100vw; max-width: 100vw; right: -20px; bottom: calc(64px + env(safe-area-inset-bottom)); height: 70vh; }
    .chat-msg { max-width: 92%; }
    .notice-popup-actions { flex-direction: column; }
}
