/* ==========================================================================
   Gamers Arena Dark Theme — Top-Up Detail Page
   Adapted from GA dark/frontend/topUp/details.blade.php
   ========================================================================== */

/* --- CSS Variables (GA Dark palette) --- */
:root {
  --ga-bg1: #151219;
  --ga-bg2: #1e1a22;
  --ga-bg3: #2b262f;
  --ga-primary: 255, 84, 62;
  --ga-white: 255, 255, 255;
  --ga-border: rgba(255, 255, 255, 0.08);
  --ga-transition: 0.3s ease;
}

/* --- Banner Section --- */
.banner-section {
  position: relative;
  padding-top: 30px;
  padding-bottom: 20px;
  z-index: 0;
}
.banner-section .img-box {
  max-width: 300px;
}
.banner-section .img-box img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}
.banner-section .text-box {
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
}
.banner-section .text-box .title {
  color: rgb(var(--ga-white));
  font-size: 1.6rem;
  font-weight: 700;
}
.banner-section .text-box .region {
  color: rgba(var(--ga-white), 0.7);
  font-size: 0.9rem;
}
.banner-section .text-box .region i {
  margin-right: 6px;
}

@media (min-width: 768px) {
  .banner-section .img-box {
    margin-bottom: -50px;
  }
}
@media (max-width: 575px) {
  .banner-section .img-box {
    max-width: 200px;
  }
}

/* --- Note Box --- */
.note-box {
  display: flex;
  gap: 15px;
}
.note-box .icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: rgb(var(--ga-primary));
  background-color: var(--ga-bg3);
  width: 35px;
  min-width: 35px;
  height: 35px;
  border-radius: 5px;
}
.note-box .text-box h6 {
  color: rgb(var(--ga-white));
}
.note-box .text-box p {
  color: rgba(var(--ga-white), 0.7);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- Product Details Section --- */
.product-details-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* --- Product Box 2 (Service / Variant Card) --- */
.product-box2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background-color: var(--ga-bg3);
  overflow: hidden;
  transition: var(--ga-transition);
  border: 1px solid var(--ga-border);
  outline: 1px solid transparent;
  height: 100%;
  padding: 14px 16px;
  cursor: pointer;
  text-decoration: none;
  color: rgba(var(--ga-white), 0.85);
}
.product-box2:hover {
  color: rgb(var(--ga-white));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.product-box2.active,
.product-box2.selected {
  background-color: rgba(var(--ga-primary), 0.1);
  border: 1px solid rgb(var(--ga-primary));
  outline: 1px solid rgb(var(--ga-primary));
}
.product-box2 .left-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.product-box2 .text-box {
  font-size: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.product-box2 .text-box .title {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgb(var(--ga-white));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-box2 .right-side {
  text-align: right;
  white-space: nowrap;
}
.product-box2 .price {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.product-box2 .price .promo-price {
  font-weight: 700;
  font-size: 1rem;
  color: rgb(var(--ga-primary));
}

/* --- Step Header (Pilih Nominal / Pilih Pembayaran) --- */
.ga-step-header {
  display: flex;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.ga-step-number {
  background: rgb(var(--ga-primary));
  color: #fff;
  font-weight: bold;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  font-size: 1.1rem;
}
.ga-step-number.completed {
  background: #10B981;
}
.ga-step-text {
  flex: 1;
  background: var(--ga-bg3);
  color: rgb(var(--ga-white));
  font-weight: 600;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

/* --- Variant Grid --- */
.ga-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0;
}

/* --- Payment List Grid --- */
.ga-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* --- Summary Alert --- */
.ga-summary {
  background-color: rgba(var(--ga-primary), 0.08);
  border: 1px solid rgba(var(--ga-primary), 0.25);
  color: rgb(var(--ga-white));
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1rem;
}
.ga-summary small {
  font-weight: 400;
  color: rgba(var(--ga-white), 0.7);
}

/* --- Sidebar Card (product image card) --- */
.ga-product-card {
  background-color: var(--ga-bg2);
  border: 1px solid var(--ga-border);
  border-radius: 16px;
  overflow: hidden;
}
.ga-product-card img.ga-product-img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
  border-radius: 16px 16px 0 0;
}
.ga-product-card .ga-product-desc {
  padding: 16px;
  color: rgba(var(--ga-white), 0.8);
  font-size: 0.85rem;
  line-height: 1.6;
}
.ga-product-card .ga-product-guide {
  margin: 0 16px 16px;
  padding: 16px;
  background-color: var(--ga-bg3);
  border-radius: 8px;
}

/* --- Info Bar --- */
.ga-info-bar {
  background: linear-gradient(135deg, var(--ga-bg3), #3a323f);
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 16px;
  margin-bottom: 16px;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: unset !important;
  padding: 12px 16px;
  background-color: #25d366;
  color: white;
  font-size: 16px;
  white-space: nowrap;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(93, 93, 93, 0.15);
}

/* --- Section Card Wrapper --- */
.ga-section-card {
  background-color: var(--ga-bg2);
  border: 1px solid var(--ga-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.ga-section-card .ga-section-body {
  padding: 1rem;
}

/* --- Phone Input Row --- */
.ga-attribute-row {
  display: none;
}
.ga-attribute-row.show {
  display: flex !important;
}

/* --- Misc / small text --- */
.ga-hint {
  color: rgba(var(--ga-white), 0.5);
  font-size: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .ga-variant-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
  }
  .ga-payment-grid {
    grid-template-columns: 1fr !important;
  }
  .banner-section .img-box {
    max-width: 160px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .product-details-section {
    padding-top: 16px;
  }
}

/* --- Cara Top-Up: step badge & icon utilities --- */
.step-badge {
  width: 30px;
  height: 30px;
  min-width: 30px;
}
.icon-xs {
  font-size: 0.7rem;
}
