/* =========================================================================
   event-rewards.css — Event & Rewards Styling for Moonbot
   Supports Default, Galaxy, and Black themes
   ========================================================================= */

/* --- Home Menu Item Visibility --- */
#event-rewards-tab {
  display: block;
}

/* --- Common Panel & Layout --- */
#event-rewards-page,
#event-detail-page,
#jackpot-drawer {
  background-color: #f8fafc;
  color: #0f172a;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body[data-theme="elite"] #event-rewards-page,
body[data-theme="elite"] #event-detail-page,
body[data-theme="elite"] #jackpot-drawer,
body[data-theme="elite"] .event-detail-standalone-wrapper {
  background-color: transparent !important;
  color: #f8fafc;
}

body[data-theme="galaxy"] #event-rewards-page,
body[data-theme="galaxy"] #event-detail-page,
body[data-theme="galaxy"] #jackpot-drawer,
body[data-theme="galaxy"] .event-detail-standalone-wrapper {
  background-color: transparent !important;
  color: #f8fafc;
}

body[data-theme="black"] #event-rewards-page,
body[data-theme="black"] #event-detail-page,
body[data-theme="black"] #jackpot-drawer,
body[data-theme="black"] .event-detail-standalone-wrapper {
  background-color: transparent !important;
  color: #f8fafc;
}

#event-rewards-page .theme-light,
#event-detail-page .theme-light,
#jackpot-drawer .theme-light {
  position: relative;
  min-height: 100%;
  background: transparent !important;
}

#event-rewards-page #elite-bg-video,
#event-detail-page #elite-bg-video,
#jackpot-drawer #elite-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  border: 0;
}

/* --- Event & Rewards Top Header (Consistent with Profit & Credit) --- */
#event-rewards-top-header,
#event-detail-top-header,
#jackpot-drawer-top-header {
  position: sticky !important;
  top: 0;
  z-index: 99 !important;
  min-height: 56px;
  overflow: hidden;
  transition: background-color 0.3s ease, background-image 0.3s ease;
}

/* Default / Orbit Theme: Gradient Purple with bg-custom.jpg */
body:not([data-theme]) #event-rewards-top-header,
body:not([data-theme]) #event-detail-top-header,
body:not([data-theme]) #jackpot-drawer-top-header,
body[data-theme="default"] #event-rewards-top-header,
body[data-theme="default"] #event-detail-top-header,
body[data-theme="default"] #jackpot-drawer-top-header,
body[data-theme="orbit"] #event-rewards-top-header,
body[data-theme="orbit"] #event-detail-top-header,
body[data-theme="orbit"] #jackpot-drawer-top-header {
  border: none !important;
  border-bottom: none !important;
  background-color: rgb(146, 76, 227) !important;
  background: linear-gradient(180deg, rgba(66, 69, 209, 1) 0%, rgba(115, 88, 180, 1) 100%) !important;
  background-image: url("../images/background/bg-custom.jpg") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: 50% 0% !important;
}

body:not([data-theme]) #event-rewards-top-header .bi,
body:not([data-theme]) #event-detail-top-header .bi,
body:not([data-theme]) #jackpot-drawer-top-header .bi,
body[data-theme="default"] #event-rewards-top-header .bi,
body[data-theme="default"] #event-detail-top-header .bi,
body[data-theme="default"] #jackpot-drawer-top-header .bi,
body[data-theme="orbit"] #event-rewards-top-header .bi,
body[data-theme="orbit"] #event-detail-top-header .bi,
body[data-theme="orbit"] #jackpot-drawer-top-header .bi {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Black Theme: Transparent when top, 80% black when scrolled, Gold gradient icon (like Profit) */
body[data-theme="black"] #event-rewards-top-header,
body[data-theme="black"] #event-detail-top-header,
body[data-theme="black"] #jackpot-drawer-top-header {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: none !important;
}

body[data-theme="black"] #event-rewards-top-header.header-scrolled,
body[data-theme="black"] #event-detail-top-header.header-scrolled,
body[data-theme="black"] #jackpot-drawer-top-header.header-scrolled {
  background-image: none !important;
  background-color: rgba(0, 0, 0, 0.80) !important;
  background-size: auto !important;
}

body[data-theme="black"] #event-rewards-top-header .bi,
body[data-theme="black"] #event-detail-top-header .bi,
body[data-theme="black"] #jackpot-drawer-top-header .bi {
  background: linear-gradient(180deg, #ffffff 0%, #DBB14E 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

/* Galaxy Theme: Transparent when top, 85% dark when scrolled, Silver-blue gradient icon (like Profit) */
body[data-theme="galaxy"] #event-rewards-top-header,
body[data-theme="galaxy"] #event-detail-top-header,
body[data-theme="galaxy"] #jackpot-drawer-top-header {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: none !important;
}

body[data-theme="galaxy"] #event-rewards-top-header.header-scrolled,
body[data-theme="galaxy"] #event-detail-top-header.header-scrolled,
body[data-theme="galaxy"] #jackpot-drawer-top-header.header-scrolled {
  background-image: none !important;
  background-color: rgba(10, 13, 24, 0.85) !important;
  background-size: auto !important;
}

body[data-theme="galaxy"] #event-rewards-top-header .bi,
body[data-theme="galaxy"] #event-detail-top-header .bi,
body[data-theme="galaxy"] #jackpot-drawer-top-header .bi {
  background: linear-gradient(135deg, #F5F6F7 0%, #6c8eb4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

/* Elite Theme: Transparent when top, 80% dark when scrolled, Teal-cyan gradient icon (like Profit) */
body[data-theme="elite"] #event-rewards-top-header,
body[data-theme="elite"] #event-detail-top-header,
body[data-theme="elite"] #jackpot-drawer-top-header {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: none !important;
}

body[data-theme="elite"] #event-rewards-top-header.header-scrolled,
body[data-theme="elite"] #event-detail-top-header.header-scrolled,
body[data-theme="elite"] #jackpot-drawer-top-header.header-scrolled {
  background-image: none !important;
  background-color: rgba(11, 7, 22, 0.80) !important;
  background-size: auto !important;
}

body[data-theme="elite"] #event-rewards-top-header .bi,
body[data-theme="elite"] #event-detail-top-header .bi,
body[data-theme="elite"] #jackpot-drawer-top-header .bi {
  background: linear-gradient(180deg, #ffffff 0%, #2a7b9b 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

/* Header Title text: Always pure white */
#event-rewards-top-header .page-title i.font-16,
#event-detail-top-header .page-title i.font-16,
#jackpot-drawer-top-header .page-title i.font-16 {
  color: #ffffff !important;
  font-style: normal;
  -webkit-text-fill-color: #ffffff !important;
}

/* --- List Cards --- */
.event-reward-cards-container {
  padding: 16px;
  position: relative;
  z-index: 2;
  max-width: 450px;
  margin: 0 auto;
}

