/* Home "Arabic & RTL" section. The demo card flips between English (LTR) and Arabic (RTL);
   js/rtl-anim.js animates every element from its old place to its new one.
   Colors here are fixed (this file is not part of the generated dark theme). */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 400;
  font-display: swap;
  src: url('../../assets/fonts/plex-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 500;
  font-display: swap;
  src: url('../../assets/fonts/plex-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-weight: 600;
  font-display: swap;
  src: url('../../assets/fonts/plex-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F,
    U+2E41;
}

/* ---------- section ---------- */
.rtl-sec {
  overflow-x: clip;
}
.rtl-sec__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.rtl-sec__msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 480px;
}
.rtl-sec .rtl-sec__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
}
.rtl-sec__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rtl-sec__list .dot {
  margin-top: 3px;
}
.rtl-sec__cta {
  margin-top: 14px;
}

/* ---------- demo ---------- */
.rx {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline-start: auto;
  font-family: var(--font-family), 'IBM Plex Sans Arabic', sans-serif;
}
.rx__fit {
  position: relative;
  width: 100%;
  aspect-ratio: 460 / 440;
}
.rx__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 460px;
  height: 440px;
  transform: scale(var(--rx-s, 1));
  transform-origin: 0 0;
  color: #101828;
  -webkit-font-smoothing: antialiased;
}
/* soft backdrop */
.rx__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(37, 99, 235, 0.18), transparent 70%),
    linear-gradient(160deg, #f3f7ff, #eaf1ff);
  border: 1px solid #e1e9fb;
}
html[data-px-theme='dark'] .rx__stage::before {
  background: radial-gradient(60% 60% at 50% 45%, rgba(37, 99, 235, 0.25), transparent 70%),
    linear-gradient(160deg, #111a2e, #0d1424);
  border-color: #223050;
}
.rx svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* language switch */
.rx-switch {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 104px;
  margin-left: -52px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e4e9f2;
  box-shadow: 0 8px 20px -10px rgba(30, 50, 110, 0.35);
}
.rx-switch span {
  position: relative;
  z-index: 1;
  padding: 5px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #667085;
  transition: color 0.4s;
}
.rx-switch i {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #2563eb;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.rx-switch span:nth-of-type(1),
.rx.is-ar .rx-switch span:nth-of-type(2) {
  color: #fff;
}
.rx.is-ar .rx-switch span:nth-of-type(1) {
  color: #667085;
}
.rx.is-ar .rx-switch i {
  transform: translateX(100%);
}

/* the card */
.rx-card {
  position: absolute;
  left: 80px;
  top: 74px;
  display: flex;
  flex-direction: column;
  width: 300px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e4e9f2;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 30px 60px -30px rgba(30, 50, 110, 0.45);
  text-align: start;
}
html[data-px-theme='dark'] .rx-card,
html[data-px-theme='dark'] .rx-switch {
  background: #161d2c;
  border-color: #273149;
  color: #eef2f8;
}
.rx-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rx-top {
  justify-content: space-between;
}
.rx-ico {
  display: flex;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 9px;
  background: #f2f4f7;
  color: #344054;
}
html[data-px-theme='dark'] .rx-ico {
  background: #222b3d;
  color: #cfd6e2;
}
.rx-t {
  font-size: 15px;
  font-weight: 600;
}
.rx-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #2563eb);
}
.rx-payee {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: #f5f8ff;
}
html[data-px-theme='dark'] .rx-payee {
  background: #1d2537;
}
.rx-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}
.rx-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.rx-col b {
  font-size: 13px;
  font-weight: 600;
}
.rx-col small {
  font-size: 11px;
  color: #667085;
}
.rx-amt {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rx-label {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: #475467;
}
html[data-px-theme='dark'] .rx-label,
html[data-px-theme='dark'] .rx-col small {
  color: #95a1b6;
}
.rx-input {
  margin-top: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.rx-cc {
  flex: none;
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1e40af, #60a5fa);
}
.rx-num {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  direction: ltr; /* card numbers stay left-to-right in Arabic */
  unicode-bidi: isolate;
}
.rx-opt {
  justify-content: space-between;
  margin-top: 14px;
}
.rx-t2 {
  font-size: 12px;
  color: #475467;
}
html[data-px-theme='dark'] .rx-t2 {
  color: #b4bccd;
}
.rx-tg {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #2563eb;
}
.rx-tg i {
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.rx-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  height: 10px;
}
.rx-steps::before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 4px;
  height: 2px;
  background: #e4e9f2;
}
.rx-steps em {
  position: absolute;
  inset-inline-start: 5px;
  top: 4px;
  width: 50%;
  height: 2px;
  background: #2563eb;
}
.rx-steps i {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
}
.rx-steps i:last-of-type {
  background: #d0d5dd;
}
.rx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  margin-top: 16px;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.8);
}
.rx-btn svg {
  width: 16px;
  height: 16px;
}
/* directional icons point the other way in Arabic */
.rx-flip {
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.rx-card[dir='rtl'] .rx-flip,
.rx-card[dir='rtl'] .rx-btn svg {
  transform: scaleX(-1);
}
.rx-card[dir='rtl'] {
  font-family: 'IBM Plex Sans Arabic', var(--font-family), sans-serif;
}
/* text swap */
[data-en].is-swap {
  animation: rx-swap 0.55s ease 0.15s both;
}
@keyframes rx-swap {
  from {
    opacity: 0;
    filter: blur(2px);
  }
}

@media (max-width: 1000px) {
  .rtl-sec__in {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rx {
    margin-inline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rx * {
    animation: none !important;
    transition: none !important;
  }
}
