/* ==========================================================================
   TOPUPGAMEZ.ID — LIVE-VERIFIED EXACT VISUAL REPLICA (Scoped to /topup only)
   Tokens verified via live Chrome DOM & computed styles on https://topupgamez.id/id
   ========================================================================== */

body.ag-body.tgz-page {
  /* Audited TopupGamez runtime palette adapted to FAVOR Gold */
  --tgz-bg-primary: #13161C;
  --tgz-bg-secondary: #1A222C;
  --tgz-bg-opacity: rgba(26, 34, 44, 0.78);
  --tgz-third: #1D2026;
  --tgz-card-primary: #393E47;
  --tgz-card-secondary: #313C4C;
  --tgz-border-primary: rgba(49, 60, 76, 0.52);
  --tgz-border-secondary: rgba(49, 60, 76, 0.52);
  --tgz-primary: #E5B038;
  --tgz-primary-hover: #F0C14B;
  --tgz-primary-ink: #13161C;
  --tgz-primary-glow: rgba(229, 176, 56, 0.36);
  --tgz-text-primary: #F8FAFC;
  --tgz-text-secondary: #CBD5E1;

  /* Override ALL inherited storefront tokens on /topup */
  --ag-bg: #13161C;
  --ag-bg-soft: #1A222C;
  --ag-panel: #1A222C;
  --ag-panel-2: #242E3C;
  --ag-line: rgba(49, 60, 76, 0.52);
  --ag-line-strong: rgba(148, 163, 184, 0.22);
  --ag-text: #F8FAFC;
  --ag-muted: #94A3B8;
  --ag-lime: #E5B038;
  --ag-lime-ink: #13161C;
  --ag-blue: #E5B038;
  --ag-amber: #F0C14B;
  --ag-pink: #E5B038;

  background: var(--tgz-bg-primary) !important;
  color: var(--tgz-text-primary) !important;
}

.tgz-page .ag-header {
  background: var(--tgz-bg-opacity) !important;
  border-bottom: 1px solid var(--tgz-border-secondary) !important;
  backdrop-filter: blur(16px);
}

.tgz-page .ag-ticker {
  background: linear-gradient(90deg, rgba(235, 178, 59, 0.16), var(--tgz-third) 55%) !important;
  border-bottom: 1px solid var(--tgz-border-secondary) !important;
}

.tgz-page .ag-ticker__tag {
  border-color: rgba(235, 178, 59, 0.38) !important;
  background: rgba(235, 178, 59, 0.14) !important;
  color: #ffffff !important;
}

.tgz-page .ag-ticker__dot {
  background: var(--tgz-primary) !important;
  box-shadow: 0 0 8px var(--tgz-primary-glow) !important;
}

.tgz-page .ag-nav__link {
  color: var(--tgz-text-secondary) !important;
}

.tgz-page .ag-nav__link:hover,
.tgz-page .ag-nav__link.is-active {
  color: #ffffff !important;
  background: rgba(235, 178, 59, 0.14) !important;
}

.tgz-page .ag-btn--primary {
  background: var(--tgz-primary) !important;
  color: #ffffff !important;
  border-color: var(--tgz-primary) !important;
}

.tgz-page .ag-btn--primary:hover {
  background: var(--tgz-primary-hover) !important;
  box-shadow: 0 8px 20px -6px var(--tgz-primary-glow) !important;
}

.tgz-page .ag-btn--ghost {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid var(--tgz-card-secondary) !important;
}

.tgz-page .ag-btn--ghost:hover {
  border-color: var(--tgz-primary) !important;
  color: var(--tgz-primary) !important;
}

.tgz-page .ag-search__field {
  background: var(--tgz-third) !important;
  border-color: var(--tgz-card-secondary) !important;
}

.tgz-page .ag-search__field:focus-within {
  border-color: var(--tgz-primary) !important;
  box-shadow: 0 0 0 3px rgba(235, 178, 59, 0.2) !important;
}

.tgz-page :is(a, button, input):focus-visible {
  outline: 2px solid var(--tgz-primary) !important;
  outline-offset: 2px;
}

.tgz-page button:disabled,
.tgz-page input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tgz-page .ag-footer {
  background: var(--tgz-bg-secondary) !important;
  border-top: 1px solid var(--tgz-border-secondary) !important;
  color: var(--tgz-text-secondary) !important;
}

.tgz-page .ag-footer a:hover {
  color: var(--tgz-primary) !important;
}

.tgz-home {
  padding-bottom: 56px;
}

.tgz-shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 1024px) {
  .tgz-shell {
    padding-inline: 24px;
  }
}

