/* الصفحة الرئيسية v3: دفعات ميسرة بالشعارات الرسمية، منصات التواصل، حركات الظهور، آيبان صفحة الدفع */

/* ---------- الشعارات ---------- */
.brand-logo { display: inline-flex; align-items: center; justify-content: center; }
.brand-logo img { display: block; width: auto; max-width: 100%; }

/* ---------- الدفع ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pay-card {
  position: relative; background: #fff; border: 1px solid #e3e9f3; border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 6px 18px rgba(12, 35, 70, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pay-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(12, 35, 70, .12); }
.pay-card p { margin: 0; color: #4b5b73; font-size: 14px; line-height: 1.8; }
.pay-card__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; background: #eef4ff; color: #1d4ed8;
}
.pay-card--inst .pay-card__tag { background: #e8f8f0; color: #0f7a4a; }

.pay-brands { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-brands .brand-logo {
  height: 56px; min-width: 96px; padding: 10px 16px; border-radius: 12px;
  background: #fff; border: 1px solid #e3e9f3;
  transition: transform .2s ease, border-color .2s ease;
}
.pay-brands .brand-logo:hover { transform: translateY(-2px); border-color: #c7d4ea; }
.pay-brands .brand-logo img { height: 28px; }
.pay-brands .brand-logo--madfu img { height: 34px; }
.pay-brands .brand-logo--mastercard img { height: 36px; }
.pay-brands .brand-logo--visa img { height: 20px; }
.pay-brands .brand-logo--tamara img { height: 18px; }

/* شعارات الدفع في الفوتر */
.pay--logos { align-items: center; }
.pay--logos .brand-logo {
  height: 30px; padding: 4px 8px; border-radius: 6px; background: #fff; border: 0;
}
.pay--logos .brand-logo img { height: 18px; }
.pay--logos .brand-logo--madfu img { height: 22px; }
.pay--logos .brand-logo--visa img { height: 12px; }
.pay--logos .brand-logo--tamara img { height: 13px; }

/* آيبان التحويل البنكي في صفحة إتمام الطلب */
.bacs-iban {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px;
  background: #fff; border: 1px solid #e3e9f3; border-radius: 12px; padding: 12px;
}
.bacs-iban__label { width: 100%; font-size: 12px; color: #667791; }
.bacs-iban__no { font-size: 15px; font-weight: 700; color: #0d2340; word-break: break-all; flex: 1; background: none; padding: 0; }
.bacs-iban__copy {
  border: 0; border-radius: 8px; padding: 8px 12px; background: #1d4ed8; color: #fff;
  font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.bacs-iban__copy.is-done { background: #0f7a4a; }

/* ---------- منصات التواصل ---------- */
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.social-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px;
  background: #fff; border: 1px solid #e3e9f3; color: #0d2340; text-decoration: none;
  box-shadow: 0 6px 18px rgba(12, 35, 70, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.social-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(13, 35, 64, .14); border-color: #c7d4ea; }
.social-card__icon { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; }
.social-card__icon .brand-logo img { height: 44px; }
.social-card--youtube .social-card__icon .brand-logo img { height: 34px; }
.social-card--x .social-card__icon .brand-logo img { height: 34px; }
.social-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.social-card__name { font-weight: 800; font-size: 16px; }
.social-card__cta { font-size: 13px; color: #1d4ed8; font-weight: 700; }
.social-card.is-soon .social-card__cta { color: #8a97ab; font-weight: 500; }

/* ---------- حركات الظهور ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal] .pay-card, .js [data-reveal] .social-card { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in .pay-card, .js [data-reveal].is-in .social-card { animation: rise-in .6s ease both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pay-grid { grid-template-columns: 1fr; }
  .social-card { padding: 12px; gap: 10px; }
  .social-card__icon { width: 44px; height: 44px; }
  .social-card__icon .brand-logo img { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal].is-in,
  .js [data-reveal] .pay-card, .js [data-reveal] .social-card { opacity: 1; transform: none; transition: none; animation: none; }
  .pay-card, .social-card, .pay-brands .brand-logo { transition: none; }
}

/* ---------- شعارات مرفوعة كصور (تابي، تمارا، مدفوع) ---------- */
.pay-brands .brand-logo.brand-logo--photo { padding: 6px 10px; }
.pay-brands .brand-logo.brand-logo--photo img { height: 40px; max-width: 120px; object-fit: contain; }
.pay--logos .brand-logo.brand-logo--photo { padding: 2px 6px; }
.pay--logos .brand-logo.brand-logo--photo img { height: 24px; max-width: 72px; object-fit: contain; }

/* ---------- شارة السجل التجاري والرقم الضريبي في الفوتر ---------- */
.crb2 { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.crb2__item {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
}
.crb2__logo { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; flex: none; }
.crb2__text { display: flex; flex-direction: column; line-height: 1.35; }
.crb2__label { font-size: 12.5px; color: #9fb0cc; }
.crb2__no { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .5px; }
