/*
 * Progressive fallback for Tor Browser/NoScript.
 * Loaded from <noscript> or directly for server-detected Tor requests.
 */

.nojs-page-loader {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100000;
    height: 4px;
    overflow: hidden;
    background: rgba(24, 189, 229, .12);
    pointer-events: none;
    animation: nojs-page-loader-hide .25s ease 1.6s forwards;
}

.nojs-page-loader__bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(.04);
    transform-origin: left center;
    background: linear-gradient(90deg, #7de4fa, #18bde5, #7de4fa);
    box-shadow: 0 0 14px rgba(24, 189, 229, .9);
    animation: nojs-page-loader-progress 1.55s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes nojs-page-loader-progress {
    0% { transform: scaleX(.04); }
    60% { transform: scaleX(.72); }
    85% { transform: scaleX(.9); }
    100% { transform: scaleX(1); }
}

@keyframes nojs-page-loader-hide {
    to {
        visibility: hidden;
        opacity: 0;
    }
}

.theme-toggle,
.mobile-nav-toggle,
#exchange .custom-asset-wrapper,
#exchange .asset-picker-head,
#exchange .reverse-btn,
#exchange .estimate-result,
#exchange .progress-tracking,
.nojs-hide {
    display: none !important;
}

#exchange .nojs-reverse-wrap {
    display: flex;
    width: 100%;
    justify-content: center;
}

#exchange .nojs-reverse-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: none !important;
}

#exchange .nojs-reverse-btn:hover {
    transform: scale(1.04) !important;
}

#exchange .nojs-reverse-icon {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.lang-dd__btn {
    display: none !important;
}

.lang-dd__menu {
    position: static !important;
    display: flex !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.lang-dd__opt {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    grid-template-columns: none !important;
    min-height: 38px !important;
    padding: 5px !important;
}

.lang-dd__opt-copy,
.lang-dd__opt-check {
    display: none !important;
}

.lang-dd__opt-media {
    display: none !important;
}

.lang-dd__nojs-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-secondary);
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

@media (max-width: 768px) {
    .header-content--nav-only {
        flex-wrap: wrap;
    }

    .mobile-nav-panel {
        position: static !important;
        display: flex !important;
        width: 100% !important;
        padding: 7px !important;
        gap: 6px;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }
}

#exchange .asset-select {
    display: none !important;
}

#exchange .nojs-asset-picker {
    position: relative;
    width: 100%;
}

#exchange .nojs-asset-picker__summary {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 7px 10px;
    color: var(--ex-ink, var(--text-primary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

#exchange .nojs-asset-picker__summary::-webkit-details-marker {
    display: none;
}

#exchange .nojs-asset-picker__summary img,
#exchange .nojs-asset-picker__option img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
}

#exchange .nojs-asset-picker__chevron {
    color: var(--accent-primary);
    font-size: 20px;
    text-align: center;
}

#exchange .nojs-asset-picker[open] .nojs-asset-picker__chevron {
    transform: rotate(180deg);
}

#exchange .nojs-asset-picker__list {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 100;
    display: grid;
    gap: 5px;
    width: min(360px, calc(100vw - 48px));
    max-height: 330px;
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .38);
}

#exchange .nojs-asset-picker__option {
    display: grid;
    grid-template-columns: 30px minmax(54px, 1fr) 22px;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 8px;
    color: var(--text-primary);
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--bg-secondary);
    cursor: pointer;
    text-decoration: none;
}

#exchange .nojs-asset-picker__option.is-selected {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

#exchange .nojs-asset-picker__coin {
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
}

#exchange .nojs-asset-picker__network {
    padding: 3px 6px;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

#exchange .nojs-asset-picker__selected-mark {
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

#exchange .val-input-wrap {
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr) !important;
}

#exchange #receiveVal,
#exchange #receiveValUsdInput,
#exchange #receiveFiatRate {
    display: none !important;
}

#exchange .fiat-under-box {
    display: none !important;
}

#exchange .swap-widget-col--receive .val-input-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "label" "asset" !important;
}

#exchange .exchange-mode-switch--single {
    display: none !important;
}

#exchange .exchange-mode-option,
#exchange .exchange-mode-switch__glow {
    display: none !important;
}

#exchange .exchange-mode-switch {
    min-height: 50px;
}

#exchange .nojs-mode-options {
    position: absolute;
    inset: 5px;
    z-index: 2;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

#exchange .nojs-mode-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    width: 100%;
    padding: 0 14px;
    color: var(--ex-muted);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

