/* Gaya khusus detail MoneyBot. Struktur visual mengikuti proyek utama lain. */
.project-hero--moneybot {
  padding-bottom: clamp(3.25rem, 7vw, 5.5rem);
}

.moneybot-heading {
  align-items: end;
}

.moneybot-heading h1 {
  max-width: 830px;
}

.moneybot-heading h1 > span {
  display: block;
}

.moneybot-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.moneybot-status,
.moneybot-type {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.moneybot-status {
  border-color: #b9ddc5;
  background: #eff9f2;
  color: #176b36;
}

.moneybot-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a653;
  box-shadow: 0 0 0 4px rgba(40, 166, 83, 0.12);
}

.moneybot-type {
  color: var(--muted);
}

.moneybot-intro {
  max-width: 550px;
}

.moneybot-intro .summary {
  max-width: none;
  margin-bottom: 1.25rem;
}

.moneybot-actions {
  justify-content: flex-start;
}

.moneybot-facts {
  grid-template-columns: 1fr 1.2fr 0.9fr;
}

.moneybot-flow {
  display: grid;
  grid-template-columns: 0.74fr 1.8fr;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.25rem;
}

.moneybot-flow-heading {
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.moneybot-flow-heading > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #237745;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.moneybot-flow-heading h2 {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.moneybot-flow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.moneybot-flow li {
  min-width: 0;
  padding: 0.2rem 0.75rem;
  border-right: 1px solid var(--border);
}

.moneybot-flow li:last-child {
  border-right: 0;
}

.moneybot-flow li > span,
.moneybot-flow li strong,
.moneybot-flow li small {
  display: block;
}

.moneybot-flow li > span {
  margin-bottom: 0.45rem;
  color: #318359;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.moneybot-flow li strong {
  color: var(--brand);
  font-size: 0.79rem;
  line-height: 1.25;
}

.moneybot-flow li small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.moneybot-cover {
  display: block;
  width: 100%;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: 1px solid var(--border);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.moneybot-shot-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.07 / 1;
  overflow: hidden;
  background: #0a0f20;
}

.moneybot-shot-frame img {
  position: absolute;
  top: -11%;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
}

.moneybot-shot-frame--telegram {
  background: #15231f;
}

.moneybot-shot-frame--telegram img {
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
}

.moneybot-cover .moneybot-shot-frame {
  border-bottom: 1px solid var(--border);
}

.moneybot-cover-caption {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.moneybot-cover-caption span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand);
}

.moneybot-cover-caption i {
  font-style: normal;
}

.moneybot-body {
  width: min(calc(100% - 2rem), 1040px);
}

.moneybot-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem !important;
  padding-left: 0 !important;
  list-style: none;
}

.moneybot-feature-grid li,
.moneybot-integration-points > div,
.moneybot-component-grid > div {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.moneybot-feature-grid strong,
.moneybot-feature-grid span,
.moneybot-integration-points strong {
  display: block;
}

.moneybot-feature-grid strong,
.moneybot-integration-points strong,
.moneybot-component-grid strong {
  margin-bottom: 0.3rem;
  color: var(--brand);
  font-size: 0.9rem;
}

.moneybot-feature-grid span,
.moneybot-integration-points p,
.moneybot-component-grid p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.moneybot-integration-points,
.moneybot-component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: none;
}

.moneybot-integration-points {
  margin-top: 1.25rem;
}

.moneybot-integration-points > div > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #318359;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.moneybot-integration-points p,
.moneybot-component-grid p {
  margin: 0;
}

.moneybot-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  color: #237745;
  font-size: 0.88rem;
  font-weight: 800;
}

.moneybot-live-link:hover {
  color: var(--brand);
}

.moneybot-gallery-heading {
  align-items: end;
}

.moneybot-gallery-heading > div:first-child p {
  margin-top: 0.4rem;
}

.moneybot-gallery-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}

