/* === Modal konfirmasi pesanan (unik) === */
#formorder .modal-dialog {
  max-width: 520px;
}

#formorder .modal-content {
  border: none;
  background: transparent;
  padding: 0;
}

/* wrapper di dalam #hasilnya */
.vchx-modal-wrapper {
  padding: 24px 24px 28px;
}

/* kartu utama */
.vchx-confirm {
  position: relative;
  background: #fff6dd;
  border-radius: 24px;
  padding: 28px 26px 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  color: #2b2b2b;
  font-size: 14px;
}

.vchx-confirm-top {
  text-align: center;
  margin-bottom: 18px;
}

.vchx-confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #ffe9a9 0, #fbbf24 35%, #f59e0b 70%);
  box-shadow: 0 16px 30px rgba(251, 146, 60, 0.45);
  color: #8b4500;
  font-size: 30px;
}

.vchx-confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: #4a3210;
  margin: 0;
}

/* blok detail pesanan */
.vchx-confirm-info {
  margin-top: 14px;
  padding: 14px 16px 10px;
  border-radius: 18px;
  background: #fffaf0;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.vchx-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.vchx-info-label {
  color: #8c8c8c;
  font-weight: 500;
}

.vchx-info-value {
  color: #222;
  font-weight: 500;
  text-align: right;
}

.vchx-info-row--total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(250, 204, 21, 0.7);
}

.vchx-info-row--total .vchx-info-value {
  color: #ea8a00;
  font-weight: 700;
}

.vchx-info-value--total {
  font-size: 15px;
}

/* info nickname error / debug */
.vchx-nickname-note {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.8;
}

.vchx-nickname-debug {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.6;
  word-break: break-all;
}

/* kartu metode pembayaran */
.vchx-payment {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(250, 204, 21, 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
}

.vchx-payment-logo {
  flex: 0 0 auto;
  width: 60px;
  height: 42px;
  border-radius: 12px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vchx-payment-logo-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.vchx-payment-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vchx-payment-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c28a00;
  font-weight: 600;
}

.vchx-payment-method {
  font-size: 14px;
  font-weight: 600;
}

.vchx-payment-amount {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

/* catatan kecil */
.vchx-note {
  margin-top: 14px;
  font-size: 12px;
  color: #7a5a1a;
}

/* tombol */
.vchx-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.vchx-btn {
  flex: 1;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vchx-btn-primary {
  background: linear-gradient(135deg, #ffd363, #ff9f1c);
  color: #3e2200;
  box-shadow: 0 10px 25px rgba(251, 146, 60, 0.5);
}

.vchx-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(251, 146, 60, 0.6);
}

.vchx-btn-ghost {
  background: #fff;
  color: #b37400;
  border: 1px solid rgba(250, 204, 21, 0.7);
}

.vchx-btn-ghost:hover {
  background: #fff7df;
}

/* responsive */
@media (max-width: 576px) {
  #formorder .modal-dialog {
    max-width: 100%;
    margin: 0.75rem;
  }

  .vchx-modal-wrapper {
    padding: 16px 10px 20px;
  }

  .vchx-confirm {
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .vchx-actions {
    flex-direction: column;
  }
}

/* ====== LOADER UNIK UNTUK MODAL ORDER ====== */
.vchx-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.vchx-loader-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #ffe6b8;
  border-top-color: #ff9f1c;
  border-right-color: #ff9f1c;
  animation: vchx-spin 0.65s linear infinite;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}

.vchx-loader-text {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #7a5a1a;
}

/* animasi putar */
@keyframes vchx-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* === Error modal Order (vchx-err) === */
#formorder .modal-dialog {
  max-width: 540px;
}

#formorder .modal-content {
  border: none;
  background: transparent !important;
  box-shadow: none;
}

.vchx-err-wrapper {
  padding: 24px 24px 32px;
}

.vchx-err-card {
  background: #fff7e6;
  border-radius: 24px;
  padding: 40px 32px 30px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  color: #7a5a1a;
}

.vchx-err-icon-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #fff1bf 0, #ffd169 40%, #ff9f1c 80%);
  box-shadow: 0 16px 32px rgba(251, 146, 60, 0.55);
}

.vchx-err-icon {
  font-size: 32px;
  font-weight: 700;
  color: #b45309;
}

.vchx-err-title {
  font-size: 22px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
}

.vchx-err-text {
  font-size: 14px;
  margin-bottom: 24px;
  color: #7a5a1a;
}

.vchx-err-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd363, #ff9f1c);
  color: #3e2200;
  box-shadow: 0 10px 25px rgba(251, 146, 60, 0.5);
  transition: all 0.15s ease;
}

.vchx-err-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(251, 146, 60, 0.6);
}

/* mobile */
@media (max-width: 576px) {
  #formorder .modal-dialog {
    max-width: 100%;
    margin: 0.75rem;
  }

  .vchx-err-wrapper {
    padding: 20px 12px 26px;
  }

  .vchx-err-card {
    padding: 32px 20px 26px;
    border-radius: 20px;
  }
}

/* ===== LEFT SIDEBAR ala Codashop ===== */
.game-sidebar.vchx-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* kartu utama deskripsi game */
.vchx-game-card {
  background: #24003f;              /* ungu gelap */
  border-radius: 18px;
  padding: 18px 18px 20px;
  color: #fdf4ff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

/* header: cover + title + badge */
.vchx-game-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.vchx-game-cover {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.vchx-game-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.vchx-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 11px;
}

.vchx-game-badge i {
  font-size: 12px;
}

/* body text */
.vchx-game-body {
  font-size: 13px;
  line-height: 1.55;
}

.vchx-game-body p {
  margin-bottom: 8px;
}

.vchx-game-body a {
  color: #4ade80;        /* hijau seperti link Codashop */
  font-weight: 600;
  text-decoration: none;
}

.vchx-game-body a:hover {
  text-decoration: underline;
}

/* bagian download app */
.vchx-game-download {
  margin-top: 12px;
}

.vchx-game-download-label {
  font-size: 13px;
  margin-bottom: 8px;
}

.vchx-store-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vchx-store-badges img {
  height: 32px;
  border-radius: 6px;
}

/* kartu produk terkait */
.product-related.vchx-related-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
}

.product-related.vchx-related-card h6 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-related.vchx-related-card .product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
}

.product-related.vchx-related-card .product-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.product-related.vchx-related-card .product-item-info h6 {
  margin: 0;
  font-size: 13px;
  color: #111827;
}

.product-related.vchx-related-card .product-item-info p {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
}

/* mobile */
@media (max-width: 767px) {
  .vchx-game-card {
    border-radius: 16px;
  }
}