:root {
  --purple-900: #2a1445;
  --purple-800: #3f1f63;
  --purple-700: #5a2d82;
  --purple-500: #7b4aa8;
  --orchid: #a24ca0;
  --orchid-soft: #f3e4f2;
  --lavender-300: #c4b6e0;
  --lavender-200: #dcd3ee;
  --lavender-100: #eee9f8;
  --lavender-50: #f8f5fc;
  --green-500: #7db63b;
  --green-700: #4e8a2a;
  --green-soft: #eaf4dc;
  --danger: #b4372f;
  --danger-soft: #fbe9e7;
  --text: #2a1d3b;
  --muted: #6d6080;
  --line: #e2dcf0;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(90, 45, 130, 0.45);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body:
    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--lavender-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lavender-300);
  color: var(--purple-900);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--purple-700);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orchid);
  outline-offset: 2px;
}

.container {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(640px, 100% - 32px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 18px 0;
}

.site-header .container,
.site-header .narrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: auto;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  font-style: italic;
  color: var(--purple-700);
  letter-spacing: 0.01em;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 72px;
  background:
    radial-gradient(
      60% 55% at 85% 10%,
      rgba(162, 76, 160, 0.22),
      transparent 70%
    ),
    radial-gradient(
      55% 60% at 5% 30%,
      rgba(196, 182, 224, 0.6),
      transparent 70%
    ),
    linear-gradient(180deg, var(--lavender-100), var(--lavender-50));
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-mark {
  position: absolute;
  right: -60px;
  top: -20px;
  width: 320px;
  opacity: 0.16;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--purple-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1.08;
  margin: 18px 0 16px;
  color: var(--purple-900);
  text-wrap: balance;
}

.hero h1 em {
  color: var(--orchid);
  font-style: italic;
}

.hero p {
  margin: 0 0 26px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--purple-700);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-500);
  margin-right: 8px;
  vertical-align: middle;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(115deg, var(--purple-700), var(--orchid));
  box-shadow: 0 12px 26px -12px rgba(162, 76, 160, 0.8);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(162, 76, 160, 0.9);
}

.btn-green {
  color: #fff;
  background: linear-gradient(115deg, var(--green-700), var(--green-500));
  box-shadow: 0 12px 26px -12px rgba(78, 138, 42, 0.8);
}

.btn-ghost {
  background: #fff;
  color: var(--purple-700);
  border: 1.5px solid var(--lavender-300);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--lavender-100);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.section {
  padding: 56px 0 72px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--purple-900);
  margin: 0 0 6px;
}

.card-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.stepper {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.stepper li {
  flex: 1;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 4px solid var(--lavender-200);
  padding-top: 8px;
}

.stepper li.aktif {
  color: var(--purple-700);
  border-color: var(--orchid);
}

.stepper li.selesai {
  color: var(--green-700);
  border-color: var(--green-500);
}

.stepper {
  padding: 0;
  margin-top: 0;
}

.field {
  margin-bottom: 18px;
}

.field label,
.field .label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple-800);
  margin-bottom: 6px;
}

.input,
.select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--lavender-50);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--orchid);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(162, 76, 160, 0.14);
}

.input.salah {
  border-color: var(--danger);
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 16px;
  border: 2px dashed var(--lavender-300);
  border-radius: 18px;
  background: var(--lavender-50);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.dropzone:hover {
  border-color: var(--orchid);
  background: var(--orchid-soft);
}

.dropzone strong {
  color: var(--purple-700);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone svg {
  width: 38px;
  color: var(--orchid);
}

.scan-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--purple-900);
  aspect-ratio: 4 / 3;
}

.scan-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scan-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  top: -70px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(162, 76, 160, 0.55),
    rgba(196, 182, 224, 0.85)
  );
  border-bottom: 3px solid #f5ecff;
  display: none;
}

.scan-frame.memindai .scan-line {
  display: block;
  animation: sapu 1.5s ease-in-out infinite alternate;
}

.scan-frame.memindai img {
  filter: saturate(1.2) brightness(0.85);
}

@keyframes sapu {
  to {
    top: calc(100% - 4px);
  }
}

.scan-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--lavender-100);
  color: var(--purple-700);
}

.scan-status.ok {
  background: var(--green-soft);
  color: var(--green-700);
}

.scan-status.gagal {
  background: var(--danger-soft);
  color: var(--danger);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--lavender-300);
  border-top-color: var(--orchid);
  animation: putar 0.8s linear infinite;
  flex: none;
}

@keyframes putar {
  to {
    transform: rotate(360deg);
  }
}

