/* ==========================================================
   YURxRISET MULTI-TENANT DESIGN SYSTEM (2.5D GAMER PRO MAX)
   Standard: WCAG AA/AAA High Contrast, Baloo 2 Typography
   Mobile First, Tactile Feedback, Zero Color Clash
   ========================================================== */

:root {
  --brand: #0088FF;
  --brand-hover: #006DD6;
  --brand-surface: rgba(0, 136, 255, 0.12);
  --brand-border: rgba(0, 136, 255, 0.28);
  --brand-text: #FFFFFF;
  --bg-main: #F0F5FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F4F8FD;
  --bg-input: #EDF3FA;
  --card-border: #DCE6F2;
  --card-border-light: rgba(0, 0, 0, 0.06);
  --text-main: #0A1A35;
  --text-muted: #64748B;
  --text-sub: #334E68;
  --success: #10B981;
  --success-surface: rgba(16, 185, 129, 0.12);
  --danger: #EF4444;
  --danger-surface: rgba(239, 68, 68, 0.12);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-family: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --shadow-card: 0 2px 10px rgba(0, 136, 255, 0.08), 0 1px 3px rgba(10, 26, 53, 0.05);
  --shadow-btn: 0 3px 0 #0066CC;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

/* APP SHELL (OMKOIN MOBILE-FIRST CONTAINER) */
.app-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-main);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.08);
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
}

@media (max-width: 520px) {
  .app-shell {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  padding: 12px 14px 100px;
  flex: 1;
}

/* ==========================================================
   HEADER & LIVE STATUS (ANCHORED INSIDE APP SHELL)
   ========================================================== */
.hdr {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 10px 14px;
}

.hdr-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.hdr-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--card-border);
  background: #000;
}

.hdr-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* ==========================================================
   CARDS & SECTION HEADERS
   ========================================================== */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.card-header {
  margin-bottom: 12px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.card-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-text);
  font-weight: 900;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-brand {
  background: var(--brand-surface);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}

/* ==========================================================
   BANNER PROMO CAROUSEL
   ========================================================== */
.carousel-wrap {
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.c-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--brand);
}

/* ==========================================================
   HOMEPAGE PRODUCT GRID (3 KOLOM RAPI, SIMETRIS & STRICT)
   ========================================================== */
.product-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.game-item-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.game-item-card:hover, .game-item-card:active {
  transform: translateY(-3px);
  border-color: var(--brand);
  background: var(--bg-card-hover);
  box-shadow: 0 6px 18px var(--brand-surface);
}

.game-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
  background: var(--bg-input);
}

.game-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-avatar-wrap .game-avatar {
  width: 52px;
  height: 52px;
  margin: 0;
}

.game-avatar-custom {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--card-border);
  font-size: 1.35rem;
}

.game-avatar-custom.wa-chip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.35);
}

.game-avatar-custom.brand-chip {
  background: linear-gradient(135deg, var(--brand-surface) 0%, rgba(0, 136, 255, 0.15) 100%);
  color: var(--brand);
  border-color: var(--brand-border);
}

.game-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--bg-card);
  z-index: 2;
}

.game-avatar-badge.wa {
  background: #25D366;
}

.game-avatar-badge.ext {
  background: var(--brand);
}

.game-title-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
  margin-top: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  word-break: break-word;
}

