:root {
    --bg:            #FBFAF7;
    --bg-soft:       #F3F1EA;
    --panel:         #FFFFFF;
    --panel-2:       #F7F5EF;
    --line:          rgba(23, 24, 27, .10);
    --line-strong:   rgba(23, 24, 27, .17);
    --text:          #16181C;
    --muted:         #51555C;
    --muted-2:       #6C707A;
    --brand:         #0C6E49;
    --brand-2:       #0B6E63;
    --brand-3:       #0C6E49;
    --ok:            #0C6E49;
    --warn:          #B45309;
    --danger:        #C4283B;
    --radius:        10px;
    --radius-sm:     7px;
    --shadow:        0 1px 2px rgba(20, 22, 30, .05), 0 18px 40px -24px rgba(20, 22, 30, .20);
    --grad:          linear-gradient(135deg, #0C6E49 0%, #0A5538 100%);
    --grad-soft:     linear-gradient(135deg, rgba(12, 110, 73, .12), rgba(11, 110, 99, .09));
    --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 { color: var(--text); }
.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 8px 20px -12px rgba(12, 110, 73, .42); }
.btn-primary:hover { box-shadow: 0 12px 28px -14px rgba(12, 110, 73, .50); }

.btn-ghost { background: rgba(12, 110, 73, .06); border-color: rgba(12, 110, 73, .26); color: var(--brand); }
.btn-ghost:hover { background: rgba(12, 110, 73, .12); border-color: rgba(12, 110, 73, .42); }
.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: #C4283B; }
.btn-ok { background: rgba(46, 212, 122, .14); border-color: rgba(46, 212, 122, .4); color: #0C6E49; }
.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(23, 24, 27, .06); border: 1px solid var(--line); color: var(--muted);
}
.badge-brand { background: rgba(12, 110, 73, .16); border-color: rgba(12, 110, 73, .35); color: #0C6E49; }
.badge-ok { background: rgba(46, 212, 122, .14); border-color: rgba(46, 212, 122, .3); color: #0C6E49; }
.badge-warn { background: rgba(255, 176, 32, .14); border-color: rgba(255, 176, 32, .3); color: #B45309; }
.badge-danger { background: rgba(255, 90, 106, .14); border-color: rgba(255, 90, 106, .3); color: #C4283B; }
.badge-trc { background: rgba(255, 60, 60, .12); border-color: rgba(255, 60, 60, .3); color: #C4283B; }
.badge-bep { background: rgba(243, 186, 47, .14); border-color: rgba(243, 186, 47, .35); color: #B45309; }
.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(12, 110, 73, .5), transparent 40%, rgba(11, 110, 99, .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: #FFFFFF;
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }

.nav-sub { border-top: 1px solid var(--line); background: var(--panel-2); }

html:has(.nav-sub) { scroll-padding-top: 120px; }
.nav-sub .nav-links { justify-content: center; height: 46px; gap: 4px; }
.nav-sub .nav-links a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 18px; }
.nav-sub .nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-sub .nav-links a.active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
    border-radius: 2px; background: var(--brand);
}
.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 6px 16px -8px rgba(12, 110, 73, .40);
}
.logo-mark svg { width: 74%; height: 74%; display: block; }

.logo-mark--img { background: #0B1A33; overflow: hidden; box-shadow: 0 6px 16px -8px rgba(30, 120, 230, .45); }
.logo-mark--img img { width: 100%; height: 100%; display: block; object-fit: cover; }

.logo-text { letter-spacing: -.025em; white-space: nowrap; font-weight: 800; }
.logo-text span { font-weight: 500; color: #6B6F77; }
.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(12, 110, 73, .10), 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); }

.hero-split { padding: 72px 0 64px; }
.hero-split::before { left: 30%; }
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 18px; }
.hero-split .hero-sub { margin: 0; max-width: 580px; font-size: clamp(1rem, 1.3vw, 1.06rem); line-height: 1.7; }
.hero-split .hero-cta { justify-content: flex-start; margin-top: 30px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 0; max-width: 580px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-stats > div { padding: 16px 16px 14px; border-left: 1px solid var(--line); min-width: 0; }
.hero-stats > div:first-child { border-left: 0; padding-left: 0; }
.hero-stats dt { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; color: var(--brand); line-height: 1.15; white-space: nowrap; }

.hero-stats .stat-plus { display: inline-block; margin-inline-start: .14em; font-size: .8em; font-weight: 700; line-height: 1; vertical-align: .2em; opacity: .9; }
.hero-stats dd { margin: 4px 0 0; font-size: .8rem; color: var(--muted-2); line-height: 1.35; }
[dir="rtl"] .hero-stats > div { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .hero-stats > div:first-child { border-right: 0; padding-left: 16px; padding-right: 0; }

.hero-demo { min-width: 0; }
.hero-art { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; overflow: visible; }

@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .hero-copy { text-align: center; }
    .hero-split .hero-sub, .hero-stats { margin-inline: auto; }
    .hero-split .hero-cta { justify-content: center; }
    .hero-stats > div:first-child { padding-left: 16px; }
    .hero-art { max-width: 460px; }
}
@media (max-width: 620px) {
    .hero-split { padding: 44px 0 40px; }
    .hero-stats > div { padding: 12px 8px 10px; }
    .hero-stats > div:first-child { padding-left: 8px; }
    .hero-stats dt { font-size: 1.2rem; }
    .hero-stats dd { font-size: .72rem; }
}

.nav-sub .nav-links a.nav-mobile-only { display: none; }
@media (max-width: 480px) {
    .nav-sub .nav-links.open a.nav-mobile-only { display: flex; }

    .nav-actions .lang-switch > summary { min-width: 0; padding: 8px 10px; }
    .nav-actions .lang-name { display: none; }
    .hero-copy .badge { white-space: normal; text-align: start; line-height: 1.4; }
}
@media (max-width: 400px) {
    .nav-wrap .container { width: calc(100% - 24px); }
    .nav .logo { font-size: .88rem; gap: 6px; }
    .nav { gap: 6px; }
    .nav-actions { gap: 4px; }
    .nav-actions .btn-sm { padding: 6px 8px; }
    .nav-actions .lang-switch > summary { padding: 7px 6px; gap: 4px; }
    .nav-toggle { font-size: 1.25rem; padding: 0 2px; }
}
@media (max-width: 360px) {
    .nav-actions .lang-caret { display: none; }
}

.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(12, 110, 73, .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: #0C6E49;
}
.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(23, 24, 27, .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(23, 24, 27, .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(11, 110, 99, .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: #F4F2EC; border: 1px solid rgba(11, 110, 99, .5);
    box-shadow: 0 4px 14px rgba(20, 22, 30, .12);
}
.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(11, 110, 99, .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: #F4F2EC; min-height: 132px; overflow: hidden;
    transition: border-color .2s, background .2s;
}
.dropzone:hover { border-color: rgba(12, 110, 73, .6); }
.dropzone.is-drag { border-color: var(--brand); background: rgba(12, 110, 73, .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: #FFFFFF; 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: #C4283B; 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(12, 110, 73, .14); border-radius: 12px;
    font-weight: 650; font-size: .9rem; color: #0C6E49; 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: #C4283B; }
.dropzone-status.is-ok { color: #0C6E49; }

.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: #F4F2EC; 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%),
                #F4F2EC;
    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: #F4F2EC; }
}

.svc-price-line {
    display: flex; align-items: center; gap: 9px; white-space: nowrap;
    padding: 9px 12px; border-radius: 11px;
    background: rgba(23, 24, 27, .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: #0C6E49;
    background: rgba(12, 110, 73, .1); border: 1px solid rgba(12, 110, 73, .22);
    padding: 3px 8px; border-radius: 6px; display: inline-block; word-break: break-all;
}
.rate-bar { height: 5px; border-radius: 999px; background: rgba(23, 24, 27, .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(23, 24, 27, .16) transparent;
}
.table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(23, 24, 27, .16); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(23, 24, 27, .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: #F4F3EE;
    background-image: linear-gradient(rgba(23, 24, 27, .025), rgba(23, 24, 27, .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(23, 24, 27, .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: #F6F7F9; 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: #2B3440;
}
pre.code .k { color: #1D5FB0; }
pre.code .s { color: #0C7A52; }
pre.code .c { color: #8A8F99; }
.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(23, 24, 27, .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 - 111px); 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; color: var(--text); 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(12, 110, 73, .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(3, 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(12, 110, 73, .07), 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: #3A3E45; }
.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: #FFFFFF;
    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(12, 110, 73, .8); box-shadow: 0 0 0 3px rgba(12, 110, 73, .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 #FFFFFF inset;
    box-shadow: 0 0 0 1000px #FFFFFF 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(23, 24, 27, .06); }
.pw-toggle:focus-visible { outline: 2px solid rgba(12, 110, 73, .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: #C4283B; 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: #E7E4DB; 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(12, 110, 73, .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, .alert-ok { background: rgba(46, 212, 122, .1); border-color: rgba(46, 212, 122, .3); color: #0C6E49; }
.alert-error { background: rgba(255, 90, 106, .1); border-color: rgba(255, 90, 106, .3); color: #C4283B; }
.alert-info { background: rgba(12, 110, 73, .1); border-color: rgba(12, 110, 73, .3); color: #0C6E49; }
.alert-warn { background: rgba(255, 176, 32, .1); border-color: rgba(255, 176, 32, .3); color: #B45309; }

.ico { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -.17em; }
.alert > .ico { width: 18px; height: 18px; margin-top: 1px; }
.btn .ico { width: 1.05em; height: 1.05em; }
.panel-head h3 .ico { width: 17px; height: 17px; margin-inline-end: 8px; color: var(--brand); vertical-align: -3px; }
.bell-item-ico .ico, .noti-ico .ico { width: 18px; height: 18px; vertical-align: -3px; }
.nav-toggle .ico { width: 24px; height: 24px; display: block; }
.post-thumb-empty .ico { width: 20px; height: 20px; }
.md-toolbar button .ico { width: 15px; height: 15px; vertical-align: -2px; }
.btn-sm .ico { width: 15px; height: 15px; }
.ico-ok { color: #0C6E49; } .ico-warn { color: #B45309; } .ico-danger { color: #C4283B; } .ico-brand { color: var(--brand); }

.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(23, 24, 27, .16) transparent;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(23, 24, 27, .16); border-radius: 999px; }
.side-nav::-webkit-scrollbar-thumb:hover { background: rgba(23, 24, 27, .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(23, 24, 27, .04); color: var(--text); }
.side-link.active { background: var(--grad-soft); color: var(--brand); border: 1px solid rgba(12, 110, 73, .28); font-weight: 650; }
.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(23, 24, 27, .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: #0B6E63; background: var(--grad-soft); border: 1px solid rgba(11, 110, 99, .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: #FFFFFF;
    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(12, 110, 73, .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(12, 110, 73, .09), 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(23, 24, 27, .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(23, 24, 27, .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: #FFFFFF; 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 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(12, 110, 73, .26);
    background: rgba(12, 110, 73, .12); color: var(--brand); border-radius: 8px; padding: 7px 13px; cursor: pointer;
    font-family: inherit; font-size: .8rem; font-weight: 600; line-height: inherit; }
.copy-btn:hover { background: rgba(12, 110, 73, .2); border-color: rgba(12, 110, 73, .42); }
.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(12, 110, 73, .35); color: #0C6E49;
    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(23, 24, 27, .02);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pagination a:hover { color: var(--text); border-color: var(--brand); background: var(--grad-soft); }

.pagination .active {
    background: var(--grad); color: #fff; border-color: transparent; font-weight: 600;
    box-shadow: 0 2px 12px rgba(12, 110, 73, .40);
}
.pagination svg { width: 14px; height: 14px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }

.filters .btn { height: 44px; padding: 0 18px; font-size: .88rem; border-radius: 10px; }
.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: #FFFFFF; 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(12, 110, 73, .5); }
.lang-switch[open] > summary { border-color: rgba(12, 110, 73, .8); box-shadow: 0 0 0 3px rgba(12, 110, 73, .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(23, 24, 27, .12);
    background: #E7E4DB;
}
.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: #FFFFFF; border: 1px solid var(--line-strong); color: var(--text); font-size: .84rem;
}
.lang-search:focus { outline: none; border-color: rgba(12, 110, 73, .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(23, 24, 27, .06); color: var(--text); }
.lang-menu a.active { background: var(--grad-soft); color: var(--brand); font-weight: 600; }
.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-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(12, 110, 73, .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, #C4283B); 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: #0C6E49; 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(23, 24, 27, .04); }
.bell-item.is-unread > button { background: rgba(12, 110, 73, .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); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-item-body { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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: #0C6E49; border-top: 1px solid var(--line);
}
.bell-foot:hover { background: rgba(23, 24, 27, .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: #C4283B; }
.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: #0C6E49; 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: #0C6E49; }
.pm-minus input:checked + span { background: rgba(255, 90, 106, .18); color: #C4283B; }
.pm-opt input:focus-visible + span { outline: 2px solid rgba(12, 110, 73, .6); outline-offset: -2px; }

.side-count {
    margin-inline-start: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px;
    background: var(--danger, #C4283B); 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:nth-child(odd) { background: rgba(12, 110, 73, .06); border-inline-start-color: var(--brand); }
.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; gap: 8px; min-width: 0; }
.noti-top .badge { flex: 0 0 auto; }
.noti-title { font-weight: 700; font-size: .93rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.noti-body { margin: 6px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noti-meta { margin-top: 7px; font-size: .74rem; color: var(--muted-2); }
.noti-actions { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.noti-slot { visibility: hidden; }

.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(23, 24, 27, .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: #FFFFFF;
    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(23, 24, 27, .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 #FFFFFF;
}

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

.pill-check input:focus-visible ~ span { box-shadow: 0 0 0 3px rgba(12, 110, 73, .3); }

.panel.is-empty-slot {
    border-style: dashed;
    border-color: rgba(23, 24, 27, .16);
    background: rgba(23, 24, 27, .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: #C4283B; font-size: .78rem; line-height: 1.7; word-break: break-all; user-select: all;
}
.key-warn { font-size: .76rem; color: #C4283B; margin: 0 0 16px; }
.key-actions { display: flex; gap: 8px; }

.wallet-check-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.wallet-check-choice { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border-radius: 12px;
    border: 1px solid rgba(12, 110, 73, .26); background: rgba(12, 110, 73, .06); color: var(--brand); text-decoration: none; }
.wallet-check-choice:hover, .wallet-check-choice:focus-visible { background: rgba(12, 110, 73, .12); border-color: rgba(12, 110, 73, .5); outline: none; }
.wallet-check-choice .mono { color: var(--muted); overflow-wrap: anywhere; }
.wallet-check-choice.is-off { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) { .wallet-check-choices { grid-template-columns: 1fr; } }

.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; }

.badge-beta {
    background: rgba(11, 110, 99, .16);
    border-color: rgba(11, 110, 99, .4);
    color: #0B6E63;
    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: 128px; 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(23, 24, 27, .025); border: 1px solid var(--line); border-radius: 12px;
}
.price-stat-main { border-color: rgba(11, 110, 99, .45); background: rgba(11, 110, 99, .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: 128px; max-height: min(calc(100vh - 148px), 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: #F4F2EC; border: 1px solid var(--line-strong);
}
.pricing-search:focus { outline: none; border-color: rgba(11, 110, 99, .6); }
.pricing-menu-list {
    overflow-y: auto; margin: 0 -6px; padding: 0 6px;
    scrollbar-width: thin; scrollbar-color: rgba(23, 24, 27, .14) transparent;
}
.pricing-menu-list::-webkit-scrollbar { width: 6px; }
.pricing-menu-list::-webkit-scrollbar-thumb { background: rgba(23, 24, 27, .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(23, 24, 27, .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(23, 24, 27, .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(23, 24, 27, .04); color: var(--text); }
.pricing-menu-item.is-active {
    background: rgba(11, 110, 99, .12); border-color: rgba(11, 110, 99, .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-beta-note {
    margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(11, 110, 99, .4);
    background: rgba(11, 110, 99, .12);
    color: #0B6E63; font-size: .8rem; line-height: 1.45;
}
.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: #C4283B; 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: #C4283B; }

@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: #FFFFFF; border: 1px solid color-mix(in srgb, var(--toast) 45%, transparent);
    border-left: 4px solid var(--toast);
    box-shadow: 0 10px 30px rgba(20, 22, 30, .14);
    animation: toast-in .22s ease-out;
}
.toast-success { --toast: var(--ok); }
.toast-warn    { --toast: var(--warn); }
.toast-error   { --toast: var(--danger); }
.toast-info    { --toast: #0C6E49; }

.toast-icon {
    flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    font-size: .78rem; font-weight: 800; color: #14161A; 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(23, 24, 27, .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(12, 110, 73, .45); border-radius: 8px; }
.trend-svg { display: block; width: 100%; overflow: visible; }
.trend-grid { stroke: rgba(23, 24, 27, .07); stroke-width: 1; }
.trend-zero { stroke: rgba(23, 24, 27, .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(23, 24, 27, .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: #F4F2EC; border: 1px solid var(--line-strong); box-shadow: 0 8px 22px rgba(20, 22, 30, .14);
}
.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(12, 110, 73, .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(12, 110, 73, .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(23, 24, 27, .18); background: radial-gradient(circle at 30% 20%, rgba(12, 110, 73, .12), 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: #0C6E49; }
.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: #0C6E49; 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(12, 110, 73, .12); color: #0C6E49; 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: minmax(0, 1fr) 240px; gap: 40px; }
.article-layout.has-toc .article-toc { order: 2; }

.article-toc-inner { position: sticky; top: 130px; font-size: .84rem; max-height: calc(100vh - 150px); overflow-y: auto; padding-inline-end: 6px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.article-toc-inner::-webkit-scrollbar { width: 8px; }
.article-toc-inner::-webkit-scrollbar-track { background: transparent; }
.article-toc-inner::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.article-toc-inner::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.article-toc .toc-root, .article-toc .toc-children { list-style: none; padding: 0; margin: 0; }
.article-toc .toc-root { margin-top: 10px; border-inline-start: 1px solid var(--line-strong); }
.article-toc .toc-row { display: flex; align-items: center; gap: 4px; }
.article-toc .toc-link { display: block; padding: 5px 12px; color: var(--muted); flex: 1 1 auto; min-width: 0; }
.article-toc .toc-link:hover { color: var(--text); }
.article-toc .toc-children .toc-link { padding-inline-start: 24px; font-size: .8rem; }
.article-toc .toc-toggle { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 6px; }
.article-toc .toc-toggle:hover { color: var(--text); background: rgba(23, 24, 27, .06); }
.article-toc .toc-toggle svg { transition: transform .15s ease; }
.article-toc .toc-item.collapsed .toc-toggle svg { transform: rotate(-90deg); }
.article-toc .toc-item.collapsed .toc-children { display: none; }

.article-body { font-size: 1.04rem; line-height: 1.8; color: #2A2D33; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 1.5rem; margin: 2em 0 .6em; color: var(--text); scroll-margin-top: 130px; }
.article-body h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; color: var(--text); scroll-margin-top: 130px; }
.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: #0C6E49; 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(12, 110, 73, .06); border-radius: 0 8px 8px 0; }
.article-body code { font-family: var(--mono, monospace); font-size: .88em; background: rgba(23, 24, 27, .07); padding: 2px 6px; border-radius: 6px; }
.article-body pre { background: #F3F1EA; 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(12, 110, 73, .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); max-height: none; overflow: visible; }
    .article-layout.has-toc .article-toc { order: 0; }
}
@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(23, 24, 27, .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(12, 110, 73, .2); border-color: rgba(12, 110, 73, .55); color: #0C6E49; }
.tag-pick input:focus-visible + span { outline: 2px solid rgba(12, 110, 73, .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: light; }
.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(12, 110, 73, .55); background: rgba(12, 110, 73, .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(23, 24, 27, .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: #0C6E49; }
.pub-status.is-now::before, .pub-status.is-live::before { content: '●'; }
.pub-status.is-scheduled { background: rgba(12, 110, 73, .12); border-color: rgba(12, 110, 73, .35); color: #0C6E49; }
.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(23, 24, 27, .02); overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; outline: none; }
.cover-drop:hover, .cover-drop:focus-visible { border-color: rgba(12, 110, 73, .6); background: rgba(12, 110, 73, .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: #0C6E49; }
.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(12, 110, 73, .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; }

@media (min-width: 621px) and (max-width: 900px) {
    .nav-wrap .nav-toggle { display: none; }
    .nav-sub .nav-links a { padding: 0 12px; }
}
@media (max-width: 620px) {
    .nav-sub { border-top: 0; background: none; }
    .nav-sub .nav-links { height: auto; justify-content: flex-start; }
    .nav-sub .nav-links a { height: auto; padding: 10px 0; }
    .nav-sub .nav-links a.active::after { display: none; }
    .nav-links {
        position: absolute; top: 100%; 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-wrap .nav-toggle { display: block; }
    .nav-actions .btn { white-space: nowrap; }
}

.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; }
}

.docs-top { padding: 40px 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.docs-top-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.docs-top-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 10px; }
.docs-top-sub { max-width: 640px; margin: 0; color: var(--muted); }
.docs-top-facts { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; margin: 0; }
.docs-top-facts dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; }
.docs-top-facts dd { margin: 2px 0 0; font-size: .9rem; font-weight: 600; }

.docs-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.docs-tab {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 18px; border: 0; background: transparent; cursor: pointer;
    font: inherit; font-size: .95rem; font-weight: 650; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.docs-tab:hover { color: var(--text); }
.docs-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.docs-tab-n { font-size: .7rem; font-weight: 800; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.docs-tab.active .docs-tab-n { color: var(--brand); }

.docs-pane { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.docs-step { font-size: 1.15rem; margin: 18px 0 2px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.docs-step .mono { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 7px; }
.docs-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.docs-svc-price { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.docs-svc-price .price-stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.docs-svc-price .price-stat-label { font-size: .7rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 760px) {
    .docs-top-grid { grid-template-columns: 1fr; gap: 20px; align-items: start; }
    .docs-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .docs-tabs::-webkit-scrollbar { display: none; }
    .docs-tab { padding: 11px 13px; font-size: .9rem; }
    .docs-svc-price { text-align: left; }
}
