* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f7f6;
    color: #17201b;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

body.home-animated {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(68, 213, 177, 0.26), transparent 34%),
        radial-gradient(circle at right center, rgba(90, 136, 255, 0.18), transparent 30%),
        radial-gradient(circle at 50% 120%, rgba(8, 122, 98, 0.14), transparent 38%),
        linear-gradient(180deg, #f4fbfa 0%, #e9f2f0 100%);
}

.home-animated .topbar,
.home-animated .layout {
    position: relative;
    z-index: 1;
}

.home-animated .topbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.36));
    border-bottom-color: rgba(126, 217, 190, 0.26);
    box-shadow: 0 10px 32px rgba(28, 52, 42, 0.06);
    backdrop-filter: blur(8px);
}

.home-animated .metric,
.home-animated .run-info,
.home-animated .toolbar,
.home-animated .changes,
.home-animated .panel,
.home-animated .products-panel,
.home-animated .product-card,
.home-animated .view-switch {
    box-shadow: 0 18px 44px rgba(0, 9, 20, 0.16);
}

.home-grid,
.home-rings,
.home-beam,
.home-bg-orb {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.home-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(8, 122, 98, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 122, 98, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 88%);
    animation: grid-drift 18s linear infinite;
}

.home-grid::before,
.home-grid::after {
    content: "";
    position: absolute;
    inset: 0;
}

.home-grid::before {
    height: 20%;
    top: -24%;
    background: linear-gradient(180deg, transparent 0%, rgba(66, 213, 176, 0.1) 48%, transparent 100%);
    animation: scanline-drop 7.2s ease-in-out infinite;
}

