{{ toast.title }}
{{ toast.message }}
️

{{ confirmDialog.title }}

{{ confirmDialog.message }}

MASACP {{ t('brand_sub') }}

{{ t('brand_desc') }}

{{ isAr ? 'جاري التحقق من الجلسة الآمنة...' : 'Validating secure session...' }}

{{ t('auth_title') }}

{{ t('auth_subtitle') }}

️ {{ t('2fa_login_title') }}

{{ t('2fa_login_desc') }}

{{ authError }}
{{ authError }}
{{ authSuccess }}
✕
{{ detectedUrlCode }}
{{ dealCodeError }}
✓
{{ detectedUrlCode }} ({{ dealCodePlanName }})
{{ authMode === 'register' ? (isAr ? 'ترخيص أصلي مدى الحياة مشمول بالكامل. أكمل بياناتك أدناه للتفعيل فوراً دون أي دفع.' : 'Lifetime authentic license fully covered. Complete details below to activate instantly without payment.') : (isAr ? 'سجل دخولك لتفعيل هذا الكود على حسابك فوراً.' : 'Sign in to redeem this code on your account.') }}

1 {{ isAr ? 'اختر خطة الترخيص المطلوبة' : 'Select Your Licensing Plan' }}

{{ isAr ? 'كل خطة تشمل ترخيصاً أصلياً مدى الحياة وتحديثات أمنية مستمرة' : 'All plans include authentic lifetime license & continuous updates' }}

{{ isAr ? 'جاري تحميل خطط التراخيص المتاحة...' : 'Loading available licensing plans...' }}
{{ isAr ? 'الأكثر طلباً' : 'POPULAR' }}
{{ plan.name }}
${{ plan.price_usd || 0 }} USD
{{ isAr ? 'دفعة واحدة مدى الحياة' : 'Lifetime Access' }}
{{ plan.max_servers }} {{ isAr ? 'سيرفر مدار' : 'Managed Server(s)' }}
{{ isAr ? '✓ تم تحديد الخطة' : '✓ Selected Plan' }} {{ isAr ? 'انقر للاختيار' : 'Click to select' }}
!

{{ isAr ? 'التسجيل مغلق مؤقتاً' : 'Registration Closed' }}

{{ isAr ? 'تم إيقاف التسجيل العام للحسابات الجديدة بقرار من الإدارة. إذا كان لديك حساب بالفعل، يرجى تسجيل الدخول.' : 'Public account registration is temporarily closed by the administrator. If you already have an account, please sign in.' }}

{{ isAr ? 'يجب أن لا تقل عن 8 خانات، وتحتوي على حروف كبيرة وصغيرة وأرقام ورموز خاصة، ومختلفة عن البريد.' : 'Must be 8+ chars with uppercase, lowercase, numbers, symbols, and distinct from email.' }}
{{ isAr ? 'مدفوع مسبقاً (خصم 100%)' : 'Pre-paid (100% OFF)' }}

{{ isAr ? 'إذا اشتريت الخدمة من AppSumo، أدخل كودك هنا لتفعيل حسابك وترخيصك دون الحاجة للدفع مجدداً.' : 'If purchased on AppSumo, enter your code here to activate your lifetime license with zero additional payment.' }}

{{ isAr ? 'الخطة المختارة:' : 'Selected Plan:' }} {{ selectedDirectPlan.name }}
{{ isAr ? 'السيرفرات المدارة:' : 'Managed Servers:' }} {{ selectedDirectPlan.max_servers }} {{ isAr ? 'سيرفر' : 'Server(s)' }} ({{ isAr ? 'تحديثات مدى الحياة' : 'Lifetime Updates' }})
{{ isAr ? 'المبلغ الإجمالي المستحق:' : 'Total Due:' }}
${{ selectedDirectPlan.price_usd }} USD
{{ isAr ? 'خيارات الدفع الإلكتروني وتفعيل الترخيص فوراً' : 'Fast Checkout & Instant License Activation' }}
{{ isAr ? 'أو الدفع بالبطاقة' : 'or pay with card' }}
{{ isAr ? 'دفع آمن ومحمي 100% عبر حساب PayPal أو بطاقات فيزا وماستركارد' : 'Secured 100% via PayPal account, Visa or MasterCard' }}
{{ t('admin_badge') }} • Authority v4.0.0

{{ t('admin_hub_title') }}

{{ t('admin_hub_desc') }}