/* ---------- HERO BANNER + RESELLER/MEMBER CTA CARD ---------- */
.tgz-banner-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 1024px) {
  .tgz-banner-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.tgz-banner-main {
  flex: 1 1 auto;
  min-width: 0;
}

.tgz-banner-main .ag-banner__frame {
  aspect-ratio: 3 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tgz-border-secondary);
}

.tgz-banner-main .ag-banner__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tgz-login-card {
  display: none;
}

@media (min-width: 1024px) {
  .tgz-login-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 25%;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(155deg, var(--tgz-bg-secondary), var(--tgz-third));
    border: 1px solid var(--tgz-border-secondary);
  }
}

.tgz-login-card__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(235, 178, 59, 0.16);
  color: var(--tgz-primary);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tgz-login-card__title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--tgz-text-primary);
  line-height: 1.35;
}

.tgz-login-card__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tgz-text-secondary);
}

.tgz-login-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.tgz-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--tgz-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.tgz-btn-solid:hover {
  opacity: 0.92;
  box-shadow: 0 8px 20px -6px var(--tgz-primary-glow);
}

.tgz-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--tgz-card-secondary);
  background: transparent;
  color: var(--tgz-text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.tgz-btn-outline:hover {
  border-color: var(--tgz-primary);
  color: var(--tgz-primary);
}

/* ---------- SECTION HEADING ---------- */
.tgz-section {
  margin-top: 32px;
}

.tgz-sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tgz-sechead h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--tgz-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tgz-sechead p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--tgz-text-secondary);
}

/* ---------- CATEGORY TABS & SEARCH TOOLBAR ---------- */
.tgz-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tgz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tgz-tab {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--tgz-card-secondary);
  background: var(--tgz-bg-secondary);
  color: var(--tgz-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tgz-tab:hover {
  color: var(--tgz-text-primary);
  border-color: var(--tgz-primary);
}

.tgz-tab.is-active {
  background: var(--tgz-primary);
  color: #ffffff;
  border-color: var(--tgz-primary);
  box-shadow: 0 6px 18px -6px var(--tgz-primary-glow);
}

.tgz-search-inline {
  position: relative;
  min-width: 240px;
  flex: 1 1 260px;
  max-width: 360px;
}

.tgz-search-inline input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 8px;
  border: 1px solid var(--tgz-card-secondary);
  background: var(--tgz-bg-secondary);
  color: var(--tgz-text-primary);
  font-size: 13px;
}

.tgz-search-inline input::placeholder {
  color: var(--tgz-text-secondary);
}

.tgz-search-inline input:focus {
  outline: none;
  border-color: var(--tgz-primary);
  box-shadow: 0 0 0 3px rgba(235, 178, 59, 0.18);
}

.tgz-search-inline svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tgz-text-secondary);
  pointer-events: none;
}

/* ---------- EXACT TOPUPGAMEZ 3:4 PORTRAIT CARD + BLUR/GRAYSCALE HOVER ---------- */
.tgz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .tgz-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .tgz-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Full-bleed 3:4 portrait card matching TopupGamez (198.4px x 264.525px on 1440px) */
.tgz-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tgz-card-primary);
  border: 1.5px solid var(--tgz-border-primary);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}

.tgz-card:hover {
  border-color: var(--tgz-primary);
  box-shadow: 0 14px 32px -12px var(--tgz-primary-glow);
  transform: translateY(-3px);
}

/* Normal state: sharp full-bleed poster; Hover state: blur(8px) grayscale(1) over 0.5s */
.tgz-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1);
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tgz-card:hover .tgz-card__poster,
.tgz-card:focus-visible .tgz-card__poster {
  filter: blur(8px) grayscale(1);
  transform: scale(1.06);
}

/* Subtle bottom gradient for title readability */
.tgz-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    transparent 100%
  );
  transition: background 0.4s ease;
  pointer-events: none;
}

.tgz-card:hover .tgz-card__gradient {
  background: linear-gradient(
    to top,
    rgba(235, 178, 59, 0.65) 0%,
    rgba(0, 0, 0, 0.48) 55%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

/* Hover Overlay: Centered transparent brand logo (separate from poster) */
.tgz-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

.tgz-card:hover .tgz-card__hover,
.tgz-card:focus-visible .tgz-card__hover {
  opacity: 1;
}

.tgz-card__logo {
  width: 76px;
  max-height: 58px;
  object-fit: contain;
  transform: scale(0.75);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.tgz-card:hover .tgz-card__logo,
.tgz-card:focus-visible .tgz-card__logo {
  transform: scale(1);
}

/* Card title anchored cleanly at bottom */
.tgz-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 10px;
  text-align: center;
  z-index: 3;
}

.tgz-card__title {
  margin: 0;
  color: var(--tgz-text-primary);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tgz-card__title {
    font-size: 13.5px;
  }
}

.tgz-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--tgz-text-secondary);
  background: var(--tgz-bg-secondary);
  border: 1px dashed var(--tgz-card-secondary);
  border-radius: 10px;
}


