/*
  Mafatih Website Update v20260628-05
  Premium product showcase treatment for invoice screenshots.
*/

.invoice-showcase {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.light-mode .invoice-showcase {
  background: transparent;
}

.invoice-showcase::before {
  content: "";
  position: absolute;
  inset: 10% -4% 8%;
  border-radius: 32px;
  background:
    radial-gradient(circle at 22% 14%, rgba(255,106,0,.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.018));
  filter: blur(.1px);
  pointer-events: none;
}

body.light-mode .invoice-showcase::before {
  background:
    radial-gradient(circle at 22% 14%, rgba(255,106,0,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(239,244,247,.62));
}

.invoice-showcase-head {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 18px 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5,5,5,.48);
  backdrop-filter: blur(16px);
}

body.light-mode .invoice-showcase-head {
  background: rgba(255,255,255,.86);
}

.invoice-showcase-head span {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.invoice-showcase-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.invoice-showcase-head a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--brand);
  color: #050505;
  font-weight: 900;
  font-size: .88rem;
  box-shadow: 0 14px 34px rgba(255,106,0,.22);
}

.invoice-main-shot {
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 30px 100px rgba(0,0,0,.32);
}

body.light-mode .invoice-main-shot {
  border-color: rgba(65,87,102,.16);
  background: rgba(255,255,255,.88);
  box-shadow: 0 30px 90px rgba(65,87,102,.16);
}

.invoice-main-shot::before {
  content: "";
  display: block;
  height: 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,106,0,.22), rgba(255,255,255,.04));
}

.invoice-main-shot::after {
  content: "Live demo available";
  position: absolute;
  top: 9px;
  right: 16px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.rtl-mode .invoice-main-shot::after {
  content: "نسخة تجريبية متاحة";
  right: auto;
  left: 16px;
  letter-spacing: 0;
}

.invoice-main-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  object-position: top left;
}

.invoice-shot-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -38px 18px 0;
}

.invoice-shot-grid figure {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(5,5,5,.46);
  box-shadow: 0 22px 52px rgba(0,0,0,.28);
  transform: translateY(var(--lift, 0));
  backdrop-filter: blur(14px);
}

.invoice-shot-grid figure:nth-child(1) { --lift: 8px; }
.invoice-shot-grid figure:nth-child(2) { --lift: -8px; }
.invoice-shot-grid figure:nth-child(3) { --lift: 4px; }

body.light-mode .invoice-shot-grid figure {
  border-color: rgba(65,87,102,.16);
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 44px rgba(65,87,102,.13);
}

.invoice-shot-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top left;
  opacity: .94;
}

.invoice-main-shot figcaption,
.invoice-shot-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(5,5,5,.76);
  color: #f4f7f8;
  font-size: .76rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

body.rtl-mode .invoice-main-shot figcaption,
body.rtl-mode .invoice-shot-grid figcaption {
  left: auto;
  right: 12px;
}

body.rtl-mode .invoice-showcase {
  direction: rtl;
  text-align: right;
}

@media (max-width: 1180px) {
  .invoice-showcase {
    order: 2;
  }

  .invoice-showcase::before {
    inset: 9% -2% 7%;
  }
}

@media (max-width: 720px) {
  .invoice-showcase-head {
    display: grid;
    margin: 0 0 12px;
  }

  .invoice-showcase-head a {
    width: 100%;
  }

  .invoice-main-shot {
    border-radius: 20px;
  }

  .invoice-main-shot img {
    aspect-ratio: 4 / 3;
  }

  .invoice-shot-grid {
    grid-template-columns: 1fr;
    margin: 12px 0 0;
  }

  .invoice-shot-grid figure,
  .invoice-shot-grid figure:nth-child(n) {
    min-height: auto;
    transform: none;
  }

  .invoice-shot-grid img {
    aspect-ratio: 16 / 10;
  }
}
