* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2933;
    background: #f4f6f8;
    line-height: 1.55;
}
a { color: #1769aa; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    padding: 0 28px;
    background: #132238;
    color: #fff;
}
.brand a { color: #fff; font-weight: 700; font-size: 18px; }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { color: #dbe7f3; font-size: 14px; }
.container { max-width: 1180px; margin: 0 auto; padding: 26px 18px 44px; }
.page-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
h1 { margin: 0; font-size: 26px; }
h2 { margin: 0 0 14px; font-size: 20px; }
h3 { margin: 0 0 10px; font-size: 16px; }
.footer { text-align: center; color: #6b7785; padding: 24px; font-size: 13px; }
body:not(.backend-page) {
    background:
        radial-gradient(circle at 20px 20px, rgba(24,184,166,.07) 0 1px, transparent 1px 100%),
        linear-gradient(135deg, #f9fdfd 0%, #f4fbfa 48%, #f7fbff 100%);
    background-size: 28px 28px, auto;
}
body:not(.backend-page) .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 70px;
    border-bottom: 1px solid #e7eff3;
    background: rgba(255,255,255,.9);
    color: #142033;
    box-shadow: 0 10px 30px rgba(15,23,42,.035);
    backdrop-filter: blur(16px);
}
body:not(.backend-page) .brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #142033;
    font-size: 19px;
    font-weight: 850;
}
body:not(.backend-page) .brand a::before {
    content: "轻";
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #18b8a6, #4fb4f7);
    color: #fff;
    box-shadow: 0 10px 20px rgba(24,184,166,.22);
    font-size: 17px;
}
body:not(.backend-page) .topbar nav {
    gap: 10px;
}
body:not(.backend-page) .topbar nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #dfeaf0;
    border-radius: 999px;
    background: #fff;
    color: #314255;
    font-size: 14px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body:not(.backend-page) .topbar nav a:hover {
    transform: translateY(-1px);
    border-color: #c9eee9;
    background: #f1fbf9;
    color: #0e9d91;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(24,184,166,.1);
}
.panel {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(19,34,56,0.04);
}
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; padding: 18px; }
.stat strong { display: block; font-size: 28px; margin-top: 6px; color: #132238; }
.muted { color: #66788a; font-size: 13px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #c8d2dc;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #b8c5d1;
    border-radius: 6px;
    background: #fff;
    color: #132238;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
.btn:hover { text-decoration: none; background: #f0f4f8; }
.btn.primary { background: #1769aa; border-color: #1769aa; color: #fff; }
.btn.primary:hover { background: #10598f; }
.btn.danger { color: #b42318; border-color: #f0b8b3; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions input, .actions select { width: auto; }
.captcha-box { display: flex; align-items: center; gap: 10px; }
.captcha-box input { flex: 1; min-width: 0; }
.captcha-img {
    width: 120px;
    height: 42px;
    border: 1px solid #c8d2dc;
    border-radius: 6px;
    background: #f8fbfd;
    cursor: pointer;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 11px; border-bottom: 1px solid #e6ebf0; text-align: left; vertical-align: top; }
th { background: #f8fafc; color: #34495e; font-size: 13px; white-space: nowrap; }
td { font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #e8eef5; color: #34495e; }
.badge.ok { background: #e5f5ec; color: #0f7b3f; }
.badge.warn { background: #fff4d8; color: #946200; }
.badge.bad { background: #fde8e8; color: #b42318; }
.flash { border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid #d7e5f5; background: #eef6ff; }
.flash.success { border-color: #bfe6cf; background: #edf9f1; color: #0f6b37; }
.flash.error { border-color: #fac5c5; background: #fff1f1; color: #a61b1b; }
.flash-toast-layer {
    position: fixed;
    top: 22px;
    right: 28px;
    z-index: 5000;
    width: min(420px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.backend-page .flash-toast-layer {
    top: 82px;
}
.flash-toast {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    gap: 12px;
    align-items: start;
    padding: 16px 16px 16px 14px;
    border: 1px solid rgba(226,235,240,.94);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    color: #142033;
    box-shadow: 0 18px 48px rgba(15,23,42,.16);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    opacity: 0;
    transform: translate3d(18px, -12px, 0) scale(.96);
    transition: opacity .28s ease, transform .28s cubic-bezier(.18,.88,.28,1.12), filter .28s ease;
    overflow: hidden;
}
.flash-toast::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #42aef2;
}
.flash-toast.show {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}
.flash-toast.leaving {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(18px, -8px, 0) scale(.97);
}
.flash-toast-icon {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef7ff;
}
.flash-toast-icon::before {
    content: "i";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #2b88cf;
    font-weight: 900;
    font-family: Arial, sans-serif;
}
.flash-toast-content strong {
    display: block;
    margin: 1px 0 4px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}
.flash-toast-content p {
    margin: 0;
    color: #596a7d;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}
.flash-toast-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8a98a8;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background .16s ease, color .16s ease;
}
.flash-toast-close:hover {
    background: #f1f5f8;
    color: #142033;
}
.flash-toast.success::before { background: #18b87e; }
.flash-toast.success .flash-toast-icon { background: #e9fbf3; }
.flash-toast.success .flash-toast-icon::before { content: "✓"; color: #0a8751; }
.flash-toast.error::before { background: #ef4d5a; }
.flash-toast.error .flash-toast-icon { background: #fff0f2; }
.flash-toast.error .flash-toast-icon::before { content: "!"; color: #d92d3b; }
.flash-toast.warn::before { background: #ffb35c; }
.flash-toast.warn .flash-toast-icon { background: #fff7de; }
.flash-toast.warn .flash-toast-icon::before { content: "!"; color: #a66a00; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a {
    padding: 8px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: #34495e;
    font-weight: 600;
}
.tabs a.active { background: #132238; color: #fff; border-color: #132238; }
.code {
    font-family: Consolas, "Courier New", monospace;
    background: #f3f6f9;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    padding: 10px;
    white-space: pre-wrap;
    overflow-x: auto;
}
.compact-code {
    max-height: 70px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
}
.key-text {
    min-height: 76px;
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
}
.code-view-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #dbe3ea;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #f8fafc;
    font-weight: 700;
}
.cipher-code-view .code-view-head {
    margin-top: 18px;
    border-color: #263447;
    background: #111827;
    color: #d7e2f1;
}
.cipher-code-view .code-view-head .btn {
    border-color: #3b4a60;
    background: #172235;
    color: #eef5ff;
}
.cipher-code-pre {
    min-height: 620px;
    max-height: 78vh;
    margin: 0;
    padding: 18px 20px;
    overflow: auto;
    border: 1px solid #263447;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: #0b1020;
    color: #d7e2f1;
    font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre;
    tab-size: 4;
}
.cipher-code-pre code {
    color: inherit;
    font: inherit;
}
.cipher-code-source {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.hl-comment { color: #6b7d90; }
.hl-string { color: #8bdc8b; }
.hl-keyword { color: #ff7ab6; font-weight: 700; }
.hl-fn { color: #7dd3fc; }
.hl-var { color: #d7e2f1; }
.hl-number { color: #f8c870; }
.hl-op { color: #c084fc; }
.code-textarea {
    min-height: 520px;
    border-radius: 0 0 6px 6px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre;
}
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.docs-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 680px;
}
.docs-sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    padding: 14px;
}
.docs-menu-group + .docs-menu-group { margin-top: 18px; }
.docs-menu-title {
    color: #66788a;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.docs-menu-link {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: #1f2933;
}
.docs-menu-link:hover { background: #f3f6f9; text-decoration: none; }
.docs-menu-link.active { background: #eaf3fb; color: #10598f; }
.docs-menu-link span { display: block; font-weight: 700; }
.docs-menu-link code { color: #66788a; font-size: 12px; }
.docs-content { min-width: 0; }
.docs-panel { display: none; }
.docs-panel.active { display: block; }
.docs-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.docs-panel-head p { margin: 8px 0 0; color: #52616f; }
.docs-table th:nth-child(1), .docs-table td:nth-child(1) { width: 180px; }
.docs-table th:nth-child(2), .docs-table td:nth-child(2) { width: 120px; }
.docs-request-table th:nth-child(2), .docs-request-table td:nth-child(2) { width: 90px; }
.docs-request-table th:nth-child(3), .docs-request-table td:nth-child(3) { width: 120px; }
.docs-program-bar,
.docs-switch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.docs-program-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.docs-program-tools label {
    min-width: 280px;
    margin: 0;
}
.docs-program-tools label span {
    display: block;
    margin-bottom: 5px;
    color: #66788a;
    font-size: 12px;
}
.docs-program-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #52616f;
    font-size: 13px;
}
.docs-demo-downloads {
    margin-bottom: 20px;
}
.docs-demo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.docs-demo-head h2 {
    margin: 0 0 8px;
}
.docs-demo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.docs-demo-card {
    position: relative;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5edf2;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(24,184,166,.07), rgba(66,174,242,.06)), #fff;
    color: #142033;
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.docs-demo-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(24,184,166,.12);
}
.docs-demo-card:hover {
    transform: translateY(-3px);
    border-color: #c9eee9;
    box-shadow: 0 18px 42px rgba(15,23,42,.09);
    text-decoration: none;
}
.docs-demo-card span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: #f1fbf9;
    color: #0e9d91;
    font-size: 12px;
    font-weight: 900;
}
.docs-demo-card strong {
    color: #142033;
    font-size: 15px;
    font-weight: 900;
}
.docs-demo-card em {
    color: #728196;
    font-size: 12px;
    line-height: 1.55;
    font-style: normal;
}
.docs-switch-toolbar {
    position: sticky;
    top: 82px;
    z-index: 8;
    margin-bottom: 12px;
    padding: 12px 14px;
}
.docs-switch-toolbar strong,
.docs-switch-toolbar span {
    display: block;
}
.docs-switch-toolbar span {
    margin-top: 3px;
    color: #66788a;
    font-size: 13px;
}
.docs-switch-toolbar span.ok { color: #0f7b3f; }
.docs-switch-toolbar span.bad { color: #b42318; }
.docs-switch-toolbar span.saving { color: #946200; }
.docs-action-switch {
    min-width: 210px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 10px;
    align-items: center;
    justify-items: end;
    padding: 10px;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    background: #f8fafc;
}
.docs-action-switch code {
    grid-column: 1 / -1;
    color: #66788a;
    font-size: 12px;
}
.switchline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: 700;
}
.switchline input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.switchline span {
    position: relative;
    width: 42px;
    height: 22px;
    border-radius: 999px;
    background: #d5dde6;
    transition: background .18s ease;
}
.switchline span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(19,34,56,.22);
    transition: transform .18s ease;
}
.switchline input:checked + span {
    background: #20a8d8;
}
.switchline input:checked + span::after {
    transform: translateX(20px);
}
.switchline b {
    color: #34495e;
    font-size: 13px;
}
.docs-menu-link {
    position: relative;
}
.docs-menu-link em {
    position: absolute;
    top: 10px;
    right: 9px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-style: normal;
    font-size: 12px;
}
.docs-menu-link em.on {
    background: #e5f5ec;
    color: #0f7b3f;
}
.docs-menu-link em.off {
    background: #fde8e8;
    color: #b42318;
}
.home-hero {
    position: relative;
    width: 100vw;
    min-height: 660px;
    margin: -26px 0 0 calc(50% - 50vw);
    overflow: hidden;
    color: #f7fffb;
    background: #06110d;
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6,17,13,0.96) 0%, rgba(6,17,13,0.82) 44%, rgba(6,17,13,0.48) 100%),
        radial-gradient(circle at 80% 20%, rgba(126,231,196,0.16), transparent 34%);
    pointer-events: none;
}
.home-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    min-height: 660px;
    margin: 0 auto;
    padding: 92px 18px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(180, 255, 229, 0.32);
    border-radius: 999px;
    color: #bff7df;
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 700;
}
.home-hero h1 {
    max-width: 860px;
    margin: 18px 0 0;
    font-size: 66px;
    line-height: 1.08;
    color: #fff;
}
.home-title-sub {
    width: fit-content;
    margin-top: 12px;
    padding: 8px 13px;
    border-left: 3px solid #28c081;
    color: #c9f4e3;
    background: rgba(255, 255, 255, 0.06);
    font-size: 20px;
    font-weight: 800;
}
.home-lead {
    max-width: 820px;
    margin: 22px 0 0;
    color: #d6e8df;
    font-size: 18px;
}
.home-rotator {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 48px;
    margin-top: 28px;
    padding: 10px 14px;
    border: 1px solid rgba(180, 255, 229, 0.24);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}
.home-rotator span { color: #9cc8b6; font-size: 13px; }
.home-rotator strong {
    color: #ffffff;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .22s ease, transform .22s ease;
}
.home-rotator strong.show { opacity: 1; transform: translateY(0); }
.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.home-actions.center { justify-content: center; }
.home-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
}
.home-btn.primary {
    background: #28c081;
    border-color: #28c081;
    color: #04100b;
}
.home-btn.primary:hover { background: #35d895; border-color: #35d895; }
.home-btn.ghost {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.24);
    color: #f7fffb;
}
.home-btn.ghost:hover { background: rgba(255,255,255,0.14); }
.home-proof {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin-top: 48px;
}
.home-proof div {
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(180, 255, 229, 0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
}
.home-proof strong {
    display: block;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
    word-break: break-all;
}
.home-proof span {
    display: block;
    margin-top: 8px;
    color: #bcd6cb;
    font-size: 13px;
}
.home-strip {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    gap: 14px;
    overflow: hidden;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #dfe5ec;
    color: #34495e;
    justify-content: center;
    flex-wrap: wrap;
}
.home-strip span {
    padding: 6px 10px;
    border: 1px solid #dce7e2;
    border-radius: 999px;
    background: #f7faf8;
    font-size: 13px;
    font-weight: 700;
}
.home-section {
    padding: 64px 0 16px;
}
.home-section-head {
    max-width: 760px;
    margin-bottom: 24px;
}
.home-section-head span, .home-mini-title {
    display: block;
    color: #16815a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.home-section h2,
.home-final h2,
.home-security h2 {
    margin: 8px 0 0;
    color: #132238;
    font-size: 32px;
    line-height: 1.2;
}
.home-section-head p,
.home-security p,
.home-final p {
    margin: 12px 0 0;
    color: #5f6f7e;
    font-size: 16px;
}
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.home-feature,
.home-flow-card {
    position: relative;
    min-height: 210px;
    padding: 22px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-feature:hover,
.home-flow-card:hover {
    transform: translateY(-4px);
    border-color: #b8d9cb;
    box-shadow: 0 14px 34px rgba(19,34,56,0.1);
}
.home-feature-num {
    color: #17865d;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 800;
}
.home-feature h3,
.home-flow-card h3 {
    margin: 16px 0 8px;
    color: #132238;
    font-size: 18px;
}
.home-feature p,
.home-flow-card p {
    margin: 0;
    color: #617181;
}
.home-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.home-flow-card b {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #132238;
    color: #fff;
}
.home-code-demo {
    margin-top: 18px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    overflow: hidden;
    background: #0b1511;
}
.home-code-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #bff7df;
    font-size: 13px;
    font-weight: 800;
}
.home-code-title a { color: #ffffff; }
.home-code-demo pre {
    margin: 0;
    padding: 18px;
    color: #e9fff5;
    overflow-x: auto;
}
.home-code-demo code { font-family: Consolas, "Courier New", monospace; }
.home-security {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 28px;
    align-items: center;
    margin-top: 42px;
    padding: 34px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
}
.home-security-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.home-security-list div {
    min-height: 120px;
    padding: 18px;
    border: 1px solid #dce7e2;
    border-radius: 8px;
    background: #f8fbf9;
}
.home-security-list strong {
    display: block;
    color: #132238;
    font-size: 16px;
}
.home-security-list span {
    display: block;
    margin-top: 8px;
    color: #617181;
}
.home-final {
    width: 100vw;
    margin: 54px 0 -44px calc(50% - 50vw);
    padding: 58px 18px;
    text-align: center;
    color: #fff;
    background: #0a1712;
}
.home-final h2 { color: #fff; }
.home-final p { color: #cfe4da; }

body:not(.backend-page) .home-hero {
    min-height: 690px;
    margin-top: -26px;
    color: #142033;
    background:
        radial-gradient(circle at 78% 18%, rgba(79,180,247,.2), transparent 30%),
        radial-gradient(circle at 18% 28%, rgba(24,184,166,.15), transparent 26%),
        linear-gradient(135deg, #fbfefe 0%, #f4fbfa 48%, #f8fbff 100%);
}
body:not(.backend-page) .home-hero::after {
    background:
        linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 46%, rgba(255,255,255,.28) 100%),
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(244,251,250,.88) 100%);
}
body:not(.backend-page) .home-hero-canvas {
    opacity: .72;
    mix-blend-mode: multiply;
}
body:not(.backend-page) .home-hero-inner {
    min-height: 690px;
    padding-top: 104px;
}
body:not(.backend-page) .home-kicker {
    border-color: #c9eee9;
    background: rgba(255,255,255,.86);
    color: #0e9d91;
    box-shadow: 0 12px 30px rgba(15,23,42,.045);
}
body:not(.backend-page) .home-hero h1 {
    color: #0f1f33;
    font-size: clamp(46px, 6.2vw, 78px);
    font-weight: 900;
    letter-spacing: 0;
}
body:not(.backend-page) .home-title-sub {
    border-left-color: #18b8a6;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, rgba(232,251,247,.9), rgba(242,248,255,.9));
    color: #0e756d;
    box-shadow: inset 0 0 0 1px rgba(24,184,166,.08);
}
body:not(.backend-page) .home-lead {
    color: #4d6074;
}
body:not(.backend-page) .home-rotator {
    border-color: #dcecf1;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    color: #142033;
    box-shadow: 0 16px 40px rgba(15,23,42,.06);
}
body:not(.backend-page) .home-rotator span {
    color: #728196;
}
body:not(.backend-page) .home-rotator strong {
    color: #0e9d91;
}
body:not(.backend-page) .home-btn {
    min-height: 46px;
    border-radius: 13px;
    padding: 0 20px;
}
body:not(.backend-page) .home-btn.primary {
    border-color: #18b8a6;
    background: linear-gradient(135deg, #18b8a6, #42aef2);
    color: #fff;
    box-shadow: 0 14px 30px rgba(24,184,166,.2);
}
body:not(.backend-page) .home-btn.primary:hover {
    background: linear-gradient(135deg, #14a998, #339fea);
    border-color: #14a998;
    color: #fff;
}
body:not(.backend-page) .home-btn.ghost {
    border-color: #d8e4eb;
    background: rgba(255,255,255,.88);
    color: #314255;
}
body:not(.backend-page) .home-btn.ghost:hover {
    border-color: #c9eee9;
    background: #f1fbf9;
    color: #0e9d91;
}
body:not(.backend-page) .home-proof {
    max-width: 820px;
}
body:not(.backend-page) .home-proof div {
    border-color: #e5edf2;
    border-radius: 18px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 14px 34px rgba(15,23,42,.055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body:not(.backend-page) .home-proof div:hover {
    transform: translateY(-4px);
    border-color: #c9eee9;
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
}
body:not(.backend-page) .home-proof strong {
    color: #142033;
}
body:not(.backend-page) .home-proof span {
    color: #728196;
}
body:not(.backend-page) .home-strip {
    gap: 10px;
    padding: 16px 18px;
    border-top: 1px solid #edf3f6;
    border-bottom: 1px solid #e7eff3;
    background: rgba(255,255,255,.86);
    box-shadow: 0 10px 30px rgba(15,23,42,.035);
    backdrop-filter: blur(16px);
}
body:not(.backend-page) .home-strip span {
    border-color: #dfeaf0;
    border-radius: 999px;
    background: #fbfefe;
    color: #506174;
}
body:not(.backend-page) .home-section {
    padding-top: 72px;
}
body:not(.backend-page) .home-section-head span,
body:not(.backend-page) .home-mini-title {
    color: #0e9d91;
}
body:not(.backend-page) .home-section h2,
body:not(.backend-page) .home-final h2,
body:not(.backend-page) .home-security h2 {
    color: #142033;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 900;
}
body:not(.backend-page) .home-section-head p,
body:not(.backend-page) .home-security p,
body:not(.backend-page) .home-final p {
    color: #5b6d80;
}
body:not(.backend-page) .home-feature,
body:not(.backend-page) .home-flow-card,
body:not(.backend-page) .home-security {
    border-color: #e5edf2;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 36px rgba(15,23,42,.055);
}
body:not(.backend-page) .home-feature::after,
body:not(.backend-page) .home-flow-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(24,184,166,.08), rgba(79,180,247,.06));
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}
body:not(.backend-page) .home-feature:hover,
body:not(.backend-page) .home-flow-card:hover {
    transform: translateY(-5px);
    border-color: #c9eee9;
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
}
body:not(.backend-page) .home-feature:hover::after,
body:not(.backend-page) .home-flow-card:hover::after {
    opacity: 1;
}
body:not(.backend-page) .home-feature-num {
    color: #0e9d91;
}
body:not(.backend-page) .home-feature h3,
body:not(.backend-page) .home-flow-card h3 {
    color: #142033;
    font-weight: 850;
}
body:not(.backend-page) .home-feature p,
body:not(.backend-page) .home-flow-card p {
    color: #637589;
}
body:not(.backend-page) .home-flow-card b {
    background: linear-gradient(135deg, #18b8a6, #42aef2);
    box-shadow: 0 12px 24px rgba(24,184,166,.18);
}
body:not(.backend-page) .home-code-demo {
    border-color: #e5edf2;
    border-radius: 18px;
    background: #101827;
    box-shadow: 0 18px 44px rgba(15,23,42,.12);
}
body:not(.backend-page) .home-code-title {
    border-bottom-color: rgba(255,255,255,.08);
    color: #a7f3e7;
}
body:not(.backend-page) .home-code-demo pre {
    color: #e8fbff;
}
body:not(.backend-page) .home-security {
    background:
        linear-gradient(135deg, rgba(24,184,166,.08), rgba(79,180,247,.06)),
        rgba(255,255,255,.96);
}
body:not(.backend-page) .home-security-list div {
    border-color: #e4edf2;
    border-radius: 16px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 10px 26px rgba(15,23,42,.04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body:not(.backend-page) .home-security-list div:hover {
    transform: translateY(-3px);
    border-color: #c9eee9;
    box-shadow: 0 16px 36px rgba(15,23,42,.07);
}
body:not(.backend-page) .home-security-list strong {
    color: #142033;
}
body:not(.backend-page) .home-security-list span {
    color: #637589;
}
body:not(.backend-page) .home-final {
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e7eff3;
    background:
        radial-gradient(circle at 20% 0%, rgba(24,184,166,.14), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(79,180,247,.16), transparent 30%),
        linear-gradient(135deg, #fbfefe, #f4fbfa 48%, #f8fbff);
    color: #142033;
}
body:not(.backend-page) .home-final h2 {
    color: #142033;
}
body:not(.backend-page) .home-final p {
    color: #5b6d80;
}
@media (max-width: 760px) {
    .topbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 18px; }
    .topbar nav { justify-content: flex-start; }
    .row, .split, .docs-shell { grid-template-columns: 1fr; }
    .docs-program-bar, .docs-switch-toolbar { align-items: stretch; flex-direction: column; }
    .docs-program-tools label { min-width: 0; width: 100%; }
    .docs-sidebar { position: static; }
    .docs-panel-head { display: block; }
    .docs-action-switch { justify-items: start; margin-top: 12px; }
    .cipher-code-pre { min-height: 440px; font-size: 13px; }
    .container { padding: 18px 12px 36px; }
    .home-hero { min-height: 720px; margin-top: -18px; }
    .home-hero-inner { min-height: 720px; padding: 58px 14px 34px; }
    .home-hero h1 { font-size: 38px; }
    .home-title-sub { font-size: 16px; }
    .home-lead { font-size: 16px; }
    .home-rotator { align-items: flex-start; flex-direction: column; }
    .home-proof,
    .home-feature-grid,
    .home-flow-grid,
    .home-security,
    .home-security-list { grid-template-columns: 1fr; }
    .home-section { padding-top: 44px; }
    .home-section h2,
    .home-final h2,
    .home-security h2 { font-size: 26px; }
    .home-security { padding: 22px; }
    .home-code-title { flex-direction: column; gap: 4px; }
}

body.backend-page {
    background: #edf1f2;
    color: #666;
    font-size: 14px;
}
.backend-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}
.backend-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    overflow-y: auto;
    background: #192b44;
    color: #dbe6f2;
    z-index: 20;
}
.backend-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 66px;
    padding: 0 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.backend-brand:hover { text-decoration: none; background: rgba(255,255,255,0.03); }
.brand-mark {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient(135deg, #20c7d9, #28c081);
    color: #06110d;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}
.backend-brand strong {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}
.backend-nav {
    padding: 36px 0 28px;
}
.backend-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 22px;
    color: #d1d9e4;
    border-left: 4px solid transparent;
    font-size: 15px;
}
.backend-nav a:hover {
    text-decoration: none;
    background: #16263d;
    color: #fff;
}
.backend-nav a.active {
    background: #132238;
    border-left-color: #26cad3;
    color: #35d9e3;
    font-weight: 700;
}
.nav-icon {
    width: 18px;
    text-align: center;
    color: inherit;
    font-size: 17px;
}
.backend-main {
    grid-column: 2;
    min-width: 0;
}
.backend-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid #d6dadd;
    background: #fff;
}
.backend-title {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 220px;
}
.backend-title h1 {
    color: #666;
    font-size: 20px;
    font-weight: 700;
}
.sidebar-toggle {
    border: 0;
    background: transparent;
    color: #9aa3ad;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}
.backend-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    min-width: 0;
    white-space: nowrap;
}
.backend-links a {
    color: #111;
    font-size: 16px;
}
.backend-links a:nth-child(1),
.backend-links a:nth-child(2),
.backend-links a:nth-child(5) { color: #f00; }
.member-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid #cfe8f3;
    border-radius: 999px;
    background: #eef9fd;
    color: #1684a5;
    font-size: 13px;
    font-weight: 700;
}
.backend-user {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #e23b3b;
    font-size: 14px;
    font-weight: 600;
}
.backend-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px 20px 56px;
}
.backend-page .panel {
    border-color: #ddd;
    border-radius: 4px;
    box-shadow: none;
}
.backend-page .panel h2 {
    color: #666;
    font-size: 18px;
}
.backend-page .tabs {
    margin: 0 0 18px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.backend-page .tabs a {
    border: 0;
    border-radius: 2px;
    color: #1769aa;
}
.backend-page .tabs a.active {
    background: #20a8d8;
    color: #fff;
}
.backend-page .grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}
.backend-page .stat {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(90deg, #ef5b8c 0 56%, #ed739f 56% 100%);
}
.backend-page .stat:nth-child(2) { background: linear-gradient(90deg, #55c382 0 56%, #78ce9b 56% 100%); }
.backend-page .stat:nth-child(3) { background: linear-gradient(90deg, #817bbd 0 56%, #9691c6 56% 100%); }
.backend-page .stat:nth-child(4) { background: linear-gradient(90deg, #43b5db 0 56%, #68c2df 56% 100%); }
.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}
.dashboard-hero > div:first-child,
.balance-card,
.chart-panel,
.dashboard-actions-panel {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-hero > div:first-child {
    min-height: 156px;
    padding: 26px;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(45,174,222,.12), rgba(85,195,130,.1)),
        #fff;
}
.dashboard-hero > div:first-child:hover,
.balance-card:hover,
.chart-panel:hover,
.dashboard-actions-panel:hover {
    transform: translateY(-3px);
    border-color: #b8dce8;
    box-shadow: 0 14px 32px rgba(25,43,68,.1);
}
.dashboard-hero span {
    color: #1684a5;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.dashboard-hero h2 {
    margin: 10px 0 0;
    color: #25384d;
    font-size: 28px;
}
.dashboard-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #66788a;
    font-size: 15px;
}
.balance-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 156px;
    padding: 24px;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(239,91,140,.14), rgba(45,174,222,.1)),
        #fff;
}
.balance-card strong {
    margin: 8px 0 16px;
    color: #25384d;
    font-size: 34px;
    line-height: 1;
}
.backend-page .dashboard-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
}
.dashboard-stat {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.dashboard-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(25,43,68,.16);
    filter: saturate(1.08);
    text-decoration: none;
}
.dashboard-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.24) 48%, transparent 58% 100%);
    transform: translateX(-110%);
    transition: transform .45s ease;
}
.dashboard-stat:hover::after {
    transform: translateX(110%);
}
.dashboard-stat em {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    color: rgba(255,255,255,.86);
    font-style: normal;
    font-size: 13px;
}
.dashboard-stat span,
.dashboard-stat strong {
    position: relative;
    z-index: 1;
}
.dashboard-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}
.quick-grid {
    display: grid;
    gap: 10px;
}
.quick-grid a {
    display: block;
    padding: 15px 16px;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    background: #f8fbfd;
    color: #25384d;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.quick-grid a:hover {
    transform: translateX(4px);
    border-color: #a9d7e7;
    background: #eef9fd;
    text-decoration: none;
}
.quick-grid strong {
    display: block;
    font-size: 15px;
}
.quick-grid span {
    display: block;
    margin-top: 5px;
    color: #66788a;
    font-size: 13px;
}
.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.chart-wide {
    grid-column: 1 / -1;
}
.chart-panel {
    min-width: 0;
}
.chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.chart-head h2 {
    margin: 0;
    color: #25384d;
}
.chart-head p {
    margin: 5px 0 0;
    color: #66788a;
    font-size: 13px;
}
.chart-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: #66788a;
    font-size: 13px;
}
.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chart-legend span::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 999px;
}
.line-register::before { background: #2daede; }
.line-single::before { background: #ef5b8c; }
.line-chart {
    display: block;
    width: 100%;
    min-height: 260px;
}
.backend-page .stat span,
.backend-page .stat .muted {
    color: #fff;
    font-size: 14px;
}
.backend-page .stat strong {
    color: #fff;
    font-size: 34px;
    line-height: 1.1;
}
.backend-page input[type=text],
.backend-page input[type=email],
.backend-page input[type=password],
.backend-page input[type=number],
.backend-page select,
.backend-page textarea {
    min-height: 34px;
    padding: 6px 10px;
    border-color: #ccc;
    border-radius: 0;
    color: #666;
}
.backend-page textarea { min-height: 90px; }
.backend-page .btn {
    min-height: 34px;
    border-radius: 0;
    border-color: #aaa;
    font-weight: 500;
}
.backend-page .btn.primary {
    background: #2daede;
    border-color: #2daede;
}
.backend-page .btn.danger {
    color: #f00;
    border-color: #f2b5b5;
}
.filter-panel {
    padding: 16px 20px;
}
.filter-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.filter-line input[type=text] {
    width: 300px;
}
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.page-size {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.backend-page .table-wrap {
    border: 1px solid #ddd;
    background: #fff;
}
.backend-page table {
    color: #666;
}
.backend-page th,
.backend-page td {
    padding: 7px 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}
.backend-page th {
    background: #fff;
    color: #666;
    font-weight: 700;
}
.backend-page tbody tr:hover {
    background: #f4f4f4;
}
.op-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.op-links a,
.link-btn {
    border: 0;
    padding: 0;
    background: transparent;
    color: #00f;
    cursor: pointer;
    font: inherit;
}
.op-links a:hover,
.link-btn:hover { text-decoration: underline; }
.inline-form {
    display: inline;
    margin: 0;
}
.manage-menu {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}
.manage-menu-button {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #b9dbe8;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6fcff, #eef9fd);
    color: #1684a5;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.manage-menu-button:hover {
    transform: translateY(-1px);
    border-color: #83c9df;
    box-shadow: 0 8px 18px rgba(45,174,222,.16);
}
.manage-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 45;
    min-width: 158px;
    padding: 8px;
    border: 1px solid #d8e4ea;
    border-radius: 8px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 36px rgba(25,43,68,.18);
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.manage-menu.open .manage-menu-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.manage-menu-panel a,
.manage-menu-panel form > button,
.manage-menu-panel .link-btn,
.manage-menu-panel .btn {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #25384d;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
.manage-menu-panel a:hover,
.manage-menu-panel form > button:hover,
.manage-menu-panel .link-btn:hover,
.manage-menu-panel .btn:hover {
    background: #eef9fd;
    color: #1684a5;
    text-decoration: none;
}
.manage-menu-panel form {
    display: block;
    margin: 0;
}
.manage-menu-panel > form input:not([type=hidden]):not([type=submit]),
.manage-menu-panel > form select,
.manage-menu-panel > form textarea,
.manage-menu-panel > form label {
    display: none;
}
.manage-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10,20,30,.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.manage-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}
.manage-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: 1px solid rgba(255,255,255,.54);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(10,20,30,.28);
    transform: translateY(20px) scale(.96);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.manage-modal-backdrop.show .manage-modal {
    transform: translateY(0) scale(1);
}
.manage-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f5;
    background: linear-gradient(135deg, #f8fcff, #f7fbf9);
}
.manage-modal-head strong {
    color: #25384d;
    font-size: 18px;
}
.manage-modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #eef3f7;
    color: #52616f;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.manage-modal-body {
    padding: 20px;
}
.manage-modal-field {
    margin-bottom: 14px;
}
.manage-modal-field label {
    display: block;
    margin-bottom: 6px;
    color: #34495e;
    font-weight: 700;
}
.manage-modal-field input,
.manage-modal-field select,
.manage-modal-field textarea {
    border-radius: 6px;
}
.manage-modal-checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 9px 10px;
    border: 1px solid #e3edf2;
    border-radius: 8px;
    background: #f8fbfd;
    color: #34495e;
}
.manage-modal-checkline input {
    width: auto;
}
.manage-modal-message {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid #dbe8ef;
    border-radius: 8px;
    background: #f6fbfd;
    color: #52616f;
}
.manage-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-toggle {
    color: #00f;
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 142px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #d4d4d4;
    box-shadow: 0 2px 8px rgba(0,0,0,.16);
    z-index: 30;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a,
.dropdown-menu button {
    display: block;
    width: 100%;
    min-height: 28px;
    padding: 4px 18px;
    border: 0;
    background: #fff;
    color: #333;
    text-align: left;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover {
    text-decoration: none;
    background: #f5f5f5;
}
.pagination-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 0 0;
    color: #777;
}
.pagination-line a,
.pagination-line span {
    min-width: 34px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
}
.pagination-line .active {
    background: #132238;
    color: #fff;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}
.detail-grid div {
    padding-bottom: 8px;
    border-bottom: 1px solid #edf0f2;
}
.detail-grid span {
    display: block;
    color: #888;
    font-size: 12px;
}
.detail-grid strong {
    display: block;
    margin-top: 3px;
    color: #444;
    font-weight: 600;
    word-break: break-all;
}
.backend-notice {
    text-align: center;
    color: #f00;
    margin-bottom: 14px;
}

body.backend-page {
    background:
        radial-gradient(circle at 24px 24px, rgba(24,184,166,.07) 0 1px, transparent 1px 100%),
        linear-gradient(135deg, #f8fcfc 0%, #f3faf9 46%, #f7fbff 100%);
    background-size: 28px 28px, auto;
    color: #243142;
    font-size: 14px;
}
.backend-shell {
    grid-template-columns: 230px minmax(0, 1fr);
}
.backend-sidebar {
    width: 230px;
    background: rgba(255,255,255,.96);
    color: #243142;
    border-right: 1px solid #e6eef2;
    box-shadow: 12px 0 34px rgba(15,23,42,.045);
    backdrop-filter: blur(16px);
}
.sidebar-close {
    display: none;
}
.sidebar-backdrop {
    display: none;
}
.backend-brand {
    height: 72px;
    padding: 0 18px;
    color: #142033;
    border-bottom: 1px solid #edf3f6;
}
.backend-brand:hover {
    background: #f7fbfb;
    text-decoration: none;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #18b8a6, #4fb4f7);
    color: #fff;
    box-shadow: 0 10px 20px rgba(24,184,166,.22);
    font-size: 18px;
}
.backend-brand strong {
    color: #142033;
    font-size: 17px;
    font-weight: 800;
}
.backend-nav {
    padding: 18px 12px 28px;
}
.backend-nav a {
    position: relative;
    min-height: 44px;
    margin: 2px 0;
    padding: 0 14px;
    border: 0;
    border-radius: 13px;
    color: #5d6d7f;
    font-size: 14px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.backend-nav a:hover {
    transform: translateX(3px);
    background: #f1f8f8;
    color: #128f84;
    text-decoration: none;
}
.backend-nav a.active {
    background: linear-gradient(135deg, #e6fbf7, #eff8ff);
    color: #0e9d91;
    box-shadow: inset 0 0 0 1px rgba(24,184,166,.13), 0 10px 22px rgba(15,23,42,.055);
}
.nav-icon {
    width: 20px;
    color: inherit;
    opacity: .88;
}
.backend-main {
    background: transparent;
}
.backend-topbar {
    height: 72px;
    padding: 0 28px;
    border-bottom: 1px solid #e7eff3;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 30px rgba(15,23,42,.035);
    backdrop-filter: blur(16px);
}
.backend-title {
    gap: 18px;
}
.backend-title h1 {
    color: #142033;
    font-size: 21px;
    font-weight: 800;
}
.sidebar-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid #e4edf2;
    border-radius: 12px;
    background: #fff;
    color: #617181;
    font-size: 22px;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sidebar-toggle:hover {
    border-color: #bfe9e4;
    background: #f0fbf9;
    color: #0e9d91;
    box-shadow: 0 10px 22px rgba(24,184,166,.12);
}
body.backend-page .backend-links a,
body.backend-page .backend-links button.backend-link-button,
body.backend-page .backend-links a:nth-child(1),
body.backend-page .backend-links a:nth-child(2),
body.backend-page .backend-links a:nth-child(5) {
    color: #506174;
    font-size: 14px;
    font-weight: 700;
}
body.backend-page .backend-links button.backend-link-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    padding: 0;
}
body.backend-page .backend-links a:hover,
body.backend-page .backend-links button.backend-link-button:hover {
    color: #0e9d91;
    text-decoration: none;
}
.billing-rules-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15,23,42,.34);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.billing-rules-backdrop.show {
    opacity: 1;
    visibility: visible;
}
body.billing-rules-open {
    overflow: hidden;
}
.billing-rules-modal {
    width: min(860px, 100%);
    max-height: calc(100vh - 44px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(15,23,42,.22);
    transform: translateY(22px) scale(.96);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.billing-rules-backdrop.show .billing-rules-modal {
    transform: translateY(0) scale(1);
}
.billing-rules-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #edf3f6;
    background: linear-gradient(135deg, #fbfefe, #f2fbfa);
}
.billing-rules-head strong {
    display: block;
    color: #142033;
    font-size: 20px;
    font-weight: 850;
}
.billing-rules-head span {
    display: block;
    margin-top: 4px;
    color: #6c7d8e;
    font-size: 13px;
}
.billing-rules-close {
    width: 34px;
    height: 34px;
    border: 1px solid #e1ebf0;
    border-radius: 50%;
    background: #fff;
    color: #667789;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.billing-rules-close:hover {
    background: #f1fbf9;
    color: #0e9d91;
    transform: rotate(90deg);
}
.billing-rules-body {
    max-height: calc(100vh - 128px);
    overflow: auto;
    padding: 22px 24px 24px;
}
.billing-rules-summary {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #e3edf2;
    border-radius: 16px;
    background: #f8fbfc;
    color: #4f6072;
    line-height: 1.75;
}
.billing-rules-summary p {
    margin: 0;
}
.billing-rules-summary strong {
    color: #26384c;
    font-size: 16px;
}
.billing-danger {
    color: #f00;
    font-weight: 900;
}
.billing-rules-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.billing-rules-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #dce9ef;
    border-radius: 999px;
    background: #fff;
    color: #526579;
    font-size: 13px;
    font-weight: 800;
}
.billing-rules-table-wrap {
    overflow-x: auto;
    border: 1px solid #e3edf2;
    border-radius: 16px;
    background: #fff;
}
.billing-rules-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}
.billing-rules-table th,
.billing-rules-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf3f6;
    color: #314255;
    text-align: left;
    vertical-align: middle;
}
.billing-rules-table th {
    background: #f8fbfc;
    color: #6b7b8c;
    font-size: 13px;
    font-weight: 850;
}
.billing-rules-table th:nth-child(2),
.billing-rules-table th:nth-child(3),
.billing-rules-table td:nth-child(2),
.billing-rules-table td:nth-child(3) {
    width: 96px;
    text-align: center;
}
.billing-rules-table td:first-child {
    color: #142033;
    font-weight: 850;
}
.billing-rules-table tr:last-child td {
    border-bottom: 0;
}
.billing-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
}
.billing-mark-ok {
    background: #ebfbf7;
    color: #0e9d91;
}
.billing-mark-bad {
    background: #fff1f1;
    color: #e05252;
}
.billing-rule-text {
    color: #526579;
    font-weight: 850;
    white-space: nowrap;
}
.billing-rules-footnote {
    margin-top: 14px;
    color: #8190a0;
    font-size: 13px;
    line-height: 1.7;
}
.member-badge {
    min-height: 30px;
    padding: 0 13px;
    border-color: #c9eee9;
    background: #eefcf9;
    color: #0e9d91;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.74);
}
.member-badge.vip {
    border-color: #ffe3a8;
    background: linear-gradient(135deg, #fff7df, #fffaf0);
    color: #a36a06;
}
.backend-user {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f9fb;
    color: #314255;
    font-weight: 800;
}
.backend-account {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: -8px;
}
.backend-user-toggle {
    gap: 5px;
    border: 0;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.backend-user-toggle:hover,
.backend-account:hover .backend-user-toggle,
.backend-account:focus-within .backend-user-toggle {
    background: #eefcf9;
    color: #0e9d91;
    box-shadow: 0 10px 22px rgba(24,184,166,.12);
}
.backend-user-arrow {
    color: #667789;
    font-size: 12px;
}
.backend-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    z-index: 50;
    min-width: 138px;
    padding: 8px;
    border: 1px solid #e3edf2;
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 46px rgba(15,23,42,.14);
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.backend-account:hover .backend-account-menu,
.backend-account:focus-within .backend-account-menu,
.backend-account.open .backend-account-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
body.backend-page .backend-account-menu a {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    color: #314255;
    font-size: 13px;
    font-weight: 800;
}
body.backend-page .backend-account-menu a:hover {
    background: #f1fbf9;
    color: #0e9d91;
    text-decoration: none;
}
.backend-container {
    padding: 30px 28px 60px;
}
.backend-page .page-title {
    align-items: center;
    margin-bottom: 20px;
}
.backend-page .page-title h1,
.backend-page h1 {
    color: #142033;
    font-weight: 850;
}
.backend-page .panel,
.dashboard-hero > div:first-child,
.balance-card,
.chart-panel,
.dashboard-actions-panel {
    border: 1px solid #e5edf2;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 36px rgba(15,23,42,.055);
}
.backend-page .panel {
    padding: 22px;
    margin-bottom: 20px;
}
.backend-page .panel:hover,
.dashboard-hero > div:first-child:hover,
.balance-card:hover,
.chart-panel:hover,
.dashboard-actions-panel:hover {
    transform: translateY(-2px);
    border-color: #d3ebe8;
    box-shadow: 0 18px 44px rgba(15,23,42,.08);
}
.backend-page .panel h2,
.chart-head h2 {
    color: #142033;
    font-size: 18px;
    font-weight: 850;
}
.backend-page .tabs {
    gap: 8px;
    padding: 8px;
    border: 1px solid #e6eef2;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
.backend-page .tabs a {
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #667789;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.backend-page .tabs a:hover {
    background: #f1f8f8;
    color: #0e9d91;
    text-decoration: none;
}
.backend-page .tabs a.active {
    background: linear-gradient(135deg, #18b8a6, #42aef2);
    color: #fff;
    box-shadow: 0 10px 22px rgba(24,184,166,.18);
}
.backend-page .grid {
    gap: 18px;
}
.backend-page .stat,
.backend-page .stat:nth-child(2),
.backend-page .stat:nth-child(3),
.backend-page .stat:nth-child(4) {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    border: 1px solid #e5edf2;
    border-radius: 18px;
    background: #fff;
    color: #142033;
    box-shadow: 0 14px 34px rgba(15,23,42,.055);
}
.backend-page .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #18b8a6, #42aef2);
}
.backend-page .stat:nth-child(2)::before { background: linear-gradient(180deg, #42aef2, #7c8cf8); }
.backend-page .stat:nth-child(3)::before { background: linear-gradient(180deg, #ffb35c, #ff7b7b); }
.backend-page .stat:nth-child(4)::before { background: linear-gradient(180deg, #55c382, #18b8a6); }
.backend-page .stat:nth-child(5)::before { background: linear-gradient(180deg, #ef5b8c, #ff9c65); }
.backend-page .dashboard-stat.dashboard-stat-online::before { background: linear-gradient(180deg, #16b981, #42aef2); }
.backend-page .stat span,
.backend-page .stat .muted,
.dashboard-stat em {
    color: #728196;
    font-size: 13px;
}
.backend-page .stat strong {
    color: #142033;
    font-size: 32px;
    font-weight: 850;
}
.dashboard-stat {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-stat:hover {
    box-shadow: 0 18px 44px rgba(15,23,42,.09);
    filter: none;
}
.dashboard-hero > div:first-child,
.balance-card {
    background:
        linear-gradient(135deg, rgba(24,184,166,.09), rgba(79,180,247,.08)),
        #fff;
}
.dashboard-hero span {
    color: #0e9d91;
}
.dashboard-hero h2,
.balance-card strong {
    color: #142033;
}
.dashboard-hero p,
.quick-grid span,
.chart-head p,
.chart-legend {
    color: #728196;
}
.balance-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -6px 0 14px;
    flex-wrap: wrap;
}
.balance-meta small {
    color: #728196;
    font-size: 12px;
}
.balance-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.balance-actions form {
    margin: 0;
}
.backend-page .btn.vip-btn {
    border-color: #ffe0a0;
    background: linear-gradient(135deg, #fff5d8, #fffaf0);
    color: #9b6508;
    box-shadow: 0 10px 20px rgba(255,179,92,.14);
}
.backend-page .btn.vip-btn:hover {
    border-color: #ffc96a;
    background: linear-gradient(135deg, #ffedbd, #fff6df);
    color: #845300;
}
.vip-required {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.vip-required h2 {
    margin: 14px 0 8px;
}
.vip-required p {
    max-width: 720px;
    margin: 0;
    color: #728196;
}
.quick-grid a {
    border-color: #e5edf2;
    border-radius: 14px;
    background: #fbfefe;
    color: #243142;
}
.quick-grid a:hover {
    border-color: #c9eee9;
    background: #f1fbf9;
}
.chart-panel {
    padding: 22px;
}
.line-chart {
    min-height: 276px;
}
.backend-page label {
    color: #314255;
    font-weight: 800;
}
.backend-page input[type=text],
.backend-page input[type=email],
.backend-page input[type=password],
.backend-page input[type=number],
.backend-page select,
.backend-page textarea {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d9e4eb;
    border-radius: 12px;
    background: #fff;
    color: #243142;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.backend-page textarea {
    min-height: 104px;
}
.backend-page input[type=text]:focus,
.backend-page input[type=email]:focus,
.backend-page input[type=password]:focus,
.backend-page input[type=number]:focus,
.backend-page select:focus,
.backend-page textarea:focus {
    outline: 0;
    border-color: #77d8cf;
    box-shadow: 0 0 0 4px rgba(24,184,166,.12);
}
.backend-page .btn {
    min-height: 38px;
    padding: 0 15px;
    border-color: #d8e4eb;
    border-radius: 12px;
    background: #fff;
    color: #314255;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.backend-page .btn:hover {
    transform: translateY(-1px);
    border-color: #c9eee9;
    background: #f1fbf9;
    color: #0e9d91;
    box-shadow: 0 10px 22px rgba(15,23,42,.055);
}
.backend-page .btn.primary {
    border-color: #18b8a6;
    background: linear-gradient(135deg, #18b8a6, #42aef2);
    color: #fff;
    box-shadow: 0 12px 24px rgba(24,184,166,.2);
}
.backend-page .btn.primary:hover {
    border-color: #14a998;
    background: linear-gradient(135deg, #14a998, #339fea);
    color: #fff;
}
.backend-page .btn.danger {
    border-color: #ffd2d2;
    background: #fff7f7;
    color: #d64545;
}
.backend-page .btn.danger:hover {
    border-color: #ffb8b8;
    background: #fff0f0;
    color: #bd2e2e;
}
.filter-panel {
    padding: 18px 20px;
}
.filter-line {
    gap: 10px;
}
.list-toolbar {
    margin-bottom: 14px;
}
.page-size {
    color: #667789;
}
.backend-page .table-wrap {
    overflow: visible;
    border: 1px solid #e5edf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.045);
}
.backend-page table {
    color: #314255;
    border-collapse: separate;
    border-spacing: 0;
}
.backend-page th,
.backend-page td {
    padding: 12px 13px;
    border-bottom: 1px solid #edf3f6;
    vertical-align: middle;
}
.backend-page th {
    background: #f8fbfc;
    color: #667789;
    font-size: 13px;
    font-weight: 850;
}
.backend-page th:first-child { border-top-left-radius: 16px; }
.backend-page th:last-child { border-top-right-radius: 16px; }
.backend-page tbody tr {
    transition: background .16s ease, box-shadow .16s ease;
}
.backend-page tbody tr:hover {
    background: #f6fcfb;
}
.backend-page tr:last-child td {
    border-bottom: 0;
}
.backend-page .badge {
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 800;
}
.backend-page .badge.ok {
    background: #e9fbf3;
    color: #0a8751;
}
.backend-page .badge.warn {
    background: #fff7de;
    color: #a66a00;
}
.backend-page .badge.bad {
    background: #fff0f0;
    color: #c73b3b;
}
.backend-page .flash {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.backend-page .op-links a,
.backend-page .link-btn,
.backend-page .dropdown-toggle {
    color: #0e9d91;
    font-weight: 800;
}
.backend-page .op-links a:hover,
.backend-page .link-btn:hover,
.backend-page .dropdown-toggle:hover {
    color: #08786f;
    text-decoration: none;
}
.program-actions {
    gap: 8px;
}
.backend-page .program-actions .btn {
    min-height: 34px;
    padding: 0 12px;
    border-color: #c9eee9;
    background: #effcf9;
    color: #0e9d91;
    box-shadow: none;
}
.backend-page .program-actions .btn:hover {
    border-color: #92ddd5;
    background: #e6fbf7;
    color: #08786f;
}
.manage-menu {
    display: inline-flex;
}
.manage-menu-button {
    min-height: 32px;
    padding: 0 13px;
    border-color: #c9eee9;
    border-radius: 999px;
    background: #effcf9;
    color: #0e9d91;
    box-shadow: 0 8px 18px rgba(24,184,166,.1);
}
.manage-menu-button:hover {
    border-color: #92ddd5;
    background: #e6fbf7;
    box-shadow: 0 12px 24px rgba(24,184,166,.16);
}
.manage-menu-panel {
    min-width: 172px;
    padding: 8px;
    border-color: #e3edf2;
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(15,23,42,.14);
}
.backend-page .manage-menu-panel a,
.backend-page .manage-menu-panel form > button,
.backend-page .manage-menu-panel .link-btn,
.backend-page .manage-menu-panel .btn {
    width: 100%;
    min-height: 36px;
    justify-content: flex-start;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #314255;
    box-shadow: none;
    font-size: 13px;
    text-align: left;
}
.backend-page .manage-menu-panel a:hover,
.backend-page .manage-menu-panel form > button:hover,
.backend-page .manage-menu-panel .link-btn:hover,
.backend-page .manage-menu-panel .btn:hover {
    transform: none;
    background: #f1fbf9;
    color: #0e9d91;
    box-shadow: none;
}
.manage-modal-backdrop {
    background: rgba(15,23,42,.34);
    backdrop-filter: blur(6px);
}
.manage-modal {
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 20px;
    box-shadow: 0 34px 90px rgba(15,23,42,.22);
}
.manage-modal-head {
    padding: 18px 22px;
    border-bottom-color: #edf3f6;
    background: linear-gradient(135deg, #fbfefe, #f2fbfa);
}
.manage-modal-head strong {
    color: #142033;
    font-weight: 850;
}
.manage-modal-close {
    border: 1px solid #e1ebf0;
    background: #fff;
    color: #667789;
}
.manage-modal-close:hover {
    background: #f1fbf9;
    color: #0e9d91;
}
.manage-modal-body {
    padding: 22px;
}
.manage-modal-field input,
.manage-modal-field select,
.manage-modal-field textarea {
    border-radius: 12px;
}
.manage-modal-checkline,
.manage-modal-message {
    border-color: #e3edf2;
    border-radius: 14px;
    background: #f8fbfc;
}
.dropdown-menu {
    padding: 8px;
    border-color: #e3edf2;
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(15,23,42,.14);
}
.dropdown-menu a,
.dropdown-menu button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    color: #314255;
    font-weight: 800;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #f1fbf9;
    color: #0e9d91;
}
.pagination-line {
    gap: 8px;
    color: #728196;
}
.pagination-line a,
.pagination-line span {
    min-width: 36px;
    min-height: 34px;
    border-color: #e2ebf0;
    border-radius: 11px;
    color: #536477;
    font-weight: 800;
}
.pagination-line a:hover {
    border-color: #c9eee9;
    background: #f1fbf9;
    color: #0e9d91;
    text-decoration: none;
}
.pagination-line .active {
    border-color: #18b8a6;
    background: linear-gradient(135deg, #18b8a6, #42aef2);
    color: #fff;
}
.detail-grid div {
    border-bottom-color: #edf3f6;
}
.detail-grid span {
    color: #728196;
}
.detail-grid strong {
    color: #243142;
}
.backend-notice {
    padding: 10px 14px;
    border: 1px solid #ffd2d2;
    border-radius: 14px;
    background: #fff7f7;
    color: #d64545;
}
body.sidebar-collapsed .backend-shell { grid-template-columns: 0 minmax(0, 1fr); }
body.sidebar-collapsed .backend-sidebar { transform: translateX(-230px); }
body.sidebar-collapsed .backend-main { grid-column: 1 / -1; }
.api-code-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 22px;
}
.api-code-hero h2 {
    margin: 5px 0 8px;
    color: #142033;
    font-size: 30px;
}
.api-code-hero p {
    max-width: 760px;
    margin: 0;
    color: #66788a;
}
.api-code-kicker {
    color: #0e9d91;
    font-size: 12px;
    font-weight: 800;
}
.api-code-lookup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 22px;
    align-items: end;
}
.api-code-lookup .code {
    grid-column: 1 / -1;
    margin: 0;
}
.api-code-lookup form,
.api-code-lookup label {
    margin: 0;
}
.api-code-lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.api-code-table-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.api-code-table-head p {
    margin: 4px 0 0;
}
.api-code-filter {
    width: min(320px, 100%);
    margin: 0;
}
.api-code-table td:first-child,
.api-code-table th:first-child {
    width: 110px;
    white-space: nowrap;
}
.api-code-table td:nth-child(2),
.api-code-table th:nth-child(2) {
    width: 130px;
}
.api-code-table td:first-child code {
    color: #c73b3b;
    font-size: 14px;
    font-weight: 800;
}
.api-code-table tr:first-child td:first-child code {
    color: #0a8751;
}
.api-code-empty {
    padding: 22px 0 4px;
    text-align: center;
}
@media (min-width: 901px) and (max-width: 1250px) {
    .backend-page .dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .flash-toast-layer,
    .backend-page .flash-toast-layer {
        top: 14px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    .flash-toast {
        grid-template-columns: 30px minmax(0, 1fr) 28px;
        padding: 14px 12px;
        border-radius: 16px;
    }
    .flash-toast-icon {
        width: 30px;
        height: 30px;
    }
    .backend-shell { grid-template-columns: 0 minmax(0, 1fr); }
    .backend-sidebar {
        width: min(82vw, 286px);
        transform: translateX(-105%);
        transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
        box-shadow: 18px 0 50px rgba(15,23,42,.16);
    }
    body.sidebar-open .backend-sidebar { transform: translateX(0); }
    .sidebar-close {
        position: absolute;
        top: 18px;
        right: 14px;
        z-index: 2;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e1ebf0;
        border-radius: 12px;
        background: #fff;
        color: #667789;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        box-shadow: 0 8px 18px rgba(15,23,42,.055);
    }
    .sidebar-close:hover {
        border-color: #c9eee9;
        background: #f1fbf9;
        color: #0e9d91;
    }
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 19;
        display: block;
        background: rgba(15,23,42,.28);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
        backdrop-filter: blur(3px);
    }
    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }
    body.sidebar-open {
        overflow: hidden;
    }
    .backend-main { grid-column: 1 / -1; }
    .backend-topbar { align-items: flex-start; height: auto; min-height: 66px; flex-direction: column; padding: 12px 16px; }
    .backend-links { flex-wrap: wrap; justify-content: flex-start; gap: 12px; white-space: normal; }
    .billing-rules-backdrop { padding: 12px; }
    .billing-rules-modal { max-height: calc(100vh - 24px); border-radius: 18px; }
    .billing-rules-head { padding: 16px 18px; }
    .billing-rules-body { max-height: calc(100vh - 106px); padding: 18px; }
    .billing-rules-table { min-width: 680px; }
    .backend-container { padding: 22px 14px 44px; }
    .backend-page .grid { grid-template-columns: 1fr; }
    .docs-demo-grid { grid-template-columns: 1fr; }
    .docs-demo-card { min-height: 112px; }
    .dashboard-hero,
    .dashboard-layout,
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }
    .chart-wide {
        grid-column: auto;
    }
    .chart-head {
        flex-direction: column;
    }
    .detail-grid { grid-template-columns: 1fr; }
    .api-code-hero,
    .api-code-table-head {
        align-items: stretch;
        flex-direction: column;
    }
    .api-code-lookup {
        grid-template-columns: 1fr;
    }
    .api-code-lookup .code {
        grid-column: auto;
    }
    .api-code-filter {
        width: 100%;
    }
}
