/* ===========================================================
   THANHUBSTORE - UI v2
   Banner, toolbar (kategori + cari), kartu produk, ulasan,
   benefit strip, footer, sheet detail produk, tombol melayang.
   Dimuat setelah style.css, jadi aman meng-override.
   =========================================================== */

:root {
  --th-grad: linear-gradient(135deg, #ff3ea5 0%, #d02bff 55%, #8b22e6 100%);
  --th-grad-soft: linear-gradient(135deg, rgba(255, 62, 165, 0.16), rgba(139, 34, 230, 0.16));
  --th-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

html { scroll-behavior: smooth; }

/* ---------- BANNER ---------- */
.th-banner {
  position: relative;
  margin: 16px 16px 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 10px 30px rgba(139, 34, 230, 0.25);
  background: var(--bg-surface);
}
.th-banner-track { display: flex; transition: transform 0.5s ease; }
.th-banner-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.th-banner-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 2, 15, 0.85) 0%, rgba(8, 2, 15, 0.1) 55%, transparent 100%);
}
.th-banner-content {
  position: relative;
  z-index: 1;
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  color: #fff;
}
.th-banner-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px;
  color: #ffd3f0;
  background: rgba(255, 62, 165, 0.18);
  border: 1px solid rgba(255, 62, 165, 0.55);
}
.th-banner-title {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900; line-height: 1.05; letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.th-banner-title span {
  background: var(--th-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.th-banner-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(8, 2, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}
.th-banner-cta:hover { background: var(--th-grad); border-color: transparent; }
.th-banner-cta i { font-size: 11px; }
.th-banner-dots {
  position: absolute; right: 16px; top: 14px;
  display: flex; gap: 6px;
}
.th-banner-dots[hidden] { display: none; }
.th-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: width 0.2s, background 0.2s; }
.th-dot.active { width: 22px; background: #fff; }

/* ---------- JUDUL SECTION ---------- */
.th-section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 20px 14px;
  font-size: 20px; font-weight: 900; letter-spacing: 0.5px;
  color: var(--text-primary);
  scroll-margin-top: 90px;
}
.th-live-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #22e57b;
  box-shadow: 0 0 0 4px rgba(34, 229, 123, 0.18), 0 0 12px rgba(34, 229, 123, 0.8);
  animation: thPulse 2s ease-in-out infinite;
}
@keyframes thPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------- TOOLBAR: kategori + cari ---------- */
.th-toolbar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  overflow: hidden;
}
.th-toolbar-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-primary); font-size: 15px;
}
.th-chips {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.th-chips::-webkit-scrollbar { display: none; }
.th-chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.th-chip:hover { color: var(--text-primary); background: rgba(208, 43, 255, 0.12); }
.th-chip.active { color: #fff; background: var(--th-grad); box-shadow: 0 4px 14px rgba(208, 43, 255, 0.4); }
.th-search-toggle {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--gold-primary); font-size: 15px;
}
.th-search-toggle:hover { background: rgba(208, 43, 255, 0.15); }

.th-search-form {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 18px;
  background: var(--bg-surface);
  border-radius: 999px;
  opacity: 0; pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.2s, transform 0.2s;
}
.th-toolbar.searching .th-search-form { opacity: 1; pointer-events: auto; transform: none; }
.th-search-form > i { color: var(--gold-primary); font-size: 14px; }
.th-search-form input {
  flex: 1; min-width: 0; height: 100%;
  background: transparent; border: 0; outline: 0;
  color: var(--text-primary); font-size: 14px; font-family: inherit;
}
.th-search-form input::placeholder { color: var(--text-muted); }
.th-search-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(208, 43, 255, 0.15); color: var(--text-primary);
}
.th-search-note { margin: 10px 20px 0; font-size: 12.5px; color: var(--text-secondary); }
.th-search-note a { color: var(--gold-bright); font-weight: 700; text-decoration: underline; }

/* ---------- KARTU PRODUK ---------- */
.th-products {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 18px 16px 4px;
}
.th-card {
  display: flex; gap: 14px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-gold);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.th-card:hover { border-color: var(--border-gold-strong); box-shadow: 0 8px 28px rgba(139, 34, 230, 0.22); transform: translateY(-2px); }