#exchange .nojs-mode-option.is-active {
    color: #031116;
    background: linear-gradient(135deg, #7de4fa, #18bde5);
    box-shadow: 0 8px 24px rgba(24, 189, 229, .28);
}

#exchange.nojs-mixer-mode .swap-widget-col--receive,
#exchange:has(.exchange-mode-option input[value="mixer"]:checked) .swap-widget-col--receive {
    display: none !important;
}

#exchange.nojs-mixer-mode .mixing-info-card,
#exchange:has(.exchange-mode-option input[value="mixer"]:checked) .mixing-info-card {
    display: grid !important;
}

#exchange .nojs-estimate-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 9px 16px;
    color: var(--accent-primary);
    border: 1px solid rgba(24, 189, 229, .42);
    border-radius: 12px;
    background: rgba(24, 189, 229, .08);
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
}

#exchange .nojs-estimate-result {
    display: grid !important;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(24, 189, 229, .32);
    border-radius: 14px;
    background:
        radial-gradient(circle at 10% 0%, rgba(24, 189, 229, .12), transparent 42%),
        var(--bg-card);
}

#exchange .nojs-estimate-result__head {
    display: grid;
    gap: 3px;
}

#exchange .nojs-estimate-result__head strong {
    color: var(--accent-primary);
    font-size: 13px;
    text-transform: uppercase;
}

#exchange .nojs-estimate-result__head span {
    color: var(--text-muted);
    font-size: 11px;
}

#exchange .nojs-estimate-result__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

#exchange .nojs-estimate-result__flow > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-secondary);
}

#exchange .nojs-estimate-result__flow span,
#exchange .nojs-estimate-result__flow small {
    color: var(--text-muted);
    font-size: 10px;
}

#exchange .nojs-estimate-result__flow strong {
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 15px;
}

#exchange .nojs-estimate-result__flow > b {
    color: var(--accent-primary);
    font-size: 22px;
    text-align: center;
}

#exchange .fiat-input-under {
    pointer-events: none;
}

.nojs-alert {
    margin: 0 0 12px;
    padding: 12px 14px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-secondary);
    font-weight: 800;
    line-height: 1.45;
}

.nojs-alert--error {
    color: var(--accent-error);
    border-color: rgba(214, 75, 75, 0.35);
    background: rgba(214, 75, 75, 0.08);
}

.home-benefit-icon svg {
    display: none !important;
}

.home-benefit-icon::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #021014;
    font-family: Arial, sans-serif;
    font-weight: 900;
    line-height: 1;
}

.home-benefit-icon--privacy::before {
    content: "✓";
    width: 17px;
    height: 19px;
    border: 2px solid #021014;
    border-radius: 9px 9px 11px 11px;
    font-size: 12px;
}

.home-benefit-icon--limits::before {
    content: "∞";
    font-size: 27px;
    transform: translateY(-1px);
}

.home-benefit-icon--speed::before {
    content: "↗";
    font-size: 23px;
}

.home-benefits .home-benefit-icon [data-mode-icon] {
    display: none !important;
}

.home-benefits.is-mixer-mode .home-benefit-icon--privacy::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% - 10px);
    width: 22px;
    height: 8px;
    border: 0;
    border-radius: 0;
    background: #021014;
    clip-path: polygon(0 38%, 68% 38%, 68% 0, 100% 50%, 68% 100%, 68% 62%, 0 62%);
    transform: translateX(-50%);
}

.home-benefits.is-mixer-mode .home-benefit-icon--privacy::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(50% - 10px);
    width: 22px;
    height: 8px;
    background: #021014;
    clip-path: polygon(0 38%, 68% 38%, 68% 0, 100% 50%, 68% 100%, 68% 62%, 0 62%);
    transform: translateX(-50%) rotate(180deg);
}

.home-benefits.is-mixer-mode .home-benefit-icon--limits::before {
    content: "$";
    position: static;
    width: 20px;
    height: 20px;
    border: 2px solid #021014;
    border-radius: 50%;
    background: none;
    font-size: 13px;
    transform: none;
}

.home-benefits.is-mixer-mode .home-benefit-icon--speed::before {
    content: "CEX";
    position: static;
    width: 24px;
    height: 17px;
    border-top: 2px solid #021014;
    border-bottom: 2px solid #021014;
    background: none;
    font-size: 8px;
    letter-spacing: 0.4px;
    transform: none;
}