/* ---------- RESELLER CTA BANNER ---------- */
.tgz-reseller-banner {
  display: none;
}

@media (min-width: 1024px) {
  .tgz-reseller-banner {
    display: block;
    flex: 0 0 25%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tgz-border-secondary);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }
  .tgz-reseller-banner:hover {
    transform: translateY(-2px);
    border-color: var(--tgz-primary);
  }
  .tgz-reseller-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ---------- FLASH SALE SECTION ---------- */
.tgz-flash-box {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(235, 178, 59, 0.14), var(--tgz-bg-secondary) 55%);
  border: 1px solid var(--tgz-border-secondary);
}

.tgz-flash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.tgz-flash-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tgz-flash-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--tgz-text-primary);
}

.tgz-flash-head p {
  margin: 0;
  font-size: 13px;
  color: var(--tgz-text-secondary);
}

.tgz-countdown {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--tgz-primary);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tgz-flash-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 250px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.tgz-flash-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--tgz-bg-primary);
  border: 1px solid var(--tgz-border-secondary);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tgz-flash-card:hover {
  border-color: var(--tgz-primary);
  transform: translateY(-2px);
}

.tgz-flash-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tgz-flash-card__top img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.tgz-flash-card__info { min-width: 0; }

.tgz-flash-card__game {
  margin: 0;
  font-size: 11.5px;
  color: var(--tgz-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tgz-flash-card__name {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--tgz-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tgz-flash-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tgz-flash-card__prices s {
  font-size: 11.5px;
  color: var(--tgz-text-secondary);
}

.tgz-flash-card__prices strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--tgz-primary);
}

.tgz-flash-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.tgz-flash-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(235, 178, 59, 0.18);
  color: #F5C542;
  font-weight: 700;
}

.tgz-flash-stock {
  color: var(--tgz-text-secondary);
  font-weight: 600;
}

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.tgz-wa-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #EBB23B;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(235, 178, 59, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tgz-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(235, 178, 59, 0.6);
}


/* ---------- TOPUPGAMEZ 2-TIER NAVBAR ---------- */
.tgz-navbar {
  position: sticky;
  top: 0;
  z-index: 65;
  background: var(--tgz-bg-opacity);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tgz-navbar__top {
  border-bottom: 1px solid var(--tgz-border-secondary);
}

.tgz-navbar__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.tgz-navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tgz-navbar__brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(235, 178, 59, 0.35));
}

.tgz-navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tgz-nav-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--tgz-card-secondary);
  background: var(--tgz-bg-secondary);
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.tgz-nav-iconbtn:hover {
  border-color: var(--tgz-primary);
  color: var(--tgz-primary);
}

/* Desktop Grid Button & Centered Popup Modal (exact TopupGamez Radix Dialog) */
.tgz-nav-gridbtn {
  display: none;
  color: var(--tgz-primary);
  border-color: rgba(255, 255, 255, 0.42);
}

.tgz-nav-gridbtn:hover,
.tgz-nav-gridbtn.is-open {
  border-color: var(--tgz-primary);
  box-shadow: 0 0 0 1px rgba(235, 178, 59, 0.45);
  color: var(--tgz-primary);
}

.tgz-dmenu-backdrop,
.tgz-dmenu-dialog {
  display: none;
}

@media (min-width: 768px) {
  .tgz-nav-gridbtn {
    display: inline-grid;
  }

  .tgz-dmenu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0, 0, 0.2, 1);
  }

  .tgz-dmenu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .tgz-dmenu-dialog {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;
    width: min(80vw, 820px);
    max-height: calc(100dvh - 3rem);
    transform: translate(-50%, -50%) scale(0.96);
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0, 0, 0.2, 1), transform 0.2s cubic-bezier(0, 0, 0.2, 1);
    box-sizing: border-box;
  }

  .tgz-dmenu-dialog.is-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
  }

  .tgz-dmenu-sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tgz-dmenu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease;
  }

  .tgz-dmenu-close:hover,
  .tgz-dmenu-close:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
  }

  .tgz-dmenu-body {
    overflow-y: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    scrollbar-width: none;
  }

  .tgz-dmenu-body::-webkit-scrollbar {
    display: none;
  }

  .tgz-dmenu-dialog .tgz-menu-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tgz-dmenu-dialog .tgz-menu-group__title {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .tgz-dmenu-dialog .tgz-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .tgz-dmenu-dialog .tgz-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px;
    border-radius: 10px;
    background: #111111;
    border: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
  }

  .tgz-dmenu-dialog .tgz-menu-card:hover,
  .tgz-dmenu-dialog .tgz-menu-card:focus-visible,
  .tgz-dmenu-dialog .tgz-menu-card.is-active {
    background: rgba(235, 178, 59, 0.4);
    color: #ffffff;
    outline: none;
  }

  .tgz-dmenu-dialog .tgz-menu-card__icon {
    width: 22px;
    height: 22px;
    color: #EBB23B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tgz-dmenu-dialog .tgz-menu-card__icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .tgz-dmenu-dialog .tgz-menu-card__label {
    font-size: 13.5px;
    line-height: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .tgz-dmenu-dialog {
    width: min(70vw, 680px);
  }

  .tgz-dmenu-dialog .tgz-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tgz-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--tgz-card-secondary);
  background: var(--tgz-bg-secondary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.tgz-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--tgz-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s;
}