.th-card-side { flex: 0 0 92px; display: flex; flex-direction: column; gap: 8px; }
.th-card-icon {
  width: 92px; height: 92px; border-radius: 20px; object-fit: cover;
  background: var(--bg-base);
  border: 1px solid var(--border-gold-strong);
}
.th-card-dur, .th-card-dl, .th-card-tut {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px;
  white-space: nowrap;
}
.th-card-dur { color: var(--gold-bright); background: rgba(208, 43, 255, 0.14); border: 1px solid var(--border-gold); }
.th-card-dl { color: #fff; background: #0b0614; border: 1px solid rgba(255, 255, 255, 0.12); transition: border-color 0.2s; }
.th-card-dl:hover, .th-card-tut:hover { border-color: var(--gold-primary); }
.th-card-tut { color: var(--text-secondary); background: transparent; border: 1px dashed var(--border-gold-strong); }
[data-theme="light"] .th-card-dl { background: #2a0a45; }

.th-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.th-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.th-card-cat {
  max-width: 55%;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--th-mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-bright); border: 1px solid var(--border-gold-strong); background: rgba(208, 43, 255, 0.1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-card-price { font-size: 15px; font-weight: 900; color: var(--gold-bright); white-space: nowrap; }
.th-card-name { margin-top: 10px; font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--text-primary); }
.th-card-desc {
  margin-top: 6px; font-size: 12.5px; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.th-card-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.th-card-rating { color: #ffb020; font-weight: 800; }
.th-card-sold::before { content: '\2022'; margin-right: 8px; color: var(--text-muted); }
.th-card-status-row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.th-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
  border: 1px solid; background: rgba(8, 2, 15, 0.35);
}
.th-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.th-status.online { color: #22e57b; border-color: rgba(34, 229, 123, 0.4); }
.th-status.offline { color: #ff2d6f; border-color: rgba(255, 45, 111, 0.45); }
.th-status.unknown { color: #f5b301; border-color: rgba(245, 179, 1, 0.45); }
.th-card-badge { font-size: 11px; font-weight: 700; color: var(--amber); }

.th-buy {
  margin-top: 14px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 14px; border-radius: 14px;
  font-size: 13.5px; font-weight: 900; letter-spacing: 0.8px; color: #fff;
  background: var(--th-grad);
  box-shadow: 0 6px 18px rgba(208, 43, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.th-buy:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(208, 43, 255, 0.55); }
.th-buy:active:not(:disabled) { transform: scale(0.98); }
.th-buy:disabled { background: var(--bg-surface); color: var(--text-muted); box-shadow: none; cursor: not-allowed; border: 1px solid var(--border-gold); }

@media (max-width: 380px) {
  .th-card { flex-direction: column; }
  .th-card-side { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .th-card-icon { width: 64px; height: 64px; border-radius: 16px; }
}
@media (min-width: 768px) {
  .th-products { grid-template-columns: repeat(2, 1fr); padding: 20px 24px 4px; gap: 18px; }
  .th-toolbar, .th-banner { margin-left: 24px; margin-right: 24px; }
  .th-section-title { margin-left: 28px; }
  .th-banner-slide { aspect-ratio: 21 / 8; }
}

/* ---------- ULASAN PEMBELI ---------- */
.th-reviews {
  margin: 30px 16px 0;
  padding: 20px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 0 0 1px rgba(255, 62, 165, 0.08) inset;
}
.th-reviews-head { display: flex; align-items: center; gap: 12px; }
.th-reviews-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; background: var(--th-grad);
  box-shadow: 0 6px 16px rgba(208, 43, 255, 0.4);
}
.th-reviews-head-text { flex: 1; min-width: 0; }
.th-reviews-head-text h3 { font-size: 17px; font-weight: 900; letter-spacing: 0.6px; color: var(--text-primary); }
.th-reviews-rating { margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.th-reviews-rating b { color: var(--gold-bright); }
.th-reviews-total { text-align: right; }
.th-reviews-total b { display: block; font-size: 20px; font-weight: 900; color: var(--text-primary); }
.th-reviews-total small { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--gold-bright); }

.th-stars { display: inline-flex; gap: 2px; font-size: 11px; }
.th-stars i { color: var(--text-muted); opacity: 0.45; }
.th-stars i.on { color: #ffb020; opacity: 1; }

.th-review-viewport { margin-top: 16px; overflow: hidden; border-radius: 20px; touch-action: pan-y; }
.th-review-track { display: flex; will-change: transform; }
.th-review-slide { flex: 0 0 100%; min-width: 0; }
.th-review-card {
  height: 100%;
  padding: 16px;
  border-radius: 20px;
  background: rgba(8, 2, 15, 0.45);
  border: 1px solid var(--border-gold);
}
[data-theme="light"] .th-review-card { background: rgba(243, 232, 255, 0.6); }
.th-review-who { display: flex; align-items: center; gap: 12px; }
.th-review-avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: #fff;
  background: var(--th-grad-soft); border: 1px solid var(--border-gold-strong);
}
.th-review-who-text { flex: 1; min-width: 0; }
.th-review-name { font-size: 15px; font-weight: 800; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-review-verified { margin-top: 2px; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; color: var(--gold-bright); }
.th-review-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; align-self: flex-start; }
.th-review-text { margin: 14px 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); font-style: italic; }
.th-review-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.th-review-product {
  max-width: 62%;
  padding: 5px 11px; border-radius: 10px;
  font-size: 11px; font-weight: 700; color: var(--gold-bright);
  background: rgba(208, 43, 255, 0.12);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-review-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.th-review-dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: var(--border-gold-strong); transition: width 0.25s, background 0.25s; }
.th-review-dot.active { width: 22px; background: var(--th-grad); }
.th-review-all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px; padding: 11px;
  border-radius: 14px; font-size: 12.5px; font-weight: 700;
  color: var(--text-secondary); background: transparent; border: 1px dashed var(--border-gold-strong);
}
.th-review-all:hover { color: var(--text-primary); border-color: var(--gold-primary); }
.th-review-empty { margin-top: 16px; padding: 22px; text-align: center; font-size: 13px; color: var(--text-muted); border: 1px dashed var(--border-gold); border-radius: 18px; }
@media (min-width: 768px) { .th-reviews { margin-left: 24px; margin-right: 24px; } }

/* ---------- BENEFIT STRIP ---------- */
.th-benefits {
  margin: 20px 16px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.th-benefit {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px; border-radius: 18px;
  background: var(--bg-surface); border: 1px solid var(--border-gold);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; color: var(--text-secondary);
}
.th-benefit i { font-size: 18px; background: var(--th-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (min-width: 768px) { .th-benefits { margin-left: 24px; margin-right: 24px; } }

/* ---------- FOOTER ---------- */
.th-footer {
  margin-top: 34px;
  padding: 30px 16px 120px; /* ruang bawah untuk tombol melayang */
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(139, 34, 230, 0.12));
  border-top: 1px solid var(--border-gold);
}
.th-footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; }
.th-footer-nav a { font-size: 14px; font-weight: 900; letter-spacing: 1px; color: var(--text-secondary); transition: color 0.2s; }
.th-footer-nav a:hover { color: var(--gold-bright); }

.th-community {
  margin: 22px auto 0; max-width: 520px;
  padding: 18px 14px 16px;
  border-radius: 24px;
  background: var(--bg-surface); border: 1px solid var(--border-gold);
}
.th-community-title { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--text-secondary); }
.th-community-title i { color: var(--gold-primary); margin-right: 6px; }
.th-community-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; }
.th-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 4px; border-radius: 18px;
  background: var(--bg-card); border: 1px solid var(--border-gold);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.th-tile:hover { transform: translateY(-3px); border-color: var(--gold-primary); box-shadow: 0 8px 20px rgba(208, 43, 255, 0.28); }
.th-tile-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.th-tile-wa .th-tile-icon { background: #25d366; }
.th-tile-tg .th-tile-icon { background: #2aa3ef; }
.th-tile-yt .th-tile-icon { background: #ff1f3d; }
.th-tile-tt .th-tile-icon { background: #000; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
.th-tile-label { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; color: var(--text-secondary); }

.th-secure {
  margin: 20px auto 0; max-width: 520px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 14px; border-radius: 999px;
  font-family: var(--th-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.8px; color: var(--text-secondary);
  background: var(--th-grad-soft); border: 1px solid var(--border-gold);
}
.th-secure-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-primary); box-shadow: 0 0 10px var(--gold-primary); }
.th-footer-legal { margin-top: 18px; font-size: 12px; color: var(--text-muted); display: flex; justify-content: center; gap: 10px; }
.th-footer-legal a:hover { color: var(--gold-bright); }
.th-copy { margin-top: 10px; font-size: 10.5px; letter-spacing: 0.8px; color: var(--text-muted); }
.th-copy b { color: var(--gold-primary); font-weight: 800; }

/* ---------- SHEET DETAIL PRODUK ---------- */
.th-sheet-overlay { background: rgba(4, 0, 10, 0.78); }
.th-sheet.modal-box {
  max-width: 460px; max-height: 92vh;
  padding: 0 18px 22px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #1b0638 0%, var(--bg-card) 40%);
  border: 1px solid var(--border-gold-strong); border-bottom: 0;
}
[data-theme="light"] .th-sheet.modal-box { background: var(--bg-card); }
.th-sheet.modal-box::before { display: none; }
.th-sheet-handle { width: 44px; height: 4px; border-radius: 999px; background: var(--border-gold-strong); margin: 10px auto 16px; }

.th-stepper { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: 18px; }
.th-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; }
.th-step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  color: var(--text-muted); background: var(--bg-base); border: 1px solid var(--border-gold-strong);
  transition: all 0.25s;
}
.th-step-dot.active { color: #fff; background: var(--th-grad); border-color: transparent; box-shadow: 0 0 16px rgba(208, 43, 255, 0.6); }
.th-step-dot.done { color: #fff; background: var(--gold-deep); border-color: transparent; }
.th-step-label { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--gold-bright); }
.th-step-line { flex: 0 0 70px; height: 2px; margin-top: 16px; background: var(--border-gold-strong); }

.th-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 0 14px; border-top: 1px solid var(--border-gold);
}
.th-sheet-kicker { font-size: 11px; font-weight: 900; letter-spacing: 2px; color: var(--gold-primary); }
.th-sheet-kicker i { margin-right: 6px; }
.th-sheet-title { margin-top: 6px; font-size: 22px; font-weight: 900; line-height: 1.15; color: var(--text-primary); }
.th-sheet-close {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  font-size: 16px; color: var(--text-primary);
  background: rgba(208, 43, 255, 0.14); border: 1px solid var(--border-gold-strong);
}
.th-sheet-close:hover { background: rgba(208, 43, 255, 0.3); }

.th-dur-list { display: flex; flex-direction: column; gap: 10px; }
.th-loading { padding: 24px 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.th-dur {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px; cursor: pointer;
  background: rgba(70, 12, 120, 0.3); border: 1px solid var(--border-gold);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
[data-theme="light"] .th-dur { background: var(--bg-surface); }
.th-dur:hover { border-color: var(--gold-primary); background: rgba(110, 20, 180, 0.4); }
.th-dur:active { transform: scale(0.99); }
.th-dur.selected { border-color: var(--gold-primary); box-shadow: var(--glow-gold-soft); }
.th-dur.disabled { opacity: 0.45; cursor: not-allowed; }
.th-dur-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--gold-primary); background: var(--bg-base); border: 1px solid var(--border-gold);
}
.th-dur-info { flex: 1; min-width: 0; }
.th-dur-label { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.th-dur-sub { margin-top: 3px; font-size: 11.5px; color: var(--text-secondary); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.th-dur-stock { padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; color: var(--text-primary); background: var(--bg-base); }
.th-dur-stock.out { color: #ff2d6f; }
.th-dur-price { font-size: 14.5px; font-weight: 900; color: var(--gold-bright); white-space: nowrap; }
.th-dur-chev { font-size: 12px; color: var(--text-muted); }

.th-summary { padding: 14px 16px; border-radius: 16px; background: var(--bg-base); border: 1px solid var(--border-gold); margin-bottom: 16px; }
.th-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.th-summary-row.total { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border-gold); font-size: 15px; font-weight: 900; color: var(--text-primary); }
.th-total { color: var(--gold-bright); }
.th-discount { color: var(--success); }

.th-field { margin-bottom: 14px; }
.th-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: 0.4px; color: var(--text-secondary); }
.th-label i { color: var(--gold-primary); margin-right: 6px; }
.th-label small { font-weight: 600; color: var(--text-muted); }
.th-input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  font-size: 14px; font-family: inherit; color: var(--text-primary);
  background: var(--bg-base); border: 1px solid var(--border-gold);
}
.th-input::placeholder { color: var(--text-muted); }
.th-input:focus { outline: 0; border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(208, 43, 255, 0.18); }
.th-voucher { display: flex; gap: 8px; }
.th-voucher .th-input { flex: 1; text-transform: uppercase; }
.th-voucher-btn { flex: 0 0 auto; padding: 0 16px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #fff; background: var(--gold-deep); }
.th-voucher-btn:disabled { opacity: 0.6; }
.th-voucher-fb { margin-top: 6px; font-size: 12px; min-height: 0; }

.th-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--bg-base); border: 1px solid var(--border-gold); }
.th-qty-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-secondary); }
.th-qty-price { font-weight: 800; color: var(--gold-bright); }
.th-qty-ctrl { display: flex; align-items: center; gap: 12px; }
.th-qty-btn { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; font-weight: 800; color: var(--text-primary); background: rgba(208, 43, 255, 0.16); border: 1px solid var(--border-gold-strong); }
.th-qty-btn:hover { background: rgba(208, 43, 255, 0.32); }
.th-qty-val { min-width: 22px; text-align: center; font-size: 16px; font-weight: 900; color: var(--text-primary); }

.th-pay {
  width: 100%; margin-top: 4px; padding: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; font-size: 14px; font-weight: 900; letter-spacing: 1px; color: #fff;
  background: var(--th-grad); box-shadow: 0 8px 22px rgba(208, 43, 255, 0.4);
}
.th-pay:disabled { opacity: 0.7; cursor: wait; }
.th-back { width: 100%; margin-top: 10px; padding: 12px; background: transparent; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.th-back:hover { color: var(--text-primary); }
.th-redirect { padding: 28px 0; text-align: center; font-size: 13px; color: var(--text-secondary); }
.th-redirect .spinner { margin: 0 auto 14px; width: 32px; height: 32px; border-width: 3px; border-color: rgba(208, 43, 255, 0.2); border-top-color: var(--gold-primary); }

@media (min-width: 768px) {
  .th-sheet-overlay { align-items: center; }
  .th-sheet.modal-box { border-radius: 28px; border-bottom: 1px solid var(--border-gold-strong); }
}

/* ---------- TOMBOL MELAYANG: WA + TEMA ---------- */
.th-fab {
  position: fixed; right: 16px; bottom: 20px; z-index: 80;
  display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end;
  row-gap: 14px; column-gap: 0;
  pointer-events: none;
}
.th-fab > * { pointer-events: auto; }
.th-fab-label {
  grid-column: 1; grid-row: 1;
  margin-right: -14px; padding: 10px 24px 10px 16px;
  display: flex; flex-direction: column; gap: 1px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 6, 62, 0.96), rgba(12, 2, 24, 0.96));
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), var(--glow-gold-soft);
  transform: rotate(-9deg) translateY(-4px);
  transform-origin: right center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: thFabFloat 3.2s ease-in-out infinite;
}
.th-fab-label small { font-size: 9.5px; font-weight: 900; letter-spacing: 1.2px; color: var(--gold-bright); }
.th-fab-label b { font-size: 14px; font-weight: 800; color: #fff; }
.th-fab:hover .th-fab-label { transform: rotate(0deg) translateX(-4px); animation-play-state: paused; }
@keyframes thFabFloat { 0%, 100% { transform: rotate(-9deg) translateY(-4px); } 50% { transform: rotate(-7deg) translateY(-8px); } }

.th-fab-wa {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 1;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; background: #25d366;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  transition: transform 0.2s;
}
.th-fab-wa::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: thRing 2.4s ease-out infinite;
}
@keyframes thRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
.th-fab-wa:hover { transform: scale(1.08); }

