/*
  Mafatih Website Update v20260628-04
  Live demo link and professional invoice system screenshot gallery.
*/

.invoice-showcase {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  box-shadow: 0 28px 90px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}

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

.invoice-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 16px;
}

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

.invoice-showcase-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
  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: .9rem;
}

.invoice-main-shot,
.invoice-shot-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

body.light-mode .invoice-main-shot,
body.light-mode .invoice-shot-grid figure {
  background: rgba(255,255,255,.72);
}

.invoice-main-shot img,
.invoice-shot-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.invoice-main-shot img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: top left;
}

.invoice-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.invoice-shot-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top left;
}

.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,.74);
  color: #f4f7f8;
  font-size: .78rem;
  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;
  }
}

@media (max-width: 720px) {
  .invoice-showcase {
    padding: 14px;
    border-radius: 20px;
  }

  .invoice-showcase-head {
    display: grid;
    align-items: start;
  }

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

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

  .invoice-shot-grid {
    grid-template-columns: 1fr;
  }

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