/* Modul layout bersama — bukan gaya kartu generik */

.mod-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
}

.mod-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2BB0ED;
  margin-bottom: 0.6rem;
}

.mod-heading {
  color: #E8EEF7;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.mod-lead {
  color: #93A4BD;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 0 1.75rem;
}

.mod-lead a,
.mod-prose a {
  color: #2BB0ED;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mod-prose {
  color: #93A4BD;
  line-height: 1.8;
  font-size: 1rem;
}

.mod-prose strong {
  color: #E8EEF7;
}

.mod-editorial {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.mod-editorial .mod-heading {
  margin-bottom: 1rem;
}

.mod-breadcrumb {
  max-width: 1100px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.88rem;
}

.mod-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #93A4BD;
}

.mod-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(147, 164, 189, 0.7);
}

.mod-breadcrumb a {
  color: #2BB0ED;
  text-decoration: none;
}

.mod-breadcrumb a:hover {
  text-decoration: underline;
}

.mod-breadcrumb [aria-current="page"] {
  color: #E8EEF7;
}

/* Spec band — baris spesifikasi horizontal */
.mod-spec-band {
  border-top: 1px solid rgba(43, 176, 237, 0.25);
  border-bottom: 1px solid rgba(43, 176, 237, 0.25);
  background: linear-gradient(90deg, rgba(43, 176, 237, 0.08), transparent 40%, rgba(255, 107, 53, 0.06));
}

.mod-spec-band dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}

.mod-spec-band .spec-item {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid rgba(43, 176, 237, 0.18);
}

.mod-spec-band .spec-item:last-child {
  border-right: none;
}

.mod-spec-band dt {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: #93A4BD;
  font-weight: 600;
}

.mod-spec-band dd {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #2BB0ED;
  line-height: 1.2;
}

.mod-spec-band dd small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #93A4BD;
}

/* Metrics strip */
.mod-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  margin: 0;
  padding: 1.35rem 0 0.25rem 1.15rem;
  border-left: 3px solid #2BB0ED;
}

.mod-metrics .metric {
  min-width: 0;
  padding: 0;
}

.mod-metrics .metric-value {
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #E8EEF7;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mod-metrics .metric-label {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: #93A4BD;
  line-height: 1.4;
}

/* Ringkasan: kiri teks + kanan gambar 512 */
.mod-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 512px;
  gap: 2.5rem;
  align-items: center;
}

.mod-summary-copy .mod-lead {
  max-width: none;
  margin-bottom: 1.25rem;
}

.mod-summary-media {
  margin: 0;
  width: 512px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(43, 176, 237, 0.16), rgba(18, 26, 43, 0.9) 55%),
    #121A2B;
  border: 1px solid rgba(43, 176, 237, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  justify-self: end;
}

.mod-summary-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Timeline langkah */
.mod-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mod-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #2BB0ED, #FF6B35);
  opacity: 0.55;
}

.mod-timeline li {
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}

.mod-timeline li:last-child {
  padding-bottom: 0;
}

.mod-timeline .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #121A2B;
  border: 2px solid #2BB0ED;
  color: #2BB0ED;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.mod-timeline h3 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.1rem;
  color: #E8EEF7;
  font-weight: 700;
}

.mod-timeline p {
  margin: 0;
  color: #93A4BD;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* Split editorial — dua kolom tanpa kartu */
.mod-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.mod-split .split-aside {
  padding-top: 0.25rem;
  border-top: 3px solid #FF6B35;
}

.mod-checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.mod-checklist li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.6rem;
  border-bottom: 1px solid rgba(43, 176, 237, 0.15);
  color: #93A4BD;
  line-height: 1.6;
  font-size: 0.98rem;
}

.mod-checklist li:last-child {
  border-bottom: none;
}

.mod-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3DDC97;
}

.mod-checklist li.warn::before {
  background: #FF6B35;
}

.mod-checklist strong {
  color: #E8EEF7;
}

/* FAQ stack — blok teks, bukan kartu */
.mod-faq {
  border-top: 1px solid rgba(43, 176, 237, 0.2);
}

.mod-faq-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(43, 176, 237, 0.15);
}

.mod-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mod-faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  color: #2BB0ED;
  font-weight: 700;
}

.mod-faq-item p {
  margin: 0;
  color: #93A4BD;
  line-height: 1.75;
}

/* FAQ: kiri gambar 512 + kanan teks */
.mod-faq-with-media {
  border-top: none;
}