.tgz-btn-login:hover {
  background: var(--tgz-primary-hover);
  box-shadow: 0 8px 20px -6px var(--tgz-primary-glow);
}

.tgz-navbar__sub {
  display: none;
  background: var(--tgz-bg-secondary);
  border-bottom: 1px solid var(--tgz-border-secondary);
}

@media (min-width: 768px) {
  .tgz-navbar__sub {
    display: block;
  }
}

.tgz-navbar__sub-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tgz-navbar__sub-inner::-webkit-scrollbar { display: none; }

.tgz-sublink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tgz-text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tgz-sublink:hover {
  color: #ffffff;
}

.tgz-sublink.is-active {
  color: var(--tgz-primary);
  border-bottom-color: var(--tgz-primary);
}

.tgz-sublink--favor {
  margin-left: auto;
  color: #A1A1AA;
  font-size: 12.5px;
}

/* ---------- TOPUPGAMEZ FLASH SALE BANNER + PATTERN CARDS ---------- */
.tgz-flash-box {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tgz-bg-secondary);
  border: 1px solid var(--tgz-border-secondary);
}

.tgz-flash-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(95deg, #A8781C 0%, #EBB23B 48%, #5C400D 100%);
  position: relative;
}

.tgz-flash-banner__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tgz-flash-bolt {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tgz-flash-banner h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.tgz-flash-banner p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

.tgz-flash-banner__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tgz-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tgz-timer__box {
  min-width: 32px;
  height: 30px;
  padding: 0 7px;
  border-radius: 6px;
  background: #171717;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(235, 178, 59, 0.45);
}

.tgz-timer__sep {
  color: #ffffff;
  font-weight: 800;
}

.tgz-flash-arrows {
  display: inline-flex;
  gap: 6px;
}

.tgz-flash-arrow {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.tgz-flash-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.tgz-flash-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 265px);
  gap: 14px;
  overflow-x: auto;
  padding: 16px 20px 18px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.tgz-flash-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tgz-card-secondary);
  background-color: var(--tgz-third);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(235, 178, 59, 0.16), transparent 55%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 2px,
      transparent 2px,
      transparent 10px
    );
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tgz-flash-card:hover {
  transform: translateY(-3px);
  border-color: var(--tgz-primary);
  box-shadow: 0 12px 26px -12px var(--tgz-primary-glow);
}

.tgz-flash-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tgz-fs-stock-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tgz-fs-bar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.tgz-fs-bar > span:not(.tgz-fs-bar__text) {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #C9921D, #E5B038);
}

.tgz-flash-card__foot {
  padding: 7px 12px;
  background: linear-gradient(90deg, rgba(235, 178, 59, 0.25), rgba(235, 178, 59, 0.2));
  border-top: 1px solid rgba(235, 178, 59, 0.25);
  color: #FBD55B;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}


/* ==========================================================================
   EXACT HERO CAROUSEL + RESELLER CHARACTER CARD + FLASH SALE PATTERN & LOOP
   ========================================================================== */
.tgz-hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tgz-third);
}

.tgz-hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.tgz-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.tgz-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tgz-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tgz-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.tgz-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.tgz-hero-dot.is-active {
  width: 24px;
  background: var(--tgz-primary);
}

/* Exact card-login-D6EbDN53.js (clean, without floating overlapping character) */
.tgz-reseller-card {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 10px;
  background: var(--tgz-third);
  padding: 20px 18px;
  overflow: hidden;
  border: 1px solid var(--tgz-border-secondary);
}

@media (min-width: 1024px) {
  .tgz-reseller-card {
    display: flex;
    flex: 0 0 25%;
  }
}

