/* ======================================================
   HARD RESET – MATIKAN SEMUA STYLE LIAR
====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  position: static !important;
  float: none !important;
  inset: auto !important;
}

/* ======================================================
   BASE
====================================================== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eaf6ff;
  color: #0f172a;
  line-height: 1.5;
}

/* ======================================================
   HERO
====================================================== */
.hero {
  text-align: center;
  padding: 48px 20px;
}

.hero h1 {
  font-size: 32px;
  color: #0b3a5b;
}

.hero p {
  margin-top: 8px;
  color: #4b6a85;
}

/* ======================================================
   SECTION
====================================================== */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 28px 16px;
}

.section h2 {
  margin-bottom: 16px;
  font-size: 22px;
  color: #0b3a5b;
}

/* ======================================================
   GRID
====================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

/* ======================================================
   CARD – STRUKTUR DIKUNCI TOTAL
====================================================== */
.card,
.highlight-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;

  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #d6ebff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);

  overflow: hidden !important;
}

/* ======================================================
   JUDUL & TEKS (ANTI MELAYANG)
====================================================== */
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.card small {
  font-size: 13px;
  color: #64748b;
}

/* ======================================================
   QR – FIX TOTAL (INI KUNCI UTAMA)
====================================================== */
.qr {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;

  margin: 0 auto;

  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #d7eefe;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden !important;
  z-index: 0 !important;
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ======================================================
   ADDRESS
====================================================== */
.address {
  margin-top: 6px;
  background: #eff8ff;
  border: 1px solid #9ad8ff;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  word-break: break-all;
  text-align: center;
}

.address:hover {
  background: #dff2ff;
}

/* ======================================================
   MEMO / TAG
====================================================== */
.memo {
  margin-top: 6px;
  background: #fff4cc;
  border: 1px dashed #facc15;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.memo::before {
  content: "⚠ ";
  font-weight: bold;
}

/* ======================================================
   HIGHLIGHT CARD
====================================================== */
.highlight-card {
  text-align: center;
}

.highlight-badge {
  display: inline-block;
  background: #0ca678;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
}

/* ======================================================
   FAQ
====================================================== */
.faq {
  max-width: 900px;
  margin: 24px auto;
}

.faq-item {
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d6ebff;
  margin-bottom: 10px;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  text-align: center;
  padding: 26px;
  color: #4b6a85;
  font-size: 14px;
}

/* ======================================================
   ANIMASI HALUS
====================================================== */
.fade {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   MOBILE SAFE
====================================================== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .section h2 {
    font-size: 20px;
  }

  .qr {
    max-width: 200px;
  }
}

/* ======================================================
   POLISH LAYOUT – GRID 2 KOLOM (TABLET / DESKTOP)
====================================================== */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================================
   ADDRESS BOX – LEBIH JELAS & USER-FRIENDLY
====================================================== */
.address {
  margin-top: 8px;
  background: #0f172a;        /* gelap = interaktif */
  color: #e5e7eb;

  border: 1px solid #334155;
  padding: 12px 42px 12px 12px;
  border-radius: 10px;

  font-size: 12px;
  cursor: pointer;
  word-break: break-all;
  text-align: center;

  position: relative;
  transition: all 0.2s ease;
}

.address::after {
  content: "📋 Copy";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.address:hover {
  background: #020617;
  border-color: #38bdf8;
}

/* ======================================================
   MEMO BOX – LEBIH KONTRAS
====================================================== */
.memo {
  background: #fff7ed;
  border: 1px dashed #fb923c;
  color: #7c2d12;
}

/* ======================================================
   FAQ – TIDAK DATAR, TETAP CORPORATE
====================================================== */
.faq-item {
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border-left: 4px solid #38bdf8;
}

.faq-item h3 {
  color: #0b3a5b;
}

/* ======================================================
   FOOTER – PENUTUP HALAMAN LEBIH ELEGAN
====================================================== */
footer {
  background: linear-gradient(180deg, #eaf6ff, #dbeafe);
  border-top: 1px solid #c7d2fe;
}
