/* ============================================================
   استایل‌های سیستم ثبت فیش بانکی کوثر (Kosar Bank Receipt)
   ============================================================ */

.kosar-bank-receipt-wrapper {
  margin: 2rem 0;
  direction: rtl;
  text-align: right;
  font-family: inherit;
}

/* ─── کارت‌های اطلاعات حساب بانکی ───────────────────────── */
.kosar-bank-accounts-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.kosar-bank-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kosar-bank-desc {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.25rem;
}

.kosar-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.kosar-account-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.kosar-account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #3b82f6;
}

.kosar-acc-header {
  font-size: 1rem;
  color: #0f172a;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.kosar-acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: #334155;
}

.kosar-acc-row .ltr {
  direction: ltr;
  font-family: monospace, Tahoma;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.kosar-acc-row .copyable {
  cursor: pointer;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.kosar-acc-row .copyable:hover {
  background: #e2e8f0;
  color: #2563eb;
}

/* ─── بنر تایمر ۶ ساعته ─────────────────────────────────── */
.kosar-timer-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.kosar-countdown {
  font-weight: 800;
  font-size: 1.1rem;
  color: #b45309;
  font-family: monospace, Tahoma;
  letter-spacing: 1px;
}

/* ─── پیام‌های موفقیت و انقضا ───────────────────────────── */
.kosar-receipt-success-notice,
.kosar-receipt-expired-notice {
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.kosar-receipt-success-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.kosar-receipt-expired-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.kosar-notice-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.kosar-receipt-info-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(22, 101, 52, 0.2);
}

/* ─── باکس اکشن و فرم ثبت فیش ───────────────────────────── */
.kosar-receipt-action-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.kosar-receipt-upload-form {
  margin-top: 1rem;
}

.kosar-form-group {
  margin-bottom: 1.25rem;
}

.kosar-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.kosar-form-group label .req {
  color: #ef4444;
}

.kosar-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.kosar-form-row .half {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 220px;
}

.kosar-receipt-upload-form input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.kosar-receipt-upload-form input[type="text"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.kosar-receipt-upload-form input.ltr {
  direction: ltr;
  text-align: left;
}

/* Dropzone */
.kosar-file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.kosar-file-dropzone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.kosar-dropzone-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.kosar-dropzone-text {
  font-size: 0.9rem;
  color: #475569;
}

.kosar-submit-receipt-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.75rem;
}

.kosar-submit-receipt-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.kosar-submit-receipt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── مودال پنل کاربری (سفارشات من) ─────────────────────── */
.kosar-receipt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.kosar-receipt-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.kosar-receipt-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  direction: rtl;
  text-align: right;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.kosar-receipt-modal-backdrop.show .kosar-receipt-modal-card {
  transform: scale(1);
}

.kosar-modal-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.kosar-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.kosar-profile-receipt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
  cursor: pointer;
}

.kosar-profile-receipt-btn:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}

.kosar-profile-receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* ─── اطمینان از قرار گرفتن پیام‌های SweetAlert2 بالای مودال ─── */
.swal2-container {
  z-index: 9999999 !important;
}

/* کارت‌های حساب داخل مودال */
.kosar-modal-accounts .copyable:hover {
  background: #e2e8f0 !important;
  color: #2563eb !important;
}