.tgz-reseller-card__art {
  display: none !important;
}

.tgz-reseller-card__content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tgz-reseller-card__content h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.tgz-reseller-card__content h2 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.76);
}

.tgz-reseller-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tgz-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s;
}

.tgz-reseller-card__btn:hover {
  background: var(--tgz-primary-hover);
  box-shadow: 0 8px 18px -6px var(--tgz-primary-glow);
}

/* Exact flash-sale-BOqRdO7Q.js */
.tgz-fs-shell {
  background: var(--tgz-bg-opacity);
  padding: 0 0 20px;
  position: relative;
}

.tgz-fs-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .tgz-fs-head {
    flex-direction: row;
    align-items: center;
  }
}

.tgz-fs-ribbon {
  background: transparent;
  padding: 6px 0 8px 16px;
  width: max-content;
  position: relative;
  overflow: visible;
}

.tgz-fs-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tgz-primary);
  clip-path: polygon(0% 0%, 100% 0%, calc(100% - 40px) 100%, 0% 100%);
  z-index: 0;
}

.tgz-fs-ribbon__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 78px;
}

.tgz-fs-ribbon__label {
  margin: 2px 0 0;
  color: var(--tgz-primary-ink, #13161C);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .tgz-fs-ribbon__label {
    font-size: 18px;
  }
}

.tgz-fs-ribbon__bolt {
  position: absolute;
  right: 16px;
  top: -6px;
  width: 40px;
  height: 40px;
  z-index: 20;
}

@media (min-width: 768px) {
  .tgz-fs-ribbon__bolt {
    right: 12px;
    top: -10px;
    width: 56px;
    height: 56px;
  }
}

.tgz-fs-ribbon__bolt img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tgz-fs-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
}

.tgz-fs-timer-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

/* Zero-scrollbar continuous auto-carousel viewport */
.tgz-fs-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0 12px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.tgz-fs-viewport.is-dragging {
  cursor: grabbing;
}

.tgz-fs-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

/* Original doodle-pattern Flash Sale card (exact TopupGamez composition + FAVOR Gold) */
.tgz-fs-card {
  position: relative;
  flex: 0 0 268px;
  width: 268px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--tgz-card-primary);
  background-image: url('/assets/topupgamez/ui/ornament-flashsale.png');
  background-size: cover;
  background-position: center;
  border: 2px solid var(--tgz-border-secondary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.tgz-fs-card:hover {
  border-color: var(--tgz-primary);
}

.tgz-fs-card__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 32px 10px 10px;
  flex: 1;
}

.tgz-fs-card__thumb {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tgz-bg-secondary);
}

.tgz-fs-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tgz-fs-card__info {
  min-width: 0;
  flex: 1;
}

.tgz-fs-card__game {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tgz-fs-card__name {
  margin: 2px 0 4px;
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tgz-fs-card__normal {
  margin: 0;
  font-size: 13px;
  color: #CBD5E1;
  opacity: 0.78;
  text-decoration: line-through;
  white-space: nowrap;
}

.tgz-fs-card__promo {
  margin: 1px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--tgz-primary);
  white-space: nowrap;
}

.tgz-fs-card__progress {
  padding: 0 10px 10px;
}

.tgz-fs-card .tgz-fs-bar {
  position: relative;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(229, 176, 56, 0.22);
  overflow: hidden;
}

.tgz-fs-bar__fill {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #C9921D, #E5B038);
  border-radius: 999px;
  overflow: hidden;
}

.tgz-fs-bar__fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: tgz-shine 1.6s linear infinite;
}

@keyframes tgz-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.tgz-fs-card .tgz-fs-bar__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.tgz-fs-card__corner {
  position: absolute;
  right: 2px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
  z-index: 5;
}