.th-fab-theme {
  grid-column: 2; grid-row: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #ffb020;
  background: rgba(14, 3, 28, 0.92);
  border: 1px solid rgba(255, 176, 32, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.th-fab-theme:hover { transform: rotate(25deg) scale(1.06); background: rgba(40, 10, 70, 0.95); }
[data-theme="light"] .th-fab-theme { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .th-fab-label, .th-fab-wa::after, .th-live-dot { animation: none; }
  .th-banner-track, .th-card { transition: none; }
}


/* ---------- MODE TAMU: harga terkunci ---------- */
.th-price-lock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; color: #ffb020; white-space: nowrap;
}
.th-price-lock i { font-size: 11px; }
.th-buy-guest {
  background: rgba(34, 229, 123, 0.08);
  color: #7ff0b8;
  border: 1px solid rgba(34, 229, 123, 0.35);
  box-shadow: none;
}
.th-buy-guest:hover:not(:disabled) { background: rgba(34, 229, 123, 0.16); box-shadow: 0 6px 18px rgba(34, 229, 123, 0.18); filter: none; }
[data-theme="light"] .th-buy-guest { color: #0f7a4a; }

.th-gate.modal-box { text-align: center; padding-bottom: 26px; position: relative; }
.th-gate-close { position: absolute; top: 14px; right: 14px; }
.th-gate-icon {
  width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; background: var(--th-grad);
  box-shadow: 0 8px 24px rgba(208, 43, 255, 0.45);
}
.th-gate-title { font-size: 20px; font-weight: 900; color: var(--text-primary); }
.th-gate-text { margin: 8px 6px 20px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.th-gate-btn { text-decoration: none; }
.th-gate-alt { display: block; margin-top: 14px; font-size: 13px; color: var(--text-secondary); }
.th-gate-alt b { color: var(--gold-bright); }