.moneybot-gallery-controls button,
.moneybot-lightbox-actions button,
.moneybot-lightbox-footer button {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.moneybot-gallery-controls button {
  width: 40px;
  padding: 0;
}

.moneybot-gallery-controls span {
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.moneybot-gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.moneybot-gallery .gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
  transition: transform 220ms ease;
}

.moneybot-gallery .moneybot-gallery-button:hover img {
  transform: scale(1.012);
}

.moneybot-gallery .moneybot-gallery-button:hover .moneybot-shot-frame--telegram img {
  transform: translateX(-50%) scale(1.012);
}

.moneybot-gallery .gallery-slide figcaption {
  display: grid;
  gap: 0.18rem;
  min-height: 76px;
}

.moneybot-gallery .gallery-slide figcaption strong {
  color: var(--brand);
  font-size: 0.83rem;
}

.moneybot-gallery .gallery-slide figcaption span {
  line-height: 1.45;
}

.moneybot-privacy-mask::after {
  position: absolute;
  z-index: 3;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(231, 237, 240, 0.78);
  color: rgba(17, 42, 58, 0.82);
  font-size: clamp(0.56rem, 1.1vw, 0.7rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  content: "Data pembayaran disamarkan";
}

.moneybot-mask--payment::after {
  inset: 35% 47% 8% 22%;
  display: grid;
}

body.gallery-open {
  overflow: hidden;
}

.moneybot-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.moneybot-lightbox::backdrop {
  background: rgba(7, 19, 27, 0.84);
  backdrop-filter: blur(5px);
}

.moneybot-lightbox-shell {
  position: fixed;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(94vw, 1480px);
  max-height: 94dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #0e202c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  color: var(--white);
}

.moneybot-lightbox-topbar,
.moneybot-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.moneybot-lightbox-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.moneybot-lightbox-topbar > div:first-child {
  display: grid;
  min-width: 0;
  gap: 0.05rem;
}

.moneybot-lightbox-topbar span {
  color: #9db0bc;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moneybot-lightbox-topbar strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moneybot-lightbox-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.moneybot-lightbox-actions button,
.moneybot-lightbox-footer button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.moneybot-lightbox-viewport {
  min-height: 0;
  overflow: auto;
  background: #081720;
  overscroll-behavior: contain;
}

.moneybot-lightbox-media {
  width: 100%;
  min-width: 100%;
  transition: width 180ms ease;
}

.moneybot-lightbox-media.is-zoomed {
  width: 165%;
}

.moneybot-lightbox-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.moneybot-lightbox-footer span {
  color: #b7c6ce;
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .moneybot-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .moneybot-flow {
    grid-template-columns: 1fr;
  }

  .moneybot-flow-heading {
    padding: 0 0 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .moneybot-component-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .moneybot-facts,
  .moneybot-feature-grid,
  .moneybot-integration-points {
    grid-template-columns: 1fr;
  }

  .moneybot-flow ol {
    grid-template-columns: 1fr;
  }

  .moneybot-flow li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 0.58fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .moneybot-flow li:last-child {
    border-bottom: 0;
  }

  .moneybot-flow li > span,
  .moneybot-flow li small {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .project-hero--moneybot {
    padding-bottom: 3rem;
  }

  .moneybot-heading h1 {
    font-size: clamp(2.12rem, 10.5vw, 2.95rem);
  }

  .moneybot-heading {
    order: 1;
    min-width: 0;
  }

  .moneybot-facts {
    order: 2;
  }

  .moneybot-flow {
    order: 3;
  }

  .moneybot-cover {
    order: 4;
  }

  .moneybot-labels {
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }

  .moneybot-status,
  .moneybot-type {
    min-height: 29px;
    padding-inline: 0.55rem;
    font-size: 0.61rem;
  }

  .moneybot-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .moneybot-actions .button {
    width: 100%;
  }

  .moneybot-flow {
    padding: 1rem;
    border-radius: 18px;
  }

  .moneybot-flow li {
    grid-template-columns: 1.75rem minmax(0, 0.7fr) minmax(0, 1fr);
  }

  .moneybot-cover {
    min-height: 0;
    max-height: none;
  }

  .moneybot-cover-caption {
    min-height: 50px;
    padding: 0.65rem 0.8rem;
    font-size: 0.68rem;
  }

  .moneybot-body {
    width: min(calc(100% - 1.25rem), 1040px);
  }

  .moneybot-feature-grid li,
  .moneybot-integration-points > div,
  .moneybot-component-grid > div {
    padding: 0.85rem;
  }

  .moneybot-gallery-heading {
    display: flex;
    align-items: end;
  }

  .moneybot-gallery-heading > div:first-child {
    min-width: 0;
  }

  .moneybot-gallery-heading > div:first-child p {
    max-width: 235px;
  }

  .moneybot-gallery-controls {
    margin-left: auto;
  }

  .moneybot-gallery-controls span {
    display: none;
  }

  .moneybot-gallery .gallery-track {
    grid-auto-columns: 92%;
  }

  .moneybot-gallery .gallery-slide figcaption {
    min-height: 82px;
  }

  .moneybot-privacy-mask::after {
    font-size: 0.52rem;
  }

  .moneybot-lightbox-shell {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 14px;
  }

  .moneybot-lightbox-topbar,
  .moneybot-lightbox-footer {
    padding: 0.65rem;
  }

  .moneybot-lightbox-topbar > div:first-child {
    max-width: 42%;
  }

  .moneybot-lightbox-actions button,
  .moneybot-lightbox-footer button {
    min-height: 38px;
    padding-inline: 0.58rem;
    font-size: 0.68rem;
  }

  .moneybot-lightbox-media.is-zoomed {
    width: 200%;
  }
}

@media (max-width: 370px) {
  .moneybot-type {
    display: none;
  }

  .moneybot-actions {
    grid-template-columns: 1fr;
  }

  .moneybot-flow li {
    grid-template-columns: 1.6rem 1fr;
  }

  .moneybot-flow li small {
    grid-column: 2;
  }

  .moneybot-gallery-heading > div:first-child p {
    max-width: 180px;
  }

  .moneybot-lightbox-topbar > div:first-child {
    display: none;
  }

  .moneybot-lightbox-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moneybot-lightbox-media,
  .moneybot-gallery .gallery-slide img {
    transition: none;
  }
}
