/* ═══════════════════════════════════════════
   صفحة الدفع
═══════════════════════════════════════════ */
.conf-payment-wrapper {
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    padding: 20px 0;
}
.conf-payment-wrapper * { box-sizing: border-box; }

/* وضع الاختبار */
.conf-payment-testmode {
    background: #fff3cd;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    text-align: center;
}

/* ملخص الطلب */
.conf-payment-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.conf-payment-summary-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}
.conf-payment-summary-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}
.conf-payment-summary-name span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 3px;
}
.conf-payment-items { margin-bottom: 14px; }
.conf-payment-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f3f4f6;
    font-size: 14px;
    color: #374151;
}
.conf-payment-item-price { font-weight: 600; color: #2563eb; }
.conf-payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
}
.conf-payment-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
}

/* بطاقة البوابة */
.conf-payment-gateway-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.conf-payment-gateway-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.conf-payment-redirect-note {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* زرار الدفع */
.conf-payment-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.conf-payment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.conf-payment-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* رسائل الخطأ */
.conf-payment-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
}

/* Stripe Elements */
.conf-stripe-form { display: flex; flex-direction: column; gap: 16px; }
.conf-stripe-field-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.conf-stripe-element {
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s;
    min-height: 46px;
}
.conf-stripe-element.StripeElement--focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.conf-stripe-element.StripeElement--invalid { border-color: #dc2626; }

/* صفحة نجاح الدفع */
.conf-payment-success {
    text-align: center;
    padding: 40px 20px;
}
.conf-payment-success-icon { font-size: 56px; margin-bottom: 16px; }
.conf-payment-success h2 { font-size: 24px; font-weight: 700; color: #16a34a; margin-bottom: 8px; }
.conf-payment-success p { color: #6b7280; font-size: 15px; margin-bottom: 14px; }
.conf-payment-token {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 3px;
    font-weight: 700;
    color: #374151;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin: 8px 0;
}
.conf-payment-print-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 28px;
    background: #7c3aed;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.conf-payment-print-btn:hover { background: #6d28d9; color: #fff; }

/* ═══════════════════════════════════════════
   Tabs طرق الدفع
═══════════════════════════════════════════ */
.conf-payment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    flex-wrap: wrap;
}
.conf-payment-tab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    transition: all .15s;
    border-radius: 6px 6px 0 0;
}
.conf-payment-tab:hover { color: #374151; background: #f9fafb; }
.conf-payment-tab.active { color: #2563eb; border-bottom-color: #2563eb; background: #eff6ff; }

.conf-payment-tab-content { display: none; }
.conf-payment-tab-content.active { display: block; animation: cf-fadein .25s ease; }
@keyframes cf-fadein { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

/* ═══════════════════════════════════════════
   الدفع اليدوي (Vodafone Cash / InstaPay)
═══════════════════════════════════════════ */
.conf-manual-payment-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* لوجو */
.conf-manual-payment-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.conf-manual-payment-logo.vodafone .conf-manual-logo-icon { color: #e11d48; }
.conf-manual-payment-logo.instapay .conf-manual-logo-icon { color: #7c3aed; }
.conf-manual-logo-icon { font-size: 28px; }
.conf-manual-logo-name { font-size: 18px; font-weight: 800; color: #111; }

/* الخطوات */
.conf-manual-payment-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.conf-manual-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}
.conf-manual-step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#7c3aed);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* صندوق الحساب */
.conf-manual-account-box {
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    margin-bottom: 16px;
}
.vodafone-box { background: #fff1f2; border: 2px solid #fca5a5; }
.instapay-box { background: #f5f3ff; border: 2px solid #c4b5fd; }

.conf-manual-account-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    margin-bottom: 6px;
}
.conf-manual-account-number {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #111;
    margin-bottom: 4px;
    font-family: monospace;
}
.conf-manual-account-name {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}
.conf-copy-btn {
    padding: 7px 18px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    color: #374151;
}
.conf-copy-btn:hover { background: #374151; color: #fff; border-color: #374151; }
.conf-copy-btn.copied { background: #16a34a; color: #fff; border-color: #16a34a; }

/* مبلغ + ملاحظة */
.conf-manual-amount-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #374151;
    text-align: center;
    margin-bottom: 16px;
}
.conf-manual-amount-box strong { color: #2563eb; font-size: 20px; margin-right: 6px; }

.conf-manual-confirm-wrap {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}
.conf-manual-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #bbf7d0;
    font-weight: 600;
    color: #16a34a;
}