.home-benefits.is-mixer-mode .home-benefit-icon--speed::after {
    content: none;
}

.contacts-type-icon svg {
    display: none !important;
}

.contacts-type-icon::before {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
}

.contacts-type-icon--telegram::before { content: "T"; }
.contacts-type-icon--mail::before { content: "@"; }
.contacts-type-icon--phone::before { content: "+"; }
.contacts-type-icon--contact::before { content: "i"; }

.nojs-order {
    display: grid;
    gap: 12px;
}

.nojs-order__panel {
    padding: clamp(14px, 2.4vw, 20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background:
        linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    box-shadow: var(--shadow-sm);
}

.nojs-order__panel h1,
.nojs-order__panel h2,
.nojs-order__panel h3,
.nojs-order__panel p {
    margin-top: 0;
}

.nojs-order__head,
.nojs-order__row,
.nojs-order__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.nojs-order__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nojs-order__manual-refresh {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 12px 14px;
    color: var(--text-secondary);
    border: 1px solid rgba(24, 189, 229, .3);
    border-radius: 14px;
    background: rgba(24, 189, 229, .07);
}

.nojs-order__manual-refresh p {
    margin: 0;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.nojs-order__manual-refresh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #031116;
    border-radius: 10px;
    background: linear-gradient(135deg, #7de4fa, #18bde5);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.nojs-order__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.nojs-order__flow-side {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-card);
}

.nojs-order__flow-side--send {
    background: linear-gradient(180deg, var(--bg-card), rgba(245, 158, 11, .06));
}

.nojs-order__flow-side--receive {
    border-color: rgba(24, 189, 229, .28);
    background: linear-gradient(180deg, var(--bg-card), rgba(24, 189, 229, .07));
}

.nojs-order__flow-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 28px;
    font-weight: 900;
}

.nojs-order__item {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-secondary);
}

.nojs-order__item--full {
    grid-column: 1 / -1;
}

.nojs-order__deposit-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nojs-order__deposit-instruction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 10px;
    padding: 9px 11px;
    color: var(--accent-warning);
    border: 1px solid rgba(245, 189, 79, .3);
    border-radius: 9px;
    background: rgba(245, 189, 79, .08);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.nojs-order__item--deposit {
    padding: 14px;
    border-color: rgba(24, 189, 229, .38);
    background:
        radial-gradient(circle at 0 0, rgba(24, 189, 229, .11), transparent 48%),
        var(--bg-secondary);
    box-shadow: inset 3px 0 0 rgba(24, 189, 229, .78), var(--shadow-sm);
}

.nojs-order__deposit-label {
    display: inline-flex;
    align-items: center;
    margin: 1px 0 8px;
    color: var(--accent-primary);
}

.nojs-order__deposit-address {
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
    min-height: 52px;
    overflow: hidden;
    border: 1px solid rgba(24, 189, 229, .34);
    border-radius: 11px;
    background: var(--bg-card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 8px 20px rgba(0, 0, 0, .12);
}

.nojs-order__deposit-address-value {
    display: flex;
    min-width: 0;
    padding: 11px 13px;
    align-items: center;
}

.nojs-order__deposit-address code {
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 800;
    letter-spacing: .015em;
    cursor: text;
    -webkit-user-select: all;
    user-select: all;
}

.nojs-order__deposit-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    padding: 8px 14px;
    border-right: 1px solid rgba(24, 189, 229, .34);
    background: rgba(24, 189, 229, .08);
}

.nojs-order__deposit-coin {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.nojs-order__deposit-coin img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
}

.nojs-order__deposit-amount strong {
    width: fit-content;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.25;
    cursor: text;
    -webkit-user-select: all;
    user-select: all;
}

.nojs-order__item code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--text-primary);
    line-height: 1.45;
}

.nojs-order__item time {
    color: var(--text-primary);
    font-weight: 800;
}

.nojs-order__time-left {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 5px 10px;
    color: var(--accent-warning);
    border: 1px solid rgba(245, 189, 79, .3);
    border-radius: 999px;
    background: rgba(245, 189, 79, .08);
    font-weight: 950;
}

.nojs-order__label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nojs-order__asset {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.nojs-order__asset img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

.nojs-order__transactions {
    display: grid;
    gap: 12px;
}

.nojs-order__transactions > h2 {
    margin-bottom: 0;
}

.nojs-order__tx-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-secondary);
}

.nojs-order__tx-group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    font-size: 14px;
}

