/* ============================================================
   GameTopUp – Custom CSS (black / gold luxury theme)
   ============================================================ */

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Noto Sans Thai', 'Segoe UI', sans-serif;
}

/* ---------- Gold text gradient ---------- */
.gold-text {
  background: linear-gradient(135deg, #d4af37 0%, #f5e27a 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Gold glow ---------- */
.gold-glow {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4),
              0 0 30px rgba(212, 175, 55, 0.2);
}

/* ---------- Gold button ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  background: linear-gradient(135deg, #d4af37 0%, #f5e27a 50%, #b8962e 100%);
  color: #0a0a0a;
  text-decoration: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f5e27a 0%, #d4af37 50%, #f5e27a 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}
.btn-gold:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Dark card ---------- */
.card-dark {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.card-dark:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-pending    { background: rgba(234,179,8,0.2);   color: #fbbf24; border: 1px solid rgba(234,179,8,0.4); }
.status-paid       { background: rgba(59,130,246,0.2);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.4); }
.status-processing { background: rgba(168,85,247,0.2);  color: #c084fc; border: 1px solid rgba(168,85,247,0.4); }
.status-completed  { background: rgba(34,197,94,0.2);   color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.status-rejected   { background: rgba(239,68,68,0.2);   color: #f87171; border: 1px solid rgba(239,68,68,0.4); }

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #f5e27a; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.shimmer {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

/* ---------- Form inputs ---------- */
.form-input {
  width: 100%;
  background-color: #111111;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.form-input::placeholder {
  color: #555;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 0.35rem;
}

/* ---------- Game cards ---------- */
.game-card {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: #d4af37;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.game-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* ---------- Package cards ---------- */
.package-card {
  background-color: #111;
  border: 2px solid #2a2a2a;
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.package-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background-color: #161616;
}
.package-card.selected {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.06);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* ---------- Toast notifications ---------- */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 340px;
}
.toast {
  padding: 0.8rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.3s ease;
}
.toast-success { background: #052e16; border: 1px solid #166534; color: #4ade80; }
.toast-error   { background: #3b0a0a; border: 1px solid #991b1b; color: #f87171; }
.toast-info    { background: #1e3a5f; border: 1px solid #1e40af; color: #60a5fa; }
.toast-warning { background: #3b2500; border: 1px solid #92400e; color: #fbbf24; }

/* ---------- Modal overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  animation: fadeInUp 0.25s ease;
}

/* ---------- QR wrapper ---------- */
.qr-wrapper {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  display: inline-block;
}
.qr-wrapper canvas,
.qr-wrapper img { display: block; }

/* ---------- Slip upload area ---------- */
.upload-area {
  border: 2px dashed #2a2a2a;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s ease;
  cursor: pointer;
}
.upload-area:hover,
.upload-area.dragover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.04);
}

/* ---------- Step indicator ---------- */
.step-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f5e27a);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Stat card ---------- */
.stat-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s ease;
}
.stat-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}