.link-ganti {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: 0;
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.kategori-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.pilihan {
  position: relative;
  display: block;
  cursor: pointer;
}

.pilihan input {
  position: absolute;
  opacity: 0;
}

.pilihan .kotak {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.pilihan .kotak:hover {
  border-color: var(--lavender-300);
  transform: translateY(-1px);
}

.pilihan .bulat {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--lavender-300);
  display: grid;
  place-items: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.pilihan .bulat::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.15s;
}

.pilihan input:checked + .kotak {
  border-color: var(--orchid);
  background: var(--orchid-soft);
  box-shadow: 0 0 0 4px rgba(162, 76, 160, 0.12);
}

.pilihan input:checked + .kotak .bulat {
  background: var(--orchid);
  border-color: var(--orchid);
}

.pilihan input:checked + .kotak .bulat::after {
  transform: scale(1);
}

.pilihan input:focus-visible + .kotak {
  outline: 3px solid var(--orchid);
  outline-offset: 2px;
}

.pilihan b {
  display: block;
  color: var(--purple-900);
  line-height: 1.35;
}

.pilihan small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.pilihan.khusus .kotak {
  border-style: dashed;
}

.aksi {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.aksi .btn {
  flex: 1 1 160px;
}

.alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  background: var(--danger-soft);
  color: var(--danger);
}

.alert[hidden],
[hidden] {
  display: none !important;
}

.page-quiz,
.page-result {
  min-height: 100vh;
  background:
    radial-gradient(
      50% 40% at 100% 0%,
      rgba(162, 76, 160, 0.16),
      transparent 70%
    ),
    radial-gradient(
      50% 45% at 0% 20%,
      rgba(196, 182, 224, 0.5),
      transparent 70%
    ),
    var(--lavender-50);
  padding-bottom: 60px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--lavender-200);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-500), var(--orchid));
  transition: width 0.35s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-700);
  margin-bottom: 20px;
}

.soal {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--purple-900);
  margin: 0 0 20px;
}

.opsi-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.opsi {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
}

.opsi:hover {
  border-color: var(--orchid);
  background: var(--orchid-soft);
  transform: translateY(-1px);
}

.opsi.terpilih {
  border-color: var(--orchid);
  background: var(--orchid-soft);
}

.opsi .huruf {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-700);
  background: var(--lavender-100);
}

.opsi.terpilih .huruf {
  background: var(--orchid);
  color: #fff;
}

.memo {
  position: relative;
  padding: 20px 22px 20px 26px;
  border-radius: 18px;
  background: var(--lavender-100);
  border: 1px solid var(--lavender-200);
  color: var(--purple-800);
  font-style: italic;
}

.memo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, var(--orchid), var(--green-500));
}

.hasil-judul {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-900);
  margin: 26px 0 10px;
}

.analisis {
  margin: 0;
  font-size: 1.02rem;
}

.terkunci {
  position: relative;
  margin-top: 16px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.terkunci .baris {
  height: 12px;
  border-radius: 6px;
  background: var(--lavender-200);
  margin-bottom: 12px;
  filter: blur(2px);
}

.terkunci .baris:nth-child(2) {
  width: 92%;
}

.terkunci .baris:nth-child(3) {
  width: 78%;
}

.terkunci .baris:nth-child(4) {
  width: 86%;
  margin-bottom: 0;
}

.terkunci .gembok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.85)
  );
}

.terkunci .gembok span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--purple-800);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.terkunci .gembok svg {
  width: 16px;
}

.ajakan {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 16px 18px;
  text-align: left;
  border: 1.5px solid var(--orchid);
  border-radius: 16px;
  background: #fff;
  color: var(--purple-700);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.ajakan:hover {
  background: var(--orchid-soft);
}

.ajakan small {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

.bayar {
  margin-top: 28px;
  padding: 24px 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--purple-800), var(--purple-700));
  color: #fff;
}

.bayar h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.bayar p {
  margin: 0 0 16px;
  color: var(--lavender-200);
  font-size: 0.95rem;
}

.langkah {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: l;
  display: grid;
  gap: 10px;
}

.langkah li {
  counter-increment: l;
  display: flex;
  gap: 12px;
  font-size: 0.93rem;
}

.langkah li::before {
  content: counter(l);
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--green-500);
  color: var(--purple-900);
}

.rek {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
}

.rek small {
  display: block;
  color: var(--lavender-200);
}

.rek .nomor {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 2px 0;
}

