:root {
    --bg: #f4f6f9;
    --panel: #ffffff;
    --border: #dce5f0;
    --text: #0f1f35;
    --muted: #66758d;
    --brand: #df6c1f;
    --brand-dark: #bd5515;
    --dark: #0e1c35;
    --success: #51b457;
    --danger: #d9534f;
    --primary: #3169b9;
    --app-container: 1320px;
    --app-sidebar: 240px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-body {
    background:
        linear-gradient(180deg, #f7faff 0%, #f2f6fb 46%, #f7faff 100%);
}

.app-shell {
    display: flex;
    width: min(100%, var(--app-container));
    min-height: 100vh;
    margin: 0 auto;
    background: #f7faff;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.sidebar {
    width: var(--app-sidebar);
    flex: 0 0 var(--app-sidebar);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 22px 18px;
    box-shadow: 10px 0 30px rgba(14, 28, 53, .04);
}

.sidebar-close,
.sidebar-overlay {
    display: none;
}

.sidebar-brand,
.brand {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 25px;
    font-weight: 950;
    letter-spacing: 0;
}

.sidebar-brand span,
.brand span {
    color: var(--brand);
}

.balance-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.balance-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.balance-add {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.balance-box span,
.muted,
.stat-card span,
.key-value-grid span {
    color: var(--muted);
}

.sidebar-nav {
    display: grid;
    gap: 3px;
}

.sidebar-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: #35445b;
    font-weight: 700;
}

.sidebar-nav a:hover {
    color: var(--brand-dark);
    background: #fff2e8;
}

.nav-label {
    padding: 16px 14px 5px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.main-shell {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
}

.topbar-title-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef2f7;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    vertical-align: middle;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-balance {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px 5px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-weight: 900;
}

.topbar-balance b {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.topbar-icon-action {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}

.topbar-icon-action:hover,
.topbar-balance:hover {
    border-color: rgba(49, 108, 190, .45);
    color: var(--primary);
}

.topbar-ticket-action.has-updates {
    border-color: rgba(217, 83, 79, .45);
}

.topbar-ticket-action b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.topbar-svg-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
    cursor: pointer;
}

.content {
    padding: 24px 22px 38px;
}

.content-inner {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    font-size: 30px;
    line-height: 1.1;
}

h2 {
    margin-bottom: 16px;
    font-size: 21px;
    line-height: 1.2;
}

.page-actions,
.toolbar,
.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-actions-top {
    justify-content: flex-end;
    margin-bottom: 20px;
}

.toolbar {
    margin-bottom: 18px;
}

.proxies-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.proxy-tools-left,
.proxy-tools-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.count-badge {
    min-width: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #a7adb5;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.proxy-export-panel,
.proxy-notebook-panel,
.proxy-filters-panel,
.proxy-renew-panel,
.proxy-auto-renew-panel {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(14, 28, 53, .08);
}

.proxy-export-panel {
    position: absolute;
    top: 58px;
    left: 0;
    z-index: 40;
    width: min(360px, 100%);
    max-width: 360px;
}

.proxy-filters-panel {
    position: absolute;
    top: 58px;
    left: 0;
    z-index: 40;
    width: min(320px, 100%);
    max-width: 320px;
}

.proxy-renew-panel,
.proxy-auto-renew-panel {
    position: absolute;
    top: 58px;
    left: 0;
    z-index: 40;
    width: min(300px, 100%);
    max-width: 300px;
}

.proxy-notebook-panel {
    position: absolute;
    top: 58px;
    left: 0;
    z-index: 40;
    width: min(520px, 100%);
    max-width: 520px;
}

.proxy-export-form,
.proxy-renew-form,
.proxy-auto-renew-form {
    display: grid;
    gap: 10px;
}

.proxy-filter-form {
    display: grid;
    gap: 10px;
}

.proxy-export-form .btn,
.proxy-filter-form .btn {
    width: 100%;
}

.proxy-renew-row,
.proxy-auto-renew-row {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.proxy-auto-renew-row {
    grid-template-columns: 22px minmax(0, 1fr);
}

.proxy-renew-row:hover,
.proxy-auto-renew-row:hover {
    background: #eef5ff;
}

.proxy-renew-row strong {
    font-weight: 900;
    white-space: nowrap;
}

.proxy-filter-toggle {
    width: 42px;
    padding: 0;
}

.filter-icon {
    position: relative;
    width: 18px;
    height: 16px;
    display: block;
}

.filter-icon::before,
.filter-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

.filter-icon::after {
    width: 4px;
    height: 4px;
    left: 4px;
    top: -1px;
    border-radius: 50%;
    box-shadow: 8px 7px 0 currentColor, 2px 14px 0 currentColor;
}

.proxy-tool-chevron span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.proxy-tool-chevron.is-active span::before {
    transform: rotate(225deg) translateY(-1px);
}

.proxy-notebook-textarea {
    width: 100%;
    height: 100px;
    min-height: 100px;
    resize: vertical;
}

.proxy-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.proxy-list-header {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 170px 250px 38px;
    gap: 12px;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid var(--border);
    background: #f7f9fc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.proxy-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 170px 250px 38px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.proxy-select-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

.proxy-select-cell input {
    width: 17px;
    height: 17px;
    min-height: 0;
    padding: 0;
}

.proxy-bulk-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 0;
}

.proxy-bulk-panel form {
    margin: 0;
}

.proxy-page-list {
    margin-top: 10px;
}

.proxy-page-list span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.proxy-page-list textarea {
    width: 100%;
    min-height: 210px;
    font-family: Consolas, "Courier New", monospace;
    resize: vertical;
}

.proxy-card:last-child {
    border-bottom: 0;
}

.proxy-card-main {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    align-items: center;
}

.proxy-country {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px 7px;
    align-items: center;
    min-width: 0;
}

.proxy-country img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(14, 28, 53, .12);
}

.proxy-country strong {
    grid-column: 1 / -1;
    width: max-content;
    max-width: 100%;
    padding: 2px 7px;
    overflow: hidden;
    border-radius: 5px;
    background: #2f3a4a;
    color: #fff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proxy-data,
.proxy-comment,
.proxy-end {
    min-width: 0;
}

.proxy-value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.proxy-value-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 34px;
    gap: 7px;
    align-items: center;
    min-width: 0;
}

.proxy-value-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.proxy-value-item code {
    display: block;
    min-width: 0;
    min-height: 30px;
    padding: 5px 9px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8fafc;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-chip {
    width: 34px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.copy-chip .sr-only {
    display: none;
}

.copy-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: block;
    flex: 0 0 14px;
}

.copy-icon::before,
.copy-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.copy-icon::before {
    left: 0;
    top: 4px;
}

.copy-icon::after {
    left: 4px;
    top: 0;
    background: #fff;
}

.copy-chip:hover {
    color: var(--primary);
    border-color: rgba(49, 108, 190, .35);
}

.copy-chip.is-copied,
.icon-action.is-copied {
    border-color: var(--success);
    color: var(--success);
}

.copy-chip.is-copy-error,
.icon-action.is-copy-error {
    border-color: var(--danger);
    color: var(--danger);
}

.proxy-type-item {
    grid-template-columns: 54px minmax(0, 1fr);
}

.proxy-type-text {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.proxy-end {
    display: grid;
    gap: 4px;
    align-content: center;
    min-height: 50px;
}

.proxy-end span,
.proxy-comment label > span {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.proxy-end strong {
    font-size: 14px;
    white-space: nowrap;
}

.proxy-end small {
    color: #2d953c;
    font-weight: 800;
}

.proxy-comment textarea {
    height: 50px;
    min-height: 50px;
    padding: 6px 9px;
    resize: vertical;
}

.proxy-comment label {
    display: block;
}

.proxy-card-actions {
    display: grid;
    gap: 5px;
    align-content: center;
    justify-items: stretch;
}

.proxy-card-actions form {
    margin: 0;
}

.icon-action {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.icon-action .copy-icon {
    margin: 0;
}

.icon-action:hover {
    border-color: rgba(49, 108, 190, .45);
    color: var(--primary);
}

.icon-action-danger {
    border-color: rgba(217, 83, 79, .35);
    color: var(--danger);
}

.icon-eye.is-ok {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.icon-eye.is-offline {
    border-color: var(--danger);
    background: #fff5f5;
    color: var(--danger);
}

.icon-eye::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 11px;
    display: block;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.icon-eye::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.icon-eye.is-ok::before {
    width: 9px;
    height: 16px;
    border-top: 0;
    border-left: 0;
    border-radius: 0;
    transform: translate(-50%, -58%) rotate(45deg);
}

.icon-eye.is-ok::after {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.proxy-check-status {
    min-height: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    white-space: normal;
}

.proxy-note-status {
    display: block;
    min-height: 18px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8fafc;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.btn-success {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.btn-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.btn-outline {
    background: #fff;
}

.btn-sm {
    min-height: 30px;
    padding: 4px 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 7px;
    margin-bottom: 18px;
}

.stat-card,
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(14, 28, 53, .045);
}

.stat-card {
    padding: 11px 12px 12px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
}

.panel {
    padding: 11px 12px 12px;
    margin-bottom: 18px;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-title-row h2 {
    margin-bottom: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, .34);
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(460px, 100vw);
    height: 100vh;
    padding: 24px;
    overflow-y: auto;
    background: var(--panel);
    box-shadow: -16px 0 36px rgba(15, 23, 42, .18);
    transform: translateX(100%);
    transition: transform .2s ease;
}

.side-drawer.is-open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.drawer-close {
    display: inline-flex;
    font-size: 24px;
    line-height: 1;
}

.inline-slide-panel {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .18s ease, opacity .18s ease, transform .18s ease, padding .18s ease;
}

.inline-slide-panel[hidden] {
    display: none;
}

.inline-slide-panel.is-open {
    max-height: none;
    padding-top: 22px;
    padding-bottom: 22px;
    opacity: 1;
    transform: translateY(0);
}

.inline-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.inline-panel-head h2 {
    margin-bottom: 0;
}

.ticket-create-panel {
    border-color: #c7daf3;
    background: #ffffff;
}

.ticket-create-inside {
    width: 100%;
    margin-bottom: 18px;
    border: 1px solid #c7daf3;
    border-radius: 8px;
}

.ticket-create-inside.is-open {
    padding-left: 18px;
    padding-right: 18px;
}

.ticket-create-form {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ticket-create-form textarea {
    min-height: 190px;
    resize: vertical;
}

.ticket-create-form .btn {
    width: 100%;
}

.admin-faq-create.is-open {
    max-height: 560px;
}

.admin-faq-create-inside {
    margin-bottom: 18px;
    border: 1px solid #c7daf3;
    border-radius: 8px;
}

.admin-faq-create-inside.is-open {
    padding-left: 18px;
    padding-right: 18px;
}

.admin-faq-form {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 120px 190px auto;
    align-items: end;
    gap: 14px;
}

.admin-faq-answer {
    grid-column: 1 / -1;
}

.admin-faq-form textarea {
    min-height: 96px;
}

.admin-faq-list {
    display: grid;
    gap: 14px;
}

.admin-faq-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfdff;
}

.admin-faq-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.admin-faq-body {
    min-width: 0;
}

.admin-faq-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.admin-faq-body p {
    margin: 0;
    color: #3b4a62;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.admin-faq-edit {
    margin-top: 14px;
}

.admin-faq-edit summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.admin-faq-edit summary::-webkit-details-marker {
    display: none;
}

.admin-faq-edit summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.admin-faq-edit[open] summary::after {
    transform: rotate(225deg);
}

.admin-faq-edit-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.admin-faq-edit-row {
    display: grid;
    grid-template-columns: 120px minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-user-list {
    display: grid;
    gap: 12px;
}

.admin-user-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfdff;
    overflow: hidden;
}

.admin-user-card summary {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto 120px 18px;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.admin-user-card summary::-webkit-details-marker {
    display: none;
}

.admin-user-card summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.admin-user-card[open] summary::after {
    transform: rotate(225deg);
}

.admin-user-id,
.admin-user-balance {
    color: var(--muted);
    font-weight: 800;
}

.admin-user-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-user-main strong,
.admin-user-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-main small {
    color: var(--muted);
}

.admin-user-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.admin-user-active,
.admin-user-actions {
    align-self: end;
    min-height: 38px;
}

.admin-user-active {
    grid-column: 1 / 3;
}

.admin-user-actions {
    display: flex;
    grid-column: 3;
    justify-content: flex-end;
}

.empty-state {
    padding: 22px;
    text-align: center;
    color: #986c2d;
    background: #fff8e5;
    border: 1px solid #f0dfad;
    border-radius: 8px;
}

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

.mail-error-cell {
    max-width: 360px;
    white-space: normal;
    word-break: break-word;
}

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

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 13px;
}

code {
    padding: 3px 6px;
    border-radius: 4px;
    background: #eef2f7;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2f7;
    font-weight: 700;
    font-size: 12px;
}

.form-stack,
.form-grid {
    display: grid;
    gap: 14px;
}

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

.topup-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.topup-fields label {
    min-width: 0;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-actions form {
    margin: 0;
}

.history-tabs {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f5f8fc;
}

.history-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.history-select-controls {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    width: auto;
}

.history-select-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.history-select-controls label span {
    margin: 0;
    white-space: nowrap;
}

.history-select-controls select {
    width: 92px;
    min-width: 0;
    min-height: 34px;
    padding: 5px 28px 5px 9px;
}

.payments-history-panel .panel-title-row {
    align-items: center;
}

.history-select-controls label:first-child select {
    width: 126px;
}

.history-tabs a {
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 800;
}

.history-tabs a.active {
    background: var(--primary);
    color: #fff;
}

.per-page-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.per-page-tabs a {
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 800;
}

.per-page-tabs a.active {
    background: var(--primary);
    color: #fff;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.pagination a,
.pagination span {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--muted);
    font-weight: 800;
}

.pagination a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.password-form {
    width: 100%;
}

label span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    min-height: 38px;
    padding: 8px 11px;
    background: #fff;
    color: var(--text);
    line-height: 1.35;
}

textarea {
    resize: vertical;
}

.switch-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-line input {
    width: auto;
}

.switch-line span {
    margin: 0;
}

.key-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 7px;
}

.px6-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.finance-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-period-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-dashboard-period-form label {
    display: grid;
    gap: 6px;
}

.admin-dashboard-period-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-dashboard-period-form input {
    width: 160px;
}

.admin-dashboard-period-form .is-active {
    border-color: var(--primary);
    color: var(--primary);
}

.key-value-grid div {
    padding: 11px 12px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.key-value-grid strong {
    display: block;
    margin-top: 6px;
}

.finance-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.admin-filter-form {
    display: grid;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-users-filter-form {
    grid-template-columns: minmax(220px, 1fr) 130px auto;
}

.admin-orders-filter-form {
    grid-template-columns: 150px 150px minmax(220px, 1fr) 180px 130px auto;
}

.finance-user-link {
    color: var(--primary);
    font-weight: 700;
}

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

.finance-per-page-form label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.finance-per-page-form label span {
    margin: 0;
    white-space: nowrap;
}

.finance-per-page-form select {
    width: auto;
    min-width: 82px;
}

.finance-comment-cell {
    max-width: 320px;
    white-space: normal;
    word-break: break-word;
}

.money-positive {
    color: var(--success);
    font-weight: 800;
}

.money-negative {
    color: var(--danger);
    font-weight: 800;
}

.icon-refresh::before,
.icon-refresh::after {
    content: "";
    position: absolute;
    display: block;
}

.icon-refresh::before {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

.icon-refresh::after {
    width: 0;
    height: 0;
    right: 7px;
    top: 7px;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: rotate(35deg);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.alert-danger,
.alert-error {
    background: #fff0f0;
    border-color: #f0b8b8;
    color: #9b2c2c;
}

.alert-success {
    background: #eefaf0;
    border-color: #bce5c0;
    color: #236b2b;
}

.guest-body {
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.guest-body-2026 {
    place-items: start center;
    padding-top: clamp(40px, 12vh, 120px);
}

.auth-shell {
    width: min(440px, 100%);
}

.auth-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--panel);
}

.auth-card h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

.auth-link {
    margin-top: 18px;
}

.auth-link a {
    color: var(--brand-dark);
    font-weight: 700;
}

.rules-agree {
    align-items: center;
    flex-wrap: nowrap;
    line-height: 1.35;
    margin: -8px 0;
}

.rules-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    flex: 0 0 18px;
    margin: 0;
}

.rules-agree span {
    display: inline;
    white-space: nowrap;
}

.rules-agree a {
    color: var(--brand-dark);
    font-weight: 800;
}

.sticky-actions {
    position: static;
    padding: 2px 0 0;
    background: transparent;
}

.settings-form {
    display: grid;
    gap: 16px;
}

.settings-form .settings-card {
    margin: 0;
    padding: 11px 12px 12px;
    border-color: #d9e3ef;
    box-shadow: 0 12px 28px rgba(14, 28, 53, .045);
}

.settings-card h2 {
    margin: 0 0 9px;
    font-size: 22px;
    line-height: 1.2;
}

.settings-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 9px;
}

.settings-card-title h2 {
    margin: 0;
}

.settings-card-title small {
    color: var(--muted);
    font-weight: 700;
}

.settings-card-body {
    display: grid;
    gap: 8px;
}

.settings-subsection {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #edf2f7;
}

.settings-subsection h3 {
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.2;
}

.settings-subsection-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

.settings-subsection-title h3 {
    margin: 0;
}

.settings-title-switch {
    min-height: 28px;
    padding-bottom: 0;
}

.settings-title-switch span {
    white-space: nowrap;
}

.settings-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.settings-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-toggle span {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 82px;
    height: 28px;
    padding: 2px;
    border: 1px solid #cfd9e6;
    border-radius: 7px;
    background: #f3f6fa;
}

.settings-toggle span::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 38px;
    height: 22px;
    border-radius: 5px;
    background: #8a98aa;
    transition: transform .16s ease, background .16s ease;
}

.settings-toggle b {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66758d;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.settings-toggle input:not(:checked) + span b:first-child,
.settings-toggle input:checked + span b:last-child {
    color: #fff;
}

.settings-toggle input:checked + span::before {
    transform: translateX(38px);
    background: var(--brand);
}

.settings-webhook {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.link-action {
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.settings-row {
    display: grid;
    gap: 12px 10px;
    align-items: end;
}

.settings-row > label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-row > label > span,
.settings-row .secret-field > span {
    min-height: 18px;
    margin: 0;
    color: #62738c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.settings-row-px6 {
    grid-template-columns: 160px minmax(220px, 1fr) minmax(380px, 1.55fr);
}

.settings-row-markups {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.settings-row-smtp {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.settings-row-telegram {
    grid-template-columns: 200px minmax(220px, .85fr) minmax(100px, .38fr) minmax(360px, 1.5fr);
    align-items: end;
}

.settings-row-telegram .settings-check-group {
    display: grid;
    grid-template-rows: repeat(2, 20px);
    align-content: end;
    justify-content: start;
    gap: 6px;
    align-self: end;
    min-height: 64px;
    padding-bottom: 7px;
}

.settings-row-telegram .settings-check-group .switch-line {
    height: 20px;
    min-height: 20px;
    margin: 0;
    align-items: center;
}

.settings-row-telegram .settings-check-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
}

.settings-row-yookassa-main {
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(280px, 1.3fr);
    margin-bottom: 10px;
}

.settings-row-yookassa-selects {
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    margin-bottom: 0;
}

.settings-row-robokassa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.settings-row .switch-line {
    min-height: 40px;
    align-self: end;
    flex-direction: row;
    gap: 9px;
    padding-bottom: 2px;
}

.settings-row .switch-line input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    flex: 0 0 16px;
    margin: 0;
}

.settings-row .switch-line span {
    margin: 0;
    color: #52647c;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.settings-card-payments .switch-line span {
    white-space: nowrap;
}

.settings-card-payments .settings-subsection:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.settings-row input,
.settings-row select {
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 15px;
}

.settings-row input:focus,
.settings-row select:focus {
    border-color: #b7c7dc;
    box-shadow: 0 0 0 3px rgba(49, 105, 185, .08);
    outline: 0;
}

.settings-row .muted,
.panel > .muted {
    overflow-wrap: anywhere;
}

.dashboard-page .stats-grid {
    gap: 7px;
    margin-bottom: 9px;
}

.dashboard-page .stat-card {
    padding: 8px 18px;
}

.dashboard-page .stat-card strong {
    margin-top: 4px;
}

.dashboard-page .panel {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 9px;
}

.dashboard-page .panel h2 {
    margin-bottom: 8px;
}

.dashboard-page .panel > .muted {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.25;
}

.dashboard-page pre {
    max-width: 100%;
    margin: 8px 0;
    padding: 10px 12px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.admin-dashboard-page .stats-grid {
    margin-bottom: 9px;
}

.admin-dashboard-page .stat-card {
    padding-top: 8px;
    padding-bottom: 8px;
}

.admin-dashboard-page .stat-card strong {
    margin-top: 4px;
}

.admin-dashboard-page .panel {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 9px;
}

.admin-dashboard-page .panel-title-row {
    margin-bottom: 9px;
}

.admin-dashboard-page .key-value-grid div {
    padding-top: 6px;
    padding-bottom: 6px;
}

.admin-dashboard-page .key-value-grid strong {
    margin-top: 3px;
}

.admin-dashboard-page .alert {
    margin-bottom: 9px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.settings-card-payments .muted {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    line-height: 1.35;
}

.settings-callbacks {
    display: grid;
    gap: 4px;
}

.settings-spoiler {
    padding: 11px 12px 12px;
    overflow: hidden;
}

.settings-spoiler summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.settings-spoiler summary::-webkit-details-marker {
    display: none;
}

.settings-spoiler summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.settings-spoiler[open] summary::after {
    transform: rotate(225deg);
}

.settings-spoiler summary h2 {
    margin: 0;
}

.settings-spoiler summary small {
    color: var(--muted);
    font-weight: 700;
}

.settings-spoiler:not([open]) {
    padding: 11px 12px 12px;
}

.settings-spoiler:not([open]) summary {
    padding: 0;
}

.settings-spoiler-body {
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
}

.content-page-spoiler {
    padding: 0;
    overflow: hidden;
}

.content-page-spoiler summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 20px 28px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.content-page-spoiler summary::-webkit-details-marker {
    display: none;
}

.content-page-spoiler summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.content-page-spoiler[open] summary::after {
    transform: rotate(225deg);
}

.content-page-spoiler summary span {
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.content-page-spoiler summary small {
    color: var(--muted);
    font-weight: 700;
}

.content-page-form {
    padding: 24px 28px 28px;
    border-top: 1px solid var(--border);
}

.content-page-cron {
    padding: 24px 28px 28px;
    min-width: 0;
    overflow-x: auto;
    border-top: 1px solid var(--border);
}

.cron-grid {
    display: grid;
    gap: 14px;
}

.cron-grid h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 18px;
}

.cron-grid p {
    margin: 0 0 8px;
    color: var(--muted);
}

.cron-grid pre {
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow-x: auto;
    white-space: pre;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.cron-grid code {
    display: block;
    width: max-content;
    min-width: 100%;
}

.content-page-cron > .muted {
    margin: 14px 0 0;
}

.content-page-form label:not(.switch-line) {
    display: block;
}

.content-page-form label span {
    margin-bottom: 10px;
}

.content-page-form textarea {
    min-height: 72px;
}

.content-page-form textarea[name="content_html"] {
    min-height: 280px;
}

.content-page-form .code-snippet-field {
    min-height: 100px;
    height: 100px;
    font-family: Consolas, "Courier New", monospace;
}

.content-page-form .form-actions {
    padding-top: 4px;
    justify-content: space-between;
}

.content-page-form .switch-line {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.content-page-form .switch-line input {
    order: 0;
}

.content-page-form .switch-line span {
    order: 1;
}

.content-page-form .btn {
    margin-left: auto;
}

@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        z-index: 90;
        inset: 0 auto 0 0;
        height: 100vh;
        width: min(320px, 86vw);
        flex-basis: min(320px, 86vw);
        transform: translateX(-100%);
        transition: transform .18s ease;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 7px;
        background: #fff;
        color: var(--text);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: none;
        border: 0;
        background: rgba(15, 23, 42, .38);
    }

    .sidebar-open .sidebar-overlay {
        display: block;
    }

    .icon-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .content {
        padding: 20px;
    }

    .topbar {
        padding: 0 22px;
    }

    .stats-grid,
    .key-value-grid,
    .form-grid,
    .finance-filter-form,
    .finance-summary-grid,
    .admin-users-filter-form,
    .admin-orders-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proxies-toolbar .btn-success {
        margin-left: 0;
    }

    .proxy-list-header,
    .proxy-card {
        grid-template-columns: 30px minmax(0, 1fr) 145px 205px 38px;
    }

    .admin-faq-form,
    .admin-faq-item,
    .admin-faq-edit-row,
    .admin-user-card summary,
    .admin-user-form {
        grid-template-columns: 1fr;
    }

    .admin-user-actions {
        grid-column: auto;
        justify-content: flex-start;
    }

    .inline-slide-panel.is-open {
        max-height: none;
    }

    .admin-faq-create.is-open {
        max-height: none;
    }

    .settings-row-px6,
    .settings-row-yookassa-main,
    .settings-row-yookassa-selects,
    .settings-row-robokassa,
    .settings-row-markups,
    .settings-row-smtp,
    .settings-row-telegram {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-row-telegram .switch-line:nth-of-type(1),
    .settings-row-telegram .switch-line:nth-of-type(2),
    .settings-row-telegram > label:nth-of-type(3),
    .settings-row-telegram > label:nth-of-type(4),
    .settings-row-telegram > label:nth-of-type(5) {
        grid-column: auto;
        grid-row: auto;
        align-self: end;
    }
}

@media (max-width: 640px) {
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-title-row {
        align-items: flex-start;
    }

    .payments-history-panel .panel-title-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payments-history-panel .history-select-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin: 0 0 2px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 19px;
    }

    .topbar {
        height: auto;
        min-height: 54px;
        padding: 10px 16px;
    }

    .content {
        padding: 16px;
    }

    .panel {
        padding: 11px 12px 12px;
        margin-bottom: 14px;
    }

    .stat-card {
        padding: 11px 12px 12px;
    }

    .stats-grid,
    .key-value-grid,
    .form-grid,
    .finance-filter-form,
    .finance-summary-grid,
    .admin-users-filter-form,
    .admin-orders-filter-form {
        grid-template-columns: 1fr;
    }

    .settings-row-px6,
    .settings-row-yookassa-main,
    .settings-row-yookassa-selects,
    .settings-row-robokassa,
    .settings-row-markups,
    .settings-row-smtp,
    .settings-row-telegram {
        grid-template-columns: 1fr;
    }

    .admin-user-active {
        grid-column: auto;
    }

    .admin-user-form input,
    .admin-user-form select {
        width: 100%;
    }

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

    .proxy-tools-left,
    .proxy-tools-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proxy-tools-left {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .proxy-tools-left .btn {
        grid-column: span 3;
    }

    .proxy-tools-left .btn:nth-child(n + 3) {
        grid-column: span 2;
    }

    .proxy-tools-left .btn,
    .proxy-tools-right .btn {
        width: 100%;
        min-width: 0;
    }

    .proxy-filter-toggle {
        width: 100%;
    }

    .proxy-export-panel,
    .proxy-notebook-panel,
    .proxy-filters-panel {
        position: static;
        max-width: none;
        width: 100%;
    }

    .proxy-list-header {
        display: none;
    }

    .proxy-card {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
    }

    .proxy-card .proxy-card-main,
    .proxy-card .proxy-end,
    .proxy-card .proxy-comment,
    .proxy-card .proxy-card-actions {
        grid-column: 2;
    }

    .proxy-card-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .proxy-country {
        grid-template-columns: 24px auto minmax(0, 1fr);
    }

    .proxy-country strong {
        grid-column: auto;
    }

    .proxy-value-grid {
        grid-template-columns: 1fr;
    }

    .proxy-value-item {
        grid-template-columns: 54px minmax(0, 1fr) 34px;
    }

    .proxy-type-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .proxy-end,
    .proxy-card-actions {
        padding-top: 0;
        padding-left: 0;
    }

    .proxy-card-actions {
        grid-template-columns: repeat(3, 32px) minmax(0, 1fr);
        align-items: center;
    }

    .proxy-check-status {
        text-align: left;
    }
}

.site-body {
    background: #fff;
}

.site-header {
    background: #121212;
    color: #fff;
}

.site-topline {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 34px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.site-brand {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    white-space: nowrap;
}

.site-brand span,
.site-footer span {
    color: var(--brand);
}

.site-brand small {
    font-size: .76em;
}

.site-main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #d36d31;
    font-size: 18px;
    text-transform: uppercase;
}

.site-main-nav a:hover,
.site-service-nav a:hover {
    color: #fff;
}

.site-actions {
    margin-left: auto;
}

.site-account {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 4px;
    background: #fff;
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
}

.site-service-nav {
    display: flex;
    justify-content: center;
    gap: 48px;
    min-height: 68px;
    padding: 0 28px;
    align-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
    gap: 44px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 68px 28px 54px;
}

.hero-copy h1 {
    margin-bottom: 18px;
    font-size: 58px;
    text-transform: uppercase;
}

.hero-copy p {
    max-width: 570px;
    margin: 0 0 28px;
    color: #4f5d6a;
    font-size: 20px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-outline-light {
    background: #fff;
}

.hero-order {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(24, 35, 50, .12);
    overflow: hidden;
}

.order-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.order-tabs button {
    min-height: 66px;
    border: 0;
    border-right: 1px solid var(--border);
    background: #f5f6f8;
    color: #38424e;
    font-weight: 800;
    cursor: pointer;
}

.order-tabs button:last-child {
    border-right: 0;
}

.order-tabs button.active {
    background: var(--brand);
    color: #fff;
}

.order-product {
    display: none;
    padding: 26px;
}

.order-product.active {
    display: block;
}

.order-product p {
    margin: 0 0 22px;
    color: var(--muted);
}

.order-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.order-price {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fbfcfe;
}

.order-price span {
    color: var(--muted);
    font-weight: 700;
}

.order-price strong {
    margin-top: 4px;
    font-size: 22px;
}

.order-submit {
    width: 100%;
    margin-top: 18px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 28px 64px;
    gap: 16px;
}

.home-stats div {
    padding: 22px;
    border-radius: 6px;
    background: #f5f6f8;
    border: 1px solid var(--border);
}

.home-stats strong {
    display: block;
    font-size: 30px;
}

.home-stats span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.home-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px 70px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.home-band h2,
.simple-page h1 {
    font-size: 42px;
    text-transform: uppercase;
}

.section-heading p,
.home-band p,
.simple-page p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 22px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
}

.product-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.product-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.product-card dl {
    display: grid;
    gap: 10px;
    margin: auto 0 20px;
}

.product-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.product-card dt {
    color: var(--muted);
}

.product-card dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.product-card a {
    color: var(--brand-dark);
    font-weight: 900;
}

.home-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: center;
    margin: 0 0 70px;
    padding: 58px max(28px, calc((100vw - 1240px) / 2 + 28px));
    background: #151515;
    color: #fff;
}

.home-band p {
    color: #d4d8de;
    max-width: 760px;
}

.band-list {
    display: grid;
    gap: 10px;
}

.band-list span,
.tools-grid a {
    padding: 14px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    font-weight: 800;
}

.compact {
    padding-bottom: 48px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tools-grid a {
    color: var(--text);
    background: #f5f6f8;
    border-color: var(--border);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px max(28px, calc((100vw - 1240px) / 2 + 28px));
    background: #f5f6f8;
    border-top: 1px solid var(--border);
}

.site-footer strong {
    font-size: 22px;
}

.site-footer p {
    max-width: 580px;
    color: var(--muted);
}

.site-footer nav {
    display: flex;
    gap: 20px;
    font-weight: 800;
    color: var(--brand-dark);
}

.simple-page {
    max-width: 1180px;
    min-height: 520px;
    margin: 0 auto;
    padding: 58px 28px;
}

.faq-list,
.simple-table {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

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

.faq-list article,
.simple-table div {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.faq-list h2 {
    margin-bottom: 8px;
}

.legal-page {
    max-width: 1180px;
}

.legal-content {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.legal-content h2 {
    margin: 24px 0 10px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.simple-table div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.simple-table span {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .site-topline,
    .site-service-nav {
        gap: 18px;
    }

    .site-main-nav,
    .site-service-nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-topline {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .site-actions {
        margin-left: 0;
    }

    .home-hero {
        padding-top: 38px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .order-tabs,
    .order-grid,
    .product-grid,
    .home-stats,
    .home-band,
    .faq-list,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }
}

/* Public landing page aligned with the donor reference, but under our own brand. */
.site-body .site-header {
    background: #111;
}

.site-body .site-topline {
    min-height: 54px;
    max-width: 1080px;
    gap: 30px;
}

.site-body .site-brand {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
}

.site-body .site-main-nav {
    gap: 24px;
    font-size: 13px;
    font-weight: 800;
}

.site-body .site-account {
    min-height: 32px;
    padding: 0 12px;
    font-size: 14px;
}

.site-body .site-service-nav {
    min-height: 32px;
    gap: 44px;
    font-size: 12px;
}

.site-body .home-hero {
    display: block;
    max-width: none;
    margin: 0;
    padding: 34px 24px 38px;
    background: #111;
    color: #fff;
}

.site-body .hero-copy {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.site-body .hero-copy h1 {
    margin: 0 0 8px;
    font-size: 48px;
    line-height: 1;
    color: #fff;
}

.site-body .hero-copy p {
    max-width: none;
    margin: 0 0 26px;
    color: #d8dce2;
    font-size: 26px;
    letter-spacing: 7px;
    text-transform: uppercase;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 780px;
    margin: 0 auto 34px;
}

.hero-stats strong {
    display: block;
    color: var(--brand);
    font-size: 26px;
    font-weight: 400;
}

.hero-stats span {
    display: block;
    color: #cbd0d6;
    font-size: 12px;
    text-transform: uppercase;
}

.proxy-buy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.proxy-buy-card {
    position: relative;
    overflow: visible;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #111;
}

.proxy-buy-card:has(.geo-select.open) {
    z-index: 30;
}

.proxy-buy-card h2 {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #d8d8d8;
    background: #f2f2f2;
    text-align: center;
    font-size: 19px;
    line-height: 1.15;
}

.proxy-buy-card p {
    margin: 0;
    padding: 10px 14px;
    color: #777;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #e2e2e2;
}

.proxy-buy-card p strong,
.proxy-buy-card p b {
    color: #111;
}

.buy-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 0;
    min-height: 48px;
    padding: 0;
    border-bottom: 1px solid #e2e2e2;
}

.buy-row.double {
    grid-template-columns: 110px minmax(0, 1fr) 104px minmax(0, 1fr);
}

.buy-row label {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    border-right: 1px solid #e2e2e2;
}

.buy-row.double label:nth-of-type(2) {
    border-left: 1px solid #e2e2e2;
}

.buy-row input,
.buy-row select {
    width: auto;
    height: 34px;
    margin: 7px 10px;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 14px;
}

.buy-row .geo-select {
    margin: 7px 10px;
}

.geo-select {
    position: relative;
    z-index: 5;
}

.geo-select-current,
.geo-option {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: #111;
    text-align: left;
    cursor: pointer;
}

.geo-select-current {
    grid-template-columns: 26px minmax(0, 1fr) auto 12px;
}

.geo-select-current::after {
    content: "";
    width: 0;
    height: 0;
    justify-self: end;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7c92;
}

.geo-select-current strong,
.geo-option strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 400;
}

.geo-select-current img,
.geo-option img {
    width: 20px;
    height: 14px;
    display: block;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.geo-select-current small,
.geo-option small {
    min-width: 30px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #58bd54;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.geo-select-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    max-height: 270px;
    overflow-y: auto;
    border: 1px solid #cfd5dd;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.geo-select.open .geo-select-menu {
    display: block;
}

.geo-option {
    border: 0;
    border-bottom: 1px solid #edf0f3;
}

.geo-option:hover {
    background: #0b8fcb;
    color: #fff;
}

.price-row strong {
    margin: 0 10px;
    font-size: 17px;
}

.proxy-buy-card .buy-submit {
    width: calc(100% - 32px);
    min-height: 38px;
    margin: 11px 16px 13px;
    border: 0;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.proxy-buy-card .buy-submit:hover {
    background: var(--brand-dark);
}

.account-buy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

.account-buy-card {
    overflow: visible;
    border-color: var(--border);
    border-radius: 8px;
    box-shadow: none;
}

.account-buy-card .buy-row {
    grid-template-columns: 87px minmax(0, 1fr);
    min-height: 44px;
}

.account-buy-card .buy-row.double {
    grid-template-columns: 87px minmax(72px, .75fr) 72px minmax(112px, 1fr);
}

.account-buy-card .buy-row label {
    font-size: 13px;
}

.account-buy-card .buy-row input,
.account-buy-card .buy-row select {
    width: calc(100% - 16px);
    min-width: 0;
    margin: 6px 8px;
    border-radius: 6px;
}

.account-buy-card .geo-select {
    min-width: 0;
    width: auto;
}

.account-buy-card .geo-select-current,
.account-buy-card .geo-option {
    gap: 8px;
    min-height: 38px;
    border-radius: 6px;
}

.account-buy-card .geo-select-current {
    grid-template-columns: 24px minmax(0, 1fr) auto 12px;
}

.account-buy-card .geo-option {
    grid-template-columns: 24px minmax(0, 1fr) auto;
}

.account-buy-card .geo-select-current strong,
.account-buy-card .geo-option strong {
    min-width: 0;
    white-space: nowrap;
}

.account-buy-card .geo-select-current small,
.account-buy-card .geo-option small {
    justify-self: end;
    white-space: nowrap;
}

.hero-note {
    max-width: 760px;
    margin: 22px auto 0;
    text-align: center;
    color: #8f969f;
    font-size: 13px;
    line-height: 1.45;
}

.hero-note p {
    margin: 0;
}

.benefits-section {
    padding: 52px 24px 70px;
    background: #f1f1f1;
}

.benefits-section .section-heading {
    max-width: none;
    margin: 0 0 34px;
    text-align: center;
}

.benefits-section .section-heading h2,
.partner-section h2 {
    font-size: 34px;
    line-height: 1.1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 48px;
    max-width: 900px;
    margin: 0 auto;
}

.benefits-grid article {
    text-align: center;
}

.benefits-grid article div {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 30px;
    font-weight: 900;
}

.benefits-grid h3 {
    margin: 0 0 6px;
    font-size: 15px;
    text-transform: uppercase;
}

.benefits-grid p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.clients-line {
    display: block;
    margin-top: 38px;
    text-align: center;
    text-transform: uppercase;
}

.clients-line::first-letter {
    color: var(--brand);
}

.partner-section {
    padding: 58px 24px 72px;
    text-align: center;
    background: #fff;
}

.partner-section div {
    max-width: 820px;
    margin: 0 auto;
}

.partner-section p {
    color: #333;
    font-size: 17px;
    line-height: 1.55;
}

.contacts-strip {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 24px;
    background: #111;
}

.contacts-strip a {
    color: #bfc4ca;
    font-weight: 700;
}

.seo-text {
    max-width: 920px;
    margin: 0 auto;
    padding: 58px 24px;
}

.seo-text .section-heading h2 {
    font-size: 24px;
}

.seo-text .section-heading p {
    font-size: 15px;
}

.site-body .site-footer {
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.site-body .site-footer strong {
    color: #111;
}

.site-body .site-footer nav {
    color: var(--brand-dark);
    font-size: 13px;
}

@media (max-width: 980px) {
    .site-body .site-topline {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-body .site-service-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

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

    .site-body .hero-copy p {
        font-size: 19px;
        letter-spacing: 3px;
    }

    .hero-stats,
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proxy-buy-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 620px) {
    .site-body .hero-copy h1 {
        font-size: 36px;
    }

    .site-body .hero-copy p {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .hero-stats,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

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

    .account-buy-grid {
        grid-template-columns: 1fr;
    }

    .buy-row label,
    .buy-row.double label:nth-of-type(2) {
        min-height: 42px;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid #e2e2e2;
    }

    .contacts-strip,
    .site-body .site-footer {
        align-items: center;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Reference public design requested by user. */
.site-body-ref {
    --ref-bg: #f7faff;
    --ref-surface: #ffffff;
    --ref-border: #dce5f0;
    --ref-border-strong: #cbd8e8;
    --ref-ink: #0e1c35;
    --ref-muted: #63738d;
    --ref-orange: #df6c1f;
    --ref-orange-dark: #bd5515;
    --ref-blue: #3169b9;
    --ref-green: #2f8c2f;
    --ref-purple: #8856d9;
    --public-container: 1320px;
    --public-gutter: 28px;
    overflow-x: hidden;
    background: #fff;
    color: var(--ref-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.site-body-ref .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--ref-border);
    color: var(--ref-ink);
    backdrop-filter: blur(14px);
}

.site-body-ref .site-topline {
    max-width: var(--public-container);
    min-height: 66px;
    gap: 56px;
    padding: 0 var(--public-gutter);
}

.site-body-ref .site-brand {
    display: inline-flex;
    align-items: baseline;
    color: var(--ref-ink);
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.site-body-ref .brand-dot,
.site-body-ref .brand-accent {
    color: var(--ref-orange);
}

.site-body-ref .brand-main {
    color: var(--ref-ink);
}

.site-body-ref .site-main-nav {
    gap: 48px;
    color: var(--ref-ink);
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}

.site-body-ref .site-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-body-ref .site-account,
.site-body-ref .site-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
}

.site-body-ref .site-account {
    border: 1px solid var(--ref-border-strong);
    background: #fff;
    color: var(--ref-ink);
}

.site-body-ref .site-cta {
    border: 1px solid var(--ref-orange);
    background: linear-gradient(180deg, #e97725, #d86418);
    color: #fff;
    box-shadow: 0 10px 22px rgba(223, 108, 31, .18);
}

.site-body-ref .btn-icon {
    font-size: 16px;
    line-height: 1;
}

.site-body-ref .home-hero {
    display: block;
    max-width: none;
    margin: 0;
    padding: 26px var(--public-gutter) 28px;
    background:
        radial-gradient(circle at 20% 12%, rgba(223, 108, 31, .08), transparent 26%),
        linear-gradient(180deg, #fff 0%, #f7faff 100%);
}

.site-body-ref .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    max-width: var(--public-container);
    margin: 0 auto 18px;
}

.site-body-ref .hero-copy {
    max-width: 1040px;
    margin: 0;
    padding-left: 28px;
    text-align: left;
}

.site-body-ref .hero-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff0e7;
    color: var(--ref-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-body-ref .hero-copy h1 {
    margin: 0 0 14px;
    color: var(--ref-ink);
    font-size: 52px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: none;
}

.site-body-ref .hero-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--ref-muted);
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
}

.site-body-ref .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 820px;
    margin: 28px 0 0 -35px;
}

.site-body-ref .hero-stats div {
    display: grid;
    grid-template-columns: 34px max-content;
    column-gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-right: 1px solid var(--ref-border);
}

.site-body-ref .hero-stats div:last-child {
    border-right: 0;
}

.site-body-ref .stat-icon {
    grid-row: span 2;
    width: 30px;
    color: var(--ref-orange);
}

.site-body-ref svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-body-ref .hero-stats strong {
    color: var(--ref-orange);
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.site-body-ref .hero-stats span {
    color: var(--ref-muted);
    font-size: 11px;
    line-height: 1.2;
    text-transform: none;
}

.site-body-ref .quick-buy-panel {
    overflow: visible;
    border: 1px solid var(--ref-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 40px rgba(14, 28, 53, .07);
}

.site-body-ref .quick-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--ref-border);
}

.site-body-ref .quick-tab {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-right: 1px solid var(--ref-border);
    background: transparent;
    color: var(--ref-ink);
    font-weight: 900;
    cursor: pointer;
}

.site-body-ref .quick-tab:last-child {
    border-right: 0;
}

.site-body-ref .quick-tab.is-active {
    color: var(--ref-orange);
    box-shadow: inset 0 2px 0 var(--ref-orange);
}

.site-body-ref .quick-panel {
    display: none;
    padding: 16px;
}

.site-body-ref .quick-panel.is-active {
    display: grid;
    gap: 14px;
}

.site-body-ref .quick-panel p {
    margin: 0;
    color: var(--ref-muted);
    font-size: 14px;
    line-height: 1.45;
}

.site-body-ref label > span,
.site-body-ref .quick-price span {
    display: block;
    margin-bottom: 6px;
    color: var(--ref-ink);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.site-body-ref .quick-fields {
    display: grid;
    grid-template-columns: 180px minmax(140px, 1fr) 130px;
    gap: 34px;
    align-items: end;
}

.site-body-ref .quick-price strong {
    display: block;
    color: var(--ref-ink);
    font-size: 24px;
    line-height: 42px;
    white-space: nowrap;
}

.site-body-ref .quick-note {
    color: var(--ref-muted);
    font-size: 12px;
}

.site-body-ref .quick-note::before {
    content: "⚡";
    margin-right: 8px;
    color: #f39a13;
}

.site-body-ref .proxy-buy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--public-container);
    margin: 0 auto;
}

.site-body-ref .proxy-buy-card {
    position: relative;
    overflow: visible;
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 7px;
    padding: 18px 14px 14px;
    border: 1px solid var(--ref-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    color: var(--ref-ink);
    box-shadow: 0 12px 30px rgba(14, 28, 53, .05);
}

.site-body-ref .proxy-buy-card:has(.geo-select.open),
.site-body-ref .quick-buy-panel:has(.geo-select.open) {
    z-index: 70;
}

.site-body-ref .product-card-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.site-body-ref .product-card-head h2 {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ref-ink);
    text-align: left;
    font-size: 18px;
    line-height: 1.2;
}

.site-body-ref .product-text {
    min-height: 44px;
    margin: 0;
    color: var(--ref-muted);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

.site-body-ref .product-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    color: var(--ref-orange);
}

.site-body-ref .tone-blue .product-icon,
.site-body-ref .quick-tab.tone-blue {
    color: var(--ref-blue);
}

.site-body-ref .tone-purple .product-icon,
.site-body-ref .quick-tab.tone-purple {
    color: var(--ref-purple);
}

.site-body-ref .tone-green .product-icon,
.site-body-ref .quick-tab.tone-green {
    color: var(--ref-green);
}

.site-body-ref .field-wide {
    display: block;
}

.site-body-ref .geo-select {
    position: relative;
    z-index: 5;
}

.site-body-ref .geo-select-current,
.site-body-ref .geo-option {
    width: 100%;
    min-height: 34px;
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 1px solid var(--ref-border-strong);
    border-radius: 4px;
    background: #fff;
    color: var(--ref-ink);
    text-align: left;
    cursor: pointer;
}

.site-body-ref .geo-select-current {
    grid-template-columns: 24px minmax(0, 1fr) auto 12px;
}

.site-body-ref .geo-option {
    grid-template-columns: 24px minmax(0, 1fr) auto;
}

.site-body-ref .geo-select-current::after {
    content: "";
    width: 0;
    height: 0;
    justify-self: end;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7c92;
}

.site-body-ref .geo-select-current strong,
.site-body-ref .geo-option strong {
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-body-ref .geo-select-current img,
.site-body-ref .geo-option img {
    width: 22px;
    height: 15px;
    display: block;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(14, 28, 53, .1);
}

.site-body-ref .geo-select-current small,
.site-body-ref .geo-option small {
    min-width: 38px;
    padding: 3px 7px;
    border-radius: 4px;
    background: #e9f8e8;
    color: var(--ref-green);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.site-body-ref .geo-select-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--ref-border-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(14, 28, 53, .18);
}

.site-body-ref .geo-select.open .geo-select-menu {
    display: grid;
    gap: 2px;
}

.site-body-ref .geo-option {
    border: 0;
}

.site-body-ref .geo-option:hover {
    background: #f2f7fd;
}

.site-body-ref .product-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 28px;
}

.site-body-ref .qty-control {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    height: 34px;
    overflow: hidden;
    border: 1px solid var(--ref-border-strong);
    border-radius: 4px;
    background: #fff;
}

.site-body-ref .qty-control button {
    border: 0;
    background: #fff;
    color: var(--ref-ink);
    font-size: 18px;
    cursor: pointer;
}

.site-body-ref .qty-control input {
    height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--ref-border);
    border-right: 1px solid var(--ref-border);
    border-radius: 0;
    text-align: center;
}

.site-body-ref select,
.site-body-ref .product-fields select,
.site-body-ref .quick-fields select {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--ref-border-strong);
    border-radius: 4px;
    background: #fff;
    color: var(--ref-ink);
    font-size: 13px;
}

.site-body-ref .product-price {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    min-height: 30px;
}

.site-body-ref .product-price span {
    color: var(--ref-ink);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.site-body-ref .product-price strong {
    color: var(--ref-ink);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.site-body-ref .buy-submit {
    width: calc(100% - 32px);
    min-height: 38px;
    justify-self: center;
    align-self: end;
    margin-top: 4px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #e97725, #d86418);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.site-body-ref .workflow-section {
    padding: 20px var(--public-gutter) 24px;
    background: #fff;
}

.site-body-ref .workflow-section h2 {
    margin: 0 0 12px;
    color: var(--ref-ink);
    text-align: center;
    font-size: 24px;
    line-height: 1.2;
}

.site-body-ref .workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    max-width: var(--public-container);
    margin: 0 auto;
}

.site-body-ref .workflow-grid article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--ref-border);
    border-radius: 6px;
    background: #fff;
}

.site-body-ref .workflow-grid h3 {
    margin: 0 0 4px;
    color: var(--ref-ink);
    font-size: 14px;
}

.site-body-ref .workflow-grid p {
    margin: 0;
    color: var(--ref-muted);
    font-size: 12px;
    line-height: 1.35;
}

.site-body-ref .wf-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eef5ff;
    color: var(--ref-blue);
    font-size: 30px;
    font-weight: 800;
}

.site-body-ref .wf-icon svg {
    width: 30px;
    height: 30px;
}

.site-body-ref .wf-icon.green {
    color: var(--ref-green);
    background: #eff9ef;
}

.site-body-ref .wf-icon.purple {
    color: var(--ref-purple);
    background: #f5efff;
}

.site-body-ref .wf-icon.orange {
    color: #ff9700;
    background: #fff5e8;
}

.site-body-ref .wf-icon.teal {
    color: #0d9488;
    background: #e9fbf8;
}

.site-body-ref .wf-icon.amber {
    color: #d97706;
    background: #fff7df;
}

.site-body-ref .wf-icon.cyan {
    color: #0284c7;
    background: #e8f7ff;
}

.site-body-ref .wf-icon.slate {
    color: #475569;
    background: #f1f5f9;
}

.site-body-ref .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    max-width: none;
    margin: 0;
    padding: 16px max(var(--public-gutter), calc((100vw - var(--public-container)) / 2 + var(--public-gutter)));
    border-top: 1px solid var(--ref-border);
    background: #fff;
}

.site-body-ref .simple-page {
    width: 100%;
    max-width: var(--public-container);
    min-height: 520px;
    margin: 0 auto;
    padding: 42px var(--public-gutter) 54px;
}

.site-body-ref .simple-page h1 {
    color: var(--ref-ink);
    font-size: 34px;
    line-height: 1.15;
    text-transform: none;
}

.site-body-ref .simple-page p {
    color: var(--ref-muted);
}

.site-body-ref .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-body-ref .faq-list article,
.site-body-ref .legal-content {
    border-color: var(--ref-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(14, 28, 53, .04);
}

.site-body-ref .site-footer strong {
    display: block;
    color: var(--ref-ink);
    font-size: 18px;
}

.site-body-ref .site-footer strong b {
    color: var(--ref-orange);
}

.site-body-ref .site-footer p {
    margin: 6px 0 0;
    color: var(--ref-muted);
    font-size: 11px;
    line-height: 1.3;
}

.site-body-ref .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    color: var(--ref-muted);
    font-size: 12px;
    font-weight: 700;
}

.site-body-ref .footer-mail {
    justify-self: end;
    color: var(--ref-muted);
    font-size: 12px;
}

@media (max-width: 1180px) {
    .site-body-ref .hero-shell {
        grid-template-columns: 1fr;
    }

    .site-body-ref .hero-copy {
        max-width: none;
    }

    .site-body-ref .proxy-buy-grid,
    .site-body-ref .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-body-ref .site-topline {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .site-body-ref .site-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-self: center;
        width: min(calc(100vw - 56px), 320px);
        margin-left: 0;
    }

    .site-body-ref .site-account,
    .site-body-ref .site-cta {
        width: 100%;
    }

    .site-body-ref .home-hero {
        padding: 28px 0;
    }

    .site-body-ref .simple-page {
        padding: 30px 16px 42px;
    }

    .site-body-ref .hero-copy {
        padding-left: 0;
        text-align: center;
    }

    .site-body-ref .hero-copy h1 {
        font-size: 36px;
    }

    .site-body-ref .hero-copy p {
        max-width: 340px;
        margin: 0 auto;
        font-size: 15px;
    }

    .site-body-ref .hero-stats,
    .site-body-ref .quick-tabs,
    .site-body-ref .quick-fields,
    .site-body-ref .proxy-buy-grid,
    .site-body-ref .faq-list,
    .site-body-ref .workflow-grid {
        grid-template-columns: 1fr;
        width: min(100%, 340px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .site-body-ref .hero-shell {
        width: calc(100vw - 32px);
        margin-left: auto;
        margin-right: auto;
    }

    .site-body-ref .hero-stats {
        gap: 10px;
    }

    .site-body-ref .hero-stats div {
        border-right: 0;
        justify-content: center;
    }

    .site-body-ref .quick-buy-panel {
        display: none;
    }

    .site-body-ref .proxy-buy-card {
        width: min(100%, 340px);
        min-width: 0;
        padding: 16px 14px;
    }

    .site-body-ref .product-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-body-ref .product-fields label,
    .site-body-ref .field-wide {
        min-width: 0;
        width: 100%;
    }

    .site-body-ref .geo-select,
    .site-body-ref .geo-select-current,
    .site-body-ref .geo-option,
    .site-body-ref .qty-control,
    .site-body-ref .product-fields select,
    .site-body-ref select,
    .site-body-ref .buy-submit {
        max-width: 100%;
        min-width: 0;
    }

    .site-body-ref .buy-submit {
        width: calc(100% - 40px);
        min-height: 40px;
    }

    .site-body-ref .geo-select-current {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .site-body-ref .geo-select-current small {
        display: none;
    }

    .site-body-ref .geo-select-current::after {
        display: block;
    }

    .site-body-ref .geo-select-menu {
        max-width: 100%;
    }

    .site-body-ref .qty-control input {
        min-width: 0;
    }

    .site-body-ref .workflow-grid article,
    .site-body-ref .site-footer {
        grid-template-columns: 1fr;
    }

    .site-body-ref .site-footer {
        gap: 14px;
        text-align: left;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-body-ref .site-footer nav,
    .site-body-ref .footer-mail {
        justify-self: start;
    }

    .site-body-ref .site-footer nav {
        gap: 10px 16px;
        justify-content: flex-start;
    }

    .site-body-ref .site-footer > div,
    .site-body-ref .site-footer strong,
    .site-body-ref .footer-mail {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 820px) {
    .site-body-ref .site-footer {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }

    .site-body-ref .site-footer nav,
    .site-body-ref .footer-mail {
        justify-self: start;
    }
}

/* Public 2026 redesign. Scoped to pre-auth site and auth screens. */
.site-body-2026 {
    --p-bg: #f6f8fb;
    --p-surface: #ffffff;
    --p-surface-soft: #f9fbfd;
    --p-line: #dfe7f1;
    --p-line-strong: #cbd6e3;
    --p-text: #121b2a;
    --p-muted: #66768a;
    --p-accent: #d46a2a;
    --p-accent-dark: #ad4f1c;
    --p-green: #34b45b;
    background: var(--p-bg);
    color: var(--p-text);
    overflow-x: hidden;
}

.site-body-2026 .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .88);
    color: var(--p-text);
    border-bottom: 1px solid rgba(203, 214, 227, .78);
    backdrop-filter: blur(18px);
}

.site-body-2026 .site-topline {
    min-height: 72px;
    max-width: 1200px;
    padding: 0 24px;
    gap: 28px;
}

.site-body-2026 .site-brand {
    color: var(--p-text);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0;
}

.site-body-2026 .site-brand span {
    color: var(--p-text);
}

.site-body-2026 .site-brand span::after {
    content: ".";
    color: var(--p-accent);
}

.site-body-2026 .site-main-nav {
    gap: 10px;
    color: #344255;
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
}

.site-body-2026 .site-main-nav a {
    padding: 10px 12px;
    border-radius: 8px;
}

.site-body-2026 .site-main-nav a:hover {
    color: var(--p-accent-dark);
    background: #fff3ec;
}

.site-body-2026 .site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.site-body-2026 .site-account,
.site-body-2026 .site-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.site-body-2026 .site-account {
    border: 1px solid var(--p-line);
    background: #fff;
    color: var(--p-text);
}

.site-body-2026 .site-cta {
    border: 1px solid var(--p-accent);
    background: var(--p-accent);
    color: #fff;
}

.site-body-2026 .site-cta:hover,
.site-body-2026 .proxy-buy-card .buy-submit:hover {
    background: var(--p-accent-dark);
    border-color: var(--p-accent-dark);
}

.site-body-2026 .site-service-nav,
.site-body-2026 .contacts-strip {
    display: none;
}

.site-body-2026 .home-hero {
    display: block;
    max-width: none;
    margin: 0;
    padding: 54px 24px 46px;
    background:
        radial-gradient(circle at 12% 8%, rgba(212, 106, 42, .09), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    color: var(--p-text);
}

.site-body-2026 .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    gap: 28px;
    align-items: end;
    max-width: 1200px;
    margin: 0 auto 26px;
}

.site-body-2026 .hero-copy {
    max-width: 720px;
    margin: 0;
    text-align: left;
}

.site-body-2026 .hero-copy h1 {
    max-width: 680px;
    margin: 0 0 14px;
    color: var(--p-text);
    font-size: 62px;
    line-height: .98;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: none;
}

.site-body-2026 .hero-copy p {
    max-width: 640px;
    margin: 0;
    color: var(--p-muted);
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
}

.site-body-2026 .hero-system-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    background: var(--p-line);
    box-shadow: 0 22px 50px rgba(18, 27, 42, .08);
}

.site-body-2026 .hero-system-card div {
    min-height: 112px;
    display: grid;
    align-content: center;
    padding: 18px;
    background: rgba(255, 255, 255, .9);
}

.site-body-2026 .hero-system-card span {
    color: var(--p-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-body-2026 .hero-system-card strong {
    margin-top: 8px;
    color: var(--p-text);
    font-size: 28px;
    line-height: 1;
}

.site-body-2026 .proxy-buy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-body-2026 .proxy-buy-card {
    position: relative;
    overflow: visible;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    color: var(--p-text);
    box-shadow: 0 18px 40px rgba(18, 27, 42, .075);
}

.site-body-2026 .proxy-buy-card:has(.geo-select.open) {
    z-index: 40;
}

.site-body-2026 .product-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.site-body-2026 .product-card-head > div {
    min-width: 0;
}

.site-body-2026 .product-code {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--p-accent-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
}

.site-body-2026 .product-card-head h2,
.site-body-2026 .proxy-buy-card h2 {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--p-text);
    text-align: left;
    font-size: 24px;
    line-height: 1.1;
}

.site-body-2026 .product-card-head > strong {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eaf8ee;
    color: #19823a;
    font-size: 12px;
    line-height: 1;
}

.site-body-2026 .product-text,
.site-body-2026 .proxy-buy-card p {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--p-muted);
    text-align: left;
    font-size: 14px;
    line-height: 1.45;
}

.site-body-2026 .product-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px 160px;
    gap: 10px;
    align-items: end;
}

.site-body-2026 .product-fields label {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.site-body-2026 .product-fields label > span,
.site-body-2026 .product-card-foot span {
    display: block;
    margin: 0;
    color: var(--p-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.site-body-2026 .product-fields input,
.site-body-2026 .product-fields select {
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--p-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--p-text);
    font-size: 14px;
}

.site-body-2026 .geo-select {
    position: relative;
    z-index: 5;
    margin: 0;
}

.site-body-2026 .geo-select-current,
.site-body-2026 .geo-option {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--p-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--p-text);
    text-align: left;
    cursor: pointer;
}

.site-body-2026 .geo-select-current::after {
    content: "";
    width: 0;
    height: 0;
    justify-self: end;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6f7f93;
}

.site-body-2026 .geo-select-current strong,
.site-body-2026 .geo-option strong {
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-body-2026 .geo-select-current img,
.site-body-2026 .geo-option img {
    width: 22px;
    height: 15px;
    display: block;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(18, 27, 42, .1);
}

.site-body-2026 .geo-select-menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 310px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--p-line-strong);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(18, 27, 42, .18);
}

.site-body-2026 .geo-select.open .geo-select-menu {
    display: grid;
    gap: 2px;
}

.site-body-2026 .geo-option {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 38px;
    border: 0;
    border-radius: 7px;
}

.site-body-2026 .geo-option:hover {
    background: #f1f6fd;
}

.site-body-2026 .geo-option small {
    min-width: 34px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--p-green);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-align: center;
}

.site-body-2026 .product-card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: end;
    padding-top: 2px;
}

.site-body-2026 .product-card-foot strong {
    display: block;
    margin-top: 4px;
    color: var(--p-text);
    font-size: 28px;
    line-height: 1;
}

.site-body-2026 .proxy-buy-card .buy-submit {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: 1px solid var(--p-accent);
    border-radius: 8px;
    background: var(--p-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
}

.site-body-2026 .workflow-section {
    padding: 52px 24px 64px;
    background: #fff;
}

.site-body-2026 .section-heading {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.site-body-2026 .section-heading h2 {
    color: var(--p-text);
    font-size: 34px;
    line-height: 1.1;
    text-transform: none;
}

.site-body-2026 .section-heading p {
    color: var(--p-muted);
    font-size: 15px;
    line-height: 1.55;
}

.site-body-2026 .workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-body-2026 .workflow-grid article {
    min-height: 158px;
    padding: 20px;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    background: var(--p-surface-soft);
}

.site-body-2026 .workflow-grid span {
    color: var(--p-accent);
    font-size: 12px;
    font-weight: 950;
}

.site-body-2026 .workflow-grid h3 {
    margin: 16px 0 8px;
    color: var(--p-text);
    font-size: 17px;
}

.site-body-2026 .workflow-grid p {
    margin: 0;
    color: var(--p-muted);
    font-size: 14px;
    line-height: 1.48;
}

.site-body-2026 .site-footer {
    max-width: none;
    margin: 0;
    padding: 28px max(24px, calc((100vw - 1200px) / 2 + 24px));
    border-top: 1px solid var(--p-line);
    background: #f8fafc;
}

.site-body-2026 .site-footer strong {
    color: var(--p-text);
    font-size: 19px;
}

.site-body-2026 .site-footer nav {
    color: #344255;
    font-size: 13px;
}

.guest-body-2026 {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 12%, rgba(212, 106, 42, .12), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
}

.guest-body-2026 .auth-shell {
    width: min(460px, 100%);
}

.guest-body-2026 .auth-card {
    padding: 30px 32px;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(18, 27, 42, .1);
}

.guest-body-2026 .auth-brand {
    display: inline-block;
    margin-bottom: 24px;
    color: #121b2a;
    font-size: 22px;
    font-weight: 950;
}

.guest-body-2026 .auth-brand::after {
    content: ".";
    color: #d46a2a;
}

.guest-body-2026 .auth-card h1 {
    margin: 0 0 18px;
    color: #121b2a;
    font-size: 30px;
    line-height: 1.1;
}

.guest-body-2026 .auth-subtitle {
    margin: 0 0 22px;
    color: #66768a;
    line-height: 1.5;
}

.guest-body-2026 .auth-form label span {
    color: #66768a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.guest-body-2026 .auth-form input {
    min-height: 44px;
    border-color: #cbd6e3;
    border-radius: 8px;
}

.guest-body-2026 .auth-form .rules-agree {
    gap: 8px;
    margin: -5px 0;
}

.guest-body-2026 .auth-form .rules-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
}

.guest-body-2026 .auth-form .rules-agree span {
    display: inline;
    margin: 0;
    color: #66768a;
    font-size: 13px;
    line-height: 1.3;
    text-transform: none;
    white-space: nowrap;
}

.guest-body-2026 .btn-primary {
    min-height: 44px;
    border-color: #d46a2a;
    border-radius: 8px;
    background: #d46a2a;
    font-weight: 950;
}

.guest-body-2026 .btn-primary:hover {
    background: #ad4f1c;
}

.guest-body-2026 .auth-link {
    margin: 18px 0 0;
    color: #66768a;
}

.guest-body-2026 .auth-link a {
    color: #ad4f1c;
    font-weight: 950;
}

@media (max-width: 1080px) {
    .site-body-2026 .hero-shell {
        grid-template-columns: 1fr;
    }

    .site-body-2026 .hero-copy {
        text-align: center;
        margin: 0 auto;
    }

    .site-body-2026 .hero-copy h1,
    .site-body-2026 .hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .site-body-2026 .proxy-buy-grid,
    .site-body-2026 .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-body-2026 .site-topline {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 12px;
    }

    .site-body-2026 .site-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: calc(100vw - 48px);
        margin-left: 0;
        gap: 8px;
    }

    .site-body-2026 .site-account,
    .site-body-2026 .site-cta {
        min-width: 0;
        padding: 0 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .site-body-2026 .home-hero {
        padding: 34px 14px 38px;
        overflow: hidden;
    }

    .site-body-2026 .hero-shell,
    .site-body-2026 .hero-copy,
    .site-body-2026 .hero-system-card,
    .site-body-2026 .proxy-buy-grid,
    .site-body-2026 .proxy-buy-card,
    .site-body-2026 .workflow-grid {
        min-width: 0;
        width: min(100%, calc(100vw - 64px));
        justify-self: center;
    }

    .site-body-2026 .hero-copy h1 {
        max-width: 330px;
        font-size: 32px;
    }

    .site-body-2026 .hero-copy p {
        max-width: 330px;
        font-size: 16px;
    }

    .site-body-2026 .hero-system-card,
    .site-body-2026 .proxy-buy-grid,
    .site-body-2026 .workflow-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .site-body-2026 .hero-system-card div {
        min-height: 78px;
    }

    .site-body-2026 .product-fields,
    .site-body-2026 .product-card-foot {
        grid-template-columns: 1fr;
    }

    .site-body-2026 .product-card-head > strong {
        display: none;
    }

    .site-body-2026 .workflow-section {
        padding: 40px 14px 48px;
    }

    .site-body-2026 .site-footer {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .site-body-2026 .site-footer nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .site-body-2026 .hero-copy h1 {
        font-size: 34px;
    }

    .site-body-2026 .proxy-buy-card,
    .guest-body-2026 .auth-card {
        padding: 16px;
    }
}

/* Light public redesign. Keep cabinet/admin styles above untouched. */
.site-body-light {
    --site-bg: #ffffff;
    --site-soft: #f5f7fb;
    --site-soft-2: #eef2f7;
    --site-line: #dbe2ec;
    --site-text: #17202a;
    --site-muted: #667085;
    --site-accent: #c96a2c;
    --site-accent-dark: #a9511f;
    background: var(--site-bg);
    color: var(--site-text);
}

.site-body-light .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    color: var(--site-text);
    border-bottom: 1px solid var(--site-line);
    backdrop-filter: blur(12px);
}

.site-body-light .site-topline {
    max-width: 1180px;
    min-height: 68px;
    padding: 0 24px;
    gap: 28px;
}

.site-body-light .site-brand {
    color: var(--site-text);
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
}

.site-body-light .site-brand span,
.site-body-light .site-footer span {
    color: var(--site-accent);
}

.site-body-light .site-main-nav {
    gap: 22px;
    color: #3c4653;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

.site-body-light .site-main-nav a:hover {
    color: var(--site-accent-dark);
}

.site-body-light .site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-body-light .site-account,
.site-body-light .site-cta {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
}

.site-body-light .site-account {
    background: #fff;
    color: var(--site-text);
    border: 1px solid var(--site-line);
}

.site-body-light .site-cta {
    display: inline-flex;
    align-items: center;
    background: var(--site-accent);
    color: #fff;
    border: 1px solid var(--site-accent);
}

.site-body-light .site-service-nav,
.site-body-light .contacts-strip {
    display: none;
}

.site-body-light .home-hero {
    display: block;
    max-width: none;
    padding: 44px 24px 48px;
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f3f6fa 100%);
    color: var(--site-text);
}

.site-body-light .hero-copy {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.site-body-light .hero-copy h1 {
    max-width: 760px;
    margin: 0 auto 12px;
    color: var(--site-text);
    font-size: 42px;
    line-height: 1.08;
    font-weight: 900;
    text-transform: none;
}

.site-body-light .hero-copy p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
}

.site-body-light .hero-actions {
    justify-content: center;
    margin-bottom: 24px;
}

.site-body-light .btn {
    border-radius: 4px;
}

.site-body-light .btn-primary {
    border-color: var(--site-accent);
    background: var(--site-accent);
}

.site-body-light .btn-primary:hover,
.site-body-light .site-cta:hover,
.site-body-light .proxy-buy-card .buy-submit:hover {
    background: var(--site-accent-dark);
    border-color: var(--site-accent-dark);
}

.site-body-light .btn-outline-light {
    border-color: var(--site-line);
    background: #fff;
    color: var(--site-text);
}

.site-body-light .hero-stats {
    max-width: 920px;
    margin: 0 auto 24px;
    gap: 12px;
}

.site-body-light .hero-stats div {
    min-height: 66px;
    display: grid;
    align-content: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 4px;
}

.site-body-light .hero-stats strong {
    color: var(--site-accent);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.site-body-light .hero-stats span {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-body-light .proxy-buy-grid {
    max-width: 1060px;
    gap: 16px;
}

.site-body-light .proxy-buy-card {
    border: 1px solid var(--site-line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(28, 39, 54, .06);
}

.site-body-light .proxy-buy-card header {
    border-bottom: 1px solid var(--site-line);
    background: #f7f9fc;
}

.site-body-light .proxy-buy-card h2 {
    padding: 12px 14px 8px;
    border-bottom: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1.1;
    color: #101820;
}

.site-body-light .proxy-buy-card p {
    padding: 0 16px 12px;
    border-bottom: 0;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.3;
}

.site-body-light .buy-row {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 46px;
    border-bottom: 1px solid #e6ebf2;
}

.site-body-light .buy-row.double {
    grid-template-columns: 104px minmax(0, 1fr) 92px minmax(0, 1fr);
}

.site-body-light .buy-row label {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    border-right: 1px solid #e6ebf2;
}

.site-body-light .buy-row.double label:nth-of-type(2) {
    border-left: 1px solid #e6ebf2;
}

.site-body-light .buy-row input,
.site-body-light .buy-row select,
.site-body-light .buy-row .geo-select {
    margin: 7px 10px;
}

.site-body-light .buy-row input,
.site-body-light .buy-row select {
    height: 32px;
    padding: 4px 9px;
    border-color: #d4dbe6;
    border-radius: 2px;
    font-size: 14px;
}

.site-body-light .geo-select-current,
.site-body-light .geo-option {
    min-height: 32px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 4px 9px;
    border-color: #d4dbe6;
}

.site-body-light .geo-select-current {
    grid-template-columns: 24px minmax(0, 1fr);
}

.site-body-light .geo-select-current::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #667085;
    justify-self: end;
}

.site-body-light .geo-select-current {
    grid-template-columns: 24px minmax(0, 1fr) 12px;
}

.site-body-light .geo-select-current strong,
.site-body-light .geo-option strong {
    font-size: 14px;
    color: inherit;
}

.site-body-light .geo-select-menu {
    max-height: 300px;
    border-color: #cbd5e1;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.site-body-light .geo-option small {
    min-width: 34px;
    background: #45b854;
    font-size: 12px;
}

.site-body-light .geo-option:hover {
    background: #edf5ff;
    color: var(--site-text);
}

.site-body-light .price-row strong {
    color: #0f172a;
    font-size: 18px;
}

.site-body-light .proxy-buy-card .buy-submit {
    min-height: 36px;
    margin: 10px 14px 12px;
    width: calc(100% - 28px);
    border-radius: 2px;
    background: var(--site-accent);
    font-size: 14px;
}

.site-body-light .hero-note {
    max-width: 820px;
    margin-top: 18px;
    color: var(--site-muted);
    font-size: 13px;
}

.site-body-light .benefits-section {
    padding: 48px 24px 56px;
    background: #fff;
}

.site-body-light .benefits-section .section-heading,
.site-body-light .seo-text .section-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.site-body-light .benefits-section .section-heading h2,
.site-body-light .partner-section h2,
.site-body-light .seo-text .section-heading h2 {
    color: var(--site-text);
    font-size: 30px;
    line-height: 1.15;
    text-transform: none;
}

.site-body-light .benefits-section .section-heading p,
.site-body-light .partner-section p,
.site-body-light .seo-text .section-heading p {
    color: var(--site-muted);
    font-size: 15px;
    line-height: 1.55;
}

.site-body-light .benefits-grid {
    max-width: 1060px;
    gap: 14px;
}

.site-body-light .benefits-grid article {
    min-height: 150px;
    padding: 18px 14px;
    border: 1px solid var(--site-line);
    border-radius: 4px;
    background: var(--site-soft);
    text-align: left;
}

.site-body-light .benefits-grid article div {
    width: 34px;
    height: 34px;
    margin: 0 0 12px;
    border-radius: 4px;
    background: #fff;
    color: var(--site-accent);
    border: 1px solid var(--site-line);
    font-size: 18px;
}

.site-body-light .benefits-grid h3 {
    font-size: 13px;
    letter-spacing: 0;
}

.site-body-light .benefits-grid p {
    color: var(--site-muted);
    font-size: 13px;
}

.site-body-light .partner-section {
    padding: 50px 24px;
    background: var(--site-soft);
    border-top: 1px solid var(--site-line);
    border-bottom: 1px solid var(--site-line);
}

.site-body-light .partner-section div {
    max-width: 740px;
}

.site-body-light .seo-text {
    max-width: none;
    padding: 44px 24px;
    background: #fff;
}

.site-body-light .site-footer {
    max-width: none;
    margin: 0;
    padding: 28px max(24px, calc((100vw - 1180px) / 2 + 24px));
    background: var(--site-soft);
    border-top: 1px solid var(--site-line);
}

.site-body-light .site-footer strong {
    color: var(--site-text);
}

.site-body-light .site-footer nav {
    color: #3c4653;
    font-size: 13px;
}

@media (max-width: 980px) {
    .site-body-light .site-topline {
        align-items: stretch;
        gap: 14px;
    }

    .site-body-light .site-main-nav,
    .site-body-light .site-actions {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .site-body-light .hero-copy h1 {
        font-size: 34px;
    }
}

@media (max-width: 620px) {
    .site-body-light .home-hero {
        padding: 30px 14px 36px;
    }

    .site-body-light .hero-copy h1 {
        font-size: 28px;
    }

    .site-body-light .buy-row,
    .site-body-light .buy-row.double {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .site-body-light .buy-row.double label:nth-of-type(2) {
        border-left: 0;
    }

    .site-body-light .site-footer {
        align-items: flex-start;
        text-align: left;
    }
}
