/* ===== THEME HELPERS ===== */
.section {
  animation: fade .22s ease-out;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.card {
  background: linear-gradient(180deg, #ffffffcc, #ffffffb0);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(2, 8, 23, .08);
  padding: 16px;
}

.card.glass {
  backdrop-filter: saturate(1.2) blur(4px);
  background: linear-gradient(180deg, #ffffffcc, #fff7ffcc);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: .2px;
}

/* Inputs (統一หน้าตา) */
.input {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #f6f7ff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .2s;
  font-size: 15px;
  margin-bottom: .75rem;
}

.input:hover {
  background: #eef2ff;
}

.input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}

/* Pills & Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .06s ease, box-shadow .2s ease, filter .15s;
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(2, 8, 23, .08);
}

.btn-wide {
  width: 100%;
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-weight: 700;
}

.btn-indigo {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  color: #fff;
}

.btn-green {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
}

.btn-rose {
  background: linear-gradient(180deg, #fb7185, #f43f5e);
  color: #fff;
}

.btn-amber {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #111827;
}

.btn-indigo:hover,
.btn-green:hover,
.btn-rose:hover,
.btn-amber:hover {
  filter: brightness(1.05);
}

/* ===== Member Card (from your original; kept, with minor polish) ===== */
.card-container {
  width: 320px;
  /* ปรับได้ 300–360 */
  height: 480px;
  /* อัตราส่วน 2:3 */
  margin-inline: auto;
  perspective: 1000px;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s;
  will-change: transform;
}

.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.card-back {
  transform: rotateY(180deg);
}

/* QR size control */
#qrCodeContainer {
  width: 180px;
  height: 180px;
}

#qrCodeContainer img,
#qrCodeContainer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  image-rendering: pixelated;
}