/* =========================================================
   HOLAHOOB.ID / HOLASTORE
   CSS UTAMA - VERSI MODERN & RAPI (PREMIUM)
   ========================================================= */

/* ===== IMPORT FONT LEXEND ===== */
@import url('https://googleapis.com');

* {
  font-family: 'Lexend', system-ui, -apple-system, sans-serif !important;
  box-sizing: border-box;
}

body {
  background: #fffafb;
  color: #3d314a;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}


/* =========================================================
   TOPBAR HEADER
   ========================================================= */
.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 228, 236, 0.7);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #322365;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  font-size: 20px;
}


/* =========================================================
   CARD & PANEL UMUM
   ========================================================= */
.login-card,
.panel {
  background: #fff;
  border: 1px solid rgba(236, 219, 229, 0.6);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(80, 55, 85, 0.03);
  margin-bottom: 24px;
}

.login-card {
  max-width: 440px;
  margin: 60px auto;
}

.login-card h1,
.panel h2,
#loginView h1 {
  color: #322365;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-card p,
.panel p {
  color: #72637d;
  font-size: 13px;
  margin-bottom: 20px;
}


/* =========================================================
   FORM STYLING
   ========================================================= */
label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  color: #322365;
  gap: 6px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border: 1.5px solid #ecdbe5;
  border-radius: 12px;
  font-size: 14px;
  color: #3d314a;
  outline: none;
  background: #fff;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7b4ea3;
  box-shadow: 0 0 0 4px rgba(123, 78, 163, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .full {
  grid-column: span 2;
}

.form-grid.compact {
  max-width: 600px;
}


/* =========================================================
   BUTTONS
   ========================================================= */
button.primary,
button#loginBtn {
  background: #322365;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button.primary:hover,
button#loginBtn:hover {
  background: #443180;
  transform: translateY(-1px);
}

button.danger {
  background: #fff1f5;
  color: #e03163;
  border: 1.5px solid #f6b6ca;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

button.danger:hover {
  background: #ffe4ee;
}


/* =========================================================
   HERO ADMIN & STATS
   ========================================================= */
.hero.admin-hero {
  background: linear-gradient(135deg, #3c1c78 0%, #542894 100%);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.hero.admin-hero h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 6px;
}

.hero.admin-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.hero-icons {
  font-size: 20px;
  letter-spacing: 6px;
  color: #ffe65c;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stats > div {
  background: #fff;
  border: 1.5px solid #ecdbe5;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(80, 55, 85, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats span {
  font-size: 12px;
  font-weight: 700;
  color: #72637d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats strong {
  font-size: 24px;
  font-weight: 800;
  color: #322365;
}


/* =========================================================
   TABS NAVIGATION
   ========================================================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tabs button {
  background: #fff;
  border: 1.5px solid #ecdbe5;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #5c4d66;
  cursor: pointer;
  transition: all 0.2s;
}

.tabs button:hover,
.tabs button.active {
  background: #322365;
  color: #fff;
  border-color: #322365;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-head button {
  background: #f8f4f9;
  border: 1.5px solid #ecdbe5;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #322365;
}


/* =========================================================
   TABLE
   ========================================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #f2e4ec;
}

th {
  font-weight: 800;
  color: #322365;
  background: #fcf9fc;
}

td {
  color: #3d314a;
}


/* =========================================================
   UTILITY
   ========================================================= */
.hidden {
  display: none !important;
}

.small {
  font-size: 12px;
  color: #72637d;
  margin-top: 8px;
}


/* =========================================================
   SCROLL KATEGORI
   ========================================================= */
.category-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.category-nav-bottom {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 4px 8px 4px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  width: 100%;
}

.category-nav-bottom::-webkit-scrollbar {
  height: 6px;
}

.category-nav-bottom::-webkit-scrollbar-thumb {
  background: #ecdbe5;
  border-radius: 10px;
}

.scroll-arrow-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1.5px solid #ecdbe5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #322365;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  z-index: 5;
  pointer-events: none;
}

.scroll-arrow-left {
  left: -10px;
}

.scroll-arrow-right {
  right: -10px;
}


/* =========================================================
   KARTU PRODUK & KATALOG
   ========================================================= */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  padding: 16px 0;
}