.mod-faq-split {
  display: grid;
  grid-template-columns: 512px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.mod-faq-media {
  margin: 0;
  width: 512px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(43, 176, 237, 0.16), rgba(18, 26, 43, 0.9) 55%),
    #121A2B;
  border: 1px solid rgba(43, 176, 237, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  position: sticky;
  top: 1.25rem;
}

.mod-faq-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mod-faq-copy .mod-lead {
  max-width: none;
  margin-bottom: 0.5rem;
}

.mod-faq-copy .mod-faq-item:first-of-type {
  border-top: 1px solid rgba(43, 176, 237, 0.15);
}

.mod-cta-bar {
  text-align: center;
  padding: 1.75rem 1rem;
  background: linear-gradient(90deg, rgba(43, 176, 237, 0.12), rgba(255, 107, 53, 0.1));
  border-block: 1px solid rgba(43, 176, 237, 0.2);
}

.mod-hero-note {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #93A4BD;
}

/* Feature rail — daftar fitur tanpa kartu */
.mod-feature-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(43, 176, 237, 0.22);
  border-bottom: 1px solid rgba(43, 176, 237, 0.22);
}

.mod-feature-rail article {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid rgba(43, 176, 237, 0.18);
}

.mod-feature-rail article:last-child {
  border-right: none;
}

.mod-feature-rail .feat-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FF6B35;
  margin-bottom: 0.55rem;
}

.mod-feature-rail h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #E8EEF7;
}

.mod-feature-rail p {
  margin: 0;
  color: #93A4BD;
  line-height: 1.65;
  font-size: 0.95rem;
}

.mod-feature-rail a {
  color: #2BB0ED;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Compare table — bersih, bukan kartu */
.mod-compare-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.mod-compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.mod-compare th,
.mod-compare td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(43, 176, 237, 0.18);
  vertical-align: top;
}

.mod-compare thead th {
  color: #2BB0ED;
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 107, 53, 0.55);
}

.mod-compare tbody th {
  color: #E8EEF7;
  font-weight: 600;
  width: 28%;
}

.mod-compare td {
  color: #93A4BD;
}

.mod-compare td em {
  color: #3DDC97;
  font-style: normal;
  font-weight: 700;
}

.mod-compare .is-muted {
  color: #93A4BD;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .mod-spec-band dl {
    grid-template-columns: 1fr;
  }

  .mod-spec-band .spec-item {
    border-right: none;
    border-bottom: 1px solid rgba(43, 176, 237, 0.18);
  }

  .mod-spec-band .spec-item:last-child {
    border-bottom: none;
  }

  .mod-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mod-summary-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mod-summary-media {
    width: min(512px, 100%);
    justify-self: center;
  }

  .mod-faq-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mod-faq-media {
    width: min(512px, 100%);
    max-width: 100%;
    justify-self: center;
    position: static;
  }

  .mod-feature-rail {
    grid-template-columns: 1fr;
  }

  .mod-feature-rail article {
    border-right: none;
    border-bottom: 1px solid rgba(43, 176, 237, 0.18);
  }

  .mod-feature-rail article:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .mod-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
  }
}

/* ========== Layout variants (kurangi kesan template sama) ========== */

/* Game: gambar hero di kiri, accent biru */
body.layout-game .hero-section .row {
  flex-direction: row-reverse;
}

body.layout-game .mod-spec-band {
  background: linear-gradient(105deg, rgba(43, 176, 237, 0.14), transparent 55%);
  border-radius: 0 18px 18px 0;
  border-left: 4px solid #2BB0ED;
  border-top: none;
  border-bottom: none;
}

body.layout-game .mod-feature-rail {
  gap: 1.25rem;
}

body.layout-game .mod-feature-rail article {
  border-right: none;
  border-top: 3px solid #2BB0ED;
  padding-top: 1.25rem;
  background: rgba(18, 26, 43, 0.45);
  border-radius: 0 0 12px 12px;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1.1rem;
}

body.layout-game .mod-summary-grid {
  grid-template-columns: 512px minmax(0, 1fr);
}

body.layout-game .mod-summary-media {
  justify-self: start;
  order: 1;
}

body.layout-game .mod-summary-copy {
  order: 2;
}

body.layout-game .mod-timeline::before {
  background: linear-gradient(180deg, #2BB0ED, #3DDC97);
}

/* Guide (download cluster): hero bertumpuk, spec vertikal lembut */
body.layout-guide .hero-section {
  border-radius: 24px;
  border-color: rgba(255, 107, 53, 0.2);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.06), rgba(18, 26, 43, 0.12));
}