.home-grid::after {
    background-image: radial-gradient(rgba(7, 123, 98, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.12;
    animation: twinkle-grid 10s linear infinite;
}

.home-rings {
    left: 50%;
    top: 46%;
    width: min(78vw, 900px);
    height: min(78vw, 900px);
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(8, 122, 98, 0.08);
    box-shadow:
        0 0 0 52px rgba(8, 122, 98, 0.028),
        0 0 0 104px rgba(8, 122, 98, 0.02),
        0 0 0 162px rgba(8, 122, 98, 0.014);
    opacity: 0.72;
    animation: rotate-rings 28s linear infinite;
}

.home-beam {
    left: 50%;
    top: 34%;
    width: min(82vw, 980px);
    height: 170px;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: linear-gradient(90deg, transparent 0%, rgba(76, 219, 184, 0.08) 22%, rgba(92, 144, 255, 0.12) 50%, rgba(76, 219, 184, 0.08) 78%, transparent 100%);
    filter: blur(20px);
    opacity: 0.5;
    animation: beam-pulse 8s ease-in-out infinite;
}

.home-bg-orb {
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.62;
    animation: float-orb 9s ease-in-out infinite;
}

.home-bg-orb-a {
    width: 280px;
    height: 280px;
    left: -70px;
    top: 120px;
    background: rgba(73, 215, 180, 0.2);
}

.home-bg-orb-b {
    width: 320px;
    height: 320px;
    right: -100px;
    top: 260px;
    background: rgba(90, 136, 255, 0.16);
    animation-delay: -3s;
}

[hidden] {
    display: none !important;
}

a {
    color: #087a62;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #dfe7e2;
    box-shadow: 0 6px 22px rgba(28, 52, 42, 0.05);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
}

.brand p,
.sub,
.refresh,
.actions span,
.stock span {
    margin: 0;
    color: #5b6861;
}

.refresh {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

button,
.buy {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    background: #087a62;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.buy:hover {
    background: #065d4b;
}

.buy.secondary {
    background: #3e4a43;
}

.buy.small {
    padding: 8px 12px;
    font-size: 13px;
}

.danger-button {
    background: #a63f2a;
}

.layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 20px 40px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

.admin-sidebar-card,
.admin-content {
    background: #ffffff;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
}

.admin-sidebar-card {
    padding: 14px;
}

.admin-content {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.sidebar-kicker {
    margin: 0 0 10px;
    color: #6a776f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav-link {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    color: #2f3a34;
    text-decoration: none;
    background: #f8fbfa;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.admin-nav-link:hover {
    border-color: #bdd4c8;
    background: #f2f8f5;
    transform: translateY(-1px);
}

.admin-nav-link.active {
    border-color: #087a62;
    background: #e8f5f0;
}

.admin-nav-link strong {
    font-size: 15px;
}

.admin-nav-link span {
    color: #66746c;
    font-size: 13px;
    line-height: 1.5;
}

.channel-events {
    display: grid;
    gap: 8px;
}

.channel-events strong {
    color: #2f3a34;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px 12px;
}

.channel-hints {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.channel-hint {
    padding: 14px;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    background: #f7faf8;
}

.channel-hint p {
    margin: 8px 0 0;
}

.channel-hint span {
    display: inline-block;
    min-width: 62px;
    color: #6a776f;
    font-size: 13px;
    font-weight: 700;
}

.channel-hint-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.channel-type-tip {
    padding: 10px 12px;
    border: 1px dashed #c8d8d0;
    border-radius: 8px;
    background: #f7faf8;
}

.sidebar-stats {
    display: grid;
    gap: 12px;
}

.sidebar-stats div {
    display: grid;
    gap: 4px;
}

.sidebar-stats span {
    color: #6a776f;
    font-size: 13px;
}

.sidebar-stats strong {
    font-size: 19px;
}

.admin-page-head {
    margin-bottom: 16px;
}

.admin-page-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.page-lead {
    margin: 8px 0 0;
    color: #5b6861;
}

.notice {
    padding: 14px 16px;
    border: 1px solid #e2b0b0;
    background: #fff5f5;
    border-radius: 6px;
    margin-bottom: 16px;
}

.notice.success {
    border-color: #b8d8c8;
    background: #f1fbf6;
}

.notice.info {
    border-color: #b9cfe6;
    background: #f1f7ff;
}

.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.metric,
.run-info,
.toolbar,
.changes {
    background: #ffffff;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
}

.metric {
    padding: 16px;
    box-shadow: 0 10px 26px rgba(25, 53, 41, 0.05);
}

.metric span {
    display: block;
    color: #5b6861;
}

.metric strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
}

.metric.good strong {
    color: #087a62;
}

.metric.muted strong {
    color: #7a7f7c;
}

.metric.warn strong {
    color: #a63f2a;
}

.run-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.run-info span {
    display: block;
    color: #5b6861;
}

.toolbar {
    display: flex;
    gap: 14px;
    align-items: end;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.toolbar label {
    display: grid;
    gap: 6px;
    color: #3e4a43;
    flex: 1;
}

.view-switch {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid #d7e3dd;
    border-radius: 8px;
    background: #f8fbfa;
}

.view-btn {
    min-width: 58px;
    padding: 8px 12px;
    background: transparent;
    color: #56635c;
}

.view-btn:hover,
.view-btn.active {
    background: #087a62;
    color: #ffffff;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd7d0;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: #ffffff;
}

textarea {
    resize: vertical;
}

.products-panel {
    margin-top: 14px;
}

.products-scroll {
    overflow-x: auto;
}

.product-table {
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.product-table th,
.product-table td {
    border: 0;
}

.product-table thead th {
    background: #ffffff;
    color: #8b949e;
    font-weight: 700;
    padding: 18px 12px 22px;
    font-size: 17px;
}

.sort-btn {
    appearance: none;
    background: transparent;
    color: inherit;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
}

.sort-btn:hover {
    background: transparent;
    color: #59636d;
}

.sort-arrows {
    width: 10px;
    height: 18px;
    display: inline-grid;
    gap: 2px;
}

.sort-arrows::before,
.sort-arrows::after {
    content: "";
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.sort-arrows::before {
    border-bottom: 6px solid #c8d0d7;
}

.sort-arrows::after {
    border-top: 6px solid #c8d0d7;
}

.sort-btn.active[data-dir="asc"] .sort-arrows::before {
    border-bottom-color: #59636d;
}

.sort-btn.active[data-dir="desc"] .sort-arrows::after {
    border-top-color: #59636d;
}

.product-row {
    background: #f1faed;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.product-row td {
    color: #5d666e;
    font-size: 17px;
    line-height: 1.7;
    padding: 20px 12px;
    border-bottom: 2px solid #ffffff;
    vertical-align: middle;
}

.product-row:nth-child(even) {
    background: #eef8ea;
}

.product-row.product-available td,
.product-row.product-unlimited td {
    border-top: 2px solid rgba(8, 122, 98, 0.58);
    border-bottom: 2px solid rgba(8, 122, 98, 0.58);
    animation: available-row-glow 1.8s ease-in-out infinite;
}

.product-row.product-available td:first-child,
.product-row.product-unlimited td:first-child {
    border-left: 2px solid rgba(8, 122, 98, 0.58);
    border-radius: 8px 0 0 8px;
}

.product-row.product-available td:last-child,
.product-row.product-unlimited td:last-child {
    border-right: 2px solid rgba(8, 122, 98, 0.58);
    border-radius: 0 8px 8px 0;
}

.empty-row td {
    padding: 20px;
    color: #5b6861;
    background: #ffffff;
    border: 1px dashed #b7c6bd;
    border-radius: 8px;
}

.title-cell {
    min-width: 220px;
    max-width: 300px;
}

.product-title {
    color: #58616a;
    font-weight: 700;
    text-decoration: none;
}

.product-title:hover {
    color: #087a62;
}

.hot-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 8px;
    background: #ee627a;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.restock-badge,
.focus-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

.restock-badge {
    background: #f3b84b;
    color: #2a2112;
}

.focus-badge {
    background: #dce9ff;
    color: #315c9a;
}

.is-restocked {
    position: relative;
}

.product-row.is-restocked td:first-child {
    box-shadow: inset 4px 0 0 #f3b84b;
}

.product-row.is-updated td,
.product-card.is-updated {
    animation: stock-flash 2.8s ease-out;
}

@keyframes stock-flash {
    0% {
        background-color: #fff0c2;
    }
    55% {
        background-color: #e0f4ea;
    }
    100% {
        background-color: inherit;
    }
}

@keyframes available-row-glow {
    0%, 100% {
        border-color: rgba(8, 122, 98, 0.48);
        box-shadow: inset 0 0 0 0 rgba(8, 122, 98, 0);
    }
    50% {
        border-color: rgba(0, 176, 132, 0.92);
        box-shadow: inset 0 0 0 1px rgba(0, 176, 132, 0.16);
    }
}

@keyframes available-card-glow {
    0%, 100% {
        border-color: rgba(8, 122, 98, 0.56);
        box-shadow: 0 12px 28px rgba(28, 52, 42, 0.06), 0 0 0 rgba(8, 122, 98, 0);
    }
    50% {
        border-color: rgba(0, 176, 132, 0.96);
        box-shadow: 0 18px 38px rgba(28, 52, 42, 0.1), 0 0 22px rgba(0, 176, 132, 0.36);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-row.product-available td,
    .product-row.product-unlimited td,
    .product-card.product-available,
    .product-card.product-unlimited {
        animation: none;
    }
}

.row-sub {
    margin: 4px 0 0;
    color: #7b858d;
    font-size: 13px;
}

.price-cell {
    min-width: 132px;
    white-space: nowrap;
}

.promo-cell {
    min-width: 120px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    padding: 2px 8px;
    background: #e7eef5;
    color: #59636d;
    font-size: 13px;
}

.status-chip.available,
.status-chip.unlimited {
    background: #dff4e8;
    color: #087a62;
}

.status-chip.sold_out {
    background: #e8edf1;
    color: #737d86;
}

.status-chip.error {
    background: #ffe7e7;
    color: #a63f2a;
}

.table-buy {
    display: inline-flex;
    border-radius: 6px;
    padding: 4px 10px;
    background: #087a62;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.table-buy:hover {
    background: #065d4b;
}

.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.product-card {
    min-height: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(28, 52, 42, 0.06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #b8d4c8;
    box-shadow: 0 16px 34px rgba(28, 52, 42, 0.09);
}

.product-card.product-available,
.product-card.product-unlimited {
    border-color: rgba(8, 122, 98, 0.68);
    animation: available-card-glow 1.8s ease-in-out infinite;
}

.product-card.is-restocked {
    border-color: #f3b84b;
}

.card-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
}

.card-topline .restock-badge,
.card-topline .focus-badge {
    margin-left: 0;
}

.product-card h3 {
    margin: 10px 0 4px;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
}

.product-card h3 a {
    color: #27332d;
    text-decoration: none;
}

.product-card h3 a:hover {
    color: #087a62;
}

.product-card dl {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.product-card dl div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
}

.product-card dt {
    color: #7b858d;
    font-weight: 700;
}

.product-card dd {
    margin: 0;
    color: #3d4842;
    overflow-wrap: anywhere;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.card-actions strong {
    color: #087a62;
    font-size: 17px;
}

.card-promo {
    margin: 12px 0 0;
    color: #6b5b28;
}

.error-line {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.error-line {
    color: #a63f2a;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.actions span {
    text-align: right;
}

.changes {
    margin-top: 18px;
    padding: 16px;
}

.panel {
    background: #ffffff;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.form-grid,
.row-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid label,
.row-form label,
.login-box label {
    display: grid;
    gap: 6px;
    color: #3e4a43;
}

.form-grid .check,
.row-form .check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check input {
    width: auto;
}

.span-2 {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #edf1ef;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #3e4a43;
    background: #f7faf8;
}

.log-line {
    border-bottom: 1px solid #edf1ef;
    padding-bottom: 8px;
}

.result-box {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    background: #f7faf8;
}

.result-box.success {
    border-color: #b8d8c8;
    background: #f1fbf6;
}

.result-box.danger {
    border-color: #e2b0b0;
    background: #fff5f5;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-box {
    width: min(420px, 100%);
    background: #ffffff;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    padding: 22px;
    display: grid;
    gap: 14px;
}

.login-box h1 {
    margin: 0;
}

.login-animated {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(61, 229, 190, 0.34), transparent 26%),
        radial-gradient(circle at 84% 30%, rgba(73, 128, 255, 0.28), transparent 28%),
        radial-gradient(circle at 50% 110%, rgba(17, 178, 151, 0.2), transparent 34%),
        linear-gradient(135deg, #071713 0%, #0d2428 42%, #102642 100%);
}

.login-animated::before,
.login-animated::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.login-animated::before {
    width: 58vw;
    max-width: 760px;
    height: 58vw;
    max-height: 760px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(71, 236, 198, 0.22) 0, rgba(71, 236, 198, 0.1) 26%, rgba(95, 150, 255, 0.04) 38%, transparent 58%);
    filter: blur(3px);
    animation: pulse-halo 6s ease-in-out infinite;
}

.login-animated::after {
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 35%, rgba(78, 245, 204, 0.32) 48%, rgba(95, 155, 255, 0.24) 55%, transparent 70%);
    transform: translateX(-115%);
    animation: sweep-screen 9s linear infinite;
}

.login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(97, 244, 207, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 244, 207, 0.12) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent 88%);
    pointer-events: none;
    animation: grid-drift 18s linear infinite;
}

.login-grid::before,
.login-grid::after {
    content: "";
    position: absolute;
    inset: 0;
}

.login-grid::before {
    background:
        linear-gradient(180deg, transparent 0%, rgba(69, 245, 203, 0.32) 48%, rgba(69, 245, 203, 0.02) 100%);
    height: 24%;
    top: -26%;
    animation: scanline-drop 5.5s ease-in-out infinite;
}

.login-grid::after {
    background-image: radial-gradient(rgba(103, 245, 211, 0.38) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.18;
    animation: twinkle-grid 10s linear infinite;
}

.login-rings {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(70vw, 820px);
    height: min(70vw, 820px);
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(98, 245, 211, 0.18);
    box-shadow:
        0 0 0 48px rgba(98, 245, 211, 0.055),
        0 0 0 96px rgba(80, 138, 255, 0.04),
        0 0 0 152px rgba(98, 245, 211, 0.025),
        inset 0 0 36px rgba(98, 245, 211, 0.08);
    opacity: 0.9;
    animation: rotate-rings 24s linear infinite;
    pointer-events: none;
}

.login-beam {
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(78vw, 900px);
    height: 180px;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: linear-gradient(90deg, transparent 0%, rgba(76, 241, 204, 0.16) 22%, rgba(92, 144, 255, 0.28) 50%, rgba(76, 241, 204, 0.16) 78%, transparent 100%);
    filter: blur(20px);
    opacity: 0.65;
    animation: beam-pulse 7s ease-in-out infinite;
    pointer-events: none;
}

.login-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.92;
    animation: float-orb 8s ease-in-out infinite;
    pointer-events: none;
}

.login-bg-orb-a {
    width: 320px;
    height: 320px;
    left: -70px;
    top: -40px;
    background: rgba(73, 236, 197, 0.38);
}

.login-bg-orb-b {
    width: 360px;
    height: 360px;
    right: -80px;
    bottom: -90px;
    background: rgba(90, 136, 255, 0.34);
    animation-delay: -3s;
}

.login-page .login-box {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 253, 251, 0.9) 100%);
    box-shadow:
        0 34px 80px rgba(0, 8, 20, 0.38),
        0 0 42px rgba(69, 245, 203, 0.18),
        0 0 0 1px rgba(110, 215, 186, 0.16);
    backdrop-filter: blur(14px);
}

.login-page .login-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(72, 245, 204, 0.68), rgba(94, 147, 255, 0.16), rgba(72, 245, 204, 0.38));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-page .login-box::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(58, 229, 190, 0.82) 0 34px, transparent 34px calc(100% - 34px), rgba(58, 229, 190, 0.82) calc(100% - 34px) 100%) top / 100% 1px no-repeat,
        linear-gradient(90deg, rgba(58, 229, 190, 0.82) 0 22px, transparent 22px calc(100% - 22px), rgba(58, 229, 190, 0.82) calc(100% - 22px) 100%) bottom / 100% 1px no-repeat,
        linear-gradient(180deg, rgba(58, 229, 190, 0.82) 0 34px, transparent 34px calc(100% - 34px), rgba(58, 229, 190, 0.82) calc(100% - 34px) 100%) left / 1px 100% no-repeat,
        linear-gradient(180deg, rgba(58, 229, 190, 0.82) 0 22px, transparent 22px calc(100% - 22px), rgba(58, 229, 190, 0.82) calc(100% - 22px) 100%) right / 1px 100% no-repeat;
    opacity: 0.54;
    pointer-events: none;
}

.login-circuit {
    position: absolute;
    width: min(28vw, 320px);
    height: min(48vh, 420px);
    border: 1px solid rgba(91, 236, 202, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(91, 236, 202, 0.28) 0 1px, transparent 1px 100%) 0 0 / 42px 42px,
        linear-gradient(rgba(91, 236, 202, 0.18) 0 1px, transparent 1px 100%) 0 0 / 42px 42px,
        linear-gradient(135deg, rgba(91, 236, 202, 0.08), rgba(80, 137, 255, 0.04));
    box-shadow: inset 0 0 34px rgba(91, 236, 202, 0.08), 0 0 34px rgba(91, 236, 202, 0.06);
    opacity: 0.78;
    pointer-events: none;
}

.login-circuit::before,
.login-circuit::after {
    content: "";
    position: absolute;
    background: rgba(91, 236, 202, 0.72);
    box-shadow: 0 0 14px rgba(91, 236, 202, 0.7);
}

.login-circuit::before {
    width: 62%;
    height: 2px;
    left: 20%;
    top: 30%;
    animation: circuit-flow-x 4.2s ease-in-out infinite;
}

.login-circuit::after {
    width: 2px;
    height: 56%;
    left: 68%;
    top: 18%;
    animation: circuit-flow-y 5s ease-in-out infinite;
}

.login-circuit-left {
    left: 7vw;
    top: 20vh;
    transform: rotate(-6deg);
}

.login-circuit-right {
    right: 7vw;
    top: 18vh;
    transform: rotate(6deg);
}

.login-data-stream {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7vh;
    z-index: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
    color: rgba(159, 255, 231, 0.58);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    pointer-events: none;
    animation: data-stream-float 7s ease-in-out infinite;
}

.login-data-stream span {
    padding: 7px 10px;
    border: 1px solid rgba(91, 236, 202, 0.24);
    border-radius: 6px;
    background: rgba(3, 19, 25, 0.28);
    box-shadow: 0 0 16px rgba(91, 236, 202, 0.07);
}

.login-page .sidebar-kicker {
    color: #087a62;
}

.login-page button {
    background: linear-gradient(135deg, #07876d, #286eea);
    box-shadow: 0 12px 24px rgba(28, 110, 234, 0.18), 0 0 18px rgba(58, 229, 190, 0.12);
}

.login-page button:hover {
    background: linear-gradient(135deg, #066f59, #205bc1);
}

.captcha-field {
    gap: 10px;
}

.captcha-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.captcha-image {
    width: 220px;
    max-width: 100%;
    height: 64px;
    display: block;
    border: 1px solid #d8e3de;
    border-radius: 8px;
    background: #f4fbf8;
}

.install-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(99, 194, 167, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(90, 136, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #f5faf8 0%, #edf4f1 100%);
}

.install-shell {
    min-height: 100vh;
    max-width: 1220px;
    margin: 0 auto;
    padding: 34px 20px;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.install-hero,
.install-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(24, 44, 37, 0.08);
    backdrop-filter: blur(8px);
}

.install-hero {
    padding: 28px;
}

.install-panel {
    padding: 24px;
}

.install-kicker {
    margin: 0 0 10px;
    color: #087a62;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.install-hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
}

.install-hero p {
    margin: 0;
    color: #4f5c55;
}

.install-points {
    margin: 18px 0 0;
    padding-left: 18px;
    color: #304039;
}

.install-points li + li {
    margin-top: 8px;
}

.install-form h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -14px, 0) scale(1.04);
    }
}

@keyframes grid-drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(34px, 34px, 0);
    }
}

