/* TechNest Crypto — стили в духе license-shop (тёмная тема) */

.tncrypto-widget {
    padding: 15px;
}

.tncrypto-amount-input {
    margin: 10px 0;
}

.tncrypto-amount-input > label {
    display: block;
    font-size: 13px;
    color: #8aaac8;
    margin-bottom: 6px;
}

/* Поле суммы — тёмный инпут с символом валюты */
.tncrypto-amount-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 16, 30, 0.55);
    border: 1px solid #253050;
    border-radius: 10px;
    padding: 4px 10px 4px 14px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.tncrypto-amount-field:focus-within {
    border-color: #e8a020;
    box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.12);
}

.tncrypto-currency-prefix {
    color: #e8a020;
    font-size: 1.25em;
    font-weight: 700;
}

.tncrypto-amount-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: #e8ecf2;
    font-size: 1.25em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 9px 2px;
}

.tncrypto-amount-field input::-webkit-outer-spin-button,
.tncrypto-amount-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tncrypto-amount-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.tncrypto-currency-tag {
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #5a7a9a;
    background: rgba(26, 48, 80, 0.4);
    border: 1px solid #253050;
    border-radius: 6px;
    padding: 4px 9px;
}

/* Быстрые суммы */
.tncrypto-amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tncrypto-preset {
    padding: 5px 13px;
    font-size: 0.8em;
    font-weight: 600;
    background: rgba(26, 48, 80, 0.25);
    color: #8aaac8;
    border: 1px solid #253050;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s;
}

.tncrypto-preset:hover {
    border-color: #e8a020;
    color: #e8a020;
    background: rgba(232, 160, 32, 0.08);
    transform: translateY(-1px);
}

.tncrypto-preset.active {
    border-color: #e8a020;
    color: #e8ecf2;
    background: rgba(232, 160, 32, 0.14);
}

/* Основная кнопка — градиент с иконкой */
.tncrypto-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 14px auto 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a6aaa 0%, #2080cc 55%, #2ea0e8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 14px rgba(26, 106, 170, 0.35);
    transition: transform 0.12s, box-shadow 0.18s, filter 0.18s;
}

.tncrypto-pay-btn svg {
    flex-shrink: 0;
    opacity: 0.95;
}

.tncrypto-pay-btn:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 160, 232, 0.45);
}

.tncrypto-pay-btn:active:not(:disabled) {
    transform: translateY(0);
}

.tncrypto-pay-btn:disabled {
    background: #1a3050;
    color: #4a6a8a;
    box-shadow: none;
    cursor: not-allowed;
}

.tncrypto-order-area {
    margin-top: 12px;
}

/* Панель заказа — как .technest-balance-pay-wrap */
.tncrypto-panel {
    border: 1px solid #253050;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.tncrypto-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0;
    font-size: 0.92em;
    color: #8aaac8;
}

.tncrypto-row strong {
    color: #7ec8f8;
    font-weight: 700;
}

.tncrypto-fiat {
    color: #5a7a9a;
    font-size: 0.85em;
}

.tncrypto-addr-row {
    align-items: flex-start;
}

.tncrypto-addr {
    padding: 4px 8px;
    border: 1px solid #253050;
    border-radius: 4px;
    font-size: 0.85em;
    color: #e8ecf2;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.tncrypto-copy-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #4a5a70;
    border-radius: 4px;
    color: #6a8aaa;
    font-size: 0.8em;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
}

.tncrypto-copy-btn:hover {
    border-color: #e8a020;
    color: #e8a020;
}

/* Кнопки действий — ghost-стиль как .technest-test-btn */
.tncrypto-actions {
    margin: 12px 0 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tncrypto-actions .rcl-bttn,
.tncrypto-transak-btn,
.tncrypto-sent-btn {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid #4a5a70;
    border-radius: 6px;
    color: #8aaac8;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.tncrypto-actions .rcl-bttn:hover:not(:disabled),
.tncrypto-transak-btn:hover:not(:disabled),
.tncrypto-sent-btn:hover:not(:disabled) {
    border-color: #e8a020;
    color: #e8a020;
    background: rgba(232, 160, 32, 0.06);
}

.tncrypto-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tncrypto-tx-form {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.tncrypto-tx-input {
    flex: 1;
    min-width: 0;
    margin: 10px 0;
    padding: 8px 10px;
    background: #1a1a24;
    border: 1px solid #253050;
    border-radius: 6px;
    color: #e8ecf2;
    font-family: monospace;
    font-size: 0.85em;
}

.tncrypto-tx-input:focus {
    outline: none;
    border-color: #1a6aaa;
}

.tncrypto-tx-submit {
    padding: 8px 14px;
    background: #1a6aaa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tncrypto-tx-submit:hover:not(:disabled) {
    background: #2080cc;
}

.tncrypto-tx-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Статусы — как .technest-msg-* */
.tncrypto-status {
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 600;
}

.tncrypto-ok { color: #a5d6a7; }
.tncrypto-err { color: #ef9a9a; }

.tncrypto-shop-wrap {
    margin-top: 4px;
}

.tncrypto-not-logged,
.tncrypto-error {
    padding: 10px;
    color: #ef9a9a;
}

.tncrypto-i-paid-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: #2e7d32 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.tncrypto-i-paid-btn:hover:not(:disabled) {
    background: #388e3c !important;
}

.tncrypto-i-paid-btn:disabled {
    background: #4a6a50 !important;
    opacity: 0.7;
    cursor: wait;
}

.tncrypto-qr-container {
    background: #ffffff;
    border-radius: 8px;
    display: inline-block;
    padding: 8px;
}

.tncrypto-countdown {
    font-family: monospace;
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Выбор сети — карточки с логотипами */
.tncrypto-net-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tncrypto-net-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.tncrypto-net-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.tncrypto-net-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid #253050;
    border-radius: 10px;
    background: rgba(26, 48, 80, 0.22);
    color: #8aaac8;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s;
    user-select: none;
}

.tncrypto-net-card svg {
    display: block;
    flex-shrink: 0;
}

.tncrypto-net-option:hover .tncrypto-net-card {
    border-color: #4a5a70;
    color: #e8ecf2;
    transform: translateY(-1px);
}

.tncrypto-net-option input:checked + .tncrypto-net-card {
    border-color: #e8a020;
    background: rgba(232, 160, 32, 0.09);
    color: #e8ecf2;
    box-shadow: 0 0 0 1px rgba(232, 160, 32, 0.5) inset, 0 2px 10px rgba(232, 160, 32, 0.12);
}

.tncrypto-net-option input:focus-visible + .tncrypto-net-card {
    outline: 2px solid #1a6aaa;
    outline-offset: 2px;
}
