/* static/styles/dark_mode/components/payment.css */

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
}

.modal-backdrop.hidden {
    display: none !important;
}

.payment-modal-content {
    background: var(--bg-panel) !important;
    border-radius: 12px;
    padding: 24px;
    width: 360px;
    max-width: 90%;
    text-align: center;
    color: #fff;
    position: relative;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted, #848e9c);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #fff;
}

.payment-modal-title {
    color: var(--color-yellow, #ffd043);
    margin-top: 0;
    font-size: 16px;
    font-weight: 800;
}

.order-code-text {
    font-size: 12px;
    color: var(--text-muted, #848e9c);
}

.order-code-text strong {
    color: #fff;
}

.qr-container img {
    width: 200px;
    height: 200px;
    margin: 16px auto;
    border-radius: 8px;
    border: 4px solid #fff;
    display: block;
    background: #fff;
}

.payment-details {
    font-size: 12px;
    text-align: left;
    background: #0c0e12;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    border: 1px solid var(--border-color, #2b3139);
}

.payment-detail-row {
    margin: 8px 0 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn, .btn-premium {
    background: transparent !important;
    border: 1px solid var(--accent-gold, #ffd043) !important;
    color: var(--accent-gold, #ffd043) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
}

.copy-btn:hover, .btn-premium:hover {
    background: var(--accent-gold, #ffd043) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 208, 67, 0.4);
}

.wallet-address-box {
    font-size: 10px;
    word-break: break-all;
    color: var(--color-yellow, #ffd043);
    background: #12161c;
    padding: 6px;
    border-radius: 4px;
    font-family: monospace;
}

.amount-expected-box {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 800;
}

.timer-box {
    font-size: 12px;
    color: var(--text-muted, #848e9c);
    margin-top: 8px;
}

.timer-box strong {
    color: var(--color-yellow, #ffd043);
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(6px);
    display: flex !important; justify-content: center !important; align-items: center !important;
    z-index: 999999 !important;
}

.modal-backdrop.hidden { display: none !important; }

.payment-modal-content {
    background: var(--bg-panel) !important; 
    border-radius: 12px; padding: 24px; width: 380px; max-width: 90%;
    color: #fff; position: relative; animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal-btn {
    position: absolute; top: 12px; right: 12px;
    background: transparent; border: none; color: #848e9c; font-size: 18px; cursor: pointer;
}

.payment-modal-title { color: #ffd043; margin-top: 0; font-size: 16px; font-weight: 800; }
.order-code-text { font-size: 12px; color: #848e9c; }
.network-select-box { margin: 12px 0; text-align: left; }
.network-select-box label { display: block; font-size: 11px; color: #848e9c; margin-bottom: 4px; }
.network-select-box select {
    width: 100%; background: #1e2329; color: #ffd043; border: 1px solid #2b3139;
    padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 700; outline: none; cursor: pointer;
}

.qr-container img {
    width: 180px; height: 180px; margin: 12px auto;
    border-radius: 8px; border: 4px solid #fff; display: block;
}

.payment-details {
    font-size: 12px; text-align: left; background: #0c0e12;
    padding: 12px; border-radius: 6px; margin: 12px 0; border: 1px solid #2b3139;
}

.payment-detail-row { margin: 8px 0 4px 0; display: flex; justify-content: space-between; align-items: center; }
.copy-btn, .btn-premium { background: transparent !important; border: 1px solid var(--accent-gold, #ffd043) !important; color: var(--accent-gold, #ffd043) !important; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 3px; font-size: 10px; cursor: pointer; }
.copy-btn:hover, .btn-premium:hover { background: var(--accent-gold, #ffd043) !important; color: #000 !important; box-shadow: 0 0 20px rgba(255, 208, 67, 0.4); }

.wallet-address-box { font-size: 10px; word-break: break-all; color: #ffd043; background: #12161c; padding: 6px; border-radius: 4px; font-family: monospace; }
.amount-expected-box { color: #f39c12; font-size: 16px; font-weight: 800; }

.fee-breakdown-card { margin-top: 10px; padding: 8px 10px; background: #181d23; border-radius: 6px; border-left: 3px solid #2ecc71; font-size: 11px; }
.fee-row { display: flex; justify-content: space-between; align-items: center; color: #a0a6b1; margin: 2px 0; }
.fee-row.net-row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #2b3139; }

.timer-box { font-size: 12px; color: #848e9c; margin-top: 8px; }
.timer-box strong { color: #ffd043; }
