/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #1a0a2a;
  color: #fff;
  padding: 20px;
  line-height: 1.6;
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/chess_bg.jpg');
  background-size: cover;
  background-attachment: fixed;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: ##1a1a2a;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-top: 5px solid #00a8e8;
}

/* HEADER STYLES */
.header-game {
  text-align: center;
  margin-bottom: 30px;
}

.header-game img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.header-game h1 {
  color: #fff;
  margin-top: 10px;
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-game h1 span {
  background: #00a8e8;
  color: white;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}

/* FORM STYLES */
.form-section {
  margin-bottom: 25px;
}

.form-section h2 {
  color: #00a8e8;
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 1px solid #2a2a3a;
  padding-bottom: 8px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #ccc;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #2a2a3a;
  border-radius: 8px;
  background: #252535;
  color: #fff;
  font-size: 16px;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #00a8e8;
}

.input-group small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #777;
}


/* PRODUCT LIST STYLES */
.produk-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.produk-card {
  background: #252535;
  border: 2px solid #2a2a3a;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.produk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.produk-card.selected {
  border-color: #00a8e8;
  background: #2e2e3e;
}

.produk-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

.produk-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #fff;
}

.produk-card p {
  color: #00a8e8;
  font-weight: bold;
}

.produk-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FC3;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}

/* PAYMENT TABS */
.payment-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-button {
  background: #252535;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tab-button.active {
  background: #00a8e8;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* PAYMENT METHODS */
.card-payment-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.card-payment {
  background: #252535;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-payment input {
  display: none;
}

.card-payment img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.card-payment span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #f0f0f0;
}

.card-payment:hover {
  border-color: #3a3a4a;
  transform: translateY(-3px);
}

.card-payment:hover img {
  transform: scale(1.1);
}

.card-payment input:checked + img {
  border: 2px solid #00a8e8;
  border-radius: 50%;
  padding: 2px;
}

.card-payment input:checked ~ span {
  color: #00a8e8;
}

/* SUMMARY BOX */
.summary-box {
  background: #252535;
  border-radius: 10px;
  padding: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #c0c8d8;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #3a3a4a;
  font-weight: bold;
  color: #fff;
}

#totalPayment {
  color: #fff;
  font-size: 18px;
}

/* CHECKOUT BUTTON */
.checkout-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(to right, #00a8e8, #0095d9);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-btn:hover {
  background: linear-gradient(to right, #0095d9, #0082c8);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 168, 232, 0.3);
}

.button-price {
  font-weight: bold;
  font-size: 16px;
}

/* SECURITY BADGES */
.security-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #c0c8d8;
}

.badge img {
  width: 16px;
  height: 16px;
}

/* RESPONSIVE STYLES */
@media (max-width: 480px) {
  .produk-list {
    grid-template-columns: 1fr;
  }
  
  .card-payment-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body {
    padding: 10px;
    background-attachment: scroll;
  }
  
  .container {
    padding: 15px;
  }
}