:root {
    --bg:            #06080F;
    --bg-soft:       #0A0E1A;
    --panel:         #0F1424;
    --panel-2:       #141A2E;
    --line:          rgba(255, 255, 255, .07);
    --line-strong:   rgba(255, 255, 255, .14);
    --text:          #E8ECF7;
    --muted:         #8D97B2;
    --muted-2:       #636D8A;
    --brand:         #5B7CFA;
    --brand-2:       #9B5CFF;
    --brand-3:       #22D3EE;
    --ok:            #2ED47A;
    --warn:          #FFB020;
    --danger:        #FF5A6A;
    --radius:        16px;
    --radius-sm:     10px;
    --shadow:        0 20px 60px -20px rgba(0, 0, 0, .8);
    --grad:          linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    --grad-soft:     linear-gradient(135deg, rgba(91, 124, 250, .16), rgba(155, 92, 255, .12));
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono:          'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { padding: 0; margin: 0; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--muted); }
code, pre, .mono { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.container-sm { width: min(880px, calc(100% - 40px)); margin-inline: auto; }

.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: .82rem; }
.tiny { font-size: .74rem; }
.strong { font-weight: 650; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; }
.gradient-text {
    background: linear-gradient(120deg, #fff 0%, #B9C6FF 40%, var(--brand-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
    font-family: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
    white-space: nowrap; background: var(--panel-2); color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(91, 124, 250, .9); }
.btn-primary:hover { box-shadow: 0 16px 40px -14px rgba(155, 92, 255, .9); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-danger { background: rgba(255, 90, 106, .14); border-color: rgba(255, 90, 106, .4); color: #FFB3BA; }
.btn-ok { background: rgba(46, 212, 122, .14); border-color: rgba(46, 212, 122, .4); color: #9BEFC2; }
.btn-sm { padding: 7px 13px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted);
}
.badge-brand { background: rgba(91, 124, 250, .16); border-color: rgba(91, 124, 250, .35); color: #B7C6FF; }
.badge-ok { background: rgba(46, 212, 122, .14); border-color: rgba(46, 212, 122, .3); color: #8DEDB6; }
.badge-warn { background: rgba(255, 176, 32, .14); border-color: rgba(255, 176, 32, .3); color: #FFD68A; }
.badge-danger { background: rgba(255, 90, 106, .14); border-color: rgba(255, 90, 106, .3); color: #FFAAB3; }
.badge-trc { background: rgba(255, 60, 60, .12); border-color: rgba(255, 60, 60, .3); color: #FF9E9E; }
.badge-bep { background: rgba(243, 186, 47, .14); border-color: rgba(243, 186, 47, .35); color: #FFD97A; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.panel-2 { background: var(--panel-2); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-size: 1rem; }
.panel-tight { padding: 0; overflow: hidden; }
.glow-panel { position: relative; overflow: hidden; }
.glow-panel::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(91, 124, 250, .5), transparent 40%, rgba(155, 92, 255, .4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.nav-wrap {
    position: sticky; top: 0; z-index: 50;
    background: #070A12;
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
    display: grid; place-items: center; flex: none;
    box-shadow: 0 8px 24px -8px rgba(91, 124, 250, .9);
}
.logo-mark svg { width: 74%; height: 74%; display: block; }

.logo-text { letter-spacing: -.025em; white-space: nowrap; font-weight: 800; }
.logo-text span { font-weight: 500; color: #B6BFD6; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .9rem; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; cursor: pointer; }

.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: -520px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(91, 124, 250, .28), transparent 62%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 720px; margin: 0 auto 30px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .8rem; color: var(--muted-2); }

.trust-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.trust-item { text-align: center; }
.trust-item b { display: block; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-item span { font-size: .76rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }

.section { padding: 72px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .badge { margin-bottom: 14px; }
.eyebrow {
    font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-3); font-weight: 700; margin-bottom: 12px;
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.feature {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: rgba(91, 124, 250, .45); transform: translateY(-3px); }
.feature-icon {
    width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft);
    border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: 16px;
    color: #C3CEFF;
}
.feature h3 { font-size: 1.02rem; }
.feature p { margin: 0; font-size: .89rem; }

.svc-icon {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    border-radius: 13px; color: var(--muted);
    background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--icon-accent) 26%, transparent), transparent 70%),
                rgba(255, 255, 255, .03);
    border: 1px solid color-mix(in srgb, var(--icon-accent) 32%, var(--line));
    transition: border-color .2s, transform .2s, background .2s;
}
.svc-icon svg { width: 60%; height: 60%; }
.svc-card:hover .svc-icon,
.feature:hover .svc-icon {
    transform: translateY(-2px) scale(1.04);
    border-color: color-mix(in srgb, var(--icon-accent) 65%, transparent);
    color: var(--text);
}
.svc-icon-sm { border-radius: 9px; }
.svc-head { display: flex; align-items: flex-start; gap: 13px; }

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .svc-icon { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
}

.svc-card {
    display: flex; flex-direction: column; gap: 12px; padding: 20px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, transform .2s;
}
.svc-card:hover { border-color: rgba(155, 92, 255, .45); transform: translateY(-2px); }

.svc-card.has-price-tag { position: relative; }
.svc-price-tag {
    position: absolute; top: -14px; right: 16px; z-index: 2;
    display: inline-flex; align-items: baseline; gap: 5px;
    padding: 4px 12px; border-radius: 999px;
    font-size: .74rem; line-height: 1.4; color: var(--muted); white-space: nowrap;
    background: #0B1120; border: 1px solid rgba(155, 92, 255, .5);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.svc-price-tag strong { color: var(--text); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.svc-card:hover .svc-price-tag { border-color: rgba(155, 92, 255, .85); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.svc-price small { font-size: .72rem; color: var(--muted-2); font-weight: 500; }

.dropzone {
    position: relative; border: 1.5px dashed var(--line-strong); border-radius: 14px;
    background: #0B1120; min-height: 132px; overflow: hidden;
    transition: border-color .2s, background .2s;
}
.dropzone:hover { border-color: rgba(91, 124, 250, .6); }
.dropzone.is-drag { border-color: var(--brand); background: rgba(91, 124, 250, .08); }
.dropzone.is-busy { opacity: .75; pointer-events: none; }

.dropzone-empty {
    display: grid; place-items: center; gap: 6px; padding: 22px 16px; min-height: 132px;
    cursor: pointer; text-align: center; color: var(--muted);
}
.dropzone-empty svg { width: 34px; height: 34px; opacity: .85; }
.dropzone-title { font-size: .88rem; font-weight: 600; color: var(--text); }
.dropzone-hint { font-size: .74rem; color: var(--muted-2); }
.dropzone.has-image .dropzone-empty { display: none; }

.dropzone-preview { display: none; position: relative; }
.dropzone.has-image .dropzone-preview { display: block; }
.dropzone-img { width: 100%; height: 152px; object-fit: contain; background: #080B15; padding: 8px; }

.dropzone-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.dropzone-btn {
    width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer;
    border-radius: 9px; border: 1px solid var(--line-strong); color: var(--muted);
    background: rgba(8, 11, 21, .85); backdrop-filter: blur(4px); transition: all .15s;
}
.dropzone-btn svg { width: 16px; height: 16px; }
.dropzone-btn:hover { color: var(--text); border-color: var(--brand); }
.dropzone-del:hover { color: #FFB3BA; border-color: rgba(255, 90, 106, .7); background: rgba(255, 90, 106, .16); }

.dropzone-overlay {
    position: absolute; inset: 0; display: none; place-items: center;
    background: rgba(91, 124, 250, .14); border-radius: 12px;
    font-weight: 650; font-size: .9rem; color: #C7D2FF; pointer-events: none;
}
.dropzone.is-drag .dropzone-overlay { display: grid; }

.dropzone-status {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 12px;
    font-size: .78rem; text-align: center; background: rgba(8, 11, 21, .92);
    border-top: 1px solid var(--line);
}
.dropzone-status.is-error { color: #FFB3BA; }
.dropzone-status.is-ok { color: #9BEFC2; }

.svc-admin-row {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; margin-bottom: 10px; transition: border-color .2s, opacity .2s;
}
.svc-admin-row.is-off { opacity: .62; border-style: dashed; }
.svc-admin-row:hover { border-color: var(--line-strong); }
.svc-admin-thumb {
    width: 52px; height: 36px; object-fit: contain; border-radius: 9px; flex: 0 0 auto;
    background: #0B1120; border: 1px solid var(--line); padding: 3px;
}
.svc-admin-edit { border: 0 !important; background: transparent !important; padding: 12px 0 0 !important; margin: 0 !important; }
.svc-admin-edit > summary { color: var(--muted); }

.svc-figure {
    width: 100%; aspect-ratio: 160 / 88; border-radius: 12px; overflow: hidden; padding: 6px;
    background: radial-gradient(120% 130% at 20% 0%, color-mix(in srgb, var(--icon-accent) 16%, transparent), transparent 65%),
                #0B1120;
    border: 1px solid var(--line);
    display: grid; place-items: center; transition: border-color .2s;
}
.svc-figure { position: relative; }
.svc-figure svg { width: 100%; height: 100%; }
.svc-figure.has-photo { padding: 0; }
.svc-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.svc-card:hover .svc-figure { border-color: color-mix(in srgb, var(--icon-accent) 45%, transparent); }

.svc-brand {
    position: absolute; top: 9px; right: 10px; width: 20px; height: 20px;
    padding: 4px; box-sizing: content-box; border-radius: 8px;
    background: rgba(8, 11, 21, .82); border: 1px solid var(--line);
    opacity: .95;
}
.svc-brand-inline {
    display: inline-block; width: 15px; height: 15px;
    vertical-align: -2px; margin-left: 6px; opacity: .9;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .svc-figure { background: #0B1120; }
}

.svc-price-line {
    display: flex; align-items: center; gap: 9px; white-space: nowrap;
    padding: 9px 12px; border-radius: 11px;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.svc-price-line .svc-icon { border-radius: 8px; }
.svc-price-line .svc-price { font-size: 1.3rem; line-height: 1; }
.svc-per { font-size: .78rem; color: var(--muted-2); font-weight: 600; }
.svc-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--muted-2); flex-wrap: wrap; }

.svc-card > .svc-meta { margin-top: auto; min-height: 28px; align-items: center; }
.svc-code {
    font-family: var(--mono); font-size: .74rem; color: #9FB0E8;
    background: rgba(91, 124, 250, .1); border: 1px solid rgba(91, 124, 250, .22);
    padding: 3px 8px; border-radius: 6px; display: inline-block; word-break: break-all;
}
.rate-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rate-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #7CF0B4); }

.table-wrap {
    overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);

    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .28); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
    text-align: left; padding: 13px 16px; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted-2); font-weight: 700;
    border-bottom: 1px solid var(--line); white-space: nowrap;

    position: sticky; top: 0; z-index: 3;
    background-color: #161B2B;
    background-image: linear-gradient(rgba(255, 255, 255, .025), rgba(255, 255, 255, .025));
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-empty { padding: 48px 20px; text-align: center; color: var(--muted-2); }

pre.code {
    background: #05070D; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 18px; overflow-x: auto; font-size: .82rem; line-height: 1.7; margin: 0;
    color: #CBD6F5;
}
pre.code .k { color: #7FA0FF; }
pre.code .s { color: #7EE7B0; }
pre.code .c { color: #5C6683; }
.code-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.code-tab {
    padding: 6px 13px; border-radius: 8px; font-size: .78rem; cursor: pointer;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted);
}
.code-tab.active { background: var(--grad); border-color: transparent; color: #fff; }

.error-hero { padding: 70px 0 90px; min-height: calc(100vh - 68px); display: grid; align-items: center; }
.error-figure { width: min(320px, 78vw); margin: 0 auto 26px; }
.error-figure svg { width: 100%; height: auto; }
.error-code {
    font-size: clamp(3.4rem, 13vw, 6.5rem); font-weight: 800; line-height: .9; letter-spacing: -.04em;
    background: linear-gradient(120deg, #fff 0%, #8FA6FF 45%, var(--brand-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 6px;
}
.error-title { font-size: clamp(1.4rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.error-links {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    max-width: 820px; margin: 34px auto 0; text-align: left;
}
.error-link {
    display: block; padding: 14px 16px; border-radius: 13px;
    background: var(--panel); border: 1px solid var(--line);
    transition: border-color .2s, transform .2s, background .2s;
}
.error-link:hover { border-color: rgba(91, 124, 250, .5); transform: translateY(-2px); background: var(--panel-2); }
.error-link-title { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 3px; }
.error-link-desc { display: block; font-size: .78rem; color: var(--muted-2); }

@media (max-width: 900px) { .error-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .error-links { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 54px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.footer a { display: block; font-size: .86rem; color: var(--muted); padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer-bottom {
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .8rem; color: var(--muted-2);
}

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; }
.auth-wrap::before {
    content: ''; position: absolute; width: 700px; height: 700px; top: -350px; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(91, 124, 250, .22), transparent 65%);
}
.auth-card {
    width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line);
    border-radius: 20px; padding: 32px; box-shadow: var(--shadow); position: relative; z-index: 2;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-side { text-align: center; margin-top: 20px; font-size: .86rem; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: #C3CBE2; }
.hint { font-size: .76rem; color: var(--muted-2); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=search], input[type=tel], input[type=date], input[type=datetime-local], input[type=time],
select, textarea {
    width: 100%; padding: 11px 14px; border-radius: 10px; background: #080B15;
    border: 1px solid var(--line-strong); color: var(--text); font-family: inherit; font-size: .9rem;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; font-family: var(--mono); font-size: .84rem; line-height: 1.7; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: rgba(91, 124, 250, .8); box-shadow: 0 0 0 3px rgba(91, 124, 250, .16);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238D97B2' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #080B15 inset;
    box-shadow: 0 0 0 1000px #080B15 inset;
    caret-color: var(--text);
    border-radius: 10px;
    transition: background-color 9999s ease-out 0s;
}

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 34px; height: 34px; display: grid; place-items: center;
    background: transparent; border: 0; border-radius: 8px; cursor: pointer;
    color: var(--muted); transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pw-toggle:focus-visible { outline: 2px solid rgba(91, 124, 250, .8); outline-offset: 1px; }
.pw-toggle svg { width: 19px; height: 19px; }

[hidden] { display: none !important; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--muted); }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); }
.error { color: #FFA8B0; font-size: .78rem; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.switch { display: flex; align-items: center; gap: 10px; }
.switch input { width: 40px; height: 22px; appearance: none; background: #1B2237; border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #6A7595; transition: transform .2s, background .2s; }
.switch input:checked { background: rgba(91, 124, 250, .35); }
.switch input:checked::after { transform: translateX(18px); background: var(--brand); }

.alert {
    display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px;
    font-size: .88rem; margin-bottom: 18px; border: 1px solid;
}
.alert-success { background: rgba(46, 212, 122, .1); border-color: rgba(46, 212, 122, .3); color: #A8F0C8; }
.alert-error { background: rgba(255, 90, 106, .1); border-color: rgba(255, 90, 106, .3); color: #FFB6BD; }
.alert-info { background: rgba(91, 124, 250, .1); border-color: rgba(91, 124, 250, .3); color: #BCC9FF; }
.alert-warn { background: rgba(255, 176, 32, .1); border-color: rgba(255, 176, 32, .3); color: #FFDB9B; }

.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
    background: var(--bg-soft); border-right: 1px solid var(--line); padding: 20px 14px;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.sidebar .logo { flex: 0 0 auto; padding: 6px 10px 20px; }

.side-nav {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
    margin: 0 -6px; padding: 0 6px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 999px; }
.side-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .28); }
.side-label {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2);
    padding: 16px 12px 8px; font-weight: 700;
}
.side-link {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
    font-size: .88rem; color: var(--muted); font-weight: 500; transition: background .15s, color .15s;
}
.side-link:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side-link.active { background: var(--grad-soft); color: #fff; border: 1px solid rgba(91, 124, 250, .3); }
.side-link svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .9; }
.side-foot { flex: 0 0 auto; margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }

.side-user {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03);
}
.side-user-avatar { flex: 0 0 auto; width: 36px; height: 36px; }
.side-user-meta { min-width: 0; }
.side-user-name {
    font-size: .84rem; font-weight: 700; color: var(--text); line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-user-role {
    display: inline-block; margin: 3px 0 2px; padding: 1px 7px; border-radius: 999px;
    font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #cbb6ff; background: var(--grad-soft); border: 1px solid rgba(155, 92, 255, .32);
}
.side-user-email {
    font-size: .74rem; color: var(--muted); line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-ico { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 6px; }
[dir="rtl"] .btn-ico { margin-right: 0; margin-left: 6px; transform: scaleX(-1); }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center;
    justify-content: space-between; gap: 16px; padding: 0 26px; background: #070A12;
    position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 1.05rem; margin: 0; }
.content { padding: 26px; flex: 1; }
.balance-chip {
    display: flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
    background: var(--grad-soft); border: 1px solid rgba(91, 124, 250, .3); font-weight: 700; font-size: .9rem;
}
.avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid;
    place-items: center; font-size: .82rem; font-weight: 700; color: #fff;
}

.stat {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
    position: relative; overflow: hidden;
}
.stat .label { font-size: .76rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat .value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.stat-accent::after {
    content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 124, 250, .22), transparent 70%);
}

.chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart-bar {
    width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: var(--grad);
    min-height: 3px; position: relative; transition: filter .15s;
}
.chart-bar:hover { filter: brightness(1.25); }
.chart-bar.muted { background: rgba(255, 255, 255, .08); }
.chart-x { font-size: .68rem; color: var(--muted-2); }

.net-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.net-tab {
    padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03); font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.net-tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.deposit-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.qr-box { background: #fff; padding: 12px; border-radius: 14px; width: 240px; }
.addr-box {
    display: flex; align-items: center; gap: 10px; background: #080B15; border: 1px dashed var(--line-strong);
    border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: .84rem; word-break: break-all;
}
.copy-btn { border: 0; background: rgba(91, 124, 250, .16); color: #C3CEFF; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: .76rem; font-weight: 600; }
.copy-btn:hover { background: rgba(91, 124, 250, .3); }
.step-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step-list li { counter-increment: s; position: relative; padding-left: 34px; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.step-list li::before {
    content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
    background: var(--grad-soft); border: 1px solid rgba(91, 124, 250, .35); color: #C3CEFF;
    display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.pagination a, .pagination span {
    padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: .82rem;
    color: var(--muted); background: rgba(255, 255, 255, .02);
}
.pagination .active span, .pagination a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.pagination svg { width: 14px; height: 14px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin: 0; min-width: 150px; }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; font-size: .88rem; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; word-break: break-all; }

.copyable { cursor: pointer; }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

details.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; background: var(--panel); }
details.acc summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
details.acc[open] summary { margin-bottom: 10px; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

.lang-switch { position: relative; }
.lang-switch > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    min-width: 156px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
    background: #080B15; font-size: .85rem; font-weight: 600; user-select: none;
    transition: border-color .15s, box-shadow .15s;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { border-color: rgba(91, 124, 250, .5); }
.lang-switch[open] > summary { border-color: rgba(91, 124, 250, .8); box-shadow: 0 0 0 3px rgba(91, 124, 250, .16); }

.lang-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lang-caret {
    flex: 0 0 auto; width: 12px; height: 8px; background: var(--muted-2);
    clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .18s;
}
.lang-switch[open] .lang-caret { transform: rotate(180deg); }

.flag-img {
    flex: 0 0 auto; width: 21px; height: 16px; display: block; object-fit: cover;
    border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
    background: #1B2237;
}
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 262px;
    padding: 8px; border-radius: 14px;
    background: var(--panel-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.lang-list { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.lang-search {
    width: 100%; margin: 0 0 8px; padding: 8px 11px; border-radius: 9px;
    background: #080B15; border: 1px solid var(--line-strong); color: var(--text); font-size: .84rem;
}
.lang-search:focus { outline: none; border-color: rgba(91, 124, 250, .8); }
.lang-empty { padding: 14px 10px; text-align: center; font-size: .82rem; color: var(--muted-2); }
.lang-switch[data-align="left"] .lang-menu { right: auto; left: 0; }
.lang-menu-head {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2);
    font-weight: 700; padding: 4px 10px 8px;
}
.lang-menu a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
    font-size: .86rem; color: var(--muted); transition: background .15s, color .15s;
}
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-menu a.active { background: var(--grad-soft); color: #fff; }
.lang-check { color: var(--brand-3); font-weight: 700; }
.lang-chip { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }

[dir="rtl"] body, [dir="rtl"] .content { direction: rtl; }
[dir="rtl"] .side-link, [dir="rtl"] .flex-center, [dir="rtl"] .badge { flex-direction: row-reverse; }
[dir="rtl"] thead th, [dir="rtl"] tbody td { text-align: right; }
[dir="rtl"] td.num, [dir="rtl"] th.num, [dir="rtl"] .right { text-align: left; }
[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .step-list li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .step-list li::before { left: auto; right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] pre.code, [dir="rtl"] .mono, [dir="rtl"] .addr-box { direction: ltr; text-align: left; }

@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-sidebar, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { gap: 20px; }
}
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 100; height: 100vh;
        transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow);
    }
    .sidebar.open { transform: none; }
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 4px; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 0; }
    .nav-toggle { display: block; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .deposit-grid { grid-template-columns: 1fr; }
    .qr-box { width: 100%; max-width: 260px; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .kv dd { margin-bottom: 10px; }
    .content, .topbar { padding-inline: 16px; }
}
@media (max-width: 620px) {
    .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 44px; }
    .section { padding: 48px 0; }
}

.bell { position: relative; }
.bell-btn {
    position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
    cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.bell-btn:hover { color: var(--text); border-color: rgba(91, 124, 250, .4); }
.bell-btn svg { width: 18px; height: 18px; }
.bell-dot {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--danger, #FF5A6A); color: #fff;
    font-size: .64rem; font-weight: 800; line-height: 18px; text-align: center;
    border: 2px solid var(--bg); font-variant-numeric: tabular-nums;
}
.bell-menu {
    position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 32px));
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); z-index: 60; overflow: hidden;
}
[dir="rtl"] .bell-menu { right: auto; left: 0; }
.bell-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .86rem;
}
.bell-link { background: none; border: 0; padding: 0; color: #A9BBFF; font-size: .76rem; cursor: pointer; }
.bell-link:hover { text-decoration: underline; }
.bell-list { max-height: 340px; overflow-y: auto; }
.bell-item { display: block; border-bottom: 1px solid var(--line); }
.bell-item:last-child { border-bottom: 0; }
.bell-item > button {
    display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 14px;
    background: none; border: 0; text-align: start; cursor: pointer; color: inherit;
}
.bell-item > button:hover { background: rgba(255, 255, 255, .04); }
.bell-item.is-unread > button { background: rgba(91, 124, 250, .08); }
.bell-item-ico { flex: 0 0 auto; font-size: .95rem; line-height: 1.3; }
.bell-item-main { min-width: 0; flex: 1 1 auto; display: block; }
.bell-item-title { display: block; font-size: .83rem; font-weight: 600; color: var(--text); }
.bell-item-body { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.bell-item-time { display: block; font-size: .7rem; color: var(--muted-2); margin-top: 3px; }
.bell-item-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-top: 6px; }
.bell-empty { padding: 26px 14px; text-align: center; font-size: .82rem; color: var(--muted); }
.bell-foot {
    display: block; padding: 11px 14px; text-align: center; font-size: .8rem;
    color: #A9BBFF; border-top: 1px solid var(--line);
}
.bell-foot:hover { background: rgba(255, 255, 255, .04); }

.tp-card { display: flex; flex-direction: column; gap: 14px; }
.tp-card.is-off > :not(:first-child) { opacity: .65; }
.tp-balance { text-align: end; flex: 0 0 auto; }
.tp-balance-value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.tp-balance-value.is-bad { color: #FF8A96; }
.tp-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-block: 1px solid var(--line); }
.tp-figures > div { display: flex; flex-direction: column; gap: 3px; }
.tp-key { display: flex; gap: 8px; margin-top: 6px; }
.tp-key > :first-child { flex: 1; min-width: 0; }
.tp-key input { width: 100%; }
.tp-mult { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) { .tp-key { flex-direction: column; } .tp-figures { grid-template-columns: 1fr 1fr; } }

.price-edit summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.price-edit summary::-webkit-details-marker { display: none; }
.price-edit-btn { font-size: .72rem; color: #A9BBFF; border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; }
.price-edit[open] .price-edit-btn { display: none; }
.price-edit-form { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.price-edit-form input { width: 110px; }

.pm { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.pm-opt { position: relative; cursor: pointer; }
.pm-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pm-opt span { display: block; padding: 8px 18px; font-weight: 700; font-size: .86rem; color: var(--muted); }
.pm-opt + .pm-opt { border-left: 1px solid var(--line-strong); }
.pm-plus input:checked + span { background: rgba(34, 197, 94, .18); color: #6EE7A0; }
.pm-minus input:checked + span { background: rgba(255, 90, 106, .18); color: #FF8A96; }
.pm-opt input:focus-visible + span { outline: 2px solid rgba(91, 124, 250, .6); outline-offset: -2px; }

.side-count {
    margin-inline-start: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px;
    background: var(--danger, #FF5A6A); color: #fff; font-size: .68rem; font-weight: 800; text-align: center;
}

.noti-list { display: flex; flex-direction: column; }
.noti {
    display: flex; gap: 13px; padding: 16px 22px; border-bottom: 1px solid var(--line);
    border-inline-start: 3px solid transparent;
}
.noti:last-child { border-bottom: 0; }
.noti.is-unread { background: rgba(91, 124, 250, .06); }
.noti-brand.is-unread { border-inline-start-color: var(--brand); }
.noti-ok.is-unread { border-inline-start-color: var(--ok); }
.noti-warn.is-unread { border-inline-start-color: var(--warn); }
.noti-danger.is-unread { border-inline-start-color: var(--danger, #FF5A6A); }
.noti-ico { flex: 0 0 auto; font-size: 1.05rem; line-height: 1.4; }
.noti-main { flex: 1 1 auto; min-width: 0; }
.noti-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.noti-title { font-weight: 700; font-size: .93rem; }
.noti-body { margin: 6px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.noti-meta { margin-top: 7px; font-size: .74rem; color: var(--muted-2); }
.noti-actions { flex: 0 0 auto; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; }

.noti-picker {
    max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft);
}
.noti-pick span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.txt-prose { font-family: inherit; font-size: .88rem; line-height: 1.6; }

@media (max-width: 760px) {
    .noti { flex-wrap: wrap; }
    .noti-actions { width: 100%; }
}

.th-sort { padding: 0 !important; }
.th-sort > a {
    display: flex; align-items: center; gap: 6px; padding: 13px 16px; color: inherit;
    font: inherit; white-space: nowrap; transition: color .15s, background .15s;
}
.th-sort > a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.th-sort.num > a { justify-content: flex-end; }
.th-sort .th-arrow { font-size: .6rem; opacity: .35; line-height: 1; }
.th-sort > a:hover .th-arrow { opacity: .7; }
.th-sort.is-active > a { color: var(--text); }
.th-sort.is-active .th-arrow { opacity: 1; color: var(--brand-3); }

th[data-sort-js] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort-js]:hover { color: var(--text); }
th[data-sort-js]::after { content: ' ⇅'; font-size: .6rem; opacity: .35; }
th[data-sort-js][data-dir="asc"]::after { content: ' ▲'; opacity: 1; color: var(--brand-3); }
th[data-sort-js][data-dir="desc"]::after { content: ' ▼'; opacity: 1; color: var(--brand-3); }

.table-foot {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px; padding: 14px 22px 18px; border-top: 1px solid var(--line);
}
.table-foot-left { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.table-foot-right { margin-inline-start: auto; }
.per-page { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.per-page select {
    width: auto; min-width: 74px; padding: 6px 30px 6px 11px; font-size: .8rem; border-radius: 9px;
    background-position: right 10px center;
}
.table-count { font-size: .8rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
    .table-foot { flex-direction: column; align-items: stretch; }
    .table-foot-right { margin-inline-start: 0; }
}

.svc-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.svc-flags .badge { font-size: .62rem; padding: 1px 7px; }

.net-pick { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 2px; }

.pill-check { position: relative; cursor: pointer; user-select: none; }

.pill-check input {
    position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none;
}

.pill-check span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px 9px 15px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: #080B15;
    font-size: .84rem; color: var(--muted); white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}

.pill-check span::before {
    content: ''; flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%;
    border: 1.5px solid var(--line-strong); transition: border-color .15s, background .15s;
}

.pill-check:hover span { border-color: rgba(255, 255, 255, .22); color: var(--text); }

.pill-check input:checked ~ span { color: var(--text); font-weight: 600; }
.pill-check input:checked ~ span::before {
    background: currentColor; border-color: currentColor;
    box-shadow: inset 0 0 0 3px #080B15;
}

.pill-trc input:checked ~ span { border-color: rgba(255, 90, 106, .55); background: rgba(255, 90, 106, .12); color: #FFAAB3; }
.pill-bep input:checked ~ span { border-color: rgba(243, 186, 47, .55); background: rgba(243, 186, 47, .12); color: #F7D070; }

.pill-check input:focus-visible ~ span { box-shadow: 0 0 0 3px rgba(91, 124, 250, .3); }

.panel.is-empty-slot {
    border-style: dashed;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .015);
}
.panel.is-empty-slot::before { display: none; }
.panel.is-empty-slot .panel-head h3 { color: var(--muted); }

.key-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(3, 5, 12, .78); backdrop-filter: blur(6px);
    display: grid; place-items: center; padding: 20px;
}
.key-box {
    width: min(560px, 100%); background: var(--panel);
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
}
.key-box h3 { margin: 0 0 16px; }
.key-row { display: flex; gap: 12px; font-size: .82rem; padding: 5px 0; border-bottom: 1px solid var(--line); }
.key-label { color: var(--muted); min-width: 90px; flex: none; }
.key-value { color: var(--text); word-break: break-all; }

.key-secret {
    margin: 16px 0 12px; padding: 14px; border-radius: var(--radius-sm);
    background: rgba(255, 90, 106, .1); border: 1px solid rgba(255, 90, 106, .35);
    color: #FFD6DA; font-size: .78rem; line-height: 1.7; word-break: break-all; user-select: all;
}
.key-warn { font-size: .76rem; color: #FFAAB3; margin: 0 0 16px; }
.key-actions { display: flex; gap: 8px; }

.confirm-box { width: min(460px, 100%); }
.confirm-text { margin: 0 0 20px; color: var(--muted); line-height: 1.6; white-space: pre-line; }
.confirm-actions { justify-content: flex-end; }

.refund-box { width: min(460px, 100%); }
.refund-box h3 { margin-bottom: 10px; }
.refund-warn { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }
.refund-warn.is-early {
    color: #FFDB9B; background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .35);
    border-radius: var(--radius-sm); padding: 10px 12px;
}
.refund-fee { color: #FFAAB3; }
.refund-actions { justify-content: flex-end; margin-top: 18px; }

.wallet-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wallet-filter input[type="search"] { min-width: 220px; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; font-size: .84rem; font-weight: 600;
    color: var(--muted); background: transparent; border: 0; cursor: pointer;
    font-family: inherit; transition: background .15s, color .15s;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line-strong); }
.seg-btn:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.seg-btn.is-on { background: var(--grad); color: #fff; }
.seg-btn.is-on .badge { background: rgba(0, 0, 0, .25); border-color: transparent; color: #fff; }

tr.is-off { opacity: .55; }

.seed-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    margin: 16px 0 12px; padding: 0 0 0 0; list-style: none; counter-reset: tu;
}
.seed-grid li {
    counter-increment: tu;
    display: flex; align-items: baseline; gap: 8px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    background: rgba(255, 90, 106, .1); border: 1px solid rgba(255, 90, 106, .3);
    color: #FFE3E6; font-size: .82rem; user-select: all;
}
.seed-grid li::before {
    content: counter(tu); flex: none;
    font-size: .68rem; color: var(--muted-2); min-width: 14px; text-align: right;
}
@media (max-width: 560px) { .seed-grid { grid-template-columns: repeat(2, 1fr); } }

.balance-chip { display: inline-flex; align-items: center; gap: 7px; }
.balance-chip.is-moi { animation: soDuNhay .9s ease; }
@keyframes soDuNhay {
    0%, 100% { transform: scale(1); }
    30%      { transform: scale(1.12); color: var(--ok); }
}
.balance-refresh {
    display: inline-grid; place-items: center; width: 22px; height: 22px;
    padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: transparent; color: var(--muted); transition: color .15s, background .15s;
}
.balance-refresh svg { width: 14px; height: 14px; }
.balance-refresh:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.balance-refresh.is-spin svg { animation: quay .8s linear infinite; }
.balance-refresh.is-xong { color: var(--ok); }
@keyframes quay { to { transform: rotate(360deg); } }

.money-box { max-width: 420px; text-align: center; }
.money-icon {
    width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #2ED47A, #12A85E);
    box-shadow: 0 12px 34px -10px rgba(46, 212, 122, .9);
    animation: tienVao .45s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes tienVao { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.money-row {
    display: flex; flex-direction: column; gap: 2px; align-items: center;
    padding: 12px; margin-bottom: 10px; border-radius: var(--radius-sm);
    background: rgba(46, 212, 122, .1); border: 1px solid rgba(46, 212, 122, .3);
}
.money-amount { font-size: 1.5rem; font-weight: 800; color: #8DEDB6; letter-spacing: -.02em; }
.key-actions.center { justify-content: center; }

.escrow-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0 4px;
}

.escrow-figure {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.escrow-figure.is-held {
    border-color: rgba(255, 176, 32, .35);
    background: rgba(255, 176, 32, .06);
}

.escrow-figure-label {
    display: block;
    color: var(--muted-2);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.escrow-figure-value {
    display: block;
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.escrow-figure.is-held .escrow-figure-value {
    color: var(--warn);
}

.escrow-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.escrow-tier {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.escrow-tier.is-on {
    border-color: var(--brand);
    background: var(--grad-soft);
}

.escrow-tier-amount {
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.escrow-tier-rate {
    color: var(--muted);
    font-size: .8rem;
}

.escrow-tier-have {
    color: var(--ok);
    font-size: .78rem;
    font-weight: 600;
}

.escrow-tier-form {
    margin-top: auto;
}

.escrow-tier-term { color: var(--muted); font-size: .72rem; }

.escrow-price-old {
    color: var(--muted-2); font-size: .8rem; font-weight: 500; margin-right: 4px;
    text-decoration: line-through; text-decoration-color: rgba(255, 90, 106, .8); text-decoration-thickness: 2px;
}

.escrow-tier-perk {
    color: #FFD27A;
    font-size: .76rem;
    font-weight: 700;
}

.escrow-tier.has-ribbon {
    position: relative;
    padding-inline: 40px;
    border-color: rgba(255, 196, 77, .55);
    box-shadow: 0 0 0 1px rgba(255, 196, 77, .12), 0 8px 24px rgba(255, 176, 32, .08);
}
.escrow-tier.has-ribbon.is-on { border-color: var(--brand); }

.escrow-ribbon {
    position: absolute; top: -5px; left: 10px; z-index: 1;
    width: 24px; height: auto;
    display: flex; justify-content: center; padding: 9px 0 20px;
    background: linear-gradient(180deg, #FFD36E 0%, #FFB020 55%, #E8890C 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 11px), 0 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.escrow-ribbon::before {
    content: ""; position: absolute; top: 0; left: -5px;
    border-style: solid; border-width: 0 5px 5px 0;
    border-color: transparent #9A5A06 transparent transparent;
}
.escrow-ribbon > span {
    writing-mode: vertical-rl;
    font-size: .56rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    color: #3A2400; white-space: nowrap; line-height: 1;
}

@media (max-width: 640px) {
    .escrow-figures {
        grid-template-columns: 1fr;
    }
}

.badge-beta {
    background: rgba(155, 92, 255, .16);
    border-color: rgba(155, 92, 255, .4);
    color: #C9A9FF;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .64rem;
    font-weight: 700;
}

.pricing-layout {
    display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start;
}
.pricing-layout > .pricing-menu { order: -1; }
.pricing-main { display: grid; gap: 24px; min-width: 0; }

.pricing-layout.is-ready .price-detail:not(.is-active) { display: none; }

.price-detail { display: flex; flex-direction: column; gap: 18px; padding: 24px; scroll-margin-top: 88px; min-width: 0; }
.price-detail pre.code { max-width: 100%; overflow-x: auto; }
.price-detail.is-active { animation: price-in .18s ease-out; }
@keyframes price-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.price-detail-head { display: flex; align-items: flex-start; gap: 14px; }
.price-detail-name { font-size: 1.45rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.price-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.price-stat {
    display: flex; flex-direction: column; gap: 6px; padding: 14px;
    background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: 12px;
}
.price-stat-main { border-color: rgba(155, 92, 255, .45); background: rgba(155, 92, 255, .07); }
.price-stat-label { font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.price-stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.price-stat-value.small-value { font-size: 1.05rem; font-weight: 700; }
.price-section-title { font-size: .78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.price-section-title .mono { text-transform: none; letter-spacing: 0; }
.price-detail pre.code { margin: 0; }

.pricing-menu {
    position: sticky; top: 88px; max-height: min(calc(100vh - 108px), 640px);
    display: flex; flex-direction: column; gap: 10px; padding: 14px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.pricing-search {
    width: 100%; padding: 9px 12px; border-radius: 10px; font: inherit; font-size: .85rem;
    color: var(--text); background: #0B1120; border: 1px solid var(--line-strong);
}
.pricing-search:focus { outline: none; border-color: rgba(155, 92, 255, .6); }
.pricing-menu-list {
    overflow-y: auto; margin: 0 -6px; padding: 0 6px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent;
}
.pricing-menu-list::-webkit-scrollbar { width: 6px; }
.pricing-menu-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; }
.pricing-menu-group + .pricing-menu-group { margin-top: 4px; }
.pricing-menu-heading {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 9px;
    font: inherit; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted); background: transparent; border: 0; cursor: pointer; text-align: left;
}
.pricing-menu-heading:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.pricing-menu-chevron { width: 14px; height: 14px; flex: none; transition: transform .15s; }
.pricing-menu-group.is-open .pricing-menu-chevron { transform: rotate(90deg); }
.pricing-menu-count {
    min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
    font-size: .68rem; color: var(--muted-2); background: rgba(255, 255, 255, .05);
}
.pricing-menu-items { padding: 2px 0 6px; }

.pricing-layout.is-ready:not(.is-searching) .pricing-menu-group:not(.is-open) .pricing-menu-items { display: none; }
.pricing-layout.is-searching .pricing-menu-chevron { visibility: hidden; }
.pricing-menu-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px;
    color: var(--muted); font-size: .84rem; text-decoration: none; border: 1px solid transparent;
}
.pricing-menu-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.pricing-menu-item.is-active {
    background: rgba(155, 92, 255, .12); border-color: rgba(155, 92, 255, .45); color: var(--text);
}
.pricing-menu-name { min-width: 0; line-height: 1.3; }
.pricing-menu-price { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pricing-menu-empty { padding: 10px 8px; }

@media (max-width: 1080px) {
    .price-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {

    .pricing-layout { grid-template-columns: minmax(0, 1fr); }
    .pricing-menu { position: static; max-height: 340px; }
}

.pg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pg-layout .panel { min-width: 0; }
.pg-code { position: sticky; top: 16px; }
.pg-code .code-tabs { align-items: center; flex-wrap: wrap; }
.pg-copy { margin-left: auto; }
.pg-pre { max-height: calc(100vh - 230px); overflow: auto; white-space: pre; margin: 0; }

.pg-pre, .pg-solution { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.pg-field label { display: flex; align-items: baseline; gap: 2px; }
.pg-req { color: var(--danger); font-weight: 700; }
.pg-field textarea, .pg-extra textarea { width: 100%; font-family: var(--mono); font-size: .78rem; }
.pg-image { display: grid; gap: 6px; }
.pg-file { font-size: .8rem; color: var(--muted); }
.pg-extra { margin: 4px 0 14px; }
.pg-extra summary { cursor: pointer; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.pg-error {
    margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .82rem;
    color: #FFD6DA; background: rgba(255, 90, 106, .1); border: 1px solid rgba(255, 90, 106, .35);
}

.pg-modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.pg-modal h3 { margin: 0; }
.pg-status { margin: 14px 0 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pg-status.is-busy { color: var(--muted); }
.pg-status.is-busy::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
    border: 2px solid var(--line-strong); border-top-color: var(--text); animation: spin .8s linear infinite;
}
.pg-status.is-ok { color: var(--ok); }
.pg-status.is-fail { color: var(--danger); }
.pg-status.is-warn { color: var(--warn); }
.pg-solution { margin: 12px 0 0; max-height: 260px; overflow: auto; }
.pg-err { color: #FFAAB3; }

@media (max-width: 1080px) {

    .pg-layout { grid-template-columns: minmax(0, 1fr); }
    .pg-code { position: static; }
}

.toast-stack {
    position: fixed; top: 72px; right: 16px; z-index: 300;
    display: flex; flex-direction: column; gap: 10px;
    width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
    --toast: var(--ok);
    position: relative; overflow: hidden; pointer-events: auto;
    display: flex; align-items: center; gap: 11px;
    padding: 13px 40px 15px 14px; border-radius: 12px;
    font-size: .86rem; line-height: 1.5; color: var(--text);
    background: #0F1524; border: 1px solid color-mix(in srgb, var(--toast) 45%, transparent);
    border-left: 4px solid var(--toast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    animation: toast-in .22s ease-out;
}
.toast-success { --toast: var(--ok); }
.toast-warn    { --toast: var(--warn); }
.toast-error   { --toast: var(--danger); }
.toast-info    { --toast: #5B7CFA; }

.toast-icon {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    font-size: .78rem; font-weight: 800; color: #0B0F1A; background: var(--toast);
}
.toast-body { min-width: 0; word-break: break-word; }
.toast-body ul { margin: 6px 0 0; padding-left: 18px; }
.toast-close {
    position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; padding: 0;
    display: grid; place-items: center; border: 0; border-radius: 7px; cursor: pointer;
    font-size: 1.15rem; line-height: 1; color: var(--muted); background: transparent;
}
.toast-close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }

.toast-timer {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--toast); opacity: .55; transform-origin: left;
    animation: toast-timer var(--toast-ms, 10000ms) linear forwards;
}
.toast:hover .toast-timer, .toast.is-paused .toast-timer { animation-play-state: paused; }
.toast.is-leaving { animation: toast-out .2s ease-in forwards; }

@keyframes toast-in    { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-out   { to { opacity: 0; transform: translateX(24px); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
    .toast, .toast.is-leaving { animation: none; }
}
@media (max-width: 520px) {
    .toast-stack { top: 64px; right: 10px; width: calc(100vw - 20px); }
}

.trend { position: relative; outline: none; }
.trend:focus-visible { box-shadow: 0 0 0 2px rgba(91, 124, 250, .45); border-radius: 8px; }
.trend-svg { display: block; width: 100%; overflow: visible; }
.trend-grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.trend-zero { stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 3 3; }
.trend-tick { fill: var(--muted-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.trend-end { fill: var(--text); font-size: 11.5px; font-weight: 700; }
.trend-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-area { stroke: none; opacity: .1; }
.trend-dot { stroke: var(--panel); stroke-width: 2; }
.trend-cross { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }

.trend-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-key { display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: var(--c); }
.trend-key.trend-key-dash, .trend-tip-key.trend-key-dash { height: 2px; background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 6px); }

.trend-tip {
    position: absolute; top: 18px; z-index: 5; pointer-events: none; min-width: 170px;
    padding: 9px 11px; border-radius: 10px; font-size: .78rem;
    background: #0B1120; border: 1px solid var(--line-strong); box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.trend-tip-date { color: var(--muted); margin-bottom: 5px; }
.trend-tip-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.trend-tip-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.trend-tip-row span { color: var(--muted); }
.trend-tip-key { display: inline-block; width: 12px; height: 2px; border-radius: 1px; background: var(--c); }

.trend-table { margin-top: 12px; }
.trend-table summary { cursor: pointer; font-size: .8rem; color: var(--muted); }

.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.blog-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .84rem; color: var(--muted); }
.cat-chip span { opacity: .6; margin-inline-start: 4px; }
.cat-chip:hover { color: var(--text); border-color: rgba(91, 124, 250, .5); }
.cat-chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.blog-search input { min-width: 240px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: rgba(91, 124, 250, .45); transform: translateY(-2px); }
.post-card-cover { display: block; aspect-ratio: 1200 / 630; background: var(--panel-2); overflow: hidden; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-cover-empty { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.4rem; font-weight: 800; color: rgba(255, 255, 255, .18); background: radial-gradient(circle at 30% 20%, rgba(91, 124, 250, .25), transparent 60%), var(--panel-2); }
.post-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card-title { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: #A9BBFF; }
.post-card-excerpt { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0; }
.post-meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.post-cat { color: #A9BBFF; font-weight: 600; }

.post-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; margin-bottom: 26px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.post-hero-cover { display: block; aspect-ratio: 1200 / 630; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); }
.post-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.25; margin: 10px 0; }
.post-hero-title a { color: var(--text); }

.tag-chip { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: rgba(91, 124, 250, .12); color: #A9BBFF; font-size: .78rem; }

.article-head { max-width: 860px; padding-top: 40px; padding-bottom: 10px; }
.article-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 14px; }
.article-lead { font-size: 1.12rem; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.article-cover { display: block; width: 100%; max-width: 1100px; margin: 18px auto 10px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.article-layout { max-width: 860px; padding-top: 18px; padding-bottom: 30px; }
.article-layout.has-toc { max-width: 1140px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.article-toc-inner { position: sticky; top: 90px; font-size: .84rem; }
.article-toc ol { list-style: none; padding: 0; margin: 10px 0 0; border-inline-start: 1px solid var(--line-strong); }
.article-toc li a { display: block; padding: 5px 12px; color: var(--muted); }
.article-toc li a:hover { color: var(--text); }
.article-toc .toc-l3 a { padding-inline-start: 24px; font-size: .8rem; }

.article-body { font-size: 1.04rem; line-height: 1.8; color: #D5DBEC; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 1.5rem; margin: 2em 0 .6em; color: var(--text); scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; color: var(--text); scroll-margin-top: 90px; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body pre, .article-body table { margin: 0 0 1.2em; }
.article-body a { color: #A9BBFF; text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.article-body blockquote { border-inline-start: 3px solid var(--brand); padding: 4px 18px; color: var(--muted); background: rgba(91, 124, 250, .06); border-radius: 0 8px 8px 0; }
.article-body code { font-family: var(--mono, monospace); font-size: .88em; background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 6px; }
.article-body pre { background: #0A0E1A; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
.article-body pre code { background: none; padding: 0; font-size: .86rem; line-height: 1.6; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line-strong); padding: 8px 12px; text-align: start; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-tags { margin-top: 26px; }
.article-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(91, 124, 250, .14), rgba(150, 91, 250, .1)); }

@media (max-width: 980px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout.has-toc { grid-template-columns: 1fr; }
    .article-toc-inner { position: static; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
}
@media (max-width: 640px) {
    .post-grid, .post-hero { grid-template-columns: 1fr; }
    .blog-search input { min-width: 0; width: 100%; }
    .blog-search { width: 100%; }
}

.post-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; border: 1px solid var(--line); }
.post-thumb-empty { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-size: .9rem; }
.post-title-input { font-size: 1.2rem; font-weight: 700; }
.url-field { display: flex; align-items: center; gap: 6px; }
.url-field input { flex: 1; min-width: 0; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; margin-bottom: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.md-toolbar[hidden] { display: none; }
.md-toolbar button { min-width: 34px; padding: 6px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; }
.md-toolbar button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.md-input { width: 100%; min-height: 460px; line-height: 1.65; font-size: .9rem; resize: vertical; }
.md-preview { min-height: 460px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.md-preview.is-loading { opacity: .5; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick { cursor: pointer; position: relative; }
.tag-pick input { position: absolute; opacity: 0; }
.tag-pick span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .78rem; color: var(--muted); }
.tag-pick input:checked + span { background: rgba(91, 124, 250, .2); border-color: rgba(91, 124, 250, .55); color: #C8D3FF; }
.tag-pick input:focus-visible + span { outline: 2px solid rgba(91, 124, 250, .6); }
.cover-preview { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.count-over { color: var(--warn); }

.pub-box { display: flex; flex-direction: column; gap: 12px; }
.pm-block { display: flex; width: 100%; }
.pm-block .pm-opt { flex: 1; text-align: center; }
.pub-label { font-size: .82rem; font-weight: 600; margin-bottom: -4px; }
.pub-date { position: relative; }
.pub-date input { width: 100%; font-variant-numeric: tabular-nums; color-scheme: dark; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-chips button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: inherit; font-size: .76rem; cursor: pointer; }
.pub-chips button:hover { color: var(--text); border-color: rgba(91, 124, 250, .55); background: rgba(91, 124, 250, .1); }
.pub-chips .pub-chip-clear { margin-inline-start: auto; }
.pub-status { padding: 10px 12px 10px 36px; border-radius: var(--radius-sm); font-size: .82rem; line-height: 1.5; position: relative; border: 1px solid transparent; }
.pub-status::before { position: absolute; left: 12px; top: 9px; }
.pub-status.is-draft { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--muted); }
.pub-status.is-draft::before { content: '✎'; }
.pub-status.is-now, .pub-status.is-live { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); color: #8BE9B0; }
.pub-status.is-now::before, .pub-status.is-live::before { content: '●'; }
.pub-status.is-scheduled { background: rgba(91, 124, 250, .12); border-color: rgba(91, 124, 250, .35); color: #C8D3FF; }
.pub-status.is-scheduled::before { content: '🕒'; }

.cover-drop { position: relative; display: grid; place-items: center; aspect-ratio: 1200 / 630; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; outline: none; }
.cover-drop:hover, .cover-drop:focus-visible { border-color: rgba(91, 124, 250, .6); background: rgba(91, 124, 250, .05); }
.cover-drop.has-image { border-style: solid; cursor: default; }
.cover-drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; text-align: center; color: var(--muted); font-size: .82rem; }
.cover-drop-empty svg { width: 34px; height: 34px; color: #A9BBFF; }
.cover-drop-empty strong { color: var(--text); font-size: .9rem; }
.cover-drop-empty .btn { margin: 4px 0; }
.cover-drop.has-image .cover-drop-empty { display: none; }
.cover-drop-over { position: absolute; inset: 0; display: none; place-items: center; background: rgba(91, 124, 250, .82); color: #fff; font-weight: 700; z-index: 3; }
.cover-drop.is-over { border-color: var(--brand); }
.cover-drop.is-over .cover-drop-over { display: grid; }
.cover-drop-actions { position: absolute; right: 8px; bottom: 8px; display: none; gap: 6px; z-index: 2; }
.cover-drop-actions .btn { background: rgba(6, 8, 15, .78); backdrop-filter: blur(4px); }
.cover-drop.has-image .cover-drop-actions { display: flex; }
.cover-drop-name { position: absolute; left: 10px; bottom: 12px; z-index: 2; padding: 2px 8px; border-radius: 6px; background: rgba(6, 8, 15, .7); color: var(--text); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-drop-name:empty { display: none; }
.cover-file { margin-top: 10px; }

.cover-drop.is-enhanced ~ .cover-file, .cover-drop.is-enhanced ~ .cover-remove-check { display: none; }

.serp { padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius-sm); background: #fff; font-family: Arial, sans-serif; }
.serp-url { color: #202124; font-size: 12px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { color: #1a0dab; font-size: 18px; line-height: 1.3; margin-bottom: 4px; }
.serp-desc { color: #4d5156; font-size: 13px; line-height: 1.5; }

.footer .footer-tg { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; background: rgba(42, 171, 238, .12); border: 1px solid rgba(42, 171, 238, .35); color: var(--text); transition: background .15s, border-color .15s; }
.footer .footer-tg:hover { background: rgba(42, 171, 238, .2); border-color: rgba(42, 171, 238, .6); }
.footer-tg svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #2AABEE; color: #fff; flex: none; }
.footer-tg > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.footer .footer-tg { max-width: 100%; }
.footer-tg strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-tg-label { font-size: .72rem; color: var(--muted); }
.footer-tg strong { font-size: .88rem; }

.grid > *, .flex-between > *, .main, .content, .panel, .stat { min-width: 0; }
pre, pre.code { max-width: 100%; overflow-x: auto; }
.addr-box, .mono, .copyable, .key-value, .kv dd { overflow-wrap: anywhere; }
td { overflow-wrap: break-word; }
.badge { white-space: nowrap; }
.grow { min-width: 0; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > * { flex: none; }
.auth-wrap { overflow: hidden; }
.hint, .small, .tiny { overflow-wrap: break-word; }
.article-body p, .article-body li, .article-body a, .article-body blockquote { overflow-wrap: anywhere; }

.topbar-title { min-width: 0; flex: 1 1 0; }
.topbar-title h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; margin-left: auto; }
.topup-plus { display: none; font-weight: 800; }

.nav-mobile-only { display: none; }

@media (max-width: 900px) {
    .topbar { height: auto; min-height: 60px; padding-block: 10px; gap: 8px 10px; flex-wrap: wrap; }
    .topbar-title { min-width: 110px; }
    .topbar-actions { gap: 8px; }
    .article-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
    .stat .value { font-size: clamp(1.25rem, 7vw, 1.7rem); overflow-wrap: anywhere; }
    .panel { padding: 18px 16px; }
    .panel-tight { padding: 0; }
    .panel-head { flex-wrap: wrap; gap: 10px; }
    .btn { white-space: normal; text-align: center; }
    .balance-chip { padding: 6px 10px; font-size: .82rem; gap: 6px; }
    .svc-admin-row .nowrap { white-space: normal; }
    .flex-between { flex-wrap: wrap; }
    .table-wrap td:first-child, .table-wrap th:first-child { min-width: 170px; }
    .post-thumb { display: none; }
    .article-body { overflow-wrap: anywhere; }
    .article-head { padding-top: 26px; }
    .hero-sub { padding-inline: 4px; }
}

@media (max-width: 480px) {
    .nav { gap: 10px; }
    .nav-actions { gap: 6px; }
    .nav-actions .btn-sm { padding: 7px 11px; }
    .nav-login { display: none; }
    .nav-links.open .nav-mobile-only { display: block; }
    .topup-plus { display: inline; }
    .topup-text { display: none; }
    .topup-btn { padding-inline: 12px; }
    .topbar-title h1 { font-size: .95rem; }
    .content { padding: 18px 12px; }
    .root-addr-row { flex-direction: column; }
}

@media (max-width: 360px) {
    .logo { font-size: 1rem; gap: 8px; }
    .logo-mark { width: 28px; height: 28px; }
}

.wallet-history-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.wallet-history-row .grow { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .wallet-history-row .btn { width: 100%; justify-content: center; }
}
