[hidden] { display: none !important; }

:root,
[data-bs-theme="light"] {
    --bs-primary: #0096c7;
    --bs-primary-rgb: 0, 150, 199;
    --bs-link-color: #0096c7;
    --bs-link-hover-color: #007eaa;
    --bs-border-radius: 10px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 14px;
    --bs-border-radius-xl: 14px;
    --bs-border-color: rgba(15, 23, 42, 0.1);
    --bs-body-color: #0f172a;
    --bs-body-bg: #f4f6fb;
    --bs-secondary-color: #64748b;
    --bs-secondary-bg: #ffffff;
    --bs-tertiary-bg: #f8fafc;
    --bs-body-font-family: Inter, "Segoe UI", system-ui, sans-serif;
    --site-brand: #0096c7;
    --site-brand-light: #00b4d8;
    --site-brand-soft: rgba(0, 150, 199, 0.12);
    --site-text: #0f172a;
    --site-muted: #64748b;
    --site-panel: #ffffff;
    --site-soft: #f8fafc;
    --site-input: #ffffff;
    --site-label: #475569;
    --site-border: rgba(15, 23, 42, 0.1);
    --site-head: #f1f5f9;
    --site-pill: #f1f5f9;
    --site-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --site-radius: 14px;
    --site-radius-sm: 10px;
}
[data-bs-theme="dark"] {
    --bs-primary: #38bdf8;
    --bs-primary-rgb: 56, 189, 248;
    --bs-link-color: #38bdf8;
    --bs-link-hover-color: #7dd3fc;
    --bs-border-color: rgba(148, 163, 184, 0.14);
    --bs-body-color: #e8edf7;
    --bs-body-bg: #0c1019;
    --bs-secondary-color: #94a3b8;
    --bs-secondary-bg: #151c2e;
    --bs-tertiary-bg: #1a2238;
    --site-brand: #38bdf8;
    --site-brand-light: #7dd3fc;
    --site-brand-soft: rgba(56, 189, 248, 0.16);
    --site-text: #e8edf7;
    --site-muted: #94a3b8;
    --site-panel: #151c2e;
    --site-soft: #1a2238;
    --site-input: rgba(8, 12, 24, 0.85);
    --site-label: #cbd5e1;
    --site-border: rgba(148, 163, 184, 0.14);
    --site-head: rgba(20, 28, 48, 0.9);
    --site-pill: rgba(15, 20, 36, 0.6);
    --site-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
body {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--site-text);
    background-color: #eef6fb;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("/images/website-background.png") center center / cover no-repeat;
    opacity: 0.18;
}
body > * { position: relative; z-index: 1; }
[data-bs-theme="dark"] body { background-color: #071018; }
[data-bs-theme="dark"] body::before { opacity: 0.42; }
.navbar,
.site-footer {
    background: var(--site-panel) !important;
    border-color: var(--site-border) !important;
}
.navbar-brand { font-weight: 700; letter-spacing: -0.02em; }
.nav-link {
    font-weight: 600;
    color: var(--site-muted);
    border-radius: var(--site-radius-sm);
}
.nav-link:hover,
.nav-link:focus { color: var(--site-brand); background: var(--site-brand-soft); }
.btn {
    border-radius: var(--site-radius-sm);
    padding: 11px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 8px; }
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0096c7;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #007eaa;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0077a1;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0096c7;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 0, 150, 199;
    background-image: linear-gradient(135deg, #0096c7, #00b4d8);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 150, 199, 0.35);
}
.btn-primary:hover { background-image: linear-gradient(135deg, #007eaa, #0096c7); }
.btn-outline-primary,
.btn-outline-secondary,
.btn.btn-quiet {
    --bs-btn-color: var(--site-text);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--site-border);
    --bs-btn-hover-color: var(--site-brand);
    --bs-btn-hover-bg: var(--site-brand-soft);
    --bs-btn-hover-border-color: rgba(0, 150, 199, 0.45);
    --bs-btn-active-color: var(--site-brand);
    --bs-btn-active-bg: var(--site-brand-soft);
    --bs-btn-active-border-color: rgba(0, 150, 199, 0.45);
    background: transparent;
    border: 1px solid var(--site-border);
    color: var(--site-text);
    box-shadow: none;
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn.btn-quiet:hover {
    background: var(--site-brand-soft);
    color: var(--site-brand);
    border-color: rgba(0, 150, 199, 0.45);
}
.btn-outline-danger {
    --bs-btn-color: #dc2626;
    --bs-btn-border-color: rgba(220, 38, 38, 0.35);
    --bs-btn-hover-color: #991b1b;
    --bs-btn-hover-bg: rgba(239, 68, 68, 0.12);
    --bs-btn-hover-border-color: rgba(220, 38, 38, 0.5);
    background: transparent;
    box-shadow: none;
}
.badge {
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 8px;
    line-height: 1.2;
}
.badge.text-bg-primary { background: var(--site-brand-soft) !important; color: #0369a1 !important; }
.badge.text-bg-info { background: rgba(14, 165, 233, 0.16) !important; color: #075985 !important; }
.badge.text-bg-success { background: rgba(34, 197, 94, 0.2) !important; color: #166534 !important; }
.badge.text-bg-warning { background: rgba(245, 158, 11, 0.2) !important; color: #92400e !important; }
.badge.text-bg-danger { background: rgba(239, 68, 68, 0.2) !important; color: #991b1b !important; }
.badge.text-bg-secondary { background: rgba(148, 163, 184, 0.15) !important; color: #475569 !important; }
[data-bs-theme="dark"] .badge.text-bg-primary { color: #7dd3fc !important; }
[data-bs-theme="dark"] .badge.text-bg-info { color: #7dd3fc !important; }
[data-bs-theme="dark"] .badge.text-bg-success { color: #86efac !important; }
[data-bs-theme="dark"] .badge.text-bg-warning { color: #fcd34d !important; }
[data-bs-theme="dark"] .badge.text-bg-danger { color: #fca5a5 !important; }
[data-bs-theme="dark"] .badge.text-bg-secondary { color: #cbd5e1 !important; }
.alert {
    border-radius: var(--site-radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    border-width: 1px;
}
.alert-success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); color: #166534; }
.alert-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); color: #991b1b; }
.alert-warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); color: #92400e; }
.alert-secondary { background: var(--site-soft); border-color: var(--site-border); color: var(--site-muted); }
[data-bs-theme="dark"] .alert-success { color: #bbf7d0; }
[data-bs-theme="dark"] .alert-danger { color: #fecaca; }
[data-bs-theme="dark"] .alert-warning { color: #fde68a; }
.alert.rounded-0 { border-radius: 0; }
.site-theme {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-theme:hover { transform: none; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #0096c7; }
.site-footer h2 { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; color: var(--bs-secondary-color); }

.btn-full { width: 100%; }
.panel, .auth-card, .paybox, .stat, .desk, .order-sheet, .card {
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}
.panel, .auth-card, .paybox, .stat { padding: 20px 22px; }
.auth-card { padding: 24px; }
.warn {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--site-radius-sm);
    padding: 12px 16px;
    margin-bottom: 1rem;
}
[data-bs-theme="dark"] .warn { color: #fde68a; }
.fine, .hint, .muted, .hero-note, .kicker { color: var(--bs-secondary-color); }
.kicker { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 650; }
.ok-flag { color: var(--bs-success-text-emphasis); font-weight: 650; }
.bad-flag { color: var(--bs-danger-text-emphasis); font-weight: 650; }
.error-line { color: var(--bs-danger); }
.or { text-align: center; margin: 0.75rem 0; color: var(--bs-secondary-color); }

.hero { padding: 2.6rem 1rem 4rem; }
.hero-wrap { width: min(880px, 100%); margin: 0 auto; }
.hero-head { text-align: center; margin-bottom: 1.35rem; }
.hero-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.hero-line {
    max-width: 34rem;
    margin: 0 auto 0.9rem;
    font-size: 1.02rem;
    font-weight: 550;
    line-height: 1.45;
    color: var(--site-muted);
}
.faq-badge {
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
    padding: 7px 16px;
    background: #0096c7;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 18px rgba(0, 150, 199, 0.28);
    cursor: pointer;
}
.faq-badge:hover { background: #007eaa; }
.faq-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.faq-modal[hidden] { display: none !important; }
.faq-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.faq-modal-box {
    position: relative;
    width: min(760px, 100%);
    max-height: min(86vh, 820px);
    display: flex;
    flex-direction: column;
    background: var(--site-panel);
    color: var(--site-text);
    border: 1px solid var(--site-border);
    border-radius: 16px;
    box-shadow: var(--site-shadow);
    overflow: hidden;
}
.faq-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 8px;
}
.faq-modal-head h2 { margin: 0; font-size: 1.35rem; }
.faq-modal-body { overflow: auto; padding: 8px 22px 22px; }
.faq-item { border-bottom: 1px solid var(--site-border); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: 10px 0 0; color: var(--site-muted); white-space: pre-wrap; }
body.faq-open { overflow: hidden; }
.desk, .order-sheet { padding: 20px 22px; }
.exchange-flow { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.85rem 1rem; align-items: start; }
.step-rail { list-style: none; margin: 0; padding: 0.4rem 0 0; display: flex; flex-direction: column; align-items: center; }
.step-rail li { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.step-rail li + li { margin-top: 1.6rem; position: relative; }
.step-rail li + li::before {
    content: "";
    position: absolute;
    top: -1.45rem;
    width: 2px;
    height: 1.25rem;
    background: var(--bs-border-color);
}
.step-rail button {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 2px solid #0096c7;
    background: transparent;
    color: #0096c7;
    font-weight: 700;
}
.step-rail button.is-current { background: #0096c7; color: #fff; }
.step-rail button:disabled { border-color: var(--bs-border-color); color: var(--bs-secondary-color); cursor: default; }
.step-rail span { font-size: 0.68rem; font-weight: 650; color: var(--bs-secondary-color); }
.exchange-stage { display: block; min-width: 0; }
.amount-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.85rem; align-items: end; }
.amount-mid { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem; }
.rate-note { grid-column: 1 / -1; text-align: center; margin-top: 0.15rem; }
.rate-note .rate-line { color: #0096c7; }
.rate-note .fine { margin: 0.15rem 0 0; color: var(--bs-secondary-color); }
.order-recap { display: flex; justify-content: center; gap: 0.7rem; align-items: center; font-weight: 700; margin-bottom: 1rem; color: #0096c7; }
.order-sheet { margin-top: 0; }
.order-money { display: grid; gap: 0.85rem; }
.order-side {
    padding: 0.9rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-soft);
}
.order-currency { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.order-currency .receive-num { font-size: 1.45rem; }
.direction-board { width: min(980px, calc(100% - 1.5rem)); margin: 1.75rem auto 0; }
.direction-board h2 { font-size: 1.15rem; font-weight: 650; margin: 0 0 0.8rem; }
.direction-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.direction-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.35rem 0.55rem;
    align-items: center;
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-panel);
    color: var(--site-text);
    box-shadow: var(--site-shadow);
    text-align: left;
}
.direction-side { display: flex; align-items: center; gap: 0.55rem; min-width: 0; font-weight: 650; }
.direction-side > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.direction-arrow { color: #0096c7; font-size: 1.15rem; font-weight: 700; }
.direction-rate { grid-column: 1 / -1; color: var(--bs-secondary-color); font-size: 0.92rem; }
.direction-card:hover { border-color: #0096c7; }
.rate-panel {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: var(--bs-border-radius);
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
}
.rate-line { margin: 0; font-weight: 650; }
.hero-note { margin-top: 1rem; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 30;
    background: var(--bs-body-bg);
    padding: 0.4rem 0.7rem;
}
.skip:focus { top: 1rem; }

label.field, .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--site-label);
}
label.field > input,
label.field > select,
label.field > textarea,
.field > input,
.field > select,
.field > textarea,
.filters > input,
.form-control,
.form-select {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 11px 13px;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    color: var(--site-text);
    background-color: var(--site-input);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
label.field > input:focus,
label.field > select:focus,
label.field > textarea:focus,
.field > input:focus,
.field > select:focus,
.field > textarea:focus,
.filters > input:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(0, 150, 199, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.2);
}
label.check, .check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: var(--site-radius-sm);
    border: 1px solid var(--site-border);
    background: var(--site-soft);
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--site-text);
}
.check input { width: auto; margin-top: 0.2rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.side-label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.picker { position: relative; }
.picker-face, .picker-list button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    border: 1px solid var(--site-border);
    background: var(--site-input);
    color: var(--site-text);
    text-align: left;
}
.picker-face {
    min-height: 58px;
    padding: 0.45rem 0.7rem;
    border-radius: var(--site-radius-sm);
}
.picker.is-open .picker-face { border-color: rgba(0, 150, 199, 0.65); box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.2); }
.picker-name { font-weight: 600; }
.caret {
    margin-left: auto;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--bs-secondary-color);
    border-bottom: 2px solid var(--bs-secondary-color);
    transform: rotate(45deg) translateY(-2px);
}
.picker-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    max-height: 280px;
    overflow: auto;
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    box-shadow: var(--site-shadow);
}
.picker-list button {
    border: 0;
    border-radius: var(--bs-border-radius-sm);
    padding: 0.4rem 0.45rem;
    cursor: pointer;
}
.picker-list button:hover, .picker-list button[aria-selected="true"] { background: var(--bs-tertiary-bg); }
.coin, .logo-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--bs-tertiary-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    flex: 0 0 auto;
}
.coin-fallback {
    display: inline-grid;
    place-items: center;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    border: 0;
}
.receive-num { font-size: 1.8rem; font-weight: 650; margin: 0.15rem 0; }
.ref, .mono, pre { font-family: var(--bs-font-monospace); white-space: pre-wrap; overflow-wrap: anywhere; }

.chat-list { display: grid; gap: 8px; max-height: 460px; overflow: auto; }
.bubble { max-width: min(100%, 40rem); border-radius: 12px; padding: 10px 12px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; margin-top: 4px; color: var(--site-muted); font-size: 0.75rem; }
.bubble-me,
.bubble-role-user { margin-left: auto; background: #0096c7; color: #fff; }
.bubble-me time,
.bubble-role-user time { color: rgba(255, 255, 255, 0.75); }
.bubble-them,
.bubble-role-admin { background: #0f766e; color: #fff; }
.bubble-them time,
.bubble-role-admin time { color: rgba(255, 255, 255, 0.8); }
.bubble-system { margin-inline: auto; border: 1px dashed var(--site-border); color: var(--site-muted); text-align: center; background: transparent; }
.table-responsive.card,
.card > .table {
    overflow: hidden;
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: var(--site-brand-soft);
    --bs-table-color: var(--site-text);
    --bs-table-border-color: var(--site-border);
    margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: 12px; background: transparent; }
.table thead th {
    color: var(--site-muted);
    font-weight: 600;
    background: var(--site-head);
    border-bottom: 1px solid var(--site-border);
}

@media (min-width: 992px) {
    .desk-sidebar.offcanvas-lg {
        position: sticky !important;
        top: 0;
        width: 260px !important;
        height: 100vh !important;
        flex: 0 0 260px !important;
        visibility: visible !important;
        transform: none !important;
        background-color: var(--bs-tertiary-bg) !important;
        border-right: var(--bs-border-width) solid var(--bs-border-color) !important;
    }
    .desk-sidebar.offcanvas-lg .offcanvas-body { height: 100%; overflow-y: auto; }
}
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; padding-top: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-head h1, .auth-card h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.section { padding-bottom: 1.5rem; }
.stack { display: grid; gap: 1rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat span { color: var(--bs-secondary-color); font-size: 0.85rem; }
.stat b { display: block; font-size: 1.7rem; font-weight: 650; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1rem; }
.filters a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    color: var(--site-muted);
    background: var(--site-pill);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.filters a:hover,
.filters a.is-on {
    color: var(--site-brand);
    background: var(--site-brand-soft);
    border-color: rgba(0, 150, 199, 0.45);
}
.filters > input { width: auto; min-width: 12rem; margin-top: 0; }
.pager { display: flex; gap: 0.8rem; align-items: center; }
.auth-wrap { width: min(460px, calc(100% - 2rem)); margin: 2rem auto 3rem; }
.signup-wrap { width: min(520px, calc(100% - 2rem)); }
.gmail-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--site-radius);
    border: 1px solid #dadce0;
    background: #fff;
    color: #202124;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.gmail-choice:hover { border-color: #0096c7; color: #202124; }
.gmail-choice strong, .gmail-choice small { display: block; }
.gmail-choice strong { font-size: 1rem; }
.gmail-choice small { margin-top: 2px; color: #5f6368; font-size: 0.82rem; }
.btn.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #202124;
    border: 1px solid #dadce0;
    box-shadow: none;
}
.btn.btn-google:hover { background: #f8fafc; color: #202124; border-color: #0096c7; }
.google-mark { width: 18px; height: 18px; flex: none; display: block; }
.google-mark path:nth-child(1) { fill: #4285F4; }
.google-mark path:nth-child(2) { fill: #34A853; }
.google-mark path:nth-child(3) { fill: #FBBC05; }
.google-mark path:nth-child(4) { fill: #EA4335; }
.gmail-choice .google-mark { width: 28px; height: 28px; }
.signup-rail {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
}
.signup-rail li {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--site-muted);
    padding-top: 8px;
    border-top: 3px solid var(--site-border);
}
.signup-rail li.is-current { color: #0096c7; border-top-color: #0096c7; }
.signup-rail li.is-done { color: #0f766e; border-top-color: #0f766e; }
.field-name { display: inline-flex; align-items: center; gap: 6px; }
.req-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e11d48;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}
.opt-mark {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--site-muted);
}
.signup-code {
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.35em;
}
.signup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.signup-actions form { flex: 1; }
.signup-actions .btn { width: 100%; }
.check .req-mark { margin-top: 2px; flex: none; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--bs-border-color); padding: 0.45rem 0; }
.dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--bs-primary); margin-right: 0.35rem; }

@media (min-width: 768px) {
    .direction-grid, .order-money { grid-template-columns: 1fr 1fr; }
}
.order-board .panel { margin-bottom: 0; }
.order-details { display: grid; gap: 0.85rem; }
.order-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.85rem; }
.order-figures strong { display: block; font-size: 1.25rem; color: #0096c7; }
.order-progress {
    list-style: none;
    display: flex;
    margin: 0 0 1.25rem;
    padding: 0.35rem 0 0.2rem;
}
.order-progress li {
    flex: 1;
    text-align: center;
    position: relative;
}
.order-progress li::before {
    content: "";
    position: absolute;
    top: 13px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--bs-border-color);
}
.order-progress li:first-child::before { display: none; }
.order-progress li.is-done::before,
.order-progress li.is-current::before { background: #0096c7; }
.order-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
}
.order-progress li.is-done .order-step-dot { background: #0096c7; border-color: #0096c7; color: #fff; }
.order-progress li.is-current .order-step-dot { border-color: #0096c7; color: #0096c7; box-shadow: 0 0 0 4px rgba(0, 150, 199, 0.16); }
.order-step-label { display: block; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 650; color: var(--bs-secondary-color); }
.order-progress li.is-current .order-step-label,
.order-progress li.is-done .order-step-label { color: #0096c7; }
.order-board { width: min(1440px, 100%); margin-inline: auto; }
.order-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 1rem; align-items: start; }
.order-details .order-figures { grid-template-columns: 1fr; }
.order-details .order-figures strong { font-size: 1.05rem; }
.order-chat { position: sticky; top: 1rem; }
.order-board [data-chat] { display: flex; flex-direction: column; min-height: 640px; margin: 0; }
.order-board [data-chat] h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.order-board .chat-list {
    flex: 1;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 8px;
    min-height: 420px;
    max-height: 68vh;
    padding: 0.35rem 0.2rem 0.35rem 0;
}
.order-board .bubble { width: fit-content; max-width: min(78%, 36rem); }
.order-board .bubble-me,
.order-board .bubble-role-user {
    justify-self: end;
    margin-left: 0;
    background: #0096c7 !important;
    color: #fff !important;
}
.order-board .bubble-them,
.order-board .bubble-role-admin {
    justify-self: start;
    background: #0f766e !important;
    color: #fff !important;
    border: 0;
}
.order-board .bubble-them time,
.order-board .bubble-role-admin time { color: rgba(255, 255, 255, 0.8) !important; }
.order-board .bubble-system { justify-self: center; }
.order-board .bubble-who {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.order-board .bubble-me .bubble-who,
.order-board .bubble-role-user .bubble-who { color: rgba(255, 255, 255, 0.85); }
.order-board .bubble-them .bubble-who,
.order-board .bubble-role-admin .bubble-who { color: rgba(255, 255, 255, 0.85); }
.order-board [data-chat] form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; align-items: end; margin-top: 0.75rem; }
.order-board [data-chat] .field { margin: 0; }
.order-board [data-chat] textarea { min-height: 52px; }
.order-board .paybox pre { margin: 0; }

@media (max-width: 900px) {
    .sides, .row-2, .stat-grid, .order-money, .amount-row, .order-grid, .order-figures { grid-template-columns: 1fr; }
    .amount-mid { padding-bottom: 0; }
    .hero { padding: 1.35rem 0.85rem 2.4rem; }
    .btn-full, .amount-mid .btn { min-height: 48px; width: 100%; }
    label.field > input,
    label.field > textarea { font-size: 16px; }
    .step-rail span { display: none; }
    .exchange-flow { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.55rem; }
    .order-chat { position: static; }
    .order-board [data-chat] { min-height: 0; }
    .order-board .chat-list { min-height: 220px; max-height: 360px; }
    .order-step-label { font-size: 0.68rem; }
}