@keyframes scanline-drop {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 0.95;
    }
    100% {
        transform: translateY(520%);
        opacity: 0;
    }
}

@keyframes twinkle-grid {
    0%,
    100% {
        opacity: 0.12;
    }
    50% {
        opacity: 0.24;
    }
}

@keyframes rotate-rings {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes beam-pulse {
    0%,
    100% {
        opacity: 0.42;
        transform: translate(-50%, -50%) rotate(-10deg) scaleX(0.92);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(-8deg) scaleX(1.04);
    }
}

@keyframes pulse-halo {
    0%,
    100% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(0.96);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

@keyframes sweep-screen {
    0% {
        transform: translateX(-115%);
    }
    100% {
        transform: translateX(115%);
    }
}

@keyframes circuit-flow-x {
    0%, 100% {
        transform: translateX(-18px);
        opacity: 0.25;
    }
    50% {
        transform: translateX(26px);
        opacity: 0.95;
    }
}

@keyframes circuit-flow-y {
    0%, 100% {
        transform: translateY(22px);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.85;
    }
}

@keyframes data-stream-float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.62;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.92;
    }
}

@media (max-width: 900px) {
    .install-shell {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-image {
        width: 100%;
        height: auto;
    }
}

.changes h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.changes p {
    margin: 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf1ef;
}

.changes p:last-child {
    border-bottom: 0;
}

.changes span {
    color: #5b6861;
}

.empty,
.empty-line {
    grid-column: 1 / -1;
    padding: 18px;
    background: #ffffff;
    border: 1px dashed #b7c6bd;
    border-radius: 8px;
}

code {
    background: #edf1ef;
    border-radius: 4px;
    padding: 2px 5px;
}

pre {
    overflow-x: auto;
    margin: 10px 0;
    padding: 12px;
    background: #f7faf8;
    border: 1px solid #e4ece7;
    border-radius: 6px;
}

pre code {
    background: transparent;
    padding: 0;
}

body.theme-dark {
    background: #111513;
    color: #edf4ef;
}

body.theme-dark a {
    color: #64d3b0;
}

body.theme-dark .topbar,
body.theme-dark .metric,
body.theme-dark .run-info,
body.theme-dark .toolbar,
body.theme-dark .changes,
body.theme-dark .panel,
body.theme-dark .admin-sidebar-card,
body.theme-dark .admin-content,
body.theme-dark .login-box,
body.theme-dark .empty,
body.theme-dark .result-box,
body.theme-dark .product-card,
body.theme-dark .view-switch {
    background: #191f1c;
    border-color: #303a34;
}

body.theme-dark .brand p,
body.theme-dark .sub,
body.theme-dark .refresh,
body.theme-dark .actions span,
body.theme-dark .sidebar-kicker,
body.theme-dark .page-lead,
body.theme-dark .metric span,
body.theme-dark .run-info span,
body.theme-dark .changes span,
body.theme-dark .row-sub,
body.theme-dark .form-grid label,
body.theme-dark .row-form label,
body.theme-dark .login-box label,
body.theme-dark .toolbar label {
    color: #a9b8af;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    background: #111513;
    color: #edf4ef;
    border-color: #3c4a43;
}

body.theme-dark th,
body.theme-dark pre,
body.theme-dark code {
    background: #141a17;
    border-color: #303a34;
}

body.theme-dark td,
body.theme-dark th,
body.theme-dark .changes p,
body.theme-dark .log-line {
    border-color: #303a34;
}

body.theme-dark .pill {
    background: #12342c;
    border-color: #255c4e;
    color: #8de8c8;
}

body.theme-dark .product-table thead th {
    background: #111513;
    color: #a9b8af;
}

body.theme-dark .product-row {
    background: #1d2821;
}

body.theme-dark .product-row:nth-child(even) {
    background: #19231d;
}

body.theme-dark .product-row td {
    color: #d9e4dd;
    border-bottom-color: #111513;
}

body.theme-dark .product-title {
    color: #edf4ef;
}

body.theme-dark .product-card h3 a {
    color: #edf4ef;
}

body.theme-dark .product-card dd {
    color: #d9e4dd;
}

body.theme-dark .product-card:hover {
    border-color: #3f6354;
}

body.theme-dark .product-card.product-available,
body.theme-dark .product-card.product-unlimited {
    border-color: rgba(100, 211, 176, 0.74);
}

body.theme-dark .product-row.product-available td,
body.theme-dark .product-row.product-unlimited td {
    border-top-color: rgba(100, 211, 176, 0.68);
    border-bottom-color: rgba(100, 211, 176, 0.68);
}

body.theme-dark .product-row.product-available td:first-child,
body.theme-dark .product-row.product-unlimited td:first-child {
    border-left-color: rgba(100, 211, 176, 0.68);
}

body.theme-dark .product-row.product-available td:last-child,
body.theme-dark .product-row.product-unlimited td:last-child {
    border-right-color: rgba(100, 211, 176, 0.68);
}

body.theme-dark .view-btn {
    color: #a9b8af;
}

body.theme-dark .admin-nav-link {
    background: #141a17;
    border-color: #303a34;
    color: #edf4ef;
}

body.theme-dark .admin-nav-link span {
    color: #a9b8af;
}

body.theme-dark .admin-nav-link.active {
    background: #173228;
    border-color: #2f684c;
}

body.theme-dark .channel-events strong,
body.theme-dark .channel-hint span {
    color: #a9b8af;
}

body.theme-dark .channel-hint {
    background: #141a17;
    border-color: #303a34;
}

body.theme-dark .channel-type-tip {
    background: #141a17;
    border-color: #3b4740;
}

body.theme-dark .admin-content {
    background: transparent;
    border: 0;
}

body.theme-dark .status-chip {
    background: #29323b;
    color: #cbd5dd;
}

body.theme-dark .empty-row td {
    background: #191f1c;
    color: #a9b8af;
    border-color: #303a34;
}

body.theme-dark .notice {
    background: #2c1717;
    border-color: #6a3434;
}

body.theme-dark .notice.info {
    background: #162231;
    border-color: #34506d;
}

body.theme-dark .notice.success,
body.theme-dark .result-box.success {
    background: #14281e;
    border-color: #2f684c;
}

body.theme-dark .result-box.danger {
    background: #2c1717;
    border-color: #6a3434;
}

@media (prefers-color-scheme: dark) {
    body.theme-auto {
        background: #111513;
        color: #edf4ef;
    }

    body.theme-auto a {
        color: #64d3b0;
    }

    body.theme-auto .topbar,
    body.theme-auto .metric,
    body.theme-auto .run-info,
    body.theme-auto .toolbar,
    body.theme-auto .changes,
    body.theme-auto .panel,
    body.theme-auto .admin-sidebar-card,
    body.theme-auto .admin-content,
    body.theme-auto .login-box,
    body.theme-auto .empty,
    body.theme-auto .result-box,
    body.theme-auto .product-card,
    body.theme-auto .view-switch {
        background: #191f1c;
        border-color: #303a34;
    }

    body.theme-auto .brand p,
    body.theme-auto .sub,
    body.theme-auto .refresh,
    body.theme-auto .actions span,
    body.theme-auto .sidebar-kicker,
    body.theme-auto .page-lead,
    body.theme-auto .metric span,
    body.theme-auto .run-info span,
    body.theme-auto .changes span,
    body.theme-auto .row-sub,
    body.theme-auto .form-grid label,
    body.theme-auto .row-form label,
    body.theme-auto .login-box label,
    body.theme-auto .toolbar label {
        color: #a9b8af;
    }

    body.theme-auto input,
    body.theme-auto select,
    body.theme-auto textarea {
        background: #111513;
        color: #edf4ef;
        border-color: #3c4a43;
    }

    body.theme-auto th,
    body.theme-auto pre,
    body.theme-auto code {
        background: #141a17;
        border-color: #303a34;
    }

    body.theme-auto td,
    body.theme-auto th,
    body.theme-auto .changes p,
    body.theme-auto .log-line {
        border-color: #303a34;
    }

    body.theme-auto .pill {
        background: #12342c;
        border-color: #255c4e;
        color: #8de8c8;
    }

    body.theme-auto .product-table thead th {
        background: #111513;
        color: #a9b8af;
    }

    body.theme-auto .product-row {
        background: #1d2821;
    }

    body.theme-auto .product-row:nth-child(even) {
        background: #19231d;
    }

    body.theme-auto .product-row td {
        color: #d9e4dd;
        border-bottom-color: #111513;
    }

    body.theme-auto .product-title {
        color: #edf4ef;
    }

    body.theme-auto .product-card h3 a {
        color: #edf4ef;
    }

    body.theme-auto .product-card dd {
        color: #d9e4dd;
    }

    body.theme-auto .product-card:hover {
        border-color: #3f6354;
    }

    body.theme-auto .product-card.product-available,
    body.theme-auto .product-card.product-unlimited {
        border-color: rgba(100, 211, 176, 0.74);
    }

    body.theme-auto .product-row.product-available td,
    body.theme-auto .product-row.product-unlimited td {
        border-top-color: rgba(100, 211, 176, 0.68);
        border-bottom-color: rgba(100, 211, 176, 0.68);
    }

    body.theme-auto .product-row.product-available td:first-child,
    body.theme-auto .product-row.product-unlimited td:first-child {
        border-left-color: rgba(100, 211, 176, 0.68);
    }

    body.theme-auto .product-row.product-available td:last-child,
    body.theme-auto .product-row.product-unlimited td:last-child {
        border-right-color: rgba(100, 211, 176, 0.68);
    }

    body.theme-auto .view-btn {
        color: #a9b8af;
    }

    body.theme-auto .admin-nav-link {
        background: #141a17;
        border-color: #303a34;
        color: #edf4ef;
    }

    body.theme-auto .admin-nav-link span {
        color: #a9b8af;
    }

    body.theme-auto .admin-nav-link.active {
        background: #173228;
        border-color: #2f684c;
    }

    body.theme-auto .channel-events strong,
    body.theme-auto .channel-hint span {
        color: #a9b8af;
    }

    body.theme-auto .channel-hint {
        background: #141a17;
        border-color: #303a34;
    }

    body.theme-auto .channel-type-tip {
        background: #141a17;
        border-color: #3b4740;
    }

    body.theme-auto .admin-content {
        background: transparent;
        border: 0;
    }

    body.theme-auto .status-chip {
        background: #29323b;
        color: #cbd5dd;
    }

    body.theme-auto .empty-row td {
        background: #191f1c;
        color: #a9b8af;
        border-color: #303a34;
    }

    body.theme-auto .notice {
        background: #2c1717;
        border-color: #6a3434;
    }

    body.theme-auto .notice.info {
        background: #162231;
        border-color: #34506d;
    }

    body.theme-auto .notice.success,
    body.theme-auto .result-box.success {
        background: #14281e;
        border-color: #2f684c;
    }

    body.theme-auto .result-box.danger {
        background: #2c1717;
        border-color: #6a3434;
    }
}

@media (max-width: 900px) {
    .topbar-inner,
    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .refresh {
        justify-content: flex-start;
    }

    .summary,
    .run-info {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .view-switch {
        width: 100%;
    }

    .view-btn {
        flex: 1;
    }

    .form-grid,
    .row-form {
        grid-template-columns: 1fr;
    }

    .actions span {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .layout {
        padding: 16px 12px 28px;
    }

    .topbar-inner {
        padding: 16px 12px;
    }

    .admin-content,
    .admin-sidebar-card {
        padding: 14px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand h1 {
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    .refresh button,
    .refresh .buy {
        width: 100%;
        text-align: center;
    }

    .metric strong {
        font-size: 24px;
    }

    .run-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-scroll {
        border: 1px solid #dfe7e2;
        border-radius: 8px;
        background: #ffffff;
    }

    .product-table {
        min-width: 920px;
    }

    .product-row td {
        font-size: 15px;
        padding: 14px 10px;
    }

    .product-card-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 14px;
    }
}
