:root {
    --primary: #00a86b;
    --primary-dark: #008f5a;
    --bg: #f3f6f9;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Vazirmatn', sans-serif; }
body { background-color: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.pay-card {
    background: var(--card-bg);
    max-width: 440px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 28px;
    border: 1px solid var(--border);
}
.header { text-align: center; margin-bottom: 24px; }
.brand-badge {
    display: inline-block;
    background: #e6f7f0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}
.title { font-size: 20px; font-weight: 800; color: var(--text-main); }
.subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--primary); }
.amount-hint { font-size: 11px; color: var(--primary); margin-top: 4px; min-height: 16px; }
.btn-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 10px;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.footer-note { font-size: 11px; text-align: center; color: var(--text-muted); margin-top: 16px; }

/* وضعیت‌های پرداخت و رسید */
:root {
    --success: #00a86b;
    --success-bg: #e6f7f0;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
}

.status-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.receipt-amount-box {
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}
.receipt-amount-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.receipt-amount-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}
.receipt-amount-value span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 4px;
}

.receipt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.receipt-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.receipt-label {
    color: var(--text-muted);
}
.receipt-value {
    font-weight: 600;
    color: var(--text-main);
    direction: ltr;
    text-align: left;
}
.receipt-value.text-rtl {
    direction: rtl;
    text-align: right;
}

.btn-actions {
    display: flex;
    gap: 10px;
}
.btn-secondary {
    flex: 1;
    background: #fff;
    color: var(--text-main);
    border: 1.5px solid var(--border);
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-secondary:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
}

/* استایل حالت تراکنش ناموفق */
.pay-card.is-failed .status-icon {
    background: var(--danger-bg);
    color: var(--danger);
}
.pay-card.is-failed .brand-badge {
    background: var(--danger-bg);
    color: var(--danger);
}
.pay-card.is-failed .btn-submit {
    background: var(--danger);
}
.pay-card.is-failed .btn-submit:hover {
    background: #dc2626;
}