* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.payment-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.instructions {
    margin-bottom: 30px;
    padding: 20px;
    background: #e8f4fd;
    border-radius: 8px;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.instructions ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

.address-box {
    text-align: center;
}

.address-display {
    background: white;
    padding: 15px;
    border: 2px dashed #3498db;
    border-radius: 6px;
    margin: 15px 0;
    font-family: monospace;
    word-break: break-all;
    font-size: 14px;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
}

.transaction-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f8f0;
    border-radius: 8px;
}

.tx-hash {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-link {
    color: #27ae60;
    text-decoration: none;
}

.tx-link:hover {
    text-decoration: underline;
}

.status-message {
    text-align: center;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    background: #fff3cd;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.success-icon, .error-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.success-icon {
    color: #27ae60;
}

.error-icon {
    color: #e74c3c;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.back-btn, .check-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.back-btn {
    background: #95a5a6;
    color: white;
}

.back-btn:hover {
    background: #7f8c8d;
}

.check-btn {
    background: #3498db;
    color: white;
}

.check-btn:hover {
    background: #2980b9;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

.status-paid {
    color: #27ae60;
    font-weight: bold;
}

.status-expired {
    color: #e74c3c;
    font-weight: bold;
}

.unique-amount-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.amount-breakdown {
    font-size: 14px;
    line-height: 1.6;
}

.amount-breakdown div {
    margin: 5px 0;
}

.total-amount {
    font-size: 16px;
    font-weight: bold;
    color: #d35400;
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid #ffc107;
}

.warning-box {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    font-size: 14px;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
}

.copy-btn:hover {
    background: #2980b9;
}

.copy-btn:last-child {
    background: #e67e22;
}

.copy-btn:last-child:hover {
    background: #d35400;
}