/* Form Container */
.cxusdt-form-container {
    max-width: 480px; margin: 30px auto; 
    background: #fff; border-radius: 16px; 
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.cxusdt-form-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; border-bottom: 1px solid #f5f5f5; padding-bottom: 15px;
}
.cxusdt-logo { font-size: 18px; font-weight: 700; color: #333; display: flex; align-items: center; }
.cxusdt-network-badge {
    background: #e6fffa; color: #26A17B; 
    padding: 4px 10px; border-radius: 20px; 
    font-size: 12px; font-weight: 600; border: 1px solid #b2f5ea;
}

/* Input */
.cxusdt-field-group { margin-bottom: 20px; }
.cxusdt-field-group label { display: block; font-size: 14px; color: #666; margin-bottom: 8px; font-weight: 500; }
.cxusdt-input-wrapper {
    position: relative; display: flex; align-items: center;
}
.cxusdt-input-wrapper input {
    width: 100%; padding: 12px 15px; padding-right: 60px;
    border: 2px solid #eee; border-radius: 10px;
    font-size: 18px; font-weight: 600; color: #333;
    transition: all 0.3s; outline: none; background: #fff;
}
.cxusdt-input-wrapper input:focus { border-color: #26A17B; box-shadow: 0 0 0 3px rgba(38, 161, 123, 0.1); }
.cxusdt-unit {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: #999; font-weight: 500; font-size: 14px;
}

/* Presets */
.cxusdt-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.cxusdt-preset-btn {
    border: 1px solid #eee; background: #fff; padding: 10px 5px;
    border-radius: 8px; color: #666; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cxusdt-preset-btn:hover { border-color: #26A17B; color: #26A17B; background: #f0fdf4; }
.cxusdt-preset-btn.active { background: #26A17B; color: #fff; border-color: #26A17B; }

/* Info Bar */
.cxusdt-info-bar {
    background: #f8f9fa; padding: 12px 15px; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; font-size: 13px;
}
.cxusdt-rate-label { color: #888; }
.cxusdt-rate-value { color: #333; font-weight: 600; }

/* Submit Button */
.cxusdt-submit-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #26A17B 0%, #1a8a65 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.cxusdt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(38, 161, 123, 0.3);
}
.cxusdt-submit-btn:active { transform: translateY(0); }

/* Disabled */
.cxusdt-disabled-msg { 
    text-align: center; padding: 40px; color: #999; 
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}

@media (max-width:480px){ 
    .cxusdt-form-container { padding: 20px; margin: 10px auto; }
    .cxusdt-presets { grid-template-columns: repeat(2, 1fr); }
}

/* USDT Modal Styles - Enhanced UI */
.cxusdt-modal-mask {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 99998;
    backdrop-filter: blur(2px);
}
.cxusdt-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 92%; max-width: 380px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 99999;
    font-family: "SF Mono", "Roboto Mono", "Consolas", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    overflow: hidden;
    animation: cxusdt-slide-up 0.3s ease-out;
}
@keyframes cxusdt-slide-up {
    from { transform: translate(-50%, -40%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

/* Header */
.cxusdt-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; 
    background: linear-gradient(135deg, #26A17B 0%, #1a8a65 100%);
    color: #fff;
}
.cxusdt-modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.5px; }
.cxusdt-close { 
    font-size: 24px; cursor: pointer; color: rgba(255,255,255,0.8); 
    transition: all 0.2s; line-height: 1; width: 30px; height: 30px; 
    text-align: center; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cxusdt-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Body */
.cxusdt-modal-body { padding: 24px; }

/* Info Items */
.cxusdt-info-row { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cxusdt-label { color: #666; font-weight: 500; }
.cxusdt-val { font-weight: 600; color: #333; }
.cxusdt-amount-box {
    text-align: center; margin: 15px 0 20px;
    background: #f0fdf4; border: 1px dashed #26A17B; border-radius: 8px; padding: 12px;
}
.cxusdt-amount-title { font-size: 13px; color: #26A17B; margin-bottom: 4px; }
.cxusdt-amount-val { font-size: 24px; font-weight: 700; color: #26A17B; letter-spacing: -0.5px; }

/* QR Code */
.cxusdt-qr-wrapper { 
    text-align: center; margin: 0 auto 20px; 
    width: 160px; height: 160px; 
    background: #fff; padding: 8px; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.cxusdt-qr-img { width: 100%; height: 100%; display: block; }

/* Address Box */
.cxusdt-addr-group { position: relative; margin-bottom: 20px; }
.cxusdt-addr-label { font-size: 12px; color: #888; margin-bottom: 6px; display: block; }
.cxusdt-addr-input-box {
    display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
    background: #f9fafb; transition: border-color 0.2s;
}
.cxusdt-addr-input-box:hover { border-color: #bbb; }
.cxusdt-addr-input { 
    flex: 1; border: none; background: transparent; padding: 10px 12px; 
    font-size: 12px; color: #444; outline: none; width: 100%; margin: 0;
    font-family: "SF Mono", "Roboto Mono", "Consolas", monospace; /* 等宽字体优化显示 */
}
.cxusdt-copy-btn {
    border: none; background: #fff; color: #26A17B; padding: 0 16px; 
    cursor: pointer; font-size: 13px; font-weight: 600;
    border-left: 1px solid #eee; transition: all 0.2s;
}
.cxusdt-copy-btn:hover { background: #f0fdf4; }
.cxusdt-copy-btn.copied { background: #333; color: #fff; }

/* Warnings */
.cxusdt-warning-box { 
    background: #fff8e1; border-left: 3px solid #ffc107; 
    padding: 10px 12px; border-radius: 4px; 
    font-size: 12px; color: #856404; line-height: 1.5;
    margin-bottom: 20px;
}
.cxusdt-warning-box p { margin: 3px 0; }
.cxusdt-warning-box strong { color: #d32f2f; }

/* Bottom Action */
.cxusdt-modal-footer {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.cxusdt-btn-close-main {
    display: block; width: 100%; padding: 12px 0;
    background: #f3f4f6; color: #666; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.cxusdt-btn-close-main:hover { background: #e5e7eb; color: #333; }

/* Loading */
.cxusdt-loading { text-align: center; padding: 50px 0; }
.cxusdt-spinner { 
    border: 3px solid #f3f3f3; border-top: 3px solid #26A17B; border-radius: 50%; 
    width: 36px; height: 36px; animation: spin 0.8s linear infinite; margin: 0 auto 15px; 
}

/* Timeout State */
.cxusdt-timeout-box { text-align: center; padding: 30px 20px; }
.cxusdt-timeout-icon { font-size: 48px; color: #dc3545; margin-bottom: 15px; }
.cxusdt-timeout-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 10px; }
.cxusdt-timeout-desc { font-size: 14px; color: #666; margin-bottom: 25px; line-height: 1.5; }
.cxusdt-btn-reload {
    background: #26A17B; color: #fff; border: none; padding: 10px 24px;
    border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 10px rgba(38, 161, 123, 0.3); transition: transform 0.2s;
}
.cxusdt-btn-reload:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(38, 161, 123, 0.4); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