.hh-product-card {
  background: #ffffff;
  border: 1px solid rgba(236, 219, 229, 0.5);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(80, 55, 85, 0.02);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s ease;
  position: relative;
}

.hh-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(50, 35, 101, 0.08);
  border-color: #322365;
}


/* =========================================================
   GAMBAR PRODUK UTAMA (TANPA TERCROP)
   ========================================================= */
.hh-product-image {
  width: 100%;
  height: 220px;
  background: #fdf2f6;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
}

/* Menggunakan contain agar seluruh gambar muat dalam kotak tanpa ada bagian yang terpotong */
.hh-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.hh-product-card:hover .hh-product-image img {
  transform: scale(1.03);
}

.hh-photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(61, 49, 74, 0.78);
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  height: auto;       /* Memastikan tinggi tidak memanjang */
  line-height: 1;     /* Mencegah spasi teks membengkak */
  display: inline-block; /* Mencegah pelebaran flexbox */
  z-index: 2;
}

/* =========================================================
   4 FOTO KECIL DI BAWAH FOTO UTAMA (KATALOG DEPAN)
   ========================================================= */
.hh-card-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 12px 0 12px;
  background: #ffffff;
}

.hh-card-thumb {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid #ecdbe5;
  overflow: hidden;
  background: #fcf8fa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hh-card-thumb.active,
.hh-card-thumb:hover {
  border-color: #322365;
}

.hh-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
}


/* =========================================================
   ISI KARTU PRODUK
   ========================================================= */
.hh-product-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hh-category {
  font-size: 10px;
  font-weight: 600;
  color: #a08fae;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.hh-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #3d314a;
  margin-bottom: 12px;
  line-height: 1.4;
  height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-price-box {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.hh-price {
  font-size: 16px;
  font-weight: 700;
  color: #e03163;
  display: block;
  width: 100%;
  text-align: left;
}

.hh-normal-price {
  font-size: 12px;
  color: #a08fae;
  text-decoration: line-through;
  display: block;
  width: 100%;
  text-align: left;
}

.hh-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #72637d;
  margin-bottom: 14px;
  border-top: 1px dashed rgba(236, 219, 229, 0.8);
  padding-top: 10px;
}

.hh-detail-btn {
  width: 100%;
  background: #f8f5fc;
  color: #322365;
  border: 1px solid #ecdbe5;
  padding: 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hh-product-card:hover .hh-detail-btn {
  background: #322365;
  color: #ffffff;
  border-color: #322365;
}


/* =========================================================
   MODAL DETAIL & CHECKOUT (POPUP)
   ========================================================= */
.hh-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 35, 101, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hh-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.hh-modal-box {
  background: #fff;
  border-radius: 24px;
  width: 92%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(50, 35, 101, 0.15);
  border: 1px solid rgba(236, 219, 229, 0.5);
}

.hh-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f8f5fc;
  border: 1px solid #ecdbe5;
  color: #322365;
  font-size: 18px;
  font-weight: 800;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.hh-close-modal:hover {
  background: #e03163;
  color: #fff;
  border-color: #e03163;
}


/* =========================================================
   DETAIL LAYOUT & GALERI POPUP
   ========================================================= */
.hh-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 32px;
}

.hh-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hh-gallery-main {
  width: 100%;
  height: 340px;
  background: #fcf8fa;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 219, 229, 0.6);
  margin-bottom: 0;
}

.hh-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.hh-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #ecdbe5;
  color: #322365;
  font-size: 16px;
  font-weight: 800;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.hh-gallery-prev { left: 12px; }
.hh-gallery-next { right: 12px; }

.hh-gallery-arrow:hover {
  background: #322365;
  color: #fff;
  border-color: #322365;
}

.hh-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.hh-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  padding-bottom: 0;
  overflow-x: visible;
}

.hh-thumbnails:empty,
.hh-thumbnails:not(:has(.hh-thumb:nth-child(2))) {
  display: none !important;
}