{{ t('stat_total_licenses') }}
{{ adminStats?.licenses?.total || 0 }}
● {{ adminStats?.licenses?.active || 0 }} {{ t('status_active') }} ({{ adminStats?.licenses?.suspended }} suspended)
{{ t('stat_server_nodes') }} ️
{{ adminStats?.nodes?.total || 0 }}
● {{ adminStats?.nodes?.active || 0 }} {{ t('status_active') }}
{{ t('stat_total_customers') }}
{{ adminStats?.customers?.total || 0 }}
{{ adminStats?.customers?.active || 0 }} {{ t('active_accounts') }}
{{ t('stat_active_plans') }}
{{ adminStats?.plans?.total || 0 }}
{{ t('configured_tiers') }}

️ {{ t('sec_telemetry_title') }}

{{ t('cryptographic_cipher') }}
Ed25519 (256-bit Curve)
RFC 8032 Compliant
{{ t('dual_lease_grace') }}
72 Hours Zero-Downtime Overlap
Smooth Server Migration
{{ t('token_distribution') }}
Atomic One-Time Exchange
IP-Bound 15m Window
ID {{ t('col_license_key') }} {{ t('col_customer') }} {{ t('col_plan') }} {{ t('col_server_ip') }} {{ t('col_status') }} {{ t('col_actions') }}
{{ t('no_licenses_found') }}
#{{ lic.id }}
{{ lic.license_key }}
{{ lic.customer_name || 'Customer' }}
{{ lic.customer_email }}
{{ lic.plan_name }} {{ lic.whitelisted_ip }} {{ t('not_assigned') }}
Grace: {{ lic.previous_ip }}
{{ lic.status }}

{{ t('deals_title') }}

{{ t('deals_desc') }}

{{ t('stat_total_licenses') }}
{{ adminDeals.summary?.total || 0 }}
{{ isAr ? 'إجمالي الأكواد المولدة' : 'Total generated codes' }}
{{ t('stat_unclaimed_codes') }}
{{ adminDeals.summary?.unclaimed || 0 }}
{{ isAr ? 'جاهزة للرفع إلى AppSumo' : 'Ready for AppSumo CSV upload' }}
{{ t('stat_redeemed_codes') }}
{{ adminDeals.summary?.redeemed || 0 }}
{{ isAr ? 'تراخيص مفعلة للعملاء' : 'Active customer licenses' }}
{{ t('stat_refunded_codes') }}
{{ adminDeals.summary?.refunded || 0 }}
{{ isAr ? 'أكواد وتراخيص ملغاة' : 'Revoked / refunded licenses' }}
{{ isAr ? 'حزم الأكواد وتنزيل ملفات CSV المباشرة لـ AppSumo:' : 'Batches & Instant AppSumo CSV Downloads:' }}
{{ b.batch_name }}
{{ b.tier_code }} | Total: {{ b.total_codes }} (Unclaimed: {{ b.unclaimed }})
{{ isAr ? `محدد: ${selectedDealIds.length}` : `Selected: ${selectedDealIds.length}` }}
{{ t('th_code') }} {{ t('th_tier') }} {{ t('th_batch') }} Status {{ t('th_redeemed_by') }} Date Actions
{{ isAr ? 'لا توجد أكواد مطابقة. اضغط على توليد حزمة أكواد جديدة أعلاه لإنشاء دفعة لـ AppSumo.' : 'No deal codes found. Click "Generate Codes Batch" above to create codes for AppSumo.' }}
{{ c.code }} {{ c.plan_name || c.tier_code }} {{ c.batch_name || '-' }} {{ c.status === 'unclaimed' ? (isAr ? 'متاح' : 'Unclaimed') : (c.status === 'redeemed' ? (isAr ? 'مفعل' : 'Redeemed') : (isAr ? 'مسترجع' : 'Refunded')) }}
{{ c.customer_email }}
{{ c.customer_name || '' }}
-
{{ c.redeemed_at ? new Date(c.redeemed_at * 1000).toLocaleDateString() : new Date(c.created_at * 1000).toLocaleDateString() }}
{{ isAr ? `إجمالي الأكواد: ${adminDeals.total || 0}` : `Total codes: ${adminDeals.total || 0}` }} ({{ isAr ? `صفحة ${adminDeals.page} من ${Math.ceil((adminDeals.total || 0) / adminDeals.limit) || 1}` : `Page ${adminDeals.page} of ${Math.ceil((adminDeals.total || 0) / adminDeals.limit) || 1}` }})