.game-title-dual {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 32px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.game-title-dual .game-title-main {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.game-title-dual .game-title-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.15;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  margin-top: 1px;
}

.game-badge-speed {
  font-size: 0.64rem;
  font-weight: 800;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 4px;
  padding: 1.5px 6px;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-badge-speed.badge-theme {
  color: var(--brand);
  background: var(--brand-surface);
  border-color: var(--brand-border);
}

.game-badge-speed.badge-wa {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

@media (max-width: 380px) {
  .product-grid-3col {
    gap: 6px;
  }
  .game-item-card {
    padding: 10px 4px 8px;
  }
  .game-avatar, .game-avatar-wrap, .game-avatar-wrap .game-avatar, .game-avatar-custom {
    width: 46px;
    height: 46px;
  }
  .game-title-text {
    font-size: 0.72rem;
  }
  .game-title-dual .game-title-main {
    font-size: 0.7rem;
  }
  .game-title-dual .game-title-sub {
    font-size: 0.58rem;
  }
  .game-badge-speed {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
}

/* ==========================================================
   BENTO GRID (KEUNGGULAN TOKO)
   ========================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.bento-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 4px 14px var(--brand-surface);
}

.bento-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--brand-surface) 0%, var(--bg-card-hover) 100%);
  border: 1.5px solid var(--brand-border);
  box-shadow: 0 2px 12px var(--brand-surface);
}

.bento-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.bento-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bento-hero .bento-title {
  color: var(--text-main);
}

.bento-hero .bento-desc {
  color: var(--text-sub);
  font-weight: 600;
}

/* ==========================================================
   CARA CEPAT ORDER STEPPER INTERACTIVE
   ========================================================== */
.order-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.step-card {
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.step-card.active {
  border-color: var(--brand);
  background: var(--brand-surface);
  box-shadow: 0 0 0 1px var(--brand), 0 3px 12px var(--brand-surface);
  transform: translateY(-2px);
}

.step-card.active .step-num {
  color: var(--brand);
}

.step-card.active .step-text {
  color: var(--text-main);
}

.step-num {
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--text-muted);
  display: block;
}

.step-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

/* STEP DETAIL SHOWCASE CARD */
.step-detail-card {
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.step-detail-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.step-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.step-detail-info {
  flex: 1;
  min-width: 0;
}

.step-detail-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px;
  line-height: 1.25;
}

.step-detail-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.step-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--card-border);
}

.step-indicator-dots {
  display: flex;
  gap: 5px;
}

.s-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.s-dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--brand);
}

.btn-step-action {
  background: var(--brand);
  color: var(--brand-text);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-step-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================
   HOMEPAGE: QRIS INTERACTIVE PAYMENT HUB
   ========================================================== */
.qris-hub-card {
  background: var(--bg-card);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: 0 4px 20px var(--brand-surface);
  margin-bottom: 14px;
}

.qris-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qris-hub-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
}

.qris-hub-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.qris-hub-desc {
  font-size: 0.76rem;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.4;
}

.qris-interactive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 10px;
}

.qris-channel-btn {
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
  font-family: inherit;
  position: relative;
}

.qris-channel-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.qris-channel-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-text);
  box-shadow: var(--shadow-btn);
  transform: translateY(-2px);
  font-weight: 900;
}

.qris-channel-name {
  font-size: 0.76rem;
  font-weight: 800;
  display: block;
  color: inherit;
}

.qris-channel-type {
  font-size: 0.62rem;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.qris-channel-btn.active .qris-channel-type {
  color: var(--brand-text);
  opacity: 0.85;
}

.qris-live-guide {
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.76rem;
  color: var(--text-main);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.qris-live-guide-icon {
  font-size: 1.15rem;
  color: var(--brand);
  flex-shrink: 0;
}

/* ==========================================================
   ORDER PAGE: GAME HERO BANNER
   ========================================================== */
.game-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-back:hover {
  border-color: var(--brand);
  transform: translateX(-2px);
  background: var(--bg-card-hover);
}

.game-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  object-fit: contain;
  background: var(--bg-input);
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.game-hero-details {
  flex: 1;
  min-width: 0;
}

.game-hero-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.game-hero-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.badge-speed {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

/* ==========================================================
   ORDER PAGE: INPUTS & NICKNAME ANIMATION
   ========================================================== */
.input-group {
  margin-bottom: 12px;
  position: relative;
}

.input-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-control {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-surface);
}

.input-control::placeholder {
  color: var(--text-muted);
  font-weight: 600;
}

/* NICKNAME BOX ANIMATION & STATES */
.nickname-box {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.nickname-box.loading {
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  color: var(--brand);
  animation: pulseGlow 1.4s infinite ease-in-out;
}

.nickname-box.success {
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  color: #34D399;
}

.nickname-box.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1.5px solid rgba(248, 113, 113, 0.4);
  color: #F87171;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; border-color: var(--brand-border); }
  50% { opacity: 0.7; border-color: var(--brand); }
}

.spinner-icon {
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--brand-surface);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   ORDER PAGE: CATEGORY TABS & VARIANT CARDS
   ========================================================== */
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.cat-tab-btn {
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s ease;
}

.cat-tab-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-text);
  box-shadow: var(--shadow-btn);
}

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