.nojs-order__tx-group h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 900;
}

.nojs-order__tx-group--incoming h3 span {
    color: #031116;
    background: #7de4fa;
}

.nojs-order__tx-group--outgoing h3 span {
    color: #fff;
    background: #7c3aed;
}

.nojs-order__tx-row {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--bg-card);
}

.nojs-order__tx-row a {
    min-width: 0;
    color: var(--accent-primary);
    text-decoration: none;
}

.nojs-order__tx-row code {
    display: block;
    min-width: 0;
}

.nojs-order code,
.nojs-order textarea,
.nojs-support textarea {
    width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.nojs-order textarea {
    min-height: 230px;
    padding: 12px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-secondary);
    resize: vertical;
}

.nojs-order form,
.nojs-support form {
    display: grid;
    gap: 9px;
}

.nojs-order input:not([type="checkbox"]):not([type="hidden"]),
.nojs-support textarea {
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-primary);
    font: inherit;
}

.nojs-order form label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.4;
}

.nojs-order input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--accent-primary);
}

.nojs-order button,
.nojs-order .nojs-button,
.nojs-support button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    color: #fff;
    border: 0;
    border-radius: 14px;
    background: var(--accent-primary);
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.nojs-order button[name="nojs_order_action"][value="delete"] {
    background: var(--accent-error);
}

.nojs-order__summary {
    padding: clamp(14px, 2vw, 18px);
}

.nojs-order__summary .nojs-order__head {
    flex-wrap: nowrap;
}

.nojs-order__summary h1 {
    min-width: 0;
    margin: 0;
    font-size: clamp(22px, 3.2vw, 30px);
    line-height: 1.15;
}

.nojs-order__header-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.nojs-order__summary .nojs-order__actions {
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: nowrap;
}

.nojs-order .nojs-order__action {
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(24, 189, 229, .32);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1;
}

.nojs-order .nojs-order__action--refresh {
    color: #031116;
    background: linear-gradient(135deg, #7de4fa, #18bde5);
    box-shadow: 0 7px 18px rgba(24, 189, 229, .14);
}

.nojs-order .nojs-order__action--new {
    color: var(--accent-primary);
    background: rgba(24, 189, 229, .07);
}

.nojs-order__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 1px solid currentColor;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

/* Partner page: Tor's safest mode may suppress SVG rendering. */
.msg-alert svg,
.auth-icon svg,
.ref-link-label svg,
.stat-icon-wrap svg,
.badge svg {
    display: none !important;
}

.msg-alert::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-weight: 900;
}

.msg-alert.ok::before { content: "✓"; }
.msg-alert.err::before { content: "!"; }

.auth-icon {
    position: relative;
}

.auth-icon::before {
    content: "";
    width: 25px;
    height: 21px;
    margin-top: 8px;
    border: 3px solid currentColor;
    border-radius: 5px;
}

.auth-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    width: 15px;
    height: 14px;
    border: 3px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    transform: translateX(-50%);
}

.ref-link-label::after {
    content: "▣";
    margin-left: 6px;
    color: var(--accent-primary);
    font-size: 14px;
}

.stat-icon-wrap::before {
    color: currentColor;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.stat-box:nth-child(1) .stat-icon-wrap::before { content: "$"; }
.stat-box:nth-child(2) .stat-icon-wrap::before { content: "↗"; }
.stat-box:nth-child(3) .stat-icon-wrap::before { content: "⇄"; }
.stat-box:nth-child(4) .stat-icon-wrap::before { content: "•"; font-size: 34px; }

.badge::before {
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.badge.pending::before { content: "…"; }
.badge.processing::before { content: "↻"; }
.badge.success::before { content: "✓"; }
.badge.refunded::before { content: "↩"; }
.badge.failed::before { content: "×"; }

.nojs-support {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9000;
}

.nojs-support[open] {
    width: min(390px, calc(100vw - 24px));
}

.nojs-support__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-left: auto;
    color: #031116;
    border: 1px solid rgba(125, 228, 250, 0.72);
    border-radius: 18px;
    background: linear-gradient(135deg, #7de4fa, #18bde5);
    box-shadow: 0 16px 36px rgba(24, 189, 229, 0.28);
    cursor: pointer;
    list-style: none;
}

.nojs-support__toggle::-webkit-details-marker {
    display: none;
}

.nojs-support__toggle svg {
    display: none;
}

.nojs-support__toggle::before {
    content: "";
    width: 25px;
    height: 19px;
    border: 3px solid currentColor;
    border-radius: 9px;
    transform: translateY(-2px);
}

.nojs-support__toggle::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    margin: 15px 0 0 -13px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: skewY(-32deg);
}

.nojs-support__toggle > span:not(.nojs-support__unread) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nojs-support__unread {
    position: absolute;
    right: -7px;
    top: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: #fff;
    border: 2px solid var(--bg-primary);
    border-radius: 999px;
    background: #ef4444;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(239, 68, 68, .35);
}

.nojs-support[open] .nojs-support__unread {
    display: none;
}

.nojs-support[open] .nojs-support__toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin: 0;
    color: var(--text-primary);
    border-color: var(--border-color);
    border-radius: 50%;
    background: var(--bg-secondary);
    box-shadow: none;
    transform: none;
}