.tgz-fs-card__foot {
  padding: 5px 8px;
  background: var(--tgz-primary);
  color: var(--tgz-primary-ink, #13161C);
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Bottom 3-piece decorative angled polygon bar */
.tgz-fs-deco {
  display: flex;
  width: 100%;
}

.tgz-fs-deco__left {
  background: var(--tgz-bg-opacity);
  width: 50%;
  height: 20px;
  clip-path: polygon(0% 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
}

@media (min-width: 768px) {
  .tgz-fs-deco__left { width: 100%; }
}

.tgz-fs-deco__mid,
.tgz-fs-deco__right {
  background: var(--tgz-primary);
  width: 25%;
  height: 20px;
  clip-path: polygon(30px 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
}


/* ==========================================================================
   EXACT PRODUCT CARD (card-product-CFV8lIRE.js) + POPULAR CAROUSEL + GRID
   ========================================================================== */
.tgz-pop-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.tgz-pop-viewport.is-dragging { cursor: grabbing; }

.tgz-pop-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.tgz-pop-track .tgz-pcard {
  flex: 0 0 132px;
}

@media (min-width: 768px) {
  .tgz-pop-track .tgz-pcard { flex: 0 0 176px; }
}

@media (min-width: 1280px) {
  .tgz-pop-track .tgz-pcard { flex: 0 0 198px; }
}

/* Exact list-product-CO8KAuHu.js grid: 3 / 4 / 5 / 6 columns */
.tgz-pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .tgz-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
  .tgz-pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1280px) {
  .tgz-pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
}

/* Exact card-product-CFV8lIRE.js */
.tgz-pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(24px);
  border: 1px solid var(--tgz-bg-secondary);
  transition: border-color 0.5s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.tgz-pcard.is-featured,
.tgz-pcard:hover {
  border-color: var(--tgz-primary);
  box-shadow: 0 10px 26px -14px var(--tgz-primary-glow);
}

.tgz-pcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .tgz-pcard__media { aspect-ratio: 3 / 4; }
}

.tgz-page .tgz-pcard__poster {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 10px;
  filter: none;
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tgz-page .tgz-hero-slide img,
.tgz-page .tgz-reseller-card__art img,
.tgz-page .tgz-fs-card__thumb img {
  width: 100% !important;
  height: 100% !important;
}

.tgz-pcard:hover .tgz-pcard__poster,
.tgz-pcard:focus-visible .tgz-pcard__poster {
  transform: scale(1.05);
  filter: blur(8px) grayscale(1);
}

.tgz-pcard__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(to top, rgba(235, 178, 59, 0.85), transparent);
  border-radius: 10px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tgz-pcard:hover .tgz-pcard__hover,
.tgz-pcard:focus-visible .tgz-pcard__hover {
  opacity: 1;
}

.tgz-pcard__logo {
  width: 72px;
  max-height: 58px;
  object-fit: contain;
  transform: scale(0.75);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.tgz-pcard:hover .tgz-pcard__logo,
.tgz-pcard:focus-visible .tgz-pcard__logo {
  transform: scale(1);
}

.tgz-pcard__footer {
  margin: 0 8px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  height: 40px;
}

.tgz-pcard__title {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tgz-pcard__title { font-size: 13.5px; }
}

.tgz-search-pill input {
  border-radius: 999px !important;
}

.tgz-showmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.tgz-showmore-btn {
  padding: 9px 26px;
  border-radius: 8px;
  border: 1px solid var(--tgz-primary);
  background: transparent;
  color: var(--tgz-primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tgz-showmore-btn:hover {
  background: var(--tgz-primary);
  color: #ffffff;
}


/* ---------- ALIGO NAVBAR BRAND ALIGNMENT (FAVOR DARK + MAGENTA #EBB23B) ---------- */
.tgz-page .ag-brand img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(235, 178, 59, 0.28));
}

.tgz-page .ag-menu,
.tgz-page .ag-search__panel {
  background: var(--tgz-bg-secondary) !important;
  border: 1px solid var(--tgz-card-secondary) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

.tgz-page .ag-menu__item:hover,
.tgz-page .ag-search__panel li a:hover {
  background: rgba(235, 178, 59, 0.14) !important;
  color: #ffffff !important;
}

.tgz-page .ag-menu__label {
  color: var(--tgz-primary) !important;
}

.tgz-page .ag-drawer,
.tgz-page .ag-bottombar {
  background: var(--tgz-bg-primary) !important;
  border-color: var(--tgz-border-secondary) !important;
}

.tgz-page .ag-drawer__link.is-active,
.tgz-page .ag-bottombar__item.is-active {
  color: var(--tgz-primary) !important;
}


/* ---------- NAVBAR KALKULATOR DROPDOWN ---------- */
.tgz-navbar__sub-inner {
  overflow: visible !important;
}

.tgz-dropdown {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.tgz-dropdown__trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tgz-dropdown__caret {
  transition: transform 0.2s ease;
}

.tgz-dropdown.is-open .tgz-dropdown__caret {
  transform: rotate(180deg);
}

.tgz-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  padding: 8px;
  border-radius: 12px;
  background: var(--tgz-bg-secondary);
  border: 1px solid var(--tgz-card-secondary);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tgz-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tgz-dropdown__item:hover,
.tgz-dropdown__item.is-active {
  background: rgba(235, 178, 59, 0.16);
}

.tgz-dropdown__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--tgz-third);
  border: 1px solid var(--tgz-border-secondary);
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  flex: none;
}

.tgz-dropdown__item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.tgz-dropdown__item small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--tgz-text-secondary);
  line-height: 1.35;
}


/* ---------- DROPDOWN ICON COLOR + MOBILE TOUCH OPTIMIZATION ---------- */
.tgz-dropdown__icon {
  color: var(--tgz-primary);
}

@media (max-width: 767px) {
  .tgz-navbar__top-inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 14px;
  }
  .tgz-navbar__brand img {
    height: 30px;
  }
  .tgz-navbar__sub-inner {
    gap: 2px;
    padding-inline: 10px;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
  .tgz-sublink {
    padding: 0 10px;
    font-size: 12.5px;
    gap: 5px;
  }
  .tgz-dropdown__menu {
    position: fixed;
    top: 108px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 10px;
  }
  .tgz-dropdown__item {
    min-height: 52px;
    align-items: center;
  }
}


/* ---------- UNIFIED FAVOR / TOPUPGAMEZ FOOTER (Reverse-Engineered from topupgamez.id/id) ---------- */
@keyframes tgzFooterMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 1rem)); }
}

