/* Reset dan font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Wrapper utama */
.main-wrapper {
  background: rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  animation: fadeIn 1s ease-in-out;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 25px;
}
header h1 {
  font-size: 2em;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
header p {
  font-size: 0.9em;
  opacity: 0.9;
}

/* Panel selection (radio input) */
.panel-selection {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}
.radio-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}
.radio-input * {
  box-sizing: border-box;
}
.radio-input .label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  width: 220px;
  height: 50px;
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.radio-input .label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 45px;
  z-index: -1;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.radio-input .label:hover::before {
  background-color: #2a2e3c;
  transition: all 0.2s ease;
}
.radio-input .label:has(input:checked)::before {
  background-color: #2d3750;
  border-color: #435dd8;
  height: 50px;
}
.radio-input .label .text {
  color: #fff;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.radio-input .label .price {
  font-weight: bold;
}

/* Styling radio button */
.radio-input .label input[type="radio"] {
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: #202030;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radio-input .label input[type="radio"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  transform: scale(0);
  transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.radio-input .label input[type="radio"]:checked {
  background-color: #435dd8;
  animation: pulse 0.7s forwards;
}
.radio-input .label input[type="radio"]:checked::before {
  transform: scale(1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255,255,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

/* Tombol BUY */
footer {
  text-align: center;
}
.btn {
  padding: 12px 30px;
  font-size: 1em;
  color: #1e3c72;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Animasi fadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}