{{ t('plans_section_title') }}

{{ plan.code }}
{{ plan.is_active ? 'Active' : 'Disabled' }}

{{ plan.name }}

{{ t('max_servers_limit') }} {{ plan.max_servers }} Server(s)
{{ t('migration_grace_label') }} {{ plan.migration_grace_hours || 72 }}h Overlap
{{ t('monthly_migrations') }} {{ plan.ip_migration_quota || 5 }}/mo
{{ t('price_label') }} ${{ plan.price_usd || 0 }}

{{ t('nodes_section_title') }}

ID {{ t('col_server_ip') }} {{ t('col_hostname') }} {{ t('col_customer') }} {{ t('col_last_seen') }} {{ t('col_status') }} {{ t('col_actions') }}
{{ t('no_nodes_found') }}
#{{ node.id }} {{ node.server_ip }} {{ node.hostname || 'localhost' }}
{{ node.customer_name }}
{{ node.customer_email }}
{{ formatDate(node.last_seen_at) }} {{ node.status }}

{{ t('customers_section_title') }}

{{ adminCustomers.length }}
ID {{ t('col_customer') }} {{ t('email_label') }} {{ t('col_role') }} {{ t('col_licenses_count') }} {{ t('col_plan') }} {{ isAr ? 'السيرفرات' : 'Servers' }} 2FA {{ t('col_status') }} {{ t('col_actions') }}
#{{ cust.id }} {{ cust.email }} {{ cust.role }} {{ cust.license_count || 0 }} {{ cust.plan_name }} {{ isAr ? 'بدون خطة' : 'No Plan' }} {{ cust.active_servers || 0 }} / {{ cust.max_servers || 0 }}
{{ isAr ? 'مفعل' : 'Enabled' }}
{{ isAr ? 'معطل' : 'Disabled' }}
{{ cust.is_active ? 'Active' : 'Suspended' }}

{{ isAr ? 'إعدادات البوابة والدفع الإلكتروني' : 'Gateway & System Settings' }}

{{ isAr ? 'التحكم في فتح وإغلاق التسجيل، وبوابات الدفع الإلكتروني وحساب التاجر في PayPal.' : 'Manage public registration access, online payment gateways, and PayPal merchant credentials.' }}

{{ isAr ? 'التحكم في التسجيل' : 'Registration Access' }}

{{ isAr ? 'فتح أو إغلاق إمكانية إنشاء حسابات جديدة للزوار.' : 'Enable or disable public account registration.' }}

{{ isAr ? 'السماح بالتسجيل العام' : 'Public Registration' }}
{{ adminSettings.registration_enabled === '1' ? (isAr ? 'مفعل - يمكن للزوار فتح حسابات جديدة' : 'Active - visitors can create accounts') : (isAr ? 'معطل - لا يمكن إنشاء حسابات جديدة' : 'Disabled - new registrations blocked') }}

{{ isAr ? 'مدة صلاحية الجلسة' : 'Session Lifetime & Expiration' }}

{{ isAr ? 'إغلاق الجلسة تلقائياً وإلغاء صلاحية التوكن بعد مرور وقت محدد من تسجيل الدخول.' : 'Automatically invalidate session tokens after a specified duration.' }}

{{ isAr ? 'يتم تطبيق هذا التوقيت على توكنات JWT الصادرة لجميع العملاء والإدارة.' : 'Applies to newly issued JWT tokens for both customers and admins.' }}

{{ isAr ? 'نظام الدفع الإلكتروني' : 'Online Payments' }}

{{ isAr ? 'المفتاح الرئيسي لتفعيل أو إيقاف عمليات الشراء كلياً.' : 'Master toggle for all payment gateways.' }}

{{ isAr ? 'تفعيل الدفع الإلكتروني' : 'Enable Checkout & Payments' }}
{{ adminSettings.payments_enabled === '1' ? (isAr ? 'مفعل - يمكن للعملاء شراء التراخيص بالبطاقة أو PayPal' : 'Active - customers can purchase licenses') : (isAr ? 'معطل - عمليات الشراء متوقفة مؤقتاً' : 'Paused - all purchases suspended') }}

{{ isAr ? 'إعدادات بوابة PayPal' : 'PayPal Gateway Settings' }}

{{ isAr ? 'بيانات حساب التاجر من بوابة مطوري PayPal (developer.paypal.com) لتشغيل الدفع المباشر.' : 'Merchant API credentials from developer.paypal.com' }}

