* {
  box-sizing: border-box;
}
.diamondpic {
  width: 10%;
  height: auto;
}

body {
  color: white;
  font-family: 'Noto Sans Lao', 'Kanit', sans-serif;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(270deg, #1a1a2e, #0f3460, #16213e);
  background-size: 600% 600%;
  animation: bg-move 12s ease infinite;
  padding-bottom:90px;
}


img {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.package {
  background-color: #16213e;
  border: 1px solid #00d9ff;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
input[type="radio"]
{display: none;}
.package:hover {
  box-shadow: 0 0 12px #00d9ff;
  transform: translateY(-2px);
}

.package:has(input:checked) {
  background-color: #00d9ff;
  color: black;
  font-weight: bold;
}
input[type="text"],
input[type="number"] {
  width: 100%;
  background-color: #16213e;
  border: 1px solid #00d9ff;
  border-radius: 8px;
  padding: 10px;
  color: white;
}

button {
  width: 100%;
  background-color: #00d9ff;
  color: black;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  box-shadow: 0 0 12px #00d9ff;
}
.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.game-card {
  background-color: #16213e;
  border: 1px solid #00d9ff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.2s;
  overflow: hidden;
  animation: pop-in 0.4s ease;
}

.game-card:hover {
  box-shadow: 0 0 12px #00d9ff;
  transform: translateY(-2px);
}

.game-card img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}

@keyframes bg-move {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1 {
  text-shadow: 0 0 12px #00d9ff;
}


.game-card:nth-child(2) {
  animation-delay: 0.15s;
  animation-fill-mode: backwards;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


.game-card:hover img {
  transform: scale(1.08);
}
.title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  text-shadow: 0 0 12px #00d9ff;
}
.order-card {
  background-color: #16213e;
  border: 1px solid #00d9ff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}
.text {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.sticky-bar{
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width:100%;
  max-width: 2000px;
  background-color: #16213e;
  border-top: 1px solid #00d9ff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap:10px;
}
.sticky-bar button{
  width:auto;
  margin-top:0;
}
#chosen-info{
  flex:1;
}
.badge{
  display : block;
  background : #ff9500;
  color: black;
  font-size:11px;
  border-radius: 4px;
  padding:2px 6px;
  margin-top: 6px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fade-in 0.2s ease;
}

.qr{
  width: 200px;
  border-radius: 8px;
}
#pay-amount{
  font-size: 24px;
  font-weight: bold;
  color:#00d9ff
}
.slip-btn1 {
  display: block;
  background: #25d366;
  color: black;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
}
.slip-btn2 {
  display: block;
  background: #0a7cff;
  color: black;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
}
.link-btn {
  width: auto;
  background: none;
  color: #00d9ff;
  text-decoration: underline;
  padding: 4px 0;
  font-size: 14px;
}
.modal-box {
  background: #0f3460;
  border: 1px solid #00d9ff;
  border-radius: 0 0 12px 12px;
  padding: 20px 20px 70px 20px;
  width: 100%;
  max-width: 420px;
  animation: slide-up 0.2s ease;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.help-img {
  width: 100%;
  border-radius: 8px;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hl{
  color:red;
}
#modal-close{
    top: 10px;
    right: 10px;
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;
    line-height: 1;

    background: rgba(255,255,255,.15);
    border: none;
    color: #ff5a5a;
    font-size: 24px;
    cursor: pointer;
}
#modal-close:hover{
  background:#ff4d4d;
  color:rgb(245, 242, 242);
}
#slip-link1{
  position: fixed;
  bottom: 60px;
  background: #25d366;
  color: black;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  font-weight: bold;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  width:calc(100% - 40px);
  max-width: 420px;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.warn {
  color: #ff9500;
  font-size: 13px;
}
.hidden{
  display:none;
}
button,input{
  font-family: 'Noto Sans Lao', 'Kanit', sans-serif;
}