.hh-thumb {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  border: 2px solid #ecdbe5;
  overflow: hidden;
  cursor: pointer;
  background: #f8f5fc;
  padding: 0;
  margin: 0;
  transition: all 0.2s ease;
}

.hh-thumb.active {
  border-color: #322365;
  transform: scale(0.96);
}

.hh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
}


/* =========================================================
   DETAIL INFORMASI PRODUK
   ========================================================= */
.hh-detail-category {
  font-size: 11px;
  font-weight: 600;
  color: #a08fae;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hh-detail-name {
  font-size: 22px;
  font-weight: 700;
  color: #322365;
  margin: 6px 0 16px 0;
  line-height: 1.3;
}

.hh-price-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hh-detail-price {
  font-size: 24px;
  font-weight: 700;
  color: #e03163;
}

.hh-detail-old-price {
  font-size: 14px;
  color: #a08fae;
  text-decoration: line-through;
}

.hh-discount-badge {
  background: #fff1f5;
  color: #e03163;
  border: 1px solid #f6b6ca;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.hh-stock-box {
  background: #fbf8fc;
  border: 1px solid #ecdbe5;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: #322365;
  margin-bottom: 20px;
}

.hh-desc-container {
  margin-top: 20px;
  border-top: 1px solid rgba(236, 219, 229, 0.6);
  padding-top: 16px;
}

.hh-desc-title {
  font-size: 13px;
  font-weight: 700;
  color: #322365;
  margin-bottom: 6px;
}

.hh-detail-description {
  font-size: 13px;
  color: #72637d;
  line-height: 1.6;
  max-height: 150px;
  overflow-y: auto;
}

.hh-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.hh-add-cart-btn {
  background: #ffffff;
  color: #322365;
  border: 1.5px solid #322365;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.hh-add-cart-btn:hover {
  background: #f3effa;
}

.hh-buy-btn {
  background: linear-gradient(135deg, #322365, #542894);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(50, 35, 101, 0.15);
  transition: transform 0.2s, opacity 0.2s;
}

.hh-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(50, 35, 101, 0.25);
}


/* =========================================================
   POPUP KERANJANG TOAST
   ========================================================= */
.hh-cart-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid rgba(236, 219, 229, 0.8);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 15px 45px rgba(50, 35, 101, 0.12);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hh-cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hh-cart-toast-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #e9fff2;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.hh-cart-toast-content {
  flex: 1;
  min-width: 0;
}

.hh-cart-toast-title {
  color: #322365;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.hh-cart-toast-product {
  color: #72637d;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-cart-toast-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: #322365;
  color: #ffffff !important;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hh-cart-toast-button:hover {
  background: #443180;
}

.hh-cart-toast-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #9b8da3;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hh-cart-toast-close:hover {
  background: #f8f5fc;
  color: #322365;
}
/* =========================================================
   CHECKOUT PAYMENT METHODS — COMPACT & RESPONSIVE
   Visual-only styles. Does not change checkout structure/function.
   ========================================================= */
#dynamicModalContainer .payment-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 9px;
  color: #322365;
}

#dynamicModalContainer .payment-section-title span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

#dynamicModalContainer .payment-section-title small {
  color: #8b7d99;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

#dynamicModalContainer .payment-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
}

#dynamicModalContainer .payment-method-card {
  position: relative;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7deee;
  border-radius: 13px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

#dynamicModalContainer .payment-method-card:hover {
  transform: translateY(-1px);
  border-color: #c5b2d8;
  box-shadow: 0 6px 16px rgba(50,35,101,.08);
}

#dynamicModalContainer .payment-method-card:has(input:checked) {
  border-color: #7452ad;
  background: #faf7ff;
  box-shadow: 0 6px 16px rgba(50,35,101,.08), inset 0 0 0 1px rgba(116,82,173,.08);
}

#dynamicModalContainer .payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#dynamicModalContainer .payment-method-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1.5px solid #c9bfd3;
  border-radius: 50%;
  background: #fff;
}

#dynamicModalContainer .payment-method-card:has(input:checked) .payment-method-check {
  border-color: #7452ad;
  background: #7452ad;
  box-shadow: inset 0 0 0 3px #fff;
}

