html,
body,
button,
input,
select,
textarea,
.form-control,
.btn,
.navbar,
.dropdown-menu,
.card,
.modal,
h1, h2, h3, h4, h5, h6 {
  font-family: "Prompt", sans-serif;
}

body {
  width: 100%;
  height: 100vh;
  background-image: url('img/bg.png');
  background-size: cover;
}

.form-check {
    position: relative;
    display: block;
    padding-left: 0rem !important;
}

.navbhar {
  cursor: pointer !important;
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  cursor: pointer !important;
}

.dropdown-toggle {
  cursor: pointer !important;
}

.dropdown-item {
  cursor: pointer !important;
}

.offline {
  color: red;
}

.online {
  color: green;
}

.bank-info {
	font-size:18px;
}
.bank-info p {
	line-height: unset;
    margin: 0;
}
.custom-file-uploader {
	position: relative;
}
.custom-file-uploader input[type=file] {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: default;
}
.col-centered {
	float: none;
    margin: 0 auto;
}
.overlay-loading {
	display: none;
	position: fixed;
	top: 0;
	background: rgb(0 0 0 / 50%);
	width: 100%;
	height: 100%;
	z-index: 1000;
}
.spanner{
  position:absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display:block;
  text-align:center;
  height: 300px;
  color: #FFF;
  transform: translateY(-50%);
  z-index: 1000;
}
.text-loader {
	font-size:1.5em;
}
.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  color: #ffffff;
  font-size: 10px;
  margin: 80px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

/* ========== Modal PromptPay — ธีม slate + cyan (member.php) ========== */
.ppay-modal .modal-dialog {
  max-width: 680px;
}

.ppay-modal__shell {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 25px 60px rgba(15, 23, 42, 0.45),
    0 0 80px rgba(6, 182, 212, 0.08);
  background: #0f172a;
}

.ppay-modal__head {
  background: linear-gradient(125deg, #020617 0%, #0f172a 38%, #0c4a6e 100%);
  color: #f8fafc;
  padding: 1.35rem 1.5rem 1.25rem;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(34, 211, 238, 0.35);
}

.ppay-modal__head::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #22d3ee, #818cf8, #22d3ee);
  opacity: 0.95;
}

.ppay-modal__head .modal-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
}

.ppay-modal__head .modal-title .fa {
  color: #22d3ee;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.ppay-modal__subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 400;
}

.ppay-modal__close {
  opacity: 0.75;
  text-shadow: none;
  font-size: 1.5rem;
  margin: -0.25rem -0.25rem 0 0;
}
.ppay-modal__close:hover {
  opacity: 1;
  color: #22d3ee !important;
}

.ppay-modal__body {
  padding: 1.5rem 1.5rem 1.15rem;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 211, 238, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #ffffff 100%);
}

.ppay-modal__notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem 0.85rem 0.95rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #334155;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-left: 4px solid #0ea5e9;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.1);
}
.ppay-modal__notice .fa {
  margin-top: 0.1rem;
  color: #0284c7;
  font-size: 1.1rem;
}

.ppay-modal__pick {
  background: #fff;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ppay-modal__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.ppay-modal__select {
  border-radius: 10px;
  border: 1px solid #94a3b8;
  padding: 0.55rem 0.85rem;
  height: auto;
}
.ppay-modal__btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #6366f1 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.ppay-modal__btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}
.ppay-modal__loading {
  padding: 2.25rem 1rem;
}
.ppay-modal__spinner {
  color: #0891b2;
}
.ppay-modal__qr-step {
  margin-top: 0.25rem;
}

/* เลย์เอาต์ขั้น QR: แนวตั้ง — QR บนสุด → แถบยอด+เวลา → รายการ Ref/พร้อมเพย์ → คำเตือน */
.ppay-step-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ppay-qr-hero {
  text-align: center;
}

.ppay-qr-frame--hero {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 1rem 1rem 1.2rem;
}

.ppay-qr-frame--hero::before {
  top: 2.85rem;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
}

.ppay-qr-frame--hero .ppay-qr-frame__img {
  max-width: 280px;
}

.ppay-amount-timer-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: start;
}

.ppay-amount-hero--band {
  margin: 0;
  padding: 0.55rem 1rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
  width: 100%;
  box-sizing: border-box;
}