{{ isAr ? 'تفعيل PayPal' : 'Enable PayPal' }}:
{{ t('dash_badge') }} Administrator (Client Preview Mode)

{{ t('welcome_title').replace('{name}', currentUser.full_name) }}

{{ t('welcome_desc') }}

{{ licenses.length }}
{{ t('stat_licenses') }}
{{ totalActiveServers }}
{{ t('stat_servers') }}
️

{{ t('sec_security_title') }}

{{ currentUser.two_factor_enabled ? t('2fa_status_active') : t('2fa_status_inactive') }}

{{ t('sec_security_desc') }}

{{ t('redeem_title') }}
{{ t('redeem_desc') }}

{{ t('licenses_section_title') }} {{ licenses.length }}

{{ t('empty_licenses_title') }}

{{ t('empty_licenses_desc') }}

{{ lic.plan_name }}
{{ lic.license_key }}
{{ lic.status === 'active' ? t('status_active') : lic.status }}
⚡ {{ t('migration_grace_active_badge') }}

{{ t('migration_grace_notice').replace('{ip}', lic.previous_ip).replace('{date}', formatGraceCountdown(lic.migration_grace_until)) }}

{{ t('server_ip_label') }}
{{ lic.whitelisted_ip || t('not_assigned') }}
{{ t('migration_quota_label') }}
{{ (lic.ip_migration_quota || 5) - (lic.migrations_used_this_month || 0) }} / {{ lic.ip_migration_quota || 5 }}
💻

{{ isMigratingServer ? t('modal_migrate_title') : (!isMigratingServer && activeInstallModal.whitelisted_ip ? (isAr ? 'إعادة استخراج أمر التثبيت لنفس السيرفر' : 'Regenerate SSH Install Command') : t('modal_install_title')) }}

{{ activeInstallModal.plan_name }}

{{ isMigratingServer ? t('modal_migrate_desc') : t('modal_install_desc') }}

ℹ️ {{ t('modal_migrate_grace_hint') }}
🛡️ {{ isAr ? 'السيرفر المعتمد حالياً:' : 'Currently Bound Server:' }} {{ activeInstallModal.whitelisted_ip }}

{{ isAr ? 'إعادة استخراج أمر التثبيت لنفس هذا الـ IP غير محدود ولا يخصم من رصيد فرص النقل الشهرية، ويمكنك استخراجه في أي وقت لتثبيت السيرفر.' : 'Regenerating the installation command for this IP is unlimited and does NOT deduct from your monthly migration quota.' }}

{{ isAr ? 'أو أدخل عنوان IP آخر' : 'OR SPECIFY ANOTHER IP' }}
{{ installModalError }}
✅ {{ t('command_ready_badge') }}
{{ t('command_terminal_label') }} {{ t('command_validity') }}
{{ generatedCommand }}
️

{{ t('modal_2fa_setup_title') }}

Google Authenticator / Authy / 1Password

Generating TOTP key...

{{ t('modal_2fa_setup_step1') }}

2FA QR Code
{{ twoFASetupData?.secret }}
{{ twoFAError }}

{{ t('modal_2fa_disable_title') }}

{{ t('modal_2fa_disable_desc') }}

{{ twoFAError }}

{{ isAr ? 'استعادة كلمة المرور' : 'Reset Your Password' }}

{{ isAr ? 'أدخل بريدك الإلكتروني وسنرسل لك رابطاً مشفراً لتعيين كلمة مرور جديدة صالحة لمدة ساعة واحدة.' : 'Enter your registered email address and we will dispatch a secure link to reset your password (valid for 1 hour).' }}

{{ isAr ? 'تم إرسال الرابط بنجاح' : 'Reset Link Dispatched' }}

{{ forgotSuccess }}

{{ forgotError }}

{{ isAr ? 'تعيين كلمة مرور جديدة' : 'Set New Password' }}

{{ isAr ? 'لحساب البريد الإلكتروني:' : 'For account:' }} {{ resetTokenEmail }}

{{ isAr ? 'يجب أن لا تقل عن 8 خانات، وتحتوي على حروف كبيرة وصغيرة وأرقام ورموز خاصة.' : 'Must be 8+ chars with uppercase, lowercase, numbers, and symbols.' }}
{{ resetError }}

{{ t('modal_issue_license_title') }}

{{ t('modal_issue_license_desc') }}

{{ issueLicenseError }}