#dynamicModalContainer .payment-method-logo {
  width: 74px;
  height: 48px;
  min-width: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  color: #322365;
  font-size: 10px;
  font-weight: 800;
}

#dynamicModalContainer .payment-method-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

#dynamicModalContainer .payment-method-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 18px;
}

#dynamicModalContainer .payment-method-info strong {
  display: block;
  color: #322365;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dynamicModalContainer .payment-method-info small {
  display: block;
  color: #81738e;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

#dynamicModalContainer .payment-method-arrow {
  display: none;
}

@media (max-width: 700px) {
  #dynamicModalContainer .payment-method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #dynamicModalContainer .payment-method-card {
    min-height: 88px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  #dynamicModalContainer .payment-method-logo {
    width: 62px;
    min-width: 62px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  #dynamicModalContainer .payment-method-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #dynamicModalContainer .payment-method-card {
    min-height: 72px;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  #dynamicModalContainer .payment-method-logo {
    width: 70px;
    min-width: 70px;
    height: 42px;
  }
}


/* =========================================================
   POPUP PESANAN BERHASIL
   ========================================================= */
.hh-success-modal {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(28, 18, 45, .48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto !important;
}

.hh-success-box {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid rgba(236, 219, 229, .95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(50, 35, 101, .22);
  color: #322365;
  animation: hhSuccessIn .22s ease-out;
  pointer-events: auto !important;
}

@keyframes hhSuccessIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hh-success-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f1fa;
  color: #6d5b7e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.hh-success-close:hover {
  background: #ece4f4;
  color: #322365;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9fff2;
}

.success-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #20a95b;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.success-badge {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2ebfb;
  color: #65419a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
}

.hh-success-box h2 {
  margin: 0;
  text-align: center;
  color: #322365;
  font-size: 22px;
  line-height: 1.25;
}

.success-subtitle {
  margin: 9px 0 18px;
  color: #72637d;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.order-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #eadfea;
  border-radius: 14px;
  background: #faf8fd;
}

.order-code-card > div {
  min-width: 0;
}

.order-code-label {
  display: block;
  margin-bottom: 4px;
  color: #8b7d99;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .6px;
}

.order-code-card strong {
  display: block;
  color: #322365;
  font-size: 14px;
  letter-spacing: .3px;
  word-break: break-all;
}

#copyOrderIdBtn {
  flex: 0 0 auto;
  border: 1px solid #d9c9e7;
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: #542894;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

#copyOrderIdBtn:hover,
#copyOrderIdBtn.copied {
  background: #f1eafb;
}

.success-info-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #eadfea;
  border-radius: 14px;
  background: #fff9fc;
}

.success-info-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f2ebfb;
  font-size: 16px;
}

.success-info-card strong,
.success-info-card span {
  display: block;
}

.success-info-card strong {
  margin-bottom: 3px;
  color: #322365;
  font-size: 11px;
}

.success-info-card span {
  color: #72637d;
  font-size: 10px;
  line-height: 1.5;
}

.success-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.success-whatsapp-btn {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #322365, #542894);
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(50, 35, 101, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.success-whatsapp-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(50, 35, 101, .24);
}

.wa-btn-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,.14);
  font-size: 16px;
}

.success-whatsapp-btn strong,
.success-whatsapp-btn small {
  display: block;
  text-align: left;
}

.success-whatsapp-btn strong {
  font-size: 12px;
  line-height: 1.3;
}

.success-whatsapp-btn small {
  margin-top: 2px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 500;
}

.success-later-btn {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7b6b87;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.success-later-btn:hover {
  background: #f8f5fc;
  color: #322365;
}

@media (max-width: 480px) {
  .hh-success-modal { padding: 12px; }
  .hh-success-box { padding: 24px 18px 18px; border-radius: 20px; }
  .hh-success-box h2 { font-size: 19px; }
}


/* Digital category grids: Voucher Game, Voucher, and Pembayaran Online share the same card layout. */
.hh-game-grid .hh-game-card { box-sizing: border-box; }