.ppay-amount-hero--band .ppay-amount-hero__label {
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.ppay-amount-hero--band .ppay-amount-hero__num {
  font-size: 1.28rem;
  line-height: 1.15;
}

.ppay-amount-hero--band .ppay-amount-hero__currency {
  font-size: 1.05rem;
}

.ppay-amount-hero--band .ppay-amount-hero__unit {
  font-size: 0.82rem;
}

.ppay-timer-pill--band {
  margin-top: 0;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-radius: 0;
  padding: 0.5rem 0.85rem 0.55rem;
  gap: 0.15rem;
  width: 100%;
  box-sizing: border-box;
}

.ppay-timer-pill--band .ppay-timer-pill__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ppay-timer-pill--band .ppay-timer-pill__time {
  font-size: 1.28rem;
  line-height: 1.1;
}

.ppay-meta-list {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ppay-meta-list__item {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.ppay-meta-list__item:last-child {
  border-bottom: none;
}

.ppay-meta-list__k {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.ppay-meta-list__v {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  word-break: break-all;
}

.ppay-meta-list__v--mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.ppay-modal__warn--inline {
  margin-top: 0.25rem;
}

.ppay-info-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}
.ppay-info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #22d3ee, #6366f1);
  border-radius: 4px 0 0 4px;
}

.ppay-info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.ppay-info-card__row--muted {
  padding-top: 0.5rem;
  margin-bottom: 0;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.82rem;
}
.ppay-info-card__k {
  color: #64748b;
  font-weight: 500;
}
.ppay-info-card__v {
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
  text-align: right;
}

.ppay-amount-hero {
  margin: 1rem 0 1.1rem;
  padding: 1.15rem 1rem;
  text-align: center;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #0c4a6e 100%);
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.35);
}
.ppay-amount-hero__label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}
.ppay-amount-hero__num {
  font-size: 2rem;
  font-weight: 800;
  color: #22d3ee;
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}
.ppay-amount-hero__currency {
  font-size: 1.35rem;
  font-weight: 600;
  color: #67e8f9;
  margin-right: 0.15rem;
}
.ppay-amount-hero__unit {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 0.25rem;
}

.ppay-modal__warn {
  font-size: 0.8rem;
  color: #fecaca;
  background: linear-gradient(90deg, #450a0a 0%, #7f1d1d 100%);
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0;
}
.ppay-modal__warn .fa {
  margin-right: 0.35rem;
  color: #fca5a5;
}

.ppay-timer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #94a3b8;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ppay-timer-pill__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
}
.ppay-timer-pill__time {
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #c2410c;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ชนค่า .ppay-timer-pill { border-radius: 999px } ที่ประกาศทีหลังในไฟล์ */
.ppay-timer-pill.ppay-timer-pill--band {
  border-radius: 0;
}

.ppay-qr-frame {
  background: #fff;
  border-radius: 20px;
  padding: 1.15rem 1.15rem 1.35rem;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.15),
    0 12px 40px rgba(15, 23, 42, 0.12);
  display: inline-block;
  max-width: 100%;
  position: relative;
}
.ppay-qr-frame::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  top: 3.1rem;
  border: 2px dashed rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  pointer-events: none;
}
.ppay-qr-frame__cap {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}
.ppay-qr-frame__img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  vertical-align: middle;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.ppay-modal__alert {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 0.9rem;
}

.ppay-modal__foot {
  padding: 1.15rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-top: 1px solid #cbd5e1 !important;
  gap: 0.75rem;
}
.ppay-modal__btn-outline {
  border-radius: 12px;
  border: 2px solid #94a3b8;
  color: #334155;
  background: #fff;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
}
.ppay-modal__btn-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #64748b;
}
.ppay-modal__btn-success {
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}
.ppay-modal__btn-success:hover {
  color: #fff;
  filter: brightness(1.06);
}

@media (max-width: 767px) {
  .ppay-amount-hero__num {
    font-size: 1.65rem;
  }
  .ppay-modal__shell {
    border-radius: 0;
  }
  .ppay-amount-timer-band {
    grid-template-columns: 1fr;
  }
}

/* โบนัสพ้อยตามยอดสะสม (member.php) */
.bonus-cumulative-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.1));
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  color: #0f172a;
}
.bonus-cumulative-banner__text {
  font-weight: 500;
}
.tier-points-cell {
  min-width: 8.5rem;
}
.tier-points-total {
  font-weight: 600;
  font-size: 1.08rem;
  color: #14532d;
  letter-spacing: 0.02em;
}
.tier-points-unit {
  font-weight: 500;
  font-size: 0.88rem;
  color: #334155;
}
.tier-points-breakdown {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}
.tier-points-badge {
  display: inline-block;
  margin-left: 0.1rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  font-weight: 600;
  font-size: 0.76rem;
}

/* ========== wallpaper เต็มจอ (index.php, member.php) ========== */
body.login-page,
body.member-page {
  margin: 0;
  min-height: 100vh;
  background: #1a1a1a;
  position: relative;
  overflow-x: hidden;
  background-image: none;
}

body.login-page {
  color: #0f172a;
}

.login-page__bg,
.member-page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.login-page__bg::before,
.member-page__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2a2a2a url("../img/wallpaper.jpg") center / cover no-repeat;
}

.login-page__bg::after,
.member-page__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.member-page__content {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
  box-sizing: border-box;
}

/* หัวการ์ด member — ข้อมูลการเติมเงิน / บัญชีผู้เล่น */
.member-page__card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.1);
}

.member-page__header {
  padding: 0 !important;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 35%, #f8fafc 100%);
  border-bottom: 1px solid rgba(45, 212, 191, 0.35) !important;
}

.member-page__header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.4rem;
  text-align: left;
}

.member-page__header-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.member-page__header-copy {
  min-width: 0;
}