body.layout-guide .hero-section .row {
  flex-direction: column;
  align-items: stretch !important;
  gap: 1.5rem;
}

body.layout-guide .hero-section .col-12.col-lg-6 {
  max-width: 100%;
  flex: 0 0 100%;
}

body.layout-guide .hero-section .col-12.col-lg-6:last-child {
  max-width: 420px;
  margin: 0 auto;
}

body.layout-guide .mod-spec-band dl {
  grid-template-columns: 1fr;
}

body.layout-guide .mod-spec-band .spec-item {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  border-right: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
  padding: 1.1rem 0.5rem;
}

body.layout-guide .mod-spec-band .spec-item:last-child {
  border-bottom: none;
}

body.layout-guide .mod-spec-band dd {
  font-size: 1.35rem;
}

body.layout-guide .mod-feature-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border: 1px dashed rgba(255, 107, 53, 0.35);
  border-radius: 16px;
  padding: 1.25rem;
}

body.layout-guide .mod-feature-rail article {
  border-right: none;
  padding: 0.5rem;
}

body.layout-guide .mod-feature-rail .feat-index {
  color: #FF6B35;
}

body.layout-guide .mod-timeline .step-num {
  border-color: #FF6B35;
  color: #FF6B35;
}

body.layout-guide .mod-timeline::before {
  background: linear-gradient(180deg, #FF6B35, #2BB0ED);
}

/* Account: strip kiri, summary gambar kanan biasa dengan spacing lebih longgar */
body.layout-account .hero-section {
  border-left: 4px solid #3DDC97;
  border-radius: 4px 20px 20px 4px;
  padding-left: 1.5rem;
}

body.layout-account .mod-editorial {
  border-left: 2px solid rgba(61, 220, 151, 0.35);
  padding-left: 1.5rem;
  margin-left: 0.25rem;
}

body.layout-account .mod-kicker {
  color: #3DDC97;
}

body.layout-account .mod-spec-band {
  background: linear-gradient(90deg, rgba(61, 220, 151, 0.1), transparent 50%);
  border-color: rgba(61, 220, 151, 0.28);
}

body.layout-account .mod-metrics {
  border-left-color: #3DDC97;
}

body.layout-account .mod-faq-item {
  padding-left: 1rem;
  border-left: 2px solid rgba(61, 220, 151, 0.25);
}

body.layout-account .mod-faq-split {
  direction: rtl;
}

body.layout-account .mod-faq-split > * {
  direction: ltr;
}

/* Bonus: oranye kuat, fokus angka */
body.layout-bonus .hero-section {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(18, 26, 43, 0.2) 45%, rgba(43, 176, 237, 0.08));
  border-color: rgba(255, 107, 53, 0.28);
}

body.layout-bonus .mod-spec-band {
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.14), transparent 45%, rgba(43, 176, 237, 0.08));
  border-color: rgba(255, 107, 53, 0.3);
}

body.layout-bonus .mod-spec-band dd {
  color: #FF6B35;
}

body.layout-bonus .mod-timeline .step-num {
  border-radius: 10px;
  border-color: #FF6B35;
  color: #FF6B35;
}

body.layout-bonus .mod-compare-wrap {
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  background: rgba(18, 26, 43, 0.5);
}

/* Social: konten lebih sempit, fokus komunitas */
body.layout-social .mod-wrap,
body.layout-social .mod-breadcrumb {
  max-width: 880px;
}

body.layout-social .hero-section {
  border-radius: 28px;
  text-align: left;
  background: rgba(43, 176, 237, 0.06);
}

body.layout-social .hero-section .col-12.col-lg-6:last-child {
  max-width: 380px;
}

@media (min-width: 992px) {
  body.layout-social .hero-section .row {
    justify-content: space-between;
    gap: 2rem;
  }
}

body.layout-social .mod-feature-rail article {
  border-right: none;
  border-bottom: 1px solid rgba(43, 176, 237, 0.2);
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
}

body.layout-social .mod-faq-with-media {
  background: rgba(18, 26, 43, 0.35);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
}

@media (max-width: 900px) {
  body.layout-game .hero-section .row {
    flex-direction: column;
  }

  body.layout-game .mod-summary-grid {
    grid-template-columns: 1fr;
  }

  body.layout-game .mod-summary-media {
    order: 0;
    justify-self: center;
  }

  body.layout-guide .mod-feature-rail {
    grid-template-columns: 1fr;
  }

  body.layout-guide .mod-spec-band .spec-item {
    grid-template-columns: 1fr;
  }

  body.layout-account .hero-section {
    padding-left: 1rem;
  }
}
