.noscript-warning {
    background-color: #ff6b6b;
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.noscript-warning strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

.noscript-warning p {
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.5;
}

.field-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.usd-value {
    color: #737373;
    font-size: 14px;
    padding: 0 16px;
    white-space: nowrap;
    background: #141414;
    display: flex;
    align-items: center;
}

body.dark-theme .field-wrapper { border-color: #262626; }
body.dark-theme input, body.dark-theme select {
    background-color: #141414;
    color: #ffffff;
    border: none; 
}
body.dark-theme select { border-left: 1px solid #262626; }
body.dark-theme .full-field input { 
    background-color: #141414;
    border: 1px solid #262626; 
    color: #aaaaaa;
}
body.dark-theme .full-field input:focus {
    color: #ffffff;
}

body.dark-theme .action-btn {
    color: #ffffff;
    border: none;
}

body.dark-theme .action-btn.primary-btn {
    background: linear-gradient(to bottom, #ffffff, #888888);
    color: #0a0a0a;
    position: relative;
}
body.dark-theme .action-btn.primary-btn:hover {
    opacity: 0.85;
}

body.dark-theme .action-btn.primary-btn:disabled,
body.dark-theme form:has(input[name="address"]:placeholder-shown) .action-btn.primary-btn {
    background: transparent;
    border: 1px solid #262626;
    color: #737373;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
}

body.dark-theme .action-btn.primary-btn {
    transition: all 0.3s ease;
}

body.dark-theme .action-btn.outline-btn {
    background: transparent;
    border: 1px solid #262626;
    color: #ffffff;
}
body.dark-theme .action-btn.outline-btn:hover {
    background: #262626;
}

body.light-theme .field-wrapper { border-color: #cccccc; }
body.light-theme input, body.light-theme select {
    background-color: #ffffff;
    color: #000000;
    border: none;
}
body.light-theme select { border-left: 1px solid #cccccc; }
body.light-theme .full-field input { 
    background-color: #ffffff;
    border: 1px solid #cccccc; 
}

body.light-theme .action-btn {
    background-color: #28a745;
    color: #ffffff;
    border: none;
}
body.light-theme .action-btn:hover {
    background-color: #218838;
}

input {
    flex: 1;
    min-width: 0;
    padding: 30px 24px 30px;
    font-family: inherit;
    font-size: 18px;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input:focus {
    outline: none;
    box-shadow: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

select {
    padding: 0 56px 0 24px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    font-weight: bold;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    background-image: url("/icons/site/arrow-down.svg");
    display: flex;
    align-items: center;
}

select:focus {
    outline: 1px solid #262626;
}

option {
    padding: 16px 24px;
    font-size: 16px;
    background-color: #141414;
    color: #ffffff;
}

option[value="BTC"] { background-image: url("/icons/crypto/btc.svg"); }
option[value="XMR"] { background-image: url("/icons/crypto/xmr.svg"); }
option[value="ETH"] { background-image: url("/icons/crypto/eth.svg"); }
option[value="XRP"] { background-image: url("/icons/crypto/xrp.svg"); }
option[value="LTC"] { background-image: url("/icons/crypto/ltc.svg"); }
option[value="TRX"] { background-image: url("/icons/crypto/trx.svg"); }
option[value="DASH"] { background-image: url("/icons/crypto/dash.svg"); }
option[value="ZEC"] { background-image: url("/icons/crypto/zec.svg"); }
option[value="USDT-ERC20"] { background-image: url("/icons/crypto/usdt.svg"); }
option[value="USDT-TRC20"] { background-image: url("/icons/crypto/usdt-trc20.svg"); }

.full-field input {
    padding: 15px;
    width: 100%;
}

.action-btn {
    padding: 16px 32px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    width: 100%;
    flex: 1;
    text-decoration: none;
}

.action-btn:hover {
    text-decoration: none;
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.support-modal[hidden] {
    display: none;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

.support-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 36px 28px 28px;
    box-sizing: border-box;
}

.support-modal-dialog::before,
.support-modal-dialog::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: #737373;
    border-style: solid;
    pointer-events: none;
}

.support-modal-dialog::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.support-modal-dialog::after {
    top: -1px;
    right: -1px;
    border-width: 1px 1px 0 0;
}

.support-modal-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.support-modal-corners::before,
.support-modal-corners::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: #737373;
    border-style: solid;
}

.support-modal-corners::before {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 1px 1px;
}

.support-modal-corners::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.support-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
}

.support-modal-close:hover {
    opacity: 0.7;
}

.support-modal-title {
    margin: 0 0 12px;
    text-align: center;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.support-modal-desc {
    margin: 0 0 20px;
    text-align: center;
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.5;
}

.support-modal-url {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #262626;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.support-modal-url-text {
    flex: 1;
    min-width: 0;
    color: #cfcfcf;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.support-modal-url-copy {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.support-modal-url-copy:hover {
    opacity: 0.7;
}

.support-modal-actions {
    display: flex;
    gap: 12px;
}

.support-modal-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.support-modal-actions .action-btn svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .support-modal-dialog {
        padding: 32px 18px 20px;
    }

    .support-modal-title {
        font-size: 24px;
    }

    .support-modal-actions {
        flex-direction: column;
    }

    .field-wrapper {
        flex-direction: column;
        position: relative;
        overflow: visible;
    }
    
    .field-wrapper input {
        padding: 20px 80px 20px 24px;
        font-size: 16px;
    }
    
    .field-wrapper .usd-value {
        position: absolute;
        right: 24px;
        top: 20px;
        background: transparent;
        padding: 0;
        line-height: 1;
    }
    
    .field-wrapper select {
        width: 100%;
        padding: 16px 24px;
        border-left: none !important;
        border-top: 1px solid #262626 !important;
    }
    
    body.light-theme .field-wrapper select {
        border-top: 1px solid #cccccc !important;
    }
}

.captcha-modal-dialog {
    max-width: 420px;
}

.captcha-modal-widget {
    display: flex;
    justify-content: center;
    min-height: 65px;
    margin: 0 auto 8px;
}

.captcha-modal-error {
    margin: 12px 0 0;
    text-align: center;
    color: #c45c5c;
    font-size: 13px;
}

.captcha-modal-error[hidden] {
    display: none;
}