.event-reward-card {
  position: relative;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.event-reward-card:active {
  transform: scale(0.985);
}

/* Galaxy: pakai "Global Cards Glossy Glow" milik tema (lihat
   theme-engine/css/galaxy/theme.css -> .card.card-style): border silver
   --th-border + inset glow silver, bukan dekorasi titik sudut. */
body[data-theme="galaxy"] .event-reward-card {
  background: var(--th-surface-glass, rgba(18, 20, 22, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--th-border-solid, #E9EBED);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5),
    inset 0 0 20px 5px rgba(0, 0, 0, 0.65),
    inset 0 0 15px var(--th-border, rgba(233, 235, 237, 0.45));
}

body[data-theme="black"] .event-reward-card {
  background: rgba(18, 14, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--th-border-solid, #F1CA76);
  box-shadow: 0 0 12px rgba(241, 202, 118, 0.35), inset 0 0 12px rgba(241, 202, 118, 0.08);
}

body[data-theme="elite"] .event-reward-card {
  background: rgba(18, 12, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--th-border-active, rgba(163, 84, 230, 0.72));
  box-shadow: 0 0 20px rgba(163, 84, 230, 0.2), inset 0 0 12px rgba(163, 84, 230, 0.08);
}

/* Card Icons - Clean & Borderless */
.event-reward-card .card-icon-wrapper {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  margin-right: 14px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.event-reward-card .card-icon-wrapper img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  display: block !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.card-icon-vip,
.card-icon-merch,
.card-icon-jackpot {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body[data-theme="galaxy"] .card-icon-vip,
body[data-theme="galaxy"] .card-icon-merch,
body[data-theme="galaxy"] .card-icon-jackpot,
body[data-theme="black"] .card-icon-vip,
body[data-theme="black"] .card-icon-merch,
body[data-theme="black"] .card-icon-jackpot,
body[data-theme="elite"] .card-icon-vip,
body[data-theme="elite"] .card-icon-merch,
body[data-theme="elite"] .card-icon-jackpot {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Card Content */
.event-reward-card .card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0f172a;
}

body[data-theme="galaxy"] .event-reward-card .card-title,
body[data-theme="black"] .event-reward-card .card-title,
body[data-theme="elite"] .event-reward-card .card-title {
  color: #ffffff;
}

.event-reward-card .card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 12px;
}

body[data-theme="galaxy"] .event-reward-card .card-desc {
  color: #cbd5e1;
}

body[data-theme="black"] .event-reward-card .card-desc {
  color: #cbd5e1;
}

body[data-theme="elite"] .event-reward-card .card-desc {
  color: #cbd5e1;
}

.event-reward-card .card-footer-divider {
  border-top: 1px solid #f1f5f9;
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body[data-theme="galaxy"] .event-reward-card .card-footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-theme="black"] .event-reward-card .card-footer-divider {
  border-top: 1px solid rgba(245, 166, 35, 0.22);
}

body[data-theme="elite"] .event-reward-card .card-footer-divider {
  border-top: 1px solid rgba(163, 84, 230, 0.22);
}

.event-reward-card .status-tag {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

.event-reward-card .status-tag .status-highlight {
  color: #10b981;
  font-weight: 600;
}

body[data-theme="galaxy"] .event-reward-card .status-tag {
  color: #94a3b8;
}

body[data-theme="galaxy"] .event-reward-card .status-tag .status-highlight {
  color: #00f0ff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

body[data-theme="black"] .event-reward-card .status-tag {
  color: #a3a3a3;
}

body[data-theme="black"] .event-reward-card .status-tag .status-highlight {
  color: #fbbf24;
  font-weight: 600;
}

body[data-theme="elite"] .event-reward-card .status-tag {
  color: #a9a1b8;
}

body[data-theme="elite"] .event-reward-card .status-tag .status-highlight {
  color: #c084fc;
  font-weight: 600;
}

.event-reward-card .action-btn {
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
  text-decoration: none;
}

body[data-theme="galaxy"] .event-reward-card .action-btn {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

body[data-theme="black"] .event-reward-card .action-btn {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.45);
}

body[data-theme="elite"] .event-reward-card .action-btn {
  color: #c084fc;
  text-shadow: 0 0 8px rgba(163, 84, 230, 0.45);
}

/* --- Detail Page Styling --- */
.event-detail-container {
  padding: 12px 14px 18px;
  position: relative;
  z-index: 2;
  max-width: 450px;
  margin: 0 auto;
}

.event-detail-title {
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0 10px;
  color: #0f172a;
}

body[data-theme="elite"] .event-detail-title,
body[data-theme="galaxy"] .event-detail-title,
body[data-theme="black"] .event-detail-title {
  color: #ffffff;
}

.event-detail-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.event-detail-pill {
  padding: 9px 12px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

body[data-theme="elite"] .event-detail-pill {
  background: rgba(40, 21, 83, 0.65);
  border: 1px solid rgba(163, 84, 230, 0.45);
  box-shadow: 0 0 14px rgba(163, 84, 230, 0.2);
}

body[data-theme="galaxy"] .event-detail-pill {
  background: var(--th-surface-glass, rgba(18, 20, 22, 0.72));
  border: 1px solid var(--th-border, rgba(233, 235, 237, 0.45));
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5),
    inset 0 0 15px var(--th-border, rgba(233, 235, 237, 0.45));
}

body[data-theme="black"] .event-detail-pill {
  background: rgba(20, 16, 12, 0.8);
  border: 1px solid rgba(245, 166, 35, 0.55);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.18);
}

.event-detail-pill .pill-datetime {
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.event-detail-pill .pill-location {
  font-size: 11px;
  opacity: 0.85;
}

.event-detail-intro {
  font-size: 11.5px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 12px;
}

body[data-theme="elite"] .event-detail-intro {
  color: #cbd5e1;
}

body[data-theme="galaxy"] .event-detail-intro {
  color: #cbd5e1;
}

body[data-theme="black"] .event-detail-intro {
  color: #cbd5e1;
}

.event-detail-field {
  margin-bottom: 9px;
}

.event-detail-field .field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 1px;
}

body[data-theme="elite"] .event-detail-field .field-label,
body[data-theme="galaxy"] .event-detail-field .field-label,
body[data-theme="black"] .event-detail-field .field-label {
  color: #e2e8f0;
}

.event-detail-field .field-value {
  font-size: 11.5px;
  color: #64748b;
}

body[data-theme="elite"] .event-detail-field .field-value,
body[data-theme="galaxy"] .event-detail-field .field-value,
body[data-theme="black"] .event-detail-field .field-value {
  color: #94a3b8;
}

.event-detail-field .field-value.status-eligible {
  color: #10b981;
  font-weight: 600;
}

.event-detail-field .field-value.status-not-eligible {
  color: #94a3b8 !important;
  font-weight: 600;
}

body[data-theme="elite"] .event-detail-field .field-value.status-eligible {
  color: #4eba5d;
}

body[data-theme="galaxy"] .event-detail-field .field-value.status-eligible {
  color: #34d399;
}

body[data-theme="black"] .event-detail-field .field-value.status-eligible {
  color: #34d399;
}

.event-reward-card .status-tag .status-highlight.status-not-eligible-tag {
  color: #94a3b8 !important;
  text-shadow: none !important;
  font-weight: 500 !important;
}

/* Card Status Tag Highlights for Fulfillment States:
   sengaja tidak di-override — semua status (Menunggu / Diproses / Dikirim)
   memakai warna .status-highlight yang sama dengan "Memenuhi Syarat" per tema. */

/* Card Tracking Number Box on Card 3 (Image 1) */
.merch-card-tracking-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: fit-content;
  box-sizing: border-box;
}

.merch-card-tracking-box .tracking-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.merch-card-tracking-box .tracking-val {
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 700;
}

body[data-theme="galaxy"] .merch-card-tracking-box {
  background: rgba(22, 25, 30, 0.85) !important;
  border: 1px solid rgba(233, 235, 237, 0.35) !important;
}
body[data-theme="galaxy"] .merch-card-tracking-box .tracking-label {
  color: #94a3b8 !important;
}
body[data-theme="galaxy"] .merch-card-tracking-box .tracking-val {
  color: #f8fafc !important;
}

body[data-theme="black"] .merch-card-tracking-box {
  background: rgba(24, 18, 10, 0.85) !important;
  border: 1px solid rgba(245, 166, 35, 0.35) !important;
}
body[data-theme="black"] .merch-card-tracking-box .tracking-label {
  color: #a3a3a3 !important;
}
body[data-theme="black"] .merch-card-tracking-box .tracking-val {
  color: #fde68a !important;
}

body[data-theme="elite"] .merch-card-tracking-box {
  background: rgba(24, 9, 42, 0.85) !important;
  border: 1px solid rgba(163, 84, 230, 0.35) !important;
}
body[data-theme="elite"] .merch-card-tracking-box .tracking-label {
  color: #cbd5e1 !important;
}
body[data-theme="elite"] .merch-card-tracking-box .tracking-val {
  color: #f0abfc !important;
}

/* Action button "View Status" styling (Image 1) */
.event-reward-card .action-btn.action-btn-view-status {
  color: #10b981 !important;
  font-weight: 600;
}
body[data-theme="galaxy"] .event-reward-card .action-btn.action-btn-view-status {
  color: #35d5d8 !important;
}
body[data-theme="black"] .event-reward-card .action-btn.action-btn-view-status {
  color: #fbbf24 !important;
}
body[data-theme="elite"] .event-reward-card .action-btn.action-btn-view-status {
  color: #c084fc !important;
}

.event-detail-footnote {
  font-size: 10.5px;
  line-height: 1.45;
  color: #64748b;
  margin-top: 11px;
  margin-bottom: 9px;
}

body[data-theme="elite"] .event-detail-footnote,
body[data-theme="galaxy"] .event-detail-footnote,
body[data-theme="black"] .event-detail-footnote {
  color: #94a3b8;
}

.event-detail-contact {
  font-size: 11px;
  color: #64748b;
}

body[data-theme="elite"] .event-detail-contact,
body[data-theme="galaxy"] .event-detail-contact,
body[data-theme="black"] .event-detail-contact {
  color: #94a3b8;
}

.event-detail-contact a {
  color: #0284c7;
  text-decoration: underline;
}

body[data-theme="elite"] .event-detail-contact a {
  color: #a354e6;
}

body[data-theme="galaxy"] .event-detail-contact a {
  color: #38bdf8;
}

body[data-theme="black"] .event-detail-contact a {
  color: #fbbf24;
}

/* --- Merchandise Centered Modal Popup Styling --- */
#merchandise-drawer.modal {
  padding-left: 0 !important;
  z-index: 1065 !important;
}

#merchandise-drawer .modal-dialog {
  max-width: 410px !important;
  width: 92% !important;
  margin: auto !important;
  position: relative !important;
  z-index: 1066 !important;
}

#merchandise-drawer .modal-content,
.merchandise-modal-card {
  background: #ffffff;
  border-radius: 26px !important;
  border: none !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  overflow: hidden !important;
  position: relative;
}

/* Galaxy: border silver + inset glow seperti kartu tema lainnya
   (theme-engine/css/galaxy/theme.css -> .card.card-style), tanpa dekorasi
   titik sudut / garis putih di tepi atas. */
body[data-theme="galaxy"] #merchandise-drawer .modal-content,
body[data-theme="galaxy"] .merchandise-modal-card {
  background: #080a0d !important;
  border: 1px solid var(--th-border, rgba(233, 235, 237, 0.45)) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(0, 0, 0, 0.5),
    inset 0 0 15px var(--th-border, rgba(233, 235, 237, 0.45)) !important;
}

body[data-theme="black"] #merchandise-drawer .modal-content,
body[data-theme="black"] .merchandise-modal-card {
  background: #100c07 !important;
  border: 1px solid rgba(245, 166, 35, 0.45) !important;
  box-shadow: 0 0 35px rgba(245, 166, 35, 0.3), 0 20px 50px rgba(0, 0, 0, 0.9) !important;
}

body[data-theme="elite"] #merchandise-drawer .modal-content,
body[data-theme="elite"] .merchandise-modal-card {
  background: #0b0616 !important;
  border: 1px solid rgba(163, 84, 230, 0.45) !important;
  box-shadow: 0 0 30px rgba(163, 84, 230, 0.3), 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}

/* Outer Top Bar Header (background extends behind the floating card) */
.merch-outer-header {
  padding: 14px 18px 58px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
  display: flex;
  align-items: center;
}

/* Selain tema default: header pakai wallpaper claimable-wp-background.png,
   dengan scrim gelap tipis supaya tombol back & label tetap terbaca. */
body[data-theme="galaxy"] .merch-outer-header,
body[data-theme="black"] .merch-outer-header,
body[data-theme="elite"] .merch-outer-header {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

body[data-theme="galaxy"] .merch-outer-header {
  background-image: linear-gradient(
      180deg,
      rgba(8, 10, 13, 0.55) 0%,
      rgba(8, 10, 13, 0.15) 60%,
      rgba(8, 10, 13, 0.45) 100%
    ),
    url("../theme-engine/assets/orbit-galaxy/claimable-wp-background.png");
  background-color: #080a0d;
}

body[data-theme="black"] .merch-outer-header {
  background-image: linear-gradient(
      180deg,
      rgba(16, 12, 6, 0.55) 0%,
      rgba(16, 12, 6, 0.15) 60%,
      rgba(16, 12, 6, 0.45) 100%
    ),
    url("../theme-engine/assets/orbit-black/claimable-wp-background.png");
  background-color: #100c06;
}

body[data-theme="elite"] .merch-outer-header {
  background-image: linear-gradient(
      180deg,
      rgba(12, 8, 24, 0.55) 0%,
      rgba(12, 8, 24, 0.15) 60%,
      rgba(12, 8, 24, 0.45) 100%
    ),
    url("../theme-engine/assets/orbit-elit/claimable-wp-background.png");
  background-color: #0c0818;
}

.merch-modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.merch-modal-back-btn:hover {
  opacity: 0.9;
}

.merch-back-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  transition: all 0.2s ease;
}

.merch-modal-back-btn:hover .merch-back-circle {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

body[data-theme="galaxy"] .merch-modal-back-btn .merch-back-circle {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(160, 165, 175, 0.16) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  color: #ffffff !important;
}

.merch-back-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: -0.2px;
}

/* Floating Inner Card in the Center (overlaps the header so it feels merged) */
.merch-floating-card {
  position: relative;
  z-index: 2;
  margin: -48px 14px 16px 14px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2), 0 2px 6px rgba(15, 23, 42, 0.08);
}

body[data-theme="galaxy"] .merch-floating-card {
  background: var(--th-surface, #121416) !important;
  border: 1px solid var(--th-border, rgba(233, 235, 237, 0.45)) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(0, 0, 0, 0.5),
    inset 0 0 15px var(--th-border, rgba(233, 235, 237, 0.45)) !important;
}

body[data-theme="black"] .merch-floating-card {
  background: #1c140a;
  border: 1px solid rgba(245, 166, 35, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body[data-theme="elite"] .merch-floating-card {
  background: #150924;
  border: 1px solid rgba(163, 84, 230, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Inner Banner */
.merch-inner-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merch-claimable-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

body[data-theme="galaxy"] .merch-inner-banner {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-theme="black"] .merch-inner-banner {
  background: radial-gradient(circle at 50% 65%, rgba(245, 166, 35, 0.22) 0%, transparent 65%), linear-gradient(135deg, #181107 0%, #301f0c 60%, #100c06 100%);
  border-bottom: 1px solid rgba(245, 166, 35, 0.25);
}

body[data-theme="elite"] .merch-inner-banner {
  background: radial-gradient(circle at 50% 65%, rgba(168, 85, 247, 0.28) 0%, transparent 65%), linear-gradient(135deg, #18092a 0%, #3b0764 60%, #0c0818 100%);
  border-bottom: 1px solid rgba(163, 84, 230, 0.25);
}

.merch-banner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

body[data-theme="default"] .merch-banner-badge,
body[data-theme="orbit"] .merch-banner-badge,
body:not([data-theme]) .merch-banner-badge {
  background: #ffffff !important;
  color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Selain tema default: badge dipasang di atas wallpaper yang ramai, jadi
   isiannya hitam pekat (bukan transparan) supaya teksnya tetap terbaca.
   Teks "Eligible" selalu hijau (status), warna border ikut tema masing-masing. */
body[data-theme="galaxy"] .merch-banner-badge {
  background: #000000 !important;
  border: 1px solid var(--th-border-solid, #e9ebed) !important;
  color: var(--th-green, #4eba5d) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.3px;
}

body[data-theme="black"] .merch-banner-badge {
  background: #000000 !important;
  border: 1px solid var(--th-border-solid, #f1ca76) !important;
  color: var(--th-green, #4eba5d) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.3px;
}

body[data-theme="elite"] .merch-banner-badge {
  background: #000000 !important;
  border: 1px solid var(--th-accent-2, #a354e6) !important;
  color: var(--th-green, #4eba5d) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.3px;
}

/* Inner Content Body */
.merch-inner-body {
  padding: 14px 16px 18px;
}

/* SVG Vector Gift Box per Theme */
body[data-theme="galaxy"] .balloon-stop-1 { stop-color: #cbd5e1 !important; }
body[data-theme="galaxy"] .balloon-stop-2 { stop-color: #64748b !important; }
body[data-theme="galaxy"] .balloon-stop-3 { stop-color: #94a3b8 !important; }
body[data-theme="galaxy"] .balloon-stop-4 { stop-color: #475569 !important; }
body[data-theme="galaxy"] .box-stop-1 { stop-color: #334155 !important; }
body[data-theme="galaxy"] .box-stop-2 { stop-color: #1e293b !important; }
body[data-theme="galaxy"] .lid-stop-1 { stop-color: #475569 !important; }
body[data-theme="galaxy"] .lid-stop-2 { stop-color: #1e293b !important; }
body[data-theme="galaxy"] .ribbon-stop-1 { stop-color: #e2e8f0 !important; }
body[data-theme="galaxy"] .ribbon-stop-2 { stop-color: #94a3b8 !important; }
body[data-theme="galaxy"] .confetti-star-1 { fill: #e2e8f0 !important; }
body[data-theme="galaxy"] .confetti-star-2 { fill: #38bdf8 !important; }
body[data-theme="galaxy"] .sparkle-star { fill: #ffffff !important; }

body[data-theme="black"] .balloon-stop-1 { stop-color: #fde047 !important; }
body[data-theme="black"] .balloon-stop-2 { stop-color: #b45309 !important; }
body[data-theme="black"] .balloon-stop-3 { stop-color: #fef08a !important; }
body[data-theme="black"] .balloon-stop-4 { stop-color: #d97706 !important; }
body[data-theme="black"] .box-stop-1 { stop-color: #2b1f13 !important; }
body[data-theme="black"] .box-stop-2 { stop-color: #150f09 !important; }
body[data-theme="black"] .lid-stop-1 { stop-color: #3d2c1b !important; }
body[data-theme="black"] .lid-stop-2 { stop-color: #1c140c !important; }
body[data-theme="black"] .ribbon-stop-1 { stop-color: #fde68a !important; }
body[data-theme="black"] .ribbon-stop-2 { stop-color: #f59e0b !important; }
body[data-theme="black"] .confetti-star-1 { fill: #fbbf24 !important; }
body[data-theme="black"] .confetti-star-2 { fill: #f59e0b !important; }
body[data-theme="black"] .sparkle-star { fill: #fef08a !important; }

body[data-theme="elite"] .balloon-stop-1 { stop-color: #d8b4fe !important; }
body[data-theme="elite"] .balloon-stop-2 { stop-color: #7e22ce !important; }
body[data-theme="elite"] .balloon-stop-3 { stop-color: #f472b6 !important; }
body[data-theme="elite"] .balloon-stop-4 { stop-color: #c026d3 !important; }
body[data-theme="elite"] .box-stop-1 { stop-color: #3b0764 !important; }
body[data-theme="elite"] .box-stop-2 { stop-color: #1b0330 !important; }
body[data-theme="elite"] .lid-stop-1 { stop-color: #581c87 !important; }
body[data-theme="elite"] .lid-stop-2 { stop-color: #2e1065 !important; }
body[data-theme="elite"] .ribbon-stop-1 { stop-color: #f0abfc !important; }
body[data-theme="elite"] .ribbon-stop-2 { stop-color: #c026d3 !important; }
body[data-theme="elite"] .confetti-star-1 { fill: #e879f9 !important; }
body[data-theme="elite"] .confetti-star-2 { fill: #a855f7 !important; }
body[data-theme="elite"] .sparkle-star { fill: #f5d0fe !important; }

/* Modal Content Body */
.merch-content-body {
  padding: 18px 20px 24px;
}

.merch-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #8b5cf6;
  margin-bottom: 3px;
}

body[data-theme="galaxy"] .merch-subtitle {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e2e8f0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 11px;
}

body[data-theme="black"] .merch-subtitle {
  color: #fbbf24;
}

body[data-theme="elite"] .merch-subtitle {
  color: #c084fc;
}

.merch-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

body[data-theme="galaxy"] .merch-title,
body[data-theme="black"] .merch-title,
body[data-theme="elite"] .merch-title {
  color: #ffffff;
}

.merch-desc {
  font-size: 11px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 16px;
}

body[data-theme="galaxy"] .merch-desc {
  color: var(--th-text-secondary, #c5c4c7);
}

body[data-theme="black"] .merch-desc {
  color: #d1d5db;
}

body[data-theme="elite"] .merch-desc {
  color: #cbd5e1;
}

/* Claim Button */
.btn-claim-merchandise {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: none;
  background: #10b981;
  color: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-claim-merchandise:hover,
.btn-claim-merchandise:active {
  background: #059669;
  transform: translateY(-1px);
}

.btn-claim-merchandise:disabled,
.btn-claim-merchandise.btn-investor-lock {
  filter: grayscale(50%) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.5 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Selain tema default: pakai resep .btn-primary milik tema masing-masing
   (lihat theme-engine/css/<tema>/theme.css) dengan border dari token
   --th-border tema tersebut. Nilai kedua pada var() adalah fallback kalau
   theme.css belum termuat. */
body[data-theme="galaxy"] .btn-claim-merchandise {
  background: var(
    --th-accent-grad,
    radial-gradient(
      ellipse 80% 70% at 50% 50%,
      #3a3d43 0%,
      #484b52 28%,
      #62656d 52%,
      #86898f 74%,
      #b8babf 88%,
      #ecedec 100%
    )
  );
  border: 1px solid var(--th-border, rgba(233, 235, 237, 0.45));
  color: var(--th-text-white, #ffffff);
  -webkit-text-fill-color: var(--th-text-white, #ffffff);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 2px rgba(0, 0, 0, 0.45),
    inset 1px 0 1.5px rgba(255, 255, 255, 0.6),
    inset -1px 0 1.5px rgba(255, 255, 255, 0.6);
}

body[data-theme="galaxy"] .btn-claim-merchandise:hover,
body[data-theme="galaxy"] .btn-claim-merchandise:active {
  border-color: var(--th-border-solid, #e9ebed);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 2px rgba(0, 0, 0, 0.45),
    inset 1px 0 1.5px rgba(255, 255, 255, 0.6),
    inset -1px 0 1.5px rgba(255, 255, 255, 0.6),
    var(--th-shadow, 0 0 12px rgba(233, 235, 237, 0.25));
}

/* Black: semua tombol aksi di tema ini emas (--th-accent-grad + glow
   --th-btn-primary-shadow), bukan abu-abu dari rule .btn-primary lama. */
body[data-theme="black"] .btn-claim-merchandise {
  background: var(--th-accent-grad, linear-gradient(135deg, #ffb72a, #ab7a09));
  border: 1px solid var(--th-border-solid, #f1ca76);
  color: #ffffff;
  box-shadow: var(
    --th-btn-primary-shadow,
    0 0 8px rgba(255, 183, 42, 0.85), 0 0 22px rgba(255, 160, 20, 0.55),
      inset 0 0 6px rgba(254, 249, 162, 0.45)
  );
}

body[data-theme="black"] .btn-claim-merchandise:hover,
body[data-theme="black"] .btn-claim-merchandise:active {
  background: var(--th-accent-grad, linear-gradient(135deg, #ffb72a, #ab7a09));
  border-color: var(--th-accent, #ffc85b);
  filter: brightness(1.08);
}

body[data-theme="elite"] .btn-claim-merchandise {
  background: linear-gradient(
    135deg,
    rgba(92, 51, 181, 0.8) 0%,
    rgba(146, 76, 227, 0.8) 100%
  );
  border: 1px solid var(--th-border, rgba(163, 84, 230, 0.35));
  color: var(--th-text, #e3e0ec);
  box-shadow: 0 0 10px rgba(146, 75, 225, 0.3);
}

body[data-theme="elite"] .btn-claim-merchandise:hover,
body[data-theme="elite"] .btn-claim-merchandise:active {
  background: linear-gradient(
    135deg,
    rgba(110, 61, 214, 0.9) 0%,
    rgba(167, 59, 242, 0.9) 100%
  );
  border-color: var(--th-border-active, rgba(163, 84, 230, 0.72));
  box-shadow: var(--th-shadow, 0 0 12px rgba(163, 84, 230, 0.25));
}

/* Claimed State Modal Card */
#merch-claimed-state {
  position: relative;
  background: transparent;
}

body[data-theme="default"] #merch-claimed-state,
body[data-theme="orbit"] #merch-claimed-state,
body:not([data-theme]) #merch-claimed-state {
  background: transparent;
}

body[data-theme="default"] .claimed-heading,
body[data-theme="orbit"] .claimed-heading,
body:not([data-theme]) .claimed-heading {
  color: #0f172a !important;
}

body[data-theme="default"] .claimed-desc,
body[data-theme="orbit"] .claimed-desc,
body:not([data-theme]) .claimed-desc {
  color: #475569 !important;
}

body[data-theme="default"] .claimed-status-pill,
body[data-theme="orbit"] .claimed-status-pill,
body:not([data-theme]) .claimed-status-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body[data-theme="default"] .claimed-status-pill .pill-label,
body[data-theme="orbit"] .claimed-status-pill .pill-label,
body:not([data-theme]) .claimed-status-pill .pill-label {
  color: #000000 !important;
  font-weight: 600;
}

body[data-theme="default"] .claimed-status-pill .pill-val,
body[data-theme="orbit"] .claimed-status-pill .pill-val,
body:not([data-theme]) .claimed-status-pill .pill-val {
  color: #10b981;
}

body[data-theme="galaxy"] #merch-claimed-state {
  background: transparent;
}

body[data-theme="black"] #merch-claimed-state {
  background: transparent;
}

body[data-theme="elite"] #merch-claimed-state {
  background: transparent;
}

.merch-claimed-container {
  padding: 26px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.claimed-circle-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3.5px solid #000000;
  color: #10b981;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

body[data-theme="default"] .claimed-circle-icon,
body[data-theme="orbit"] .claimed-circle-icon,
body:not([data-theme]) .claimed-circle-icon {
  border: 3.5px solid #000000 !important;
  color: #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

body[data-theme="default"] .claimed-circle-icon i,
body[data-theme="orbit"] .claimed-circle-icon i,
body:not([data-theme]) .claimed-circle-icon i {
  color: #10b981 !important;
}

/* Selain tema default: lingkaran + ceklis ikut warna border tema
   (--th-border-solid; untuk elite dipakai --th-accent-2 karena itu bentuk
   solid dari --th-border elite yang nilainya rgba(163, 84, 230, ...)). */
body[data-theme="galaxy"] .claimed-circle-icon {
  border: 3.5px solid var(--th-border-solid, #e9ebed);
  color: var(--th-status-info, #35d5d8);
  background: rgba(233, 235, 237, 0.12);
  box-shadow: 0 0 28px rgba(233, 235, 237, 0.45);
}

/* Galaxy: ring-nya silver, tapi ceklisnya tosca mengkilat (--th-status-info). */
body[data-theme="galaxy"] .claimed-circle-icon i {
  color: var(--th-status-info, #35d5d8);
  filter: drop-shadow(0 0 8px rgba(53, 213, 216, 0.55));
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  body[data-theme="galaxy"] .claimed-circle-icon i {
    background: linear-gradient(
      180deg,
      #b6fafb 0%,
      #5ee7e9 30%,
      var(--th-status-info, #35d5d8) 58%,
      #17a3a6 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

body[data-theme="black"] .claimed-circle-icon {
  border: 3.5px solid var(--th-border-solid, #f1ca76);
  color: var(--th-border-solid, #f1ca76);
  background: rgba(241, 202, 118, 0.15);
  box-shadow: 0 0 30px rgba(241, 202, 118, 0.5);
}

body[data-theme="black"] .claimed-circle-icon i {
  color: var(--th-border-solid, #f1ca76);
}

body[data-theme="elite"] .claimed-circle-icon {
  border: 3.5px solid var(--th-accent-2, #a354e6);
  color: var(--th-accent-2, #a354e6);
  background: rgba(163, 84, 230, 0.18);
  box-shadow: 0 0 30px rgba(163, 84, 230, 0.5);
}

body[data-theme="elite"] .claimed-circle-icon i {
  color: var(--th-accent-2, #a354e6);
}

.claimed-circle-icon i {
  font-size: 42px;
  line-height: 1;
}

.claimed-heading {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 6px;
}

.claimed-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: #cbd5e1 !important;
  margin: 0 auto 18px;
  max-width: 320px;
}

.claimed-status-pill {
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme="galaxy"] .claimed-status-pill {
  background: linear-gradient(180deg, rgba(22, 25, 30, 0.85) 0%, rgba(10, 12, 15, 0.95) 100%) !important;
  border: 1px solid rgba(233, 235, 237, 0.45) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body[data-theme="black"] .claimed-status-pill {
  background: rgba(18, 14, 10, 0.85);
  border: 1px solid rgba(245, 166, 35, 0.45);
}

body[data-theme="elite"] .claimed-status-pill {
  background: rgba(24, 9, 42, 0.85);
  border: 1px solid rgba(163, 84, 230, 0.45);
}

.claimed-status-pill .pill-label {
  font-size: 12.5px;
  color: #94a3b8;
}

body[data-theme="galaxy"] .claimed-status-pill .pill-label {
  color: #c5c4c7 !important;
  font-weight: 500;
}

body[data-theme="black"] .claimed-status-pill .pill-label {
  color: #d1d5db;
}

body[data-theme="elite"] .claimed-status-pill .pill-label {
  color: #cbd5e1;
}

.claimed-status-pill .pill-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #34d399;
}

body[data-theme="galaxy"] .claimed-status-pill .pill-val {
  color: var(--th-status-info, #35d5d8) !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(53, 213, 216, 0.6);
  letter-spacing: 0.2px;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  body[data-theme="galaxy"] .claimed-status-pill .pill-val {
    background: linear-gradient(
      180deg,
      #b6fafb 0%,
      #5ee7e9 30%,
      var(--th-status-info, #35d5d8) 58%,
      #17a3a6 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    filter: drop-shadow(0 0 8px rgba(53, 213, 216, 0.55));
  }
}

body[data-theme="black"] .claimed-status-pill .pill-val {
  color: #fbbf24;
}

body[data-theme="elite"] .claimed-status-pill .pill-val {
  color: #e879f9;
}

/* Status pill value colors per fulfillment status */
.claimed-status-pill .pill-val.status-pending {
  color: #f59e0b !important;
  -webkit-text-fill-color: #f59e0b !important;
}
.claimed-status-pill .pill-val.status-in-progress {
  color: #0284c7 !important;
  -webkit-text-fill-color: #0284c7 !important;
}
.claimed-status-pill .pill-val.status-done {
  color: #10b981 !important;
  -webkit-text-fill-color: #10b981 !important;
}

body[data-theme="galaxy"] .claimed-status-pill .pill-val.status-pending {
  color: #facc15 !important;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.6) !important;
  -webkit-text-fill-color: #facc15 !important;
}
body[data-theme="galaxy"] .claimed-status-pill .pill-val.status-in-progress {
  color: #00f0ff !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6) !important;
  -webkit-text-fill-color: #00f0ff !important;
}
body[data-theme="galaxy"] .claimed-status-pill .pill-val.status-done {
  color: #34d399 !important;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.6) !important;
  -webkit-text-fill-color: #34d399 !important;
}

body[data-theme="black"] .claimed-status-pill .pill-val.status-pending {
  color: #fbbf24 !important;
  -webkit-text-fill-color: #fbbf24 !important;
}
body[data-theme="black"] .claimed-status-pill .pill-val.status-in-progress {
  color: #f59e0b !important;
  -webkit-text-fill-color: #f59e0b !important;
}
body[data-theme="black"] .claimed-status-pill .pill-val.status-done {
  color: #34d399 !important;
  -webkit-text-fill-color: #34d399 !important;
}

body[data-theme="elite"] .claimed-status-pill .pill-val.status-pending {
  color: #eab308 !important;
  -webkit-text-fill-color: #eab308 !important;
}
body[data-theme="elite"] .claimed-status-pill .pill-val.status-in-progress {
  color: #c084fc !important;
  -webkit-text-fill-color: #c084fc !important;
}
body[data-theme="elite"] .claimed-status-pill .pill-val.status-done {
  color: #34d399 !important;
  -webkit-text-fill-color: #34d399 !important;
}

/* Circle Icon status color overrides */
.claimed-circle-icon.status-pending-icon {
  color: #f59e0b !important;
  border-color: #f59e0b !important;
}
.claimed-circle-icon.status-in-progress-icon {
  color: #0284c7 !important;
  border-color: #0284c7 !important;
}
.claimed-circle-icon.status-done-icon {
  color: #10b981 !important;
  border-color: #10b981 !important;
}

body[data-theme="galaxy"] .claimed-circle-icon.status-pending-icon {
  color: #facc15 !important;
  border-color: #facc15 !important;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.45) !important;
}
body[data-theme="galaxy"] .claimed-circle-icon.status-in-progress-icon {
  color: #00f0ff !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45) !important;
}
body[data-theme="galaxy"] .claimed-circle-icon.status-done-icon {
  color: #34d399 !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.45) !important;
}

body[data-theme="black"] .claimed-circle-icon.status-pending-icon {
  color: #fbbf24 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35) !important;
}
body[data-theme="black"] .claimed-circle-icon.status-in-progress-icon {
  color: #f59e0b !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}
body[data-theme="black"] .claimed-circle-icon.status-done-icon {
  color: #34d399 !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35) !important;
}

body[data-theme="elite"] .claimed-circle-icon.status-pending-icon {
  color: #eab308 !important;
  border-color: #eab308 !important;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.35) !important;
}
body[data-theme="elite"] .claimed-circle-icon.status-in-progress-icon {
  color: #c084fc !important;
  border-color: #c084fc !important;
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.4) !important;
}
body[data-theme="elite"] .claimed-circle-icon.status-done-icon {
  color: #34d399 !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35) !important;
}

/* Claimed Receipt Box */
.claimed-receipt-box {
  margin-top: 14px;
  border-radius: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  text-align: left;
  transition: all 0.25s ease;
}

body[data-theme="default"] .claimed-receipt-box,
body[data-theme="orbit"] .claimed-receipt-box,
body:not([data-theme]) .claimed-receipt-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

body[data-theme="galaxy"] .claimed-receipt-box {
  background: linear-gradient(180deg, rgba(20, 24, 30, 0.9) 0%, rgba(12, 14, 18, 0.95) 100%) !important;
  border: 1px dashed rgba(233, 235, 237, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

body[data-theme="black"] .claimed-receipt-box {
  background: rgba(18, 14, 10, 0.9) !important;
  border: 1px dashed rgba(245, 166, 35, 0.4) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

body[data-theme="elite"] .claimed-receipt-box {
  background: rgba(24, 9, 42, 0.9) !important;
  border: 1px dashed rgba(163, 84, 230, 0.4) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.claimed-receipt-box .receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.claimed-receipt-box .receipt-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  display: flex;
  align-items: center;
}

body[data-theme="galaxy"] .claimed-receipt-box .receipt-label {
  color: #c5c4c7 !important;
}

body[data-theme="black"] .claimed-receipt-box .receipt-label {
  color: #d1d5db !important;
}

body[data-theme="elite"] .claimed-receipt-box .receipt-label {
  color: #cbd5e1 !important;
}

.claimed-receipt-box .receipt-timestamp {
  font-size: 11px;
  color: #94a3b8;
}

body[data-theme="galaxy"] .claimed-receipt-box .receipt-timestamp {
  color: #8a8f98 !important;
}

body[data-theme="black"] .claimed-receipt-box .receipt-timestamp {
  color: #8c8270 !important;
}

body[data-theme="elite"] .claimed-receipt-box .receipt-timestamp {
  color: #9f8fb3 !important;
}

.claimed-receipt-box .receipt-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.claimed-receipt-box .receipt-code-wrapper {
  flex: 1;
  min-width: 0;
}

.claimed-receipt-box .receipt-number {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f172a;
  word-break: break-all;
  display: block;
}

body[data-theme="galaxy"] .claimed-receipt-box .receipt-number {
  color: #00f0ff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
}

body[data-theme="black"] .claimed-receipt-box .receipt-number {
  color: #fbbf24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
}

body[data-theme="elite"] .claimed-receipt-box .receipt-number {
  color: #e879f9 !important;
  text-shadow: 0 0 8px rgba(232, 121, 249, 0.4);
}

.claimed-receipt-box .btn-copy-receipt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #0284c7;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.claimed-receipt-box .btn-copy-receipt:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.claimed-receipt-box .btn-copy-receipt.copied {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

body[data-theme="galaxy"] .claimed-receipt-box .btn-copy-receipt {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fbff !important;
  border: 1px solid rgba(233, 235, 237, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="galaxy"] .claimed-receipt-box .btn-copy-receipt:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #00f0ff !important;
  color: #00f0ff !important;
}

body[data-theme="galaxy"] .claimed-receipt-box .btn-copy-receipt.copied {
  background: rgba(0, 240, 255, 0.2) !important;
  color: #00f0ff !important;
  border-color: #00f0ff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

body[data-theme="black"] .claimed-receipt-box .btn-copy-receipt {
  background: rgba(245, 166, 35, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 166, 35, 0.4) !important;
}

body[data-theme="black"] .claimed-receipt-box .btn-copy-receipt:hover {
  background: rgba(245, 166, 35, 0.22) !important;
  border-color: #f59e0b !important;
}

body[data-theme="black"] .claimed-receipt-box .btn-copy-receipt.copied {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  border-color: #22c55e !important;
}

body[data-theme="elite"] .claimed-receipt-box .btn-copy-receipt {
  background: rgba(163, 84, 230, 0.15) !important;
  color: #e879f9 !important;
  border: 1px solid rgba(163, 84, 230, 0.4) !important;
}

body[data-theme="elite"] .claimed-receipt-box .btn-copy-receipt:hover {
  background: rgba(163, 84, 230, 0.25) !important;
  border-color: #c084fc !important;
}

body[data-theme="elite"] .claimed-receipt-box .btn-copy-receipt.copied {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  border-color: #22c55e !important;
}

/* --- Claimed Merchandise Modal Layout (Image 2) --- */
.merch-claimed-banner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #f59e0b;
  color: #d97706;
}

.merch-claimed-banner-badge.badge-being-prepared {
  border-color: #f59e0b !important;
  color: #d97706 !important;
}
.merch-claimed-banner-badge.badge-shipped {
  border-color: #10b981 !important;
  color: #10b981 !important;
}
.merch-claimed-banner-badge.badge-completed {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

/* Tema default / orbit: teks dan border hijau. */
body:not([data-theme]) .merch-claimed-banner-badge,
body:not([data-theme]) .merch-claimed-banner-badge.badge-being-prepared,
body:not([data-theme]) .merch-claimed-banner-badge.badge-shipped,
body:not([data-theme]) .merch-claimed-banner-badge.badge-completed,
body[data-theme="default"] .merch-claimed-banner-badge,
body[data-theme="default"] .merch-claimed-banner-badge.badge-being-prepared,
body[data-theme="default"] .merch-claimed-banner-badge.badge-shipped,
body[data-theme="default"] .merch-claimed-banner-badge.badge-completed,
body[data-theme="orbit"] .merch-claimed-banner-badge,
body[data-theme="orbit"] .merch-claimed-banner-badge.badge-being-prepared,
body[data-theme="orbit"] .merch-claimed-banner-badge.badge-shipped,
body[data-theme="orbit"] .merch-claimed-banner-badge.badge-completed {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2.5px solid #10b981 !important;
  color: #10b981 !important;
}

/* Selain tema default: semua status (Being Prepared / Processing / Shipped)
   disamakan dengan badge "Dikirim" — border ikut warna tema, teks tetap hijau. */
body[data-theme="galaxy"] .merch-claimed-banner-badge,
body[data-theme="galaxy"] .merch-claimed-banner-badge.badge-being-prepared,
body[data-theme="galaxy"] .merch-claimed-banner-badge.badge-shipped,
body[data-theme="galaxy"] .merch-claimed-banner-badge.badge-completed {
  background: rgba(18, 20, 24, 0.95) !important;
  border-color: #e6eaf0 !important;
  color: #34d399 !important;
}

body[data-theme="black"] .merch-claimed-banner-badge,
body[data-theme="black"] .merch-claimed-banner-badge.badge-being-prepared,
body[data-theme="black"] .merch-claimed-banner-badge.badge-shipped,
body[data-theme="black"] .merch-claimed-banner-badge.badge-completed {
  background: rgba(18, 14, 10, 0.95) !important;
  border-color: #e3b566 !important;
  color: #34d399 !important;
}

body[data-theme="elite"] .merch-claimed-banner-badge,
body[data-theme="elite"] .merch-claimed-banner-badge.badge-being-prepared,
body[data-theme="elite"] .merch-claimed-banner-badge.badge-shipped,
body[data-theme="elite"] .merch-claimed-banner-badge.badge-completed {
  background: rgba(24, 9, 42, 0.95) !important;
  border-color: #a45cff !important;
  color: #34d399 !important;
}

.merch-claimed-body {
  padding: 20px 20px 24px 20px;
  text-align: left;
}

.merch-claimed-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #8b5cf6;
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}
body[data-theme="galaxy"] .merch-claimed-subtitle {
  color: #35d5d8 !important;
}
body[data-theme="black"] .merch-claimed-subtitle {
  color: #fbbf24 !important;
}
body[data-theme="elite"] .merch-claimed-subtitle {
  color: #c084fc !important;
}

.merch-claimed-title {
  font-size: 19px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
body[data-theme="galaxy"] .merch-claimed-title,
body[data-theme="black"] .merch-claimed-title,
body[data-theme="elite"] .merch-claimed-title {
  color: #f8fafc !important;
}

.merch-claimed-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 24px;
}
body[data-theme="galaxy"] .merch-claimed-desc {
  color: #94a3b8 !important;
}
body[data-theme="black"] .merch-claimed-desc {
  color: #a3a3a3 !important;
}
body[data-theme="elite"] .merch-claimed-desc {
  color: #cbd5e1 !important;
}

/* 3-Step Stepper (Claimed -> Shipped -> Completed) */
.merch-stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 12px 6px 24px 6px;
}

.merch-stepper-track-bg {
  position: absolute;
  top: 15px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.merch-stepper-track-fill {
  position: absolute;
  top: 15px;
  left: 14%;
  width: 0%;
  max-width: 72%;
  height: 2px;
  background: #10b981;
  z-index: 2;
  transition: width 0.35s ease;
}

.merch-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 76px;
}

.merch-step .step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.merch-step.is-completed .step-icon,
.merch-step.is-active .step-icon {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.merch-step .step-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 2px;
  line-height: 1.2;
}

.merch-step.is-active .step-label,
.merch-step.is-completed .step-label {
  color: #0f172a;
  font-weight: 700;
}

.merch-step .step-date {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.2;
}

/* Stepper Dark Themes Support */
body[data-theme="galaxy"] .merch-stepper-track-bg {
  background: rgba(255, 255, 255, 0.15) !important;
}
body[data-theme="galaxy"] .merch-stepper-track-fill {
  background: #e6eaf0 !important;
}
body[data-theme="galaxy"] .merch-step .step-icon {
  background: #121416 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
body[data-theme="galaxy"] .merch-step.is-completed .step-icon,
body[data-theme="galaxy"] .merch-step.is-active .step-icon {
  background: #e6eaf0 !important;
  border-color: #e6eaf0 !important;
  color: #121416 !important;
  box-shadow: 0 0 12px rgba(233, 235, 237, 0.5) !important;
}
body[data-theme="galaxy"] .merch-step .step-label {
  color: #94a3b8 !important;
}
body[data-theme="galaxy"] .merch-step.is-active .step-label,
body[data-theme="galaxy"] .merch-step.is-completed .step-label {
  color: #f8fafc !important;
}
body[data-theme="galaxy"] .merch-step .step-date {
  color: #64748b !important;
}

body[data-theme="black"] .merch-stepper-track-bg {
  background: rgba(245, 166, 35, 0.15) !important;
}
body[data-theme="black"] .merch-stepper-track-fill {
  background: #e3b566 !important;
}
body[data-theme="black"] .merch-step .step-icon {
  background: #1c140a !important;
  border-color: rgba(245, 166, 35, 0.3) !important;
}
body[data-theme="black"] .merch-step.is-completed .step-icon,
body[data-theme="black"] .merch-step.is-active .step-icon {
  background: #e3b566 !important;
  border-color: #e3b566 !important;
  color: #1c140a !important;
  box-shadow: 0 0 10px rgba(227, 181, 102, 0.5) !important;
}
body[data-theme="black"] .merch-step .step-label {
  color: #a3a3a3 !important;
}
body[data-theme="black"] .merch-step.is-active .step-label,
body[data-theme="black"] .merch-step.is-completed .step-label {
  color: #fde68a !important;
}
body[data-theme="black"] .merch-step .step-date {
  color: #737373 !important;
}

body[data-theme="elite"] .merch-stepper-track-bg {
  background: rgba(168, 85, 247, 0.2) !important;
}
body[data-theme="elite"] .merch-stepper-track-fill {
  background: #a45cff !important;
}
body[data-theme="elite"] .merch-step .step-icon {
  background: #150924 !important;
  border-color: rgba(163, 84, 230, 0.35) !important;
}
body[data-theme="elite"] .merch-step.is-completed .step-icon,
body[data-theme="elite"] .merch-step.is-active .step-icon {
  background: #a45cff !important;
  border-color: #a45cff !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(164, 92, 255, 0.5) !important;
}
body[data-theme="elite"] .merch-step .step-label {
  color: #94a3b8 !important;
}
body[data-theme="elite"] .merch-step.is-active .step-label,
body[data-theme="elite"] .merch-step.is-completed .step-label {
  color: #e879f9 !important;
}
body[data-theme="elite"] .merch-step .step-date {
  color: #64748b !important;
}

/* Bottom Tracking Card (Image 2) */
.merch-tracking-card {
  background: #f5f1fb;
  border: 1px solid #efe8fa;
  border-radius: 12px;
  padding: 8px 10px 8px 12px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.merch-tracking-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.merch-tracking-title {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #6b7280;
  margin-bottom: 1px;
}

.merch-tracking-empty {
  font-size: 12px;
  line-height: 1.35;
  font-style: italic;
  color: #9ca3af;
}

.merch-tracking-code {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.btn-copy-receipt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #ddd6e8;
  background: transparent;
  color: #111827;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy-receipt:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #cbc2db;
}

.btn-copy-receipt.copied {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

body[data-theme="galaxy"] .merch-tracking-card {
  background: rgba(20, 24, 30, 0.85) !important;
  border: 1px solid rgba(233, 235, 237, 0.25) !important;
}
body[data-theme="galaxy"] .merch-tracking-title {
  color: #94a3b8 !important;
}
body[data-theme="galaxy"] .merch-tracking-empty {
  color: #64748b !important;
}
body[data-theme="galaxy"] .merch-tracking-code {
  color: #f8fafc !important;
}
body[data-theme="galaxy"] .btn-copy-receipt {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(233, 235, 237, 0.3) !important;
  color: #e6eaf0 !important;
}

body[data-theme="black"] .merch-tracking-card {
  background: rgba(28, 20, 10, 0.85) !important;
  border: 1px solid rgba(245, 166, 35, 0.3) !important;
}
body[data-theme="black"] .merch-tracking-title {
  color: #d1d5db !important;
}
body[data-theme="black"] .merch-tracking-empty {
  color: #737373 !important;
}
body[data-theme="black"] .merch-tracking-code {
  color: #fde68a !important;
}
body[data-theme="black"] .btn-copy-receipt {
  background: rgba(245, 166, 35, 0.15) !important;
  border-color: rgba(227, 181, 102, 0.4) !important;
  color: #e3b566 !important;
}

body[data-theme="elite"] .merch-tracking-card {
  background: rgba(24, 9, 42, 0.85) !important;
  border: 1px solid rgba(163, 84, 230, 0.35) !important;
}
body[data-theme="elite"] .merch-tracking-title {
  color: #cbd5e1 !important;
}
body[data-theme="elite"] .merch-tracking-empty {
  color: #64748b !important;
}
body[data-theme="elite"] .merch-tracking-code {
  color: #f0abfc !important;
}
body[data-theme="elite"] .btn-copy-receipt {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(164, 92, 255, 0.4) !important;
  color: #a45cff !important;
}

/* Confetti Layer (filled dynamically by JS when claimed state shows) */
.merch-confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.merch-floating-claimed .merch-claimed-container {
  position: relative;
  z-index: 2;
}

/* Festive Confetti particles (size, delay, duration & sway set inline by JS) */
.confetti-piece {
  position: absolute;
  top: 0;
  width: 7px;
  height: 12px;
  background: #a78bfa;
  opacity: 0.9;
  animation: confettiFall 3s linear infinite;
  animation-fill-mode: both;
  pointer-events: none;
  will-change: transform;
}

.confetti-piece.shape-circle {
  border-radius: 50%;
}

.confetti-piece.shape-ribbon {
  border-radius: 2px;
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg) rotateY(0deg);
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--sway, 20px), 220px, 0) rotate(220deg) rotateY(360deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(calc(var(--sway, 20px) * -0.5), 480px, 0) rotate(480deg) rotateY(720deg);
    opacity: 0;
  }
}

/* Confetti colors per Theme (classes c1-c5 assigned randomly by JS) */
/* Default / Orbit: festive multi-color like the banner illustration */
#merch-claimed-state .confetti-piece.c1 { background: #fde047; }
#merch-claimed-state .confetti-piece.c2 { background: #f472b6; }
#merch-claimed-state .confetti-piece.c3 { background: #60a5fa; }
#merch-claimed-state .confetti-piece.c4 { background: #34d399; }
#merch-claimed-state .confetti-piece.c5 { background: #a78bfa; }

/* Galaxy: silver, platinum, white & tosca glints */
body[data-theme="galaxy"] #merch-claimed-state .confetti-piece.c1 { background: #ffffff; }
body[data-theme="galaxy"] #merch-claimed-state .confetti-piece.c2 { background: #e2e8f0; }
body[data-theme="galaxy"] #merch-claimed-state .confetti-piece.c3 { background: #cbd5e1; }
body[data-theme="galaxy"] #merch-claimed-state .confetti-piece.c4 { background: #94a3b8; }
body[data-theme="galaxy"] #merch-claimed-state .confetti-piece.c5 { background: #35d5d8; }

/* Black: gold shades */
body[data-theme="black"] #merch-claimed-state .confetti-piece.c1 { background: #fbbf24; }
body[data-theme="black"] #merch-claimed-state .confetti-piece.c2 { background: #f59e0b; }
body[data-theme="black"] #merch-claimed-state .confetti-piece.c3 { background: #fde68a; }
body[data-theme="black"] #merch-claimed-state .confetti-piece.c4 { background: #d97706; }
body[data-theme="black"] #merch-claimed-state .confetti-piece.c5 { background: #fef08a; }

/* Elite: purple & pink */
body[data-theme="elite"] #merch-claimed-state .confetti-piece.c1 { background: #c084fc; }
body[data-theme="elite"] #merch-claimed-state .confetti-piece.c2 { background: #e879f9; }
body[data-theme="elite"] #merch-claimed-state .confetti-piece.c3 { background: #a855f7; }
body[data-theme="elite"] #merch-claimed-state .confetti-piece.c4 { background: #f0abfc; }
body[data-theme="elite"] #merch-claimed-state .confetti-piece.c5 { background: #d946ef; }

/* --- Orbit Jackpot Drawer Page Styling --- */
#jackpot-drawer.offcanvas-start {
  max-width: 450px !important;
  width: 100% !important;
  background: #ffffff;
  overflow-y: auto;
}

body[data-theme="galaxy"] #jackpot-drawer.offcanvas-start {
  background: #080f1d !important;
  color: #f8fafc !important;
}

body[data-theme="black"] #jackpot-drawer.offcanvas-start {
  background: #000000 !important;
  color: #f8fafc !important;
}

body[data-theme="elite"] #jackpot-drawer.offcanvas-start {
  background: #0b0716 !important;
  color: #f8fafc !important;
}

.jackpot-banner-wrapper {
  position: relative;
  width: 100%;
  padding: 24px 16px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body[data-theme="galaxy"] .jackpot-banner-wrapper {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="black"] .jackpot-banner-wrapper {
  background: linear-gradient(135deg, #241b10, #120e09);
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
}

body[data-theme="elite"] .jackpot-banner-wrapper {
  background: linear-gradient(135deg, #1f1135, #0c0818);
  border-bottom: 1px solid rgba(163, 84, 230, 0.2);
}

.jackpot-banner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  z-index: 5;
}

.jackpot-banner-total {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.jackpot-banner-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 3px;
}

.jackpot-content-body {
  padding: 18px 20px 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.jackpot-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

body[data-theme="galaxy"] .jackpot-section-label {
  color: #94a3b8;
}

body[data-theme="black"] .jackpot-section-label {
  color: #d1d5db;
}

body[data-theme="elite"] .jackpot-section-label {
  color: #cbd5e1;
}

/* Tampilan disamakan dengan card list event (.event-reward-card) di semua
   tema: background, blur, border, dan shadow yang sama. Tier yang punya
   tiket tidak dibedakan lewat border, cukup lewat .ticket-badge.has-tickets. */
.jackpot-tier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

body[data-theme="galaxy"] .jackpot-tier-item {
  background: var(--th-surface-glass, rgba(18, 20, 22, 0.72));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--th-border-solid, #E9EBED);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5),
    inset 0 0 20px 5px rgba(0, 0, 0, 0.65),
    inset 0 0 15px var(--th-border, rgba(233, 235, 237, 0.45));
  color: #f8fafc;
}

body[data-theme="black"] .jackpot-tier-item {
  background: rgba(18, 14, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--th-border-solid, #F1CA76);
  box-shadow: 0 0 12px rgba(241, 202, 118, 0.35), inset 0 0 12px rgba(241, 202, 118, 0.08);
  color: #f8fafc;
}

body[data-theme="elite"] .jackpot-tier-item {
  background: rgba(18, 12, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--th-border-active, rgba(163, 84, 230, 0.72));
  box-shadow: 0 0 20px rgba(163, 84, 230, 0.2), inset 0 0 12px rgba(163, 84, 230, 0.08);
  color: #f8fafc;
}

/* Tier tanpa tiket (0) dibuat redup di tema gelap: border & glow dilemahkan,
   isinya (icon, nama, status, badge) diturunkan opacity-nya. Opacity sengaja
   tidak dipasang di card-nya sendiri supaya background blur tetap utuh. */
body[data-theme="galaxy"] .jackpot-tier-item:not(.is-active),
body[data-theme="black"] .jackpot-tier-item:not(.is-active),
body[data-theme="elite"] .jackpot-tier-item:not(.is-active) {
  box-shadow: none;
}

body[data-theme="galaxy"] .jackpot-tier-item:not(.is-active) {
  border-color: rgba(233, 235, 237, 0.25);
}

body[data-theme="black"] .jackpot-tier-item:not(.is-active) {
  border-color: rgba(241, 202, 118, 0.3);
}

body[data-theme="elite"] .jackpot-tier-item:not(.is-active) {
  border-color: rgba(163, 84, 230, 0.3);
}

body[data-theme="galaxy"] .jackpot-tier-item:not(.is-active) > *,
body[data-theme="black"] .jackpot-tier-item:not(.is-active) > *,
body[data-theme="elite"] .jackpot-tier-item:not(.is-active) > * {
  opacity: 0.5;
}

.jackpot-tier-item .ticket-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #e2e8f0;
  color: #64748b;
  display: inline-block;
  white-space: nowrap;
}

.jackpot-tier-item .ticket-badge.has-tickets {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

body[data-theme="galaxy"] .jackpot-tier-item .ticket-badge {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}

/* Galaxy: tiket > 0 -> hanya TULISANNYA yang biru (aksen sama dengan
   "Eligible" / "Check Details"); bordernya tetap silver seperti yang 0. */
body[data-theme="galaxy"] .jackpot-tier-item .ticket-badge.has-tickets {
  background: rgba(233, 235, 237, 0.1);
  color: #00f0ff;
  border-color: var(--th-border, rgba(233, 235, 237, 0.45));
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

body[data-theme="black"] .jackpot-tier-item .ticket-badge {
  background: rgba(36, 27, 16, 0.8);
  color: #a8a29e;
}

body[data-theme="black"] .jackpot-tier-item .ticket-badge.has-tickets {
  background: rgba(245, 166, 35, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 166, 35, 0.45);
}

body[data-theme="elite"] .jackpot-tier-item .ticket-badge {
  background: rgba(30, 20, 46, 0.8);
  color: #a9a1b8;
}

body[data-theme="elite"] .jackpot-tier-item .ticket-badge.has-tickets {
  background: rgba(163, 84, 230, 0.2);
  color: #c084fc;
  border-color: rgba(163, 84, 230, 0.45);
}

.jackpot-info-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: flex-start;
}

body[data-theme="galaxy"] .jackpot-info-box {
  background: rgba(16, 24, 40, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

body[data-theme="black"] .jackpot-info-box {
  background: rgba(18, 14, 10, 0.7);
  color: #d1d5db;
  border: 1px solid rgba(245, 166, 35, 0.25);
}

body[data-theme="elite"] .jackpot-info-box {
  background: rgba(18, 12, 28, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(163, 84, 230, 0.25);
}

.jackpot-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  padding: 0 4px;
}

body[data-theme="galaxy"] .jackpot-disclaimer {
  color: #94a3b8;
}

body[data-theme="black"] .jackpot-disclaimer {
  color: #a8a29e;
}

body[data-theme="elite"] .jackpot-disclaimer {
  color: #cbd5e1;
}

/* --- Jackpot Drawer Table (Style Withdraw History - No Card) --- */
#jackpot-tickets-table-section .jackpot-table-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body[data-theme="galaxy"] #jackpot-tickets-table-section .jackpot-table-wrapper,
body[data-theme="black"] #jackpot-tickets-table-section .jackpot-table-wrapper,
body[data-theme="elite"] #jackpot-tickets-table-section .jackpot-table-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#jackpot-tickets-table-section .searchBar-container {
  background: transparent !important;
}

#jackpot-tickets-table-section .searchBar-container p {
  letter-spacing: 0.3px;
  font-weight: 600;
}

body[data-theme="galaxy"] #jackpot-tickets-table-section .searchBar-container p,
body[data-theme="black"] #jackpot-tickets-table-section .searchBar-container p,
body[data-theme="elite"] #jackpot-tickets-table-section .searchBar-container p {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  opacity: 0.75 !important;
}

body[data-theme="galaxy"] #jackpot-tickets-table-section .color-theme,
body[data-theme="black"] #jackpot-tickets-table-section .color-theme,
body[data-theme="elite"] #jackpot-tickets-table-section .color-theme {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#jackpot-tickets-table-section .status-text {
  color: #10b981;
  font-weight: 600;
}

body[data-theme="galaxy"] #jackpot-tickets-table-section .status-text {
  color: #00f0ff !important;
  -webkit-text-fill-color: #00f0ff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
}

body[data-theme="black"] #jackpot-tickets-table-section .status-text {
  color: #fbbf24 !important;
  -webkit-text-fill-color: #fbbf24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

body[data-theme="elite"] #jackpot-tickets-table-section .status-text {
  color: #c084fc !important;
  -webkit-text-fill-color: #c084fc !important;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.45);
}

#jackpot-tickets-table-section .divider {
  background-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="galaxy"] #jackpot-tickets-table-section .divider {
  background-color: rgba(233, 235, 237, 0.15) !important;
}

body[data-theme="black"] #jackpot-tickets-table-section .divider {
  background-color: rgba(245, 166, 35, 0.18) !important;
}

body[data-theme="elite"] #jackpot-tickets-table-section .divider {
  background-color: rgba(163, 84, 230, 0.18) !important;
}




/* Jackpot drawer (galaxy, elite & black): video dipatok fixed setinggi layar supaya
   latar transparan menutup penuh sampai bawah, tidak berhenti di tinggi
   konten .theme-light saat list digulir. */
body[data-theme="galaxy"] #jackpot-drawer #elite-bg-video,
body[data-theme="elite"] #jackpot-drawer #elite-bg-video,
body[data-theme="black"] #jackpot-drawer #elite-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 450px;
  height: 100vh;
}
body[data-theme="galaxy"] #jackpot-drawer .theme-light,
body[data-theme="elite"] #jackpot-drawer .theme-light,
body[data-theme="black"] #jackpot-drawer .theme-light {
  min-height: 100vh;
  /* Flex column: container di bawah header mengisi sisa tinggi (flex: 1),
     jadi kartu tabel selalu sampai dasar layar tanpa bergantung pada tebakan
     tinggi header (calc(100vh - 75px)). */
  display: flex;
  flex-direction: column;
}

/* Jackpot drawer (galaxy, elite, black): tabel Unclaimed Tickets disamakan
   dengan kartu Withdraw History di halaman Asset — kartu glass full-width
   (padding container dibatalkan), sudut atas melengkung, tanpa border bawah,
   memanjang sampai dasar layar. Header kolom tanpa pita latar, baris tanpa
   divider. Tema default tidak diubah. */
body[data-theme="galaxy"] #jackpot-drawer .event-detail-container,
body[data-theme="elite"] #jackpot-drawer .event-detail-container,
body[data-theme="black"] #jackpot-drawer .event-detail-container {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 0 !important;
  /* Scroll dipindah ke offcanvas #jackpot-drawer (overflow-y: auto) — inline
     max-height + overflow di container bikin scroll terjadi di dalamnya, jadi
     handler global di index.html (listen scroll pada .offcanvas) tak pernah
     memasang .header-scrolled dan header tidak berubah seperti Profit/Asset. */
  max-height: none !important;
  overflow: visible !important;
}
body[data-theme="galaxy"] #jackpot-drawer #jackpot-tickets-table-section,
body[data-theme="elite"] #jackpot-drawer #jackpot-tickets-table-section,
body[data-theme="black"] #jackpot-drawer #jackpot-tickets-table-section {
  flex: 1 0 auto;
  margin: 8px -14px 0 !important;
  padding: 8px 8px 90px !important;
  border-radius: 12px 12px 0 0;
  border-bottom: none !important;
}
body[data-theme="galaxy"] #jackpot-drawer #jackpot-tickets-table-section {
  background-color: var(--th-surface-glass, rgba(18, 20, 22, 0.72));
  border: 1px solid var(--th-border, rgba(233, 235, 237, 0.45));
  box-shadow: 0 0 12px rgba(233, 235, 237, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body[data-theme="elite"] #jackpot-drawer #jackpot-tickets-table-section {
  background-color: rgba(10, 13, 24, 0.9);
  border: 1px solid rgba(146, 75, 225, 0.4);
  box-shadow: 0 0 15px rgba(146, 75, 225, 0.2);
}
body[data-theme="black"] #jackpot-drawer #jackpot-tickets-table-section {
  background-color: var(--th-surface-glass, rgba(19, 19, 19, 0.62));
  border: 1px solid var(--th-border, rgba(241, 202, 118, 0.4));
  box-shadow: 0 0 15px rgba(241, 202, 118, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Header kolom: tanpa pita latar/blur, teks terang seperti header Withdraw
   History. Garis di bawah header TIDAK dipasang di sini — sudah diurus rule
   global "TABLE HEADER SEPARATOR" di tiap theme.css (border-bottom pada
   .searchBar-container + .divider di bawahnya disembunyikan). Memunculkan
   divider itu lagi di sini bikin garisnya dobel. */
body[data-theme="galaxy"] #jackpot-drawer #jackpot-tickets-table-section .searchBar-container,
body[data-theme="elite"] #jackpot-drawer #jackpot-tickets-table-section .searchBar-container,
body[data-theme="black"] #jackpot-drawer #jackpot-tickets-table-section .searchBar-container {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
body[data-theme="galaxy"] #jackpot-drawer #jackpot-tickets-table-section .searchBar-container p,
body[data-theme="elite"] #jackpot-drawer #jackpot-tickets-table-section .searchBar-container p,
body[data-theme="black"] #jackpot-drawer #jackpot-tickets-table-section .searchBar-container p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 0.9 !important;
}
body[data-theme="galaxy"] #jackpot-drawer #jackpot-tickets-table-rows .divider,
body[data-theme="elite"] #jackpot-drawer #jackpot-tickets-table-rows .divider,
body[data-theme="black"] #jackpot-drawer #jackpot-tickets-table-rows .divider {
  display: none !important;
}

/* Deskripsi event dari API memakai "\n" sebagai pemisah baris/paragraf.
   pre-line menampilkannya sebagai baris baru (teks tetap via textContent,
   aman dari HTML injection) sambil tetap merapikan spasi berlebih. */
#event-detail-description {
  white-space: pre-line;
}