.tgz-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px;
  background: transparent;
  color: #ffffff;
}

.tgz-footer__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tgz-footer__brand-mobile {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 32px;
}

.tgz-footer__brand-desktop {
  display: none;
  flex: 1;
  flex-direction: column;
  grid-column: span 4 / span 4;
  padding-right: 40px;
}

.tgz-footer__brand-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tgz-footer__logo {
  display: inline-flex;
  align-items: center;
  width: 256px;
  max-width: 100%;
  height: 48px;
}

.tgz-footer__logo img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.tgz-footer__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
}

.tgz-footer__subhead {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #ffffff;
}

.tgz-footer__pay-wrap {
  min-width: 0;
  max-width: 100%;
}

.tgz-footer__marquee {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  padding: 8px 0;
  gap: 1rem;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.tgz-footer__marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
}

.tgz-footer__marquee.is-animated .tgz-footer__marquee-track {
  animation: tgzFooterMarquee 40s linear infinite;
}

.tgz-footer__marquee.is-animated:hover .tgz-footer__marquee-track {
  animation-play-state: paused;
}

.tgz-footer__pay-item {
  width: 80px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tgz-footer__pay-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tgz-footer__body {
  display: flex;
  flex-direction: column;
}

.tgz-footer__main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-bottom: 24px;
}

.tgz-footer__nav-wrap {
  grid-column: span 12 / span 12;
}