{{ t('modal_license_issued_title') }}

{{ t('modal_license_issued_desc') }}

Portal URL: https://auth.masacp.com/login
Email: {{ issuedLicenseResult.customer_email }}
Name: {{ issuedLicenseResult.customer_name }}
Account Password: {{ issuedLicenseResult.customer_password }}
License Key: {{ issuedLicenseResult.license_key }}
Plan: {{ issuedLicenseResult.plan_name }}

{{ isEditingPlan ? t('modal_edit_plan_title') : t('modal_create_plan_title') }}

{{ t('modal_plan_desc') }}

{{ t('modal_customer_details_title') }}

{{ customerDetailsData?.email }}

{{ isAr ? 'جاري تحميل البيانات...' : 'Loading profile details...' }}
{{ t('fullname_label') }} {{ customerDetailsData.full_name || 'N/A' }}
{{ t('col_role') }} {{ customerDetailsData.role }}
{{ t('col_status') }} {{ customerDetailsData.is_active ? 'Active' : 'Suspended' }}
2FA Security
{{ customerDetailsData.two_factor_enabled ? (isAr ? 'مفعل' : 'Enabled') : (isAr ? 'معطل' : 'Disabled') }}

{{ isAr ? 'التراخيص المملوكة للعضو' : 'Assigned Customer Licenses' }} {{ (customerDetailsData.licenses || []).length }}

{{ isAr ? 'لا توجد تراخيص مرتبطة بهذا العضو حتى الآن.' : 'No licenses assigned to this customer yet.' }}
{{ lic.plan_name || 'Standard Plan' }} {{ lic.status }} {{ isAr ? 'السيرفرات:' : 'Servers:' }} {{ lic.active_servers || 0 }} / {{ lic.max_servers || 1 }}
{{ lic.license_key }}
{{ isAr ? 'الـ IP النشط (يعمل حالياً):' : 'Active Server IP (Running):' }} {{ lic.active_ips.length }} {{ isAr ? 'سيرفر' : 'srv' }}
🖥️ {{ ip }}
🖥️ {{ lic.whitelisted_ip }}
{{ isAr ? '⚪ لم يتم ربط سيرفر بعد (Unbound)' : '⚪ Unbound (No server connected)' }}
{{ isAr ? 'الـ IP السابق (متوقف / تم نقله):' : 'Previous Server IP (Stopped):' }} {{ isAr ? 'متوقف' : 'Stopped' }}
🛑 {{ pip }}
🛑 {{ lic.previous_ip }}
{{ isAr ? 'لا يوجد سيرفر سابق (لم يتم النقل)' : 'None (No migration history)' }}
✏️

{{ t('modal_edit_customer_title') }}

#{{ editCustomerForm.id }}

{{ editCustomerError }}

{{ t('modal_admin_change_pwd_title') }}

{{ adminChangePasswordTarget?.email }}

{{ adminChangePasswordError }}

{{ t('modal_change_own_pwd_title') }}

{{ currentUser.email }}

{{ changeOwnPasswordError }}

{{ t('modal_change_plan_title') }}

{{ changePlanTargetCustomer?.email || (changePlanTargetLicense ? ('License #' + changePlanTargetLicense.id) : '') }}

{{ t('modal_change_plan_desc') }}

{{ isAr ? 'العميل:' : 'Customer:' }} {{ changePlanTargetCustomer.full_name || changePlanTargetCustomer.email }}
{{ isAr ? 'مفتاح الترخيص:' : 'License Key:' }} {{ changePlanTargetLicense.license_key }}
{{ t('current_plan_label') }}: {{ changePlanTargetLicense.plan_name }}
{{ changePlanError }}

{{ t('btn_generate_batch') }}

{{ isAr ? 'توليد حزمة أكواد استرداد لتصديرها إلى AppSumo' : 'Generate unique redemption codes for AppSumo CSV export' }}

{{ isAr ? 'الأكواد ستكون فريدة ومشفرة ولا يمكن تخمينها.' : 'Codes will be cryptographically unique and tamper-proof.' }}

{{ isAr ? 'خيارات الحذف الكلي لأكواد AppSumo' : 'Purge All AppSumo Deal Codes' }}

{{ isAr ? 'حدد نطاق الحذف الكلي للأكواد من النظام. تنبيه: عمليات الحذف نهائية ولا يمكن التراجع عنها.' : 'Select the purge scope. Warning: deletions are permanent and cannot be undone.' }}