.rek .total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.btn-salin {
  margin-top: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.unggah-bukti {
  margin-top: 6px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

.unggah-bukti .label {
  display: block;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 8px;
}

.unggah-bukti input[type="file"] {
  width: 100%;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.thumb-bukti {
  max-height: 180px;
  border-radius: 12px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
}

.status-kotak {
  margin-top: 24px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.status-kotak.tunggu {
  background: var(--lavender-100);
  border-color: var(--lavender-300);
}

.status-kotak.lunas {
  background: var(--green-soft);
  border-color: #c5e0a3;
}

.status-kotak h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--purple-900);
}

.status-kotak.lunas h3 {
  color: var(--green-700);
}

.status-kotak p {
  margin: 0 0 14px;
}

.lencana {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--lavender-200);
  color: var(--purple-700);
}

.status-kotak.lunas .lencana {
  background: var(--green-500);
  color: #fff;
}

.id-tiket {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

.pemuatan,
.tidak-ada {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}

.pemuatan .spinner {
  margin: 0 auto 14px;
  width: 30px;
  height: 30px;
}

.footer {
  padding: 28px 0 40px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--lavender-100);
}

.footer p {
  margin: 4px auto;
  max-width: 60ch;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--purple-900);
  color: #fff;
  font-size: 0.9rem;
  z-index: 20;
}

@media (min-width: 760px) {
  .hero {
    padding: 40px 0 96px;
  }

  .hero-mark {
    width: 440px;
    right: -20px;
    opacity: 0.22;
  }

  .card {
    padding: 36px 40px;
  }

  .kategori-list {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* === PRATINJAU DAFTAR ISI TERKUNCI === */
.terkunci-wrapper {
  margin: 1.5rem 0;
}
.pratinjau-isi {
  background: linear-gradient(180deg, #faf7fd 0%, #f3ecfa 100%);
  border: 1px solid #e2d4f0;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.pratinjau-judul {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: #4a236b;
  margin: 0 0 0.75rem;
}
.daftar-halaman-kunci {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.daftar-halaman-kunci li {
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #ffffff;
  border-left: 3px solid #5a2d82;
  color: #2d1f3d;
}
.daftar-halaman-kunci li.item-kabur {
  opacity: 0.65;
  border-left-color: #bca4d0;
}

/* === TAMPILAN LAPORAN PENUH 7 HALAMAN & DESAIN PDF ELEGAN === */
.aksi-lunas-grup {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.aksi-lunas-grup .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dokumen-pdf {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
}
.lembar-pdf {
  background: #fffdf9;
  border: 1px solid #e6dec8;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 10px 30px rgba(62, 31, 92, 0.07);
  position: relative;
  color: #2b2135;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lembar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eadfce;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c698a;
  font-weight: 600;
}
.lembar-brand {
  color: #5a2d82;
  font-weight: 700;
}
.cover-ornamen {
  text-align: center;
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle at top, #f9f3ff 0%, #fffdf8 75%);
  border: 1.5px solid #decb9b;
  border-radius: 14px;
}
.cover-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c6d23;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.cover-judul {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  color: #431d66;
  margin: 0;
  letter-spacing: 0.03em;
}
.cover-subjudul {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #6b537c;
  margin: 0.35rem 0 0;
}
.cover-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
  margin: 1.1rem auto;
}
.cover-identitas small {
  color: #7c698a;
  font-size: 0.8rem;
}
.cover-nama {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  color: #2b1442;
  margin: 0.25rem 0;
}
.cover-kat {
  display: inline-block;
  background: #5a2d82;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin: 0.35rem 0;
}
.cover-meta-kecil {
  font-size: 0.82rem;
  color: #6a5878;
  margin: 0.4rem 0 0;
}
.lembar-judul {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  color: #431d66;
  margin: 0 0 1rem;
  line-height: 1.25;
}
.lembar-subjudul {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: #431d66;
  margin: 1.25rem 0 0.6rem;
}
.lembar-paragraf {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #352940;
  margin: 0 0 1rem;
  text-align: justify;
}
.kotak-variasi {
  background: linear-gradient(135deg, #f8f2fc 0%, #fdfaf3 100%);
  border: 1px solid #d8c3ea;
  border-left: 4px solid #5a2d82;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.variasi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8c6d23;
  margin-bottom: 0.35rem;
}
.variasi-judul {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: #431d66;
  margin: 0 0 0.6rem;
}
.variasi-isi {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  color: #2f223a;
}
.kotak-pesan-diva {
  background: #fcf8ec;
  border: 1px solid #e5d196;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
}
.pesan-diva-judul {
  display: block;
  color: #785914;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.pesan-diva-isi {
  margin: 0;
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #3d3118;
}
.kotak-doa {
  background: #f6f1fa;
  border: 1px solid #dcd0e8;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.doa-instruksi {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a236b;
  margin: 0 0 0.6rem;
}
.doa-arab {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
  color: #2b1442;
  background: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border-left: 3px solid #c9a227;
  margin: 0 0 1rem;
}
.doa-afirmasi-judul {
  font-size: 0.9rem;
  color: #4a236b;
  margin: 0 0 0.4rem;
}
.doa-afirmasi-teks {
  font-size: 0.92rem;
  line-height: 1.68;
  font-style: italic;
  margin: 0;
}
.lembar-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
  display: grid;
  gap: 0.55rem;
}
.lembar-list li {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #352940;
}
.lembar-ttd {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #431d66;
  white-space: pre-line;
  margin: 1.25rem 0;
}
.kotak-wa-pdf {
  background: linear-gradient(135deg, #f2fbf5 0%, #e6f7ed 100%);
  border: 1.5px solid #9ad6b3;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.25rem;
}
.kotak-wa-pdf h3 {
  margin: 0 0 0.4rem;
  color: #165c34;
  font-size: 1.1rem;
}
.kotak-wa-pdf p {
  font-size: 0.88rem;
  color: #264d36;
  margin: 0 0 0.75rem;
}
.nomor-wa-pdf {
  font-weight: 800;
  font-size: 1.05rem;
  color: #124d2b;
  margin-bottom: 0.75rem;
}
.lembar-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eadfce;
  padding-top: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #847291;
}

/* === ATURAN CETAK / EXPORT PDF 7 HALAMAN PRESISI === */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .site-header,
  .no-print,
  .toast {
    display: none !important;
  }
  main.narrow {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .card,
  .card-lunas {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .dokumen-pdf {
    display: block !important;
    margin: 0 !important;
  }
  .lembar-pdf {
    min-height: 268mm;
    max-height: 272mm;
    box-sizing: border-box;
    page-break-after: always;
    break-after: page;
    box-shadow: none !important;
    margin: 0 !important;
    border: 1.5px solid #d8c8a8 !important;
  }
  .lembar-pdf:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}
/* === TOMBOL KAMERA & GALERI === */
.pilihan-sumber-foto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.btn-sumber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid #dfd3eb;
  background: #faf7fd;
  color: #431d66;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-sumber:hover {
  border-color: #5a2d82;
  background: #f3eafb;
}

/* === DESAIN KARTU KATEGORI INTERAKTIF === */
.kategori-grid {
  display: grid;
  gap: 0.95rem;
  margin: 1.25rem 0 1.5rem;
}
.kartu-kategori {
  display: block;
  cursor: pointer;
  position: relative;
}
.kartu-kategori input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kartu-kategori-isi {
  background: #ffffff;
  border: 1.5px solid #e5d9f0;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(58, 25, 90, 0.04);
  position: relative;
  overflow: hidden;
}
.kartu-kategori-isi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--aksen-kartu, #5a2d82);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.kartu-kategori:hover .kartu-kategori-isi {
  border-color: var(--aksen-kartu, #5a2d82);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(90, 45, 130, 0.1);
}
.kartu-kategori input[type="radio"]:checked + .kartu-kategori-isi {
  border-color: var(--aksen-kartu, #5a2d82);
  background: linear-gradient(145deg, #fbf8ff 0%, #fffdf7 100%);
  box-shadow: 0 10px 26px rgba(90, 45, 130, 0.14);
}
.kartu-kategori input[type="radio"]:checked + .kartu-kategori-isi::before {
  opacity: 1;
}
.kartu-kategori.khusus .kartu-kategori-isi {
  background: linear-gradient(135deg, #fcf9f2 0%, #f7f0fc 100%);
  border-color: #dec99a;
}
.kartu-kategori-atas {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.kartu-ikon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f4ecfa;
  color: var(--aksen-kartu, #5a2d82);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(90, 45, 130, 0.12);
}
.kartu-ikon svg {
  width: 24px;
  height: 24px;
}
.kartu-kategori input[type="radio"]:checked + .kartu-kategori-isi .kartu-ikon {
  background: var(--aksen-kartu, #5a2d82);
  color: #ffffff;
}
.kartu-teks-utama {
  flex: 1;
  min-width: 0;
}
.kartu-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--aksen-kartu, #5a2d82);
  background: rgba(90, 45, 130, 0.08);
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  margin-bottom: 0.25rem;
}
.kartu-judul {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #29153d;
}
.kartu-cek {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbb8dc;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}
.kartu-kategori input[type="radio"]:checked + .kartu-kategori-isi .kartu-cek {
  border-color: var(--aksen-kartu, #5a2d82);
  background: var(--aksen-kartu, #5a2d82);
}
.kartu-kategori
  input[type="radio"]:checked
  + .kartu-kategori-isi
  .kartu-cek::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.kartu-hint {
  font-size: 0.88rem;
  color: #5b4b6b;
  line-height: 1.55;
  margin: 0.7rem 0 0.85rem;
}
.kartu-kaki {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #e6daf0;
  padding-top: 0.65rem;
  font-size: 0.76rem;
}
.kartu-info-soal {
  color: #7c6b8c;
  font-weight: 500;
}
.kartu-pilih-teks {
  font-weight: 700;
  color: var(--aksen-kartu, #5a2d82);
}
