@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Sarabun', sans-serif;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.wrapper {
  background: #ffffff;
  width: 320px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.wrapper:hover {
  transform: translateY(-4px);
}

.bgphoto {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  height: 110px;
  position: relative;
  margin-bottom: 75px;
}

/* Glass shine overlay */
.bgphoto::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
}

.imgProfile {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid #ffffff;
  border-radius: 50%; 
  width: 110px;
  height: 110px;
  object-fit: cover;
  background-color: #f8fafc;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 10px 0 4px 0;
  padding: 0 20px;
}

h2 {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 16px 0;
  padding: 0 20px;
}

/* Category Badge Container */
.categoryA {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: #2563eb;
  font-weight: 600;
  background: #eff6ff;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 0 20px 20px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ticket divider (dotted line) */
.ticket-divider {
  border-top: 2px dotted #cbd5e1;
  margin: 20px;
  position: relative;
}

/* Ticket punch holes */
.ticket-divider::before,
.ticket-divider::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 14px;
  height: 14px;
  background: #cbd5e1;
  border-radius: 50%;
}
.ticket-divider::before {
  left: -28px;
}
.ticket-divider::after {
  right: -28px;
}

/* QR Code & Barcode scanners */
.qrcode {
  margin: 15px auto;
  display: flex;
  justify-content: center;
}
.qrcode img {
  max-width: 115px;
  height: auto;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.barcode {
  margin: 10px auto 20px auto;
  display: flex;
  justify-content: center;
}
.barcode img {
  max-width: 80%;
  height: auto;
}

/* Match footer details */
.macth {
  background-color: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 16px 20px;
  margin-top: 10px;
}

.macth h4 {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.macth span { 
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.copyR {
  font-size: 9px;
  color: #94a3b8;
  padding: 8px 0 16px 0;
  background-color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.5px;
}