.tgz-footer__nav-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.tgz-footer__col {
  grid-column: span 6 / span 6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tgz-footer__col--full {
  grid-column: span 12 / span 12;
  margin-top: 32px;
}

.tgz-footer__heading {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
}

.tgz-footer__col a {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.tgz-footer__col a:hover {
  color: var(--tgz-primary, #EBB23B);
}

.tgz-footer__support {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.tgz-footer__socials {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
}

.tgz-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  color: #ffffff !important;
  background: transparent;
  transition: color 0.15s ease, transform 0.15s ease;
}

.tgz-footer__social-btn svg {
  width: 34px;
  height: 34px;
}

.tgz-footer__social-btn:hover {
  color: var(--tgz-primary, #EBB23B) !important;
  transform: translateY(-1px);
}

.tgz-footer__art {
  display: none;
  grid-column: span 3 / span 3;
  align-items: flex-end;
  justify-content: flex-end;
}

.tgz-footer__art-frame {
  position: relative;
  width: 100%;
  min-height: 240px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.tgz-footer__art-frame img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.tgz-footer__bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  padding-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  text-align: left;
}

.tgz-footer__bottom p {
  margin: 0;
  opacity: 0.4;
}

/* Tablet (>= 640px / sm:) */
@media (min-width: 640px) {
  .tgz-footer__col,
  .tgz-footer__col--full {
    grid-column: span 4 / span 4;
    margin-top: 0;
  }
  .tgz-footer__col--pad {
    padding-left: 8px;
  }
}

/* Laptop (>= 1024px / lg:) */
@media (min-width: 1024px) {
  .tgz-footer__nav-wrap {
    grid-column: span 12 / span 12;
  }
}

/* Desktop (>= 1280px / xl:) */
@media (min-width: 1280px) {
  .tgz-footer__brand-mobile {
    display: none;
  }
  .tgz-footer__brand-desktop {
    display: flex;
  }
  .tgz-footer__nav-wrap {
    grid-column: span 8 / span 8;
  }
}

/* Mobile marquee scrollability */
@media (max-width: 1279px) {
  .tgz-footer__marquee {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tgz-footer__marquee::-webkit-scrollbar {
    display: none;
  }
}

/* ======================= INLINE NAVBAR GLOBAL LIVE SEARCH (/katalog/cari) ======================= */
.tgz-navbar__top-inner {
    gap: 20px;
}
.tgz-navbar__brand,
.tgz-navbar__actions {
    flex: none;
}
.tgz-nav-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.tgz-nav-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 14px;
    border-radius: 9999px;
    background: var(--fv-elevated, #242E3C);
    border: 1px solid var(--fv-border-strong, rgba(148, 163, 184, 0.22));
    box-sizing: border-box;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.tgz-nav-search__field:focus-within {
    background: #2A3545;
    border-color: var(--fv-gold, #E5B038);
    box-shadow: 0 0 0 3px rgba(229, 176, 56, 0.16);
}
.tgz-nav-search__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fv-muted, #94A3B8);
    transition: color 0.16s ease;
}
.tgz-nav-search__field:focus-within .tgz-nav-search__icon {
    color: var(--fv-gold, #E5B038);
}
.tgz-nav-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--fv-text, #F8FAFC);
    font-size: 14px;
    line-height: 1.4;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.tgz-nav-search__input::-webkit-search-cancel-button,
.tgz-nav-search__input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.tgz-nav-search__input:focus,
.tgz-nav-search__input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.tgz-nav-search__input::placeholder {
    color: var(--fv-muted, #94A3B8);
}
.tgz-nav-search__clear {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.16);
    color: var(--fv-text-soft, #CBD5E1);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.tgz-nav-search__clear[hidden] {
    display: none !important;
}
.tgz-nav-search__clear:hover {
    background: rgba(229, 176, 56, 0.22);
    color: #FFFFFF;
}

.tgz-nav-search__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1060;
    background: var(--fv-surface, #1A222C);
    border: 1px solid var(--fv-border-strong, rgba(148, 163, 184, 0.22));
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.52);
    overflow: hidden;
    box-sizing: border-box;
}
.tgz-nav-search__dropdown[hidden] {
    display: none !important;
}
.tgz-nav-search__body {
    max-height: min(440px, 65dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    box-sizing: border-box;
}
.tgz-search-modal__hint {
    margin: 0;
    padding: 24px 14px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--fv-muted, #94A3B8);
}
.tgz-search-modal__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tgz-search-modal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--fv-text, #F8FAFC);
    background: var(--fv-elevated, #242E3C);
    border: 1px solid var(--fv-border, rgba(49, 60, 76, 0.52));
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tgz-search-modal__item:hover,
.tgz-search-modal__item:focus-visible {
    background: var(--fv-card-primary, #393E47);
    border-color: var(--fv-gold, #E5B038);
    outline: none;
}
.tgz-search-modal__item img {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
    flex: none;
    background: var(--fv-bg, #13161C);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.tgz-search-modal__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.tgz-search-modal__meta strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fv-text, #F8FAFC);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tgz-search-modal__meta small {
    font-size: 12px;
    line-height: 1.3;
    color: var(--fv-muted, #94A3B8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tgz-search-modal__flash {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(229, 176, 56, 0.15);
    border: 1px solid rgba(229, 176, 56, 0.45);
    color: var(--fv-gold, #E5B038);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .tgz-navbar__brand {
        order: 1;
    }
    .tgz-navbar__actions {
        order: 2;
        margin-left: auto;
    }
    .tgz-nav-search {
        order: 3;
        flex: 1 0 100%;
        width: 100%;
    }
    .tgz-nav-search__field {
        height: 40px;
        padding: 0 12px;
        gap: 8px;
    }
    .tgz-nav-search__input {
        font-size: 15px;
    }
    .tgz-nav-search__dropdown {
        top: calc(100% + 6px);
        border-radius: 12px;
    }
    .tgz-nav-search__body {
        max-height: min(360px, 54dvh);
        padding: 8px;
    }
    .tgz-search-modal__item {
        padding: 9px 10px;
        gap: 10px;
    }
    .tgz-search-modal__item img {
        width: 40px;
        height: 40px;
    }
    .tgz-search-modal__meta strong {
        font-size: 13.5px;
    }
    .tgz-search-modal__flash {
        padding: 3px 8px;
        font-size: 11px;
    }
}


/* Logo lebar (landscape) pada kartu poster: tampil utuh di atas latar putih, tidak terpotong.
   !important diperlukan karena tema (favor-topup-theme.css) memaksa object-fit: cover !important. */
.tgz-page img.tgz-pcard__poster[data-fit="contain"],
.tgz-pcard img.tgz-pcard__poster[data-fit="contain"] {
  object-fit: contain !important;
  background: #fff;
  padding: 18px;
  box-sizing: border-box;
}