.nojs-support[open] .nojs-support__toggle::before,
.nojs-support[open] .nojs-support__toggle::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 2px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: currentColor;
}

.nojs-support[open] .nojs-support__toggle::before {
    transform: rotate(45deg);
}

.nojs-support[open] .nojs-support__toggle::after {
    transform: rotate(-45deg);
}

.nojs-support__panel {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: min(620px, calc(100vh - 40px));
    max-height: min(620px, calc(100vh - 40px));
    padding: 18px;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.nojs-support__head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding-right: 34px;
}

.nojs-support__head h2,
.nojs-support__head p {
    margin: 0;
}

.nojs-support__head h2 {
    font-size: 18px;
}

.nojs-support__head p {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.nojs-support__head-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #031116;
    border-radius: 13px;
    background: linear-gradient(135deg, #7de4fa, #18bde5);
}

.nojs-support__head-icon svg {
    display: none;
}

.nojs-support__head-icon::before {
    content: "";
    width: 21px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 7px;
}

.nojs-support__head-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    margin: 13px 0 0 -11px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewY(-32deg);
}

.nojs-support__refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-secondary);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.nojs-support__messages {
    display: flex;
    flex-direction: column-reverse;
    flex: 1 1 auto;
    gap: 8px;
    min-height: 80px;
    max-height: none;
    margin: 0;
    overflow: auto;
}

.nojs-support form {
    flex: 0 0 auto;
}

.nojs-support__message {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--bg-secondary);
}

.nojs-support__message--admin {
    border-left: 4px solid var(--accent-primary);
}

.nojs-support__message time {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.contacts-modal {
    display: none !important;
}

.contacts-anchor {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contacts-modal:target,
.contacts-anchor:target + .contacts-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    background: rgba(0, 3, 6, .78) !important;
}

.contacts-modal .modal-close:not(.nojs-contacts-close) {
    display: none !important;
}

.contacts-modal .nojs-contacts-close {
    display: inline-flex !important;
    text-decoration: none;
}

@media (max-width: 768px) {
    #exchange .val-input-wrap {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: "label" "asset" "value" !important;
    }

    .nojs-order__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nojs-order__flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .nojs-order__flow-arrow {
        min-height: 28px;
        transform: rotate(90deg);
    }

    .nojs-order__summary .nojs-order__head {
        align-items: stretch;
        flex-direction: column;
    }

    .nojs-order__header-controls {
        width: 100%;
        justify-content: space-between;
    }

    .nojs-order__summary .nojs-order__actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nojs-order .nojs-order__action {
        width: 100%;
    }

    .nojs-order__item--deposit {
        padding: 11px;
    }

    .nojs-order__deposit-address {
        grid-template-columns: minmax(0, 1fr);
        min-height: 48px;
    }

    .nojs-order__deposit-address-value {
        min-height: 48px;
        padding: 10px 11px;
    }

    .nojs-order__deposit-amount {
        justify-content: space-between;
        min-width: 0;
        padding: 10px 11px;
        border-right: 0;
        border-bottom: 1px solid rgba(24, 189, 229, .34);
    }

    .nojs-order__deposit-address code {
        font-size: 13px;
    }

    #exchange .nojs-estimate-result__flow {
        grid-template-columns: minmax(0, 1fr);
    }

    #exchange .nojs-estimate-result__flow > b {
        transform: rotate(90deg);
    }
}

@media (max-width: 620px) {
    .nojs-support {
        right: 12px;
        bottom: 12px;
    }

    .nojs-support[open] {
        width: calc(100vw - 24px);
    }

    .nojs-support__panel {
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        padding: 14px;
    }
}