.member-page__header-title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.member-page__header-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.member-page__header-label {
  color: #64748b;
  font-weight: 500;
}

.member-page__header-id {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f766e;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 999px;
  letter-spacing: 0.02em;
  max-width: 100%;
  word-break: break-all;
}

@media (max-width: 480px) {
  .member-page__header-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.15rem 1.1rem 1.2rem;
  }

  .member-page__header-copy {
    text-align: center;
  }

  .member-page__header-meta {
    justify-content: center;
  }

  .member-page__header-title {
    font-size: 1.1rem;
  }
}

/* ========== หน้าเข้าสู่ระบบ (index.php) ========== */

.login-page__main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}

.login-page__panel {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  animation: login-panel-in 0.55s ease-out both;
}

@keyframes login-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-page__brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-page__logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ecfdf5 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  color: #0d9488;
  font-size: 1.5rem;
}

.login-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
}

.login-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.login-page__lead {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.45;
}

.login-page__fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.login-page__field {
  margin: 0;
}

.login-page__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.login-page__control {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-page__control:focus-within {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.login-page__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 1rem;
}

.login-page__input.form-control {
  border: none;
  background: transparent;
  color: #0f172a;
  height: auto;
  min-height: 48px;
  padding: 0.65rem 0.85rem 0.65rem 0;
  font-size: 0.95rem;
  border-radius: 0 12px 12px 0;
  box-shadow: none;
}

.login-page__input.form-control::placeholder {
  color: #94a3b8;
}

.login-page__input.form-control:focus {
  background: transparent;
  color: #0f172a;
  box-shadow: none;
}

.login-page__actions {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

.login-page__submit.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 48%, #0d9488 100%);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-page__submit.btn:hover {
  color: #0f172a;
  filter: brightness(1.05);
  box-shadow: 0 6px 28px rgba(20, 184, 166, 0.45);
}

.login-page__submit.btn:active {
  transform: translateY(1px);
}

@media (max-width: 480px) {
  .login-page__panel {
    padding: 1.75rem 1.35rem 1.5rem;
    border-radius: 16px;
  }

  .login-page__title {
    font-size: 1.45rem;
  }
}

/* ========== บล็อกเติม PromptPay บน member.php ========== */
.ppay-topup-card-footer {
  background: transparent !important;
  border-top: none !important;
  padding: 1rem 1rem 1.25rem !important;
}

.ppay-topup-panel {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 38%, #ffffff 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.ppay-topup-panel__head {
  padding: 1.15rem 1.35rem 1rem;
  background: linear-gradient(120deg, #0f766e 0%, #0d9488 42%, #0891b2 100%);
  position: relative;
}

.ppay-topup-panel__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  opacity: 0.6;
}

.ppay-topup-panel__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ppay-topup-panel__table-wrap {
  padding: 0.75rem 1rem 0.25rem;
  overflow-x: auto;
}

.ppay-topup-table {
  border-collapse: separate;
  border-spacing: 0 8px;
  width: 100%;
  margin: 0;
}

.ppay-topup-table thead th {
  border: none !important;
  padding: 0.75rem 0.65rem !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: transparent;
  border-bottom: 2px solid #e2e8f0 !important;
}

.ppay-topup-table tbody tr {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.ppay-topup-table tbody td {
  border: none !important;
  padding: 0.85rem 0.65rem !important;
  vertical-align: middle !important;
  background: #fff;
  font-size: 0.95rem;
  color: #0f172a;
}

.ppay-topup-table tbody td:first-child {
  border-radius: 12px 0 0 12px;
  font-weight: 600;
  color: #334155;
}

.ppay-topup-table tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.ppay-topup-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.ppay-topup-table .tier-points-total {
  color: #0f766e;
  font-weight: 700;
}

.ppay-topup-table .tier-points-unit {
  color: #64748b;
  font-weight: 600;
}

.ppay-topup-table .tier-points-breakdown {
  color: #64748b;
}

.ppay-topup-table .tier-points-badge {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  border: 1px solid #a7f3d0;
}

.ppay-topup-btn.btn {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem !important;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ppay-topup-btn.btn:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.ppay-topup-btn.btn:active {
  transform: translateY(1px);
}

.ppay-topup-hint {
  margin: 0.85rem 1.25rem 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.ppay-topup-hint strong {
  color: #0f766e;
}

.ppay-topup-notice {
  margin: 0 !important;
  padding: 0.85rem 1.15rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fff;
  text-align: left;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 48%, #991b1b 100%);
  border: none;
  position: relative;
}

.ppay-topup-notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 0 16px;
}

.ppay-topup-notice__text {
  display: block;
  padding-left: 0.35rem;
}

@media (max-width: 480px) {
  .ppay-topup-panel__title {
    font-size: 1.05rem;
  }

  .ppay-topup-table thead th {
    font-size: 0.65rem;
    padding: 0.55rem 0.35rem !important;
  }

  .ppay-topup-table tbody td {
    padding: 0.65rem 0.4rem !important;
    font-size: 0.88rem;
  }

  .ppay-topup-btn.btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem !important;
  }
}