body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #121212 0%, #202020 100%); /* Latar belakang dark gray */
  color: #e0e0e0; /* Warna teks umum */
  text-align: center;
  transition: all 0.5s ease-in-out;
}

/* Loading screen */
#loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loader {
  border: 6px solid #333;
  border-top: 6px solid #00aaff; /* Warna loader biru */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Header */
header {
  padding: 30px 0 10px;
  background: #121212; /* Warna header dark gray */
  border-bottom: 1px solid rgba(0, 170, 255, 0.2); /* Border biru transparan */
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

header h1 {
  font-size: 38px;
  color: #00aaff; /* Warna judul biru */
  text-shadow: 0 0 15px rgba(0, 170, 255, 0.4); /* Shadow biru */
  position: relative;
  display: inline-block;
}

header h1::after {
  content: '';
  display: block;
  margin: 10px auto 0;
  width: 80px;
  height: 2px;
  background: #00aaff; /* Garis bawah biru */
  box-shadow: 0 0 8px #00aaff;
}

.payment-method {
  background: rgba(255, 255, 255, 0.05); /* Sedikit transparan */
  border: 1px solid rgba(0, 170, 255, 0.15); /* Border biru */
  border-radius: 15px;
  padding: 25px;
  margin: 20px auto;
  max-width: 420px;
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.1); /* Shadow biru */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-method:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 170, 255, 0.25); /* Shadow lebih kuat saat hover */
}

.payment-method h2 {
  font-size: 24px;
  color: #00aaff; /* Warna judul biru */
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-method h2 i {
  margin-right: 10px;
  color: #00aaff; /* Warna ikon biru */
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  padding: 10px 16px;
  border: 1px solid rgba(0, 170, 255, 0.4); /* Border biru */
  border-radius: 8px;
  background: transparent;
  color: #00aaff; /* Warna teks tombol biru */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover {
  background: #00aaff; /* Background biru saat hover */
  color: #121212; /* Teks gelap saat hover */
  transform: scale(1.05);
}

/* Gaya untuk tombol testimoni */
.testimoni-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 25px;
  border: 2px solid #00aaff; /* Border biru */
  border-radius: 10px;
  background: #00aaff; /* Background biru */
  color: #121212; /* Teks gelap */
  font-weight: bold;
  font-size: 1.1em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4); /* Shadow biru */
}

.testimoni-button:hover {
  background: #0088cc; /* Biru sedikit gelap saat hover */
  color: #121212;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.6);
}

.qris-img {
  width: 200px;
  height: auto;
  margin-top: 20px;
  border-radius: 12px;
  border: 2px solid rgba(0, 170, 255, 0.4); /* Border biru */
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.2); /* Shadow biru */
}

.tips {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 170, 255, 0.15); /* Border biru */
  border-radius: 12px;
  padding: 20px;
  margin: 40px auto;
  max-width: 600px;
}

.tips h3 {
  margin-bottom: 12px;
  color: #00aaff; /* Warna judul biru */
  font-size: 20px;
}

.tips ul {
  list-style: disc;
  text-align: left;
  margin: 0 auto;
  padding-left: 30px;
  color: #a0a0a0; /* Warna teks tips */
}

.footer {
  margin-top: 50px;
  font-size: 14px;
  color: #888; /* Warna teks footer */
  padding-bottom: 20px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.modal.active {
    opacity: 1;
}

.modal-content {
  background: #1e1e1e; /* Background modal dark gray */
  border: 1px solid rgba(0, 170, 255, 0.3); /* Border modal biru */
  border-radius: 12px;
  padding: 25px;
  max-width: 300px;
  color: #e0e0e0;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.2); /* Shadow modal biru */
  transform: translateY(-20px);
  transition: transform 0.3s ease-out;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
  color: #00aaff; /* Warna judul modal biru */
  margin-bottom: 10px;
}

.modal-content p {
  margin: 10px 0;
}

.close-btn {
  background: #00aaff; /* Warna tombol close biru */
  color: #121212; /* Warna teks tombol close */
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background: #0088cc; /* Biru sedikit gelap saat hover */
}

/* Notifikasi Salin */
.copy-notification {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #00aaff; /* Background biru */
  color: #121212; /* Teks gelap */
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 10001;
  box-shadow: 0 2px 10px rgba(0, 170, 255, 0.3); /* Shadow biru */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.copy-notification.show {
  opacity: 1;
}

/* FAQ Section */
.faq-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 170, 255, 0.15); /* Border biru */
  border-radius: 15px;
  padding: 25px;
  margin: 40px auto;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.1); /* Shadow biru */
}

.faq-section h3 {
  color: #00aaff; /* Warna judul biru */
  font-size: 24px;
  margin-bottom: 20px;
}

.accordion-item {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 170, 255, 0.1); /* Border biru */
}

.accordion-header {
  background-color: transparent;
  color: #00aaff; /* Warna teks header biru */
  cursor: pointer;
  padding: 15px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  background-color: rgba(0, 170, 255, 0.05); /* Background biru transparan saat hover */
  color: #ffffff; /* Teks putih saat hover */
}

.accordion-header::after {
  content: '\002B';
  font-size: 24px;
  color: #00aaff; /* Warna ikon biru */
  font-weight: bold;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  content: "\2212";
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 15px;
  background-color: rgba(0, 170, 255, 0.02); /* Background biru transparan */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  text-align: left;
}

.accordion-content p {
  padding-bottom: 15px;
  color: #ccc;
  line-height: 1.6;
}

/* Responsif */
@media (max-width: 768px) {
  header h1 {
    font-size: 32px;
  }
  .payment-method, .tips, .faq-section {
    margin: 20px 15px;
    padding: 20px;
  }
  .payment-method h2 {
    font-size: 20px;
  }
  .accordion-header {
    font-size: 16px;
  }
}

/* Custom Nominal Modal Specific Styles */
#custom-qris-modal .modal-content {
  max-width: 400px; /* Lebar modal custom nominal */
  padding: 30px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-blue);
  font-weight: 600;
}

.input-group input[type="number"] {
  width: calc(100% - 20px); /* Kurangi padding */
  padding: 10px;
  border: 1px solid var(--border-color-medium);
  border-radius: 8px;
  background-color: #2a2a2a; /* Background input gelap */
  color: var(--light-text);
  font-size: 1em;
  box-sizing: border-box; /* Pastikan padding masuk dalam lebar */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.3); /* Ring biru saat fokus */
}

#generate-qris-btn {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
  background: var(--primary-blue);
  color: var(--dark-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: bold;
}

#generate-qris-btn:hover {
  background: #0088cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.4);
}

.error-text {
  color: #ff4d4d; /* Merah untuk pesan error */
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: 600;
}

.small-text {
  font-size: 0.9em;
  color: var(--medium-text);
  margin-top: 10px;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 28px;
  }
  .payment-method, .tips, .faq-section {
    padding: 15px;
  }
  .btn-group button {
    width: 100%;
  }
  .testimoni-button {
    font-size: 1em;
    padding: 10px 20px;
  }
}