@media (min-width: 480px) {
  .variant-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.variant-card {
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.variant-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.variant-card.active {
  border-color: var(--brand);
  background: var(--brand-surface);
  box-shadow: 0 0 0 2px var(--brand), 0 4px 14px var(--brand-surface);
  transform: translateY(-2px);
}

.variant-card-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.variant-card.active .variant-card-check {
  display: flex;
}

.variant-card-badge {
  position: absolute;
  top: -8px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
  z-index: 4;
  pointer-events: none;
  line-height: 1.2;
  white-space: nowrap;
}

.variant-card-badge.badge-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.45);
}

.variant-card-badge.badge-blue {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.45);
}

.variant-card-badge.badge-purple {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.45);
}

.variant-coin-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.variant-info {
  width: 100%;
}

.variant-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 3px;
  word-break: break-word;
}

.variant-price {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.1;
}

/* ==========================================================
   ORDER PAGE: PAYMENT METHOD SELECTION (INTUITIVE & CLEAR)
   ========================================================== */
.pay-methods-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-method-card {
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.pay-method-card:hover {
  border-color: var(--brand);
}

.pay-method-card.active {
  border-color: var(--brand);
  background: var(--brand-surface);
  box-shadow: 0 0 0 2px var(--brand), 0 4px 14px var(--brand-surface);
}

.pay-method-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pay-method-card.active .radio-circle {
  border-color: var(--brand);
}

.pay-method-card.active .radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.pay-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pay-method-card.active .pay-method-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-text);
}

.pay-method-body {
  flex: 1;
  min-width: 0;
}

.pay-method-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pay-method-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.pay-method-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.pay-channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tag-channel {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
}

.pay-method-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--brand);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================
   STICKY CHECKOUT BOTTOM BAR
   ========================================================== */
.checkout-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--card-border);
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  box-shadow: 0 -4px 16px var(--brand-surface);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
}

@media (max-width: 520px) {
  .checkout-bar {
    border-left: none;
    border-right: none;
  }
}

.checkout-bar-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-info {
  flex: 1;
  min-width: 0;
}

.checkout-total-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.checkout-total-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.15;
}

.checkout-item-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  font-weight: 600;
}

.btn-checkout {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: var(--brand-text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-btn), 0 4px 14px var(--brand-surface);
  transition: transform 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-checkout:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: var(--shadow-btn), 0 2px 10px var(--brand-surface); }
  50% { box-shadow: var(--shadow-btn), 0 4px 20px var(--brand-surface); transform: translateY(-1px); }
}

.btn-checkout.pulse {
  animation: btnPulse 1.8s infinite ease-in-out;
}

/* ==========================================================
   FOOTER MINIMALIS
   ========================================================== */
.foot {
  text-align: center;
  padding: 16px 0 10px;
  border-top: 1px solid var(--card-border);
  margin-top: 20px;
}

.foot-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.foot-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.foot-copy {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================
   BOTTOM NAVIGATION (5 TABS) - ANCHORED TO APP SHELL
   ========================================================== */
.bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--card-border);
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  z-index: 1000;
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 520px) {
  .bnav {
    border-left: none;
    border-right: none;
  }
}

.bnav-ul {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.bnav-a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.bnav-a.active, .bnav-a:hover {
  color: var(--brand);
}

.bnav-icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================
   FLOATING ACTION BUTTON (FAB) - ANCHORED INSIDE APP SHELL
   ========================================================== */
.fab {
  position: fixed;
  bottom: 74px;
  left: min(calc(50vw + 260px - 66px), calc(100vw - 66px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  z-index: 900;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  animation: fabBounce 3s infinite ease-in-out;
  text-decoration: none;
}

.fab:hover, .fab:active {
  transform: scale(1.12);
}

.fab i, .fab svg {
  font-size: 1.5rem;
  color: inherit;
}

/* FAB THEME PRESETS */
.fab.fab-theme-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
}
.fab.fab-theme-brand {
  background: var(--brand);
  color: var(--brand-text);
  box-shadow: 0 4px 16px var(--brand-border);
}
.fab.fab-theme-telegram {
  background: #229ED9;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.5);
}
.fab.fab-theme-livechat {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}
.fab.fab-theme-glow-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
}
.fab.fab-theme-dark {
  background: #0F172A;
  color: #F8FAFC;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* FAB TOOLTIP BADGE */
.fab-tooltip {
  position: absolute;
  right: 58px;
  background: rgba(14, 23, 38, 0.94);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.2s;
}
.fab:hover .fab-tooltip {
  opacity: 1;
}

@keyframes fabBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ==========================================================
   SPA ARCHITECTURE: VIEW TRANSITIONS & DISPLAY
   ========================================================== */
.spa-view {
  display: none;
  width: 100%;
}

.spa-view.active {
  display: block;
  animation: spaFadeIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes spaFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   INVOICE VIEW STYLES
   ========================================================== */
.invoice-card {
  text-align: center;
  padding: 24px 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid #F59E0B;
}

.status-paid {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid #60A5FA;
}

.status-processing {
  background: rgba(147, 51, 234, 0.15);
  color: #C084FC;
  border: 1px solid #C084FC;
}

.status-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid #34D399;
}

.status-failed, .status-expired {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid #F87171;
}

.qr-container {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 14px;
  display: inline-block;
  margin: 14px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.qr-canvas {
  width: 220px !important;
  height: 220px !important;
  display: block;
}

.timer-display {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--card-border);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.btn-sim-pay {
  background: #10B981;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 3px 0 #047857;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-sim-pay:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================
   MODAL DIALOGS (INFO, NOTICE & SEARCH ORDER)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 26, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-box {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-shadow: var(--shadow-card), 0 16px 40px rgba(0, 0, 0, 0.22);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.modal-box::-webkit-scrollbar {
  width: 5px;
}
.modal-box::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--danger);
}

/* THEMED CONTENT BOXES (PETUNJUK ORDER & POPUP NOTICE) */
.instruction-content-box,
#gameInstructionBody {
  white-space: pre-line;
  line-height: 1.65;
  font-size: 0.88rem;
  color: var(--text-main);
  background: var(--bg-input);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#gameNoticeBody {
  white-space: pre-line;
  line-height: 1.65;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 20px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg-input);
  border-radius: 10px;
  border: 1px solid var(--card-border);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#gameNoticeBody::-webkit-scrollbar {
  width: 5px;
}
#gameNoticeBody::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}

/* ==========================================================
   MODERN TOAST NOTIFICATION SYSTEM (UNIVERSAL REPLACEMENT FOR ALERT)
   ========================================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 32px);
  width: 380px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(-20px) scale(0.94);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  line-height: 1.4;
}

.toast-item.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-item .toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-item .toast-msg {
  flex: 1;
  word-break: break-word;
}

.toast-item .toast-close-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s;
  padding: 0 2px;
  line-height: 1;
}

.toast-item .toast-close-btn:hover {
  opacity: 1;
}

.toast-success {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  color: #ECFDF5;
  border-color: #10B981;
}
.toast-success .toast-icon { color: #34D399; }

.toast-error {
  background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
  color: #FEF2F2;
  border-color: #EF4444;
}
.toast-error .toast-icon { color: #F87171; }

.toast-warning {
  background: linear-gradient(135deg, #78350F 0%, #92400E 100%);
  color: #FFFBEB;
  border-color: #F59E0B;
}
.toast-warning .toast-icon { color: #FBBF24; }

.toast-info {
  background: linear-gradient(135deg, #0C1E3C 0%, #152A50 100%);
  color: #F0F9FF;
  border-color: #38B6FF;
}
.toast-info .toast-icon { color: #60A5FA; }

@media (max-width: 600px) {
  .toast-container {
    top: 14px;
    left: 14px;
    right: 14px;
    width: auto;
  }
}

/* ==========================================================
   CUSTOMER AUTH & PROFILE DESIGN SYSTEM (MEMBER SPA)
   ========================================================== */

/* Auth Tabs Switcher */
.auth-tabs-wrap {
  display: flex;
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: var(--brand);
  color: var(--brand-text);
  box-shadow: 0 2px 8px var(--brand-surface);
}

.auth-form-group {
  margin-bottom: 15px;
  text-align: left;
}

.auth-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-input-wrap .input-control {
  padding-left: 40px;
  padding-right: 40px;
}

.auth-input-wrap .toggle-pwd-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px 6px;
  transition: color 0.15s;
}

.auth-input-wrap .toggle-pwd-btn:hover {
  color: var(--brand);
}

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  color: var(--brand-text);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  margin-top: 20px;
}

.auth-submit-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.auth-footer-text {
  text-align: center;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-footer-text a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

/* Profile View Styles */
.profile-hero-card {
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 3px solid var(--brand);
  color: var(--brand);
  font-size: 1.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.profile-user-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-user-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
}

.profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--card-border);
}

.profile-kpi-item {
  background: var(--bg-input);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}

.profile-kpi-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-kpi-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Profile Sub-tabs */
.profile-subtabs {
  display: flex;
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.profile-subtab-btn {
  flex: 1;
  padding: 9px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.profile-subtab-btn.active {
  background: var(--brand);
  color: var(--brand-text);
  box-shadow: 0 2px 8px var(--brand-surface);
}

/* Member Order Card Item */
.member-order-item {
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: border-color 0.15s;
}

.member-order-item:hover {
  border-color: var(--brand);
}

.member-order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  border-bottom: 1px dashed var(--card-border);
  padding-bottom: 8px;
}

.member-order-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-order-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  background: var(--bg-input);
  flex-shrink: 0;
}

.member-order-details {
  flex: 1;
  min-width: 0;
}

.member-order-prod {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-order-game {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.member-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
}

.member-order-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--brand);
}

.btn-view-invoice {
  padding: 5px 12px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  border-radius: var(--radius-xs);
  font-family: var(--font-family);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-view-invoice:hover {
  background: var(--brand);
  color: var(--brand-text);
}

/* Logout Button */
.btn-logout {
  width: 100%;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  margin-top: 14px;
}

.btn-logout:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Guest Not Logged In Notice */
.guest-prompt-card {
  background: var(--bg-card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.guest-prompt-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-surface);
  color: var(--brand);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.guest-prompt-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.guest-prompt-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 340px;
  margin: 0 auto 20px;
}

/* ==========================================================
   RESET: HILANGKAN TOMBOL ARROW / SPINNER NUMBER INPUT
   ========================================================== */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* ==========================================================
   MODAL KONFIRMASI PEMBAYARAN & ANIMASI PEMROSESAN
   ========================================================== */
.confirm-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.confirm-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}
.confirm-item-game {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.confirm-item-prod {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.confirm-item-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--brand);
  text-align: right;
  white-space: nowrap;
}

.confirm-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.confirm-info-table {
  background: var(--bg-input);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.confirm-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.82rem;
  gap: 10px;
}
.confirm-info-row:last-child {
  border-bottom: none;
}
.confirm-info-row .info-k {
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.confirm-info-row .info-v {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}
.confirm-total-row {
  background: var(--brand-surface);
  border-top: 1.5px solid var(--brand-border);
  padding: 11px 12px;
}
.confirm-total-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--brand);
}

.confirm-safety-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 6px 2px;
}

.confirm-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.btn-confirm-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-confirm-cancel:hover {
  background: var(--bg-input);
  color: var(--text-main);
}
.btn-confirm-submit {
  flex: 2;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: var(--brand);
  color: var(--brand-text);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}
.btn-confirm-submit:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}
.btn-confirm-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ANIMASI PEMBAYARAN PROSES */
.pay-process-animation-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 2px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.pay-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--brand);
  animation: payPulse 1.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  opacity: 0.8;
}
.pay-pulse-ring.delay {
  animation-delay: 0.65s;
}
@keyframes payPulse {
  0% { transform: scale(0.65); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.pay-process-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
}

/* INVOICE ENHANCEMENTS: COPY ORDER & DOWNLOAD QRIS */
.order-no-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-input);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border);
  margin-bottom: 12px;
  max-width: 100%;
}
.order-no-text {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
  user-select: all;
}
.btn-copy-order {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-copy-order:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}
.btn-copy-order:active {
  transform: scale(0.95);
}

.btn-download-qris {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0B1526;
  color: #38BDF8;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}
.btn-download-qris:hover {
  background: #38BDF8;
  color: #030712;
  border-color: #38BDF8;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}
.btn-download-qris:active {
  transform: scale(0.97);
}

