.main-hero {
  background: url('../img/bg1.png') no-repeat center/cover;
  border-radius: 0px; /* ถ้าต้องการขอบมน */
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 46px 24px 14px 24px;
  gap: 48px;
  background-color: #0f2b46; /* หรือพื้นหลังที่คุณใช้ */
  color: white;
}
.hero-left {
  flex: 1.3;
  min-width: 350px;
}
.info-sec{
  color: green;
}
.hero-title {
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 18px;
  margin-top: 12px;
  color: #ffffff;
  line-height: 1.2;
}
.highlight-green {
  color: #3cb371;
}
.hero-desc {
  font-size: 1.06rem;
  margin-bottom: 14px;
  color: #ffffff;
}
.hero-desc .link {
  color: #18b03c;
}
.hero-countries {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 10px;
  word-wrap: break-word; /* ถ้ายาวเกินให้ตัดเอง */
  white-space: nowrap;     /* ไม่ตัดบรรทัด */
}
.hero-extra-btn {
  position: absolute;
  top: 100px;    /* ปรับค่าตามตำแหน่งจริง */
  right: 750px;  /* ปรับค่าตามตำแหน่งจริง */
  z-index: 5;
  display: block;
}

.hero-extra-btn img {
  width: 220px;   /* ขนาดปุ่ม */
  height: auto;
}

@media (max-width: 768px){
  .hero-extra-btn {
    position: static;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
  }
}

.hero-img {
  width: 330px;
  border-radius: 15px;
  box-shadow: 0 2px 22px #00336620;
}
.info-title {
  display: flex;
  align-items: center;
  font-size: 1.22rem;
  font-weight: bold;
  color: #21406a;
  margin-bottom: 14px;
  gap: 10px;
}
.info-icon {
  width: 34px;
}
.info-main {
  display: flex;
  gap: 36px;
}
.info-desc {
  flex: 2.1;
  font-size: 1.03rem;
  color: #162032;
  line-height: 1.7;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f6f8fb;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 1.01rem;
  color: #1a5a1a;
  box-shadow: 0 1px 5px #58ebc313;
}
.info-profile{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f3f4f5;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 1.2rem;
  color: #061b53;
  box-shadow: 0 1px 5px #00000013;
}
.profile{
  width: 35px;
  margin-top: -5px;
}
.double-down{
  width: 20px;
  margin-top: 5px;
}
.login-icon{
width: 22px;
height: 22px;
flex-shrink: 0;
}
.icon{
  width: 20px;
  margin-top: 5px;
}
.check-icon1 {
  width: 40px;
  margin-top: 40px;
}
.check-icon2 {
  width: 40px;
  margin-top: 15px;
}
.check-icon3 {
  width: 40px;
  margin-top: 15px;
}
.check-icon4 {
  width: 40px;
  margin-top: 14px;
}
.check-icon5 {
  width: 40px;
  margin-top: 3px;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  text-align: center;
  line-height: 80px;
  pointer-events: none;
}
.play-btn:hover {
  background-color: #f5f5f5;
  transform: scale(1.05);
}

.video-caption {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

.stats-contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 0 24px;
  gap: 38px;
}
.stats {
  flex: 1;
  min-width: 210px;
}
.stats-title {
  font-size: 1.13rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.stat-item {
  font-size: 0.97rem;
  margin-bottom: 5px;
  color: #162032;
}
.stat-link {
  color: #3cb371;
  font-weight: bold;
}

.contact {
  flex: 1;
  min-width: 210px;
}
.contact-title {
  font-size: 1.13rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.qr-code {
  margin-top: 4px;
  border-radius: 7px;
  box-shadow: 0 1px 6px #00336622;
}

.footer {
  background: #fff;
  border-top: 1px solid #e3e8ef;
  padding: 30px 0 12px 0;
  margin-top: 34px;
  text-align: center;
  font-size: 0.98rem;
  color: #888;
}

.modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1090;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 18, 23, 0.82);
  width: 100vw; height: 100vh;
}
.login-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #183964;
  border-radius: 20px;
  box-shadow: 0 6px 40px #0005;
  padding: 36px 36px 22px 36px;
  width: 360px;
  min-width: 320px;
  color: #fff;
  font-family: 'Prompt', sans-serif;
  animation: modalIn 0.15s;
  
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -60%);}
  to { opacity: 1; transform: translate(-50%, -50%);}
}
.close-btn {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none;
  font-size: 2rem; color: #fff; cursor: pointer;
  z-index: 1200; padding: 0;
}
.login-modal-title { font-size: 2rem; font-weight: bold; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; align-items: center;}
.login-input {
  width: 100%; padding: 14px 12px; border-radius: 9px;
  border: 2px solid #5c7893; background: #284d73;
  color: #fff; font-size: 1.15rem; font-family: inherit;
  outline: none; transition: border 0.15s;
}
.login-input:focus { border-color: #5ee7df; }
.login-submit-btn {
  margin-top: 8px; width: 100%; padding: 13px 0; border-radius: 9px;
  background: #112947; font-size: 1.15rem; font-weight: bold;
  color: #fff; border: none; cursor: pointer; transition: background 0.18s;
  font-family: 'Prompt', sans-serif;
}
.login-submit-btn:hover { background: #1b335a; }
.login-modal-links {
  display: flex; justify-content: space-between; gap: 22px; margin: 10px 0 0 0;
}
.login-link {
  color: #fff; font-weight: bold; font-size: 1.04rem; text-decoration: none;
  transition: color 0.15s;
}
.login-link:hover { color: #5ee7df; text-decoration: underline; }
.login-modal-note {
  margin-top: 18px; font-size: 0.97rem; color: #a7f3c5; background: none;
  border-radius: 7px; padding: 0;
}
.note-title { display: block; font-weight: bold; color: #5ee7df; margin-bottom: 3px; }
/* Modal show/hide */
#loginModal.active, #loginModalBackdrop.active { display: block; }
/* Responsive */
@media (max-width: 440px) {
  .login-modal { width: 98vw; min-width: 0; padding: 18px 6vw 20px 6vw; }
}


.signup-button {
  position: absolute;
  bottom: 20px;
  right: 40px;
  background-color: white;
  color: #003366;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.25rem; 
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: 0.3s;
  
}

.signup-button:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}
.abtc-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abtc-banner-overlay {
  display: flex;
  width: 100%;
  height: 350px;
  margin-top: 30px;
  flex-direction: column;
  align-items: center;
  background-size: cover; 
  background-repeat: no-repeat;
  max-width: 100%; 
  justify-content: center;
  background-image: url('../img/Footerimg.png');
  
}

.abtc-banner-overlay h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 32px;
  text-align: center;
  
}

.abtc-btn {
  background: #e1cf91;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 18px 54px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Prompt', sans-serif;
}

.abtc-btn:hover {
  background: #d5bc6a;
}
/* ---------- Footer Base ---------- */
.abtc-footer{
  --ft-bg:#112947;
  --ft-fg:#ffffff;
  --ft-accent:#e1cf91;
  --ft-soft:rgba(255,255,255,.14);
  --ft-softText:rgba(255,255,255,.75);
  --ft-max:1200px;

  background:var(--ft-bg);
  color:var(--ft-fg);
  font-family:'Prompt',sans-serif;
}

.footer-inner{
  max-width:var(--ft-max);
  margin:0 auto;
  padding:40px 24px 16px;
}

/* ---------- Grid 3 คอลัมน์ + เส้นแบ่ง ---------- */
.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:32px;
  align-items:start;
}

.ft-col{
  min-width:0;
}
.footer-grid > .ft-col:not(:first-child){
  border-left:1px solid var(--ft-soft);
  padding-left:24px;
}

/* ---------- Typography ---------- */
.ft-title{
  margin:0 0 12px;
  font-size:1.25rem;
  font-weight:700;
  color:var(--ft-accent);
}

.ft-list{
  margin:0;
  padding-left:18px;
  line-height:1.75;
  color:var(--ft-softText);
}

.ft-center{
  text-align:center;
}

/* แบรนด์ + QR */
.ft-brand{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}
.brand-logo{
  width:28px;height:28px;object-fit:contain;
}

.ft-qr{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.ft-qr img{
  width:130px;height:130px;object-fit:cover;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
  background:#fff;
}
.qr-caption a{
  color:#9be3ff;
  text-decoration:none;
  font-weight:600;
}
.ft-links{
  margin-top:6px;
  color:var(--ft-softText);
}
.ft-links a{
  color:#9be3ff;
  text-decoration:none;
}
.ft-links .dot{ margin:0 8px; opacity:.6; }

/* ที่อยู่ + ปุ่มสโตร์ */
.ft-address{
  margin:0 0 14px;
  font-style:normal;
  line-height:1.7;
}
.ft-address a{
  color:var(--ft-softText);
  text-decoration:none;
}

.store-badges{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.store-badges img{
  height:44px;
  width:auto;
  display:block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

/* ---------- Bottom Bar ---------- */
.footer-bottom{
  margin-top:28px;
  padding-top:16px;
  border-top:1px solid var(--ft-soft);
  text-align:center;
  font-size:.95rem;
  color:var(--ft-softText);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > .ft-col:nth-child(3){
    border-left:none;
    padding-left:0;
    grid-column:1 / -1;      /* คอลัมน์ขวาลงเต็มแถว */
  }
  .ft-center{ text-align:left; }
}

@media (max-width: 680px){
  .footer-grid{
    grid-template-columns: 1fr;
    gap:22px;
  }
  .footer-grid > .ft-col{
    border-left:none;
    padding-left:0;
  }
  .ft-center{ text-align:center; }
  .store-badges{ align-items:center; }
}

.apec-card {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  color: white;
  text-decoration: none;
  
}

.apec-logo {
  width: 24px;
  height: 24px;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  
}

.qr-code {
  width: 110px;
  height: 110px;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.qr-label {
  font-weight: bold;
  color: #fff;
}

.about-contact {
  margin-top: 8px;
  text-align: center;
  
}
.about-contact div {
  font-size: 1rem;
  margin-bottom: 2px;
  color: white;
  text-decoration: none; 
  color: white;
  text-decoration: none;
}

.footer-column.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
 

.location {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.location a {
color: white;
text-decoration: none; 
}

.store-badge img {
  width: 150px;
  margin-bottom: 4px;
}
.footer-column.follow a {
  color: white;
  text-decoration: none; 
}

.footer-bottom {
  background: #10233d;
  color: #b8c7e0;
  text-align: center;
  padding: 8px 32px;
  font-size: 0.95rem;
  border-top: 1px solid #2c466e;
  margin-top: 8px;
}

/* ===== โครงวางเลย์เอาต์กรอบขาว + ช่องขวา ===== */
/* ปรับสามค่าหลักตรงนี้ตามไซต์ของคุณได้เลย */
.info-row{
  /* container(1080) + ช่องว่าง(24) + กว้างการ์ด(320) */
  max-width: calc(1080px + 24px + 320px);
  margin: 32px auto 0;
  position: relative; /* ให้ .side-slot วางอิงจากกล่องนี้ */
}

/* กรอบเนื้อหาหลัก (กล่องขาวเดิม) – ถ้ามีของเดิมอยู่แล้วจะไม่ต้องใช้ก็ได้ */
.info-section{
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,51,102,.06);
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 28px 18px;
}

/* ช่องสำหรับวางการ์ดด้านขวานอกกรอบขาว */
.side-slot{
  position: absolute;
  top: 0;
  left: 50%;
  /* = ครึ่งจอ + ครึ่งของกรอบขาว(1080/2) + ช่องว่าง(15px) */
  margin-left: calc(540px + 15px);
  width: 320px; /* ความกว้างการ์ด */
  z-index: 2;
}

/* จอแคบ: ให้การ์ดลงมาข้างล่าง (ไม่บังอะไร) */
@media (max-width: 1440px){
  /* 1440 มาจาก 1080 + 320 + padding เผื่อ */
  .side-slot{
    position: static;
    margin: 16px auto 0;
    width: 100%;
    max-width: 320px;
  }
  .info-row{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ===== สไตล์การ์ด APEC ===== */
.apec-panel{
  font-family: 'Prompt', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:#fff;
  border:1px solid #dde6f2;
  border-radius: 8px;
  overflow:hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.apec-panel__head{
  background: #4f7ebb; /* ฟ้าหัวการ์ด */
  color:#fff;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.apec-panel__title{
  font-size: 14px;
  font-weight: 700;
  letter-spacing:.2px;
}

.apec-panel__toggle{
  background:#fff;
  color:#4f7ebb;
  border:1px solid #eaf0f7;
  width: 34px;
  height: 26px;
  border-radius:6px;
  display:grid;
  place-items:center;
  font-size: 18px;
  line-height: 1;
  padding:0;
  cursor:pointer;
}

.apec-panel__body{
  position: relative;
  padding: 14px 14px 16px;
}
.apec-panel__body::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#3f6fb0; /* เส้นฟ้าซ้าย */
}

.apec-list{
  list-style:none;
  margin:0;
  padding:0 0 0 10px;
}
.apec-list li{
  padding: 10px 2px;
}
.apec-list li + li{
  margin-top:2px;
}
.apec-list a{
  color:#1f5fb8;
  text-decoration:none;
  font-size:14px;
  line-height:1.55;
}
.apec-list a:hover{
  text-decoration: underline;
}

/* สถานะย่อ */
.apec-panel.is-collapsed .apec-panel__body{
  display:none;
}
/* อ่านรายละเอียดเพิ่มเติม */
.more-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #ff2d55);
  box-shadow: 0 6px 18px rgba(255,45,85,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,45,85,.45);
}

.more-button .icon {
  width: 18px;
  height: 18px;
  stroke: #fff;
}


body {
  font-family: 'Prompt', sans-serif;
  background: #f6f8fb;
  margin: 0;
  color: #162032;
}

a {
  color: #1e72b8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.header {
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 24px 8px 24px;
  gap: 24px;
}
.logo {
  height: 80px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #0f223d;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .18s ease, opacity .12s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 18px;
}
.nav.is-open {
  transform: translate3d(0,0,0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  will-change: transform;
  backface-visibility: hidden;
}
.nav a {
  font-size: 1rem;
  color: #162032;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  text-decoration: none;
}
.nav a:hover { background: #eaf0ff; }



.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15,18,23,.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-backdrop[hidden] { display: none; }

.login-btn {
  background: transparent;
  color: #162032;
  font-family: 'Prompt', sans-serif;
  font-weight: 100;
  font-size: 1.1rem;
  border: none;
  border-radius: 80px;
  padding: 8px 32px;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .15s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  flex: 0 0 auto;
  margin-left: auto;
}
.login-wrapper {
  display: flex;
  align-items: center; /* ✅ ให้ทุกอย่างอยู่กลางแนวดิ่ง */
  gap: 8px;
  background: transparent;
}
.login-btn:hover { background: #e0e0e0; }
.highlight-green { color: #3cb371; }
.hero-desc { font-size: 1.06rem; margin-bottom: 14px; color: #fff; }
.hero-desc .link { color: #18b03c; }
.hero-logos {
  display: flex;
  gap: 20px;
  margin-top: -46px;
  margin-right: -24px;
  padding: 20px;
  border-radius: 0px 0px 0px 40px;
  background-color: rgba(255, 255, 255, 0.7);
}

.signup-button {
  position: absolute;
  bottom: 20px;
  right: 40px;
  background-color: #fff;
  color: #003366;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.signup-button:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}

@media (max-width: 900px) {
  .main-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 80px 16px;
  }
  .signup-button {
    position: static;
    display: inline-flex;
    margin: 6px 0 0 0;
  }
  
}

.info-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,51,102,.06);
  max-width: 1080px;
  margin: 32px auto 0 auto;
  padding: 22px 28px 18px 28px;
}

.info-title {
  display: flex;
  align-items: center;
  font-size: 1.22rem;
  font-weight: bold;
  color: #21406a;
  margin-bottom: 14px;
  gap: 10px;
}
.info-icon { width: 34px; }
.info-main { display: flex; gap: 36px; }
.info-desc {
  flex: 2.1;
  font-size: 1.03rem;
  color: #162032;
  line-height: 1.7;
}
.info-checklist {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 2px;
}
.info-checklist .feature{
  color: red;
 
}
/* ===== Video block (responsive + centered + fill) ===== */
.video-section{
  display:flex;
  justify-content:center;
  padding:0 16px;
}

.video-card{
  width:100%;
  max-width: 800px;   /* ปรับได้ตามต้องการ */
  margin:0 auto;
}

.video-wrapper{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;  /* คุมอัตราส่วน */
  background:#000;      /* สีพื้นหลังยามโหลด */
  border-radius:12px;
  overflow:hidden;
}

/* ปก & วิดีโอให้เติมเต็มกรอบเสมอ */
.video-wrapper .video-thumbnail,
.video-wrapper iframe{
  position:absolute;
  inset:0;           /* = top/right/bottom/left: 0 */
  width:100%;
  height:100%;
}

.video-wrapper .video-thumbnail img{
  width:100%;
  height:100%;
  object-fit:cover;  /* ครอบเต็ม ไม่มีแถบดำ */
  display:block;
  border-radius:inherit;
}

/* ถ้าจะใส่ปุ่มเล่นทับบนปก ให้ใช้คลาสนี้ (ตัวเลือก) */
.play-btn{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%, -50%);
  width:80px; height:80px;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  display:grid; place-items:center;
  pointer-events:none; /* คลิกทะลุไปที่ปกได้ */
}

.abtc-banner-overlay h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 32px;
  text-align: center;
}
.abtc-btn {
  background: #e1cf91;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 18px 54px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Prompt', sans-serif;
}
.abtc-btn:hover { background: #d5bc6a; }

/* ---------- Footer ---------- */
.abtc-footer {
  background: #112947;
  color: #fff;
  font-family: 'Prompt', sans-serif;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.ft-col { min-width: 0; }
.footer-grid > .ft-col:not(:first-child) {
  border-left: 1px solid rgba(255,255,255,.14);
  padding-left: 24px;
}
.ft-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e1cf91;
}
.ft-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.75);
}
.ft-center { text-align: center; }
.ft-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.brand-logo { width: 28px; height: 28px; object-fit: contain; }
.ft-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ft-qr img {
  width: 130px; height: 130px; object-fit: cover;
  border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.18); background: #fff;
}
.qr-caption a { color: #9be3ff; text-decoration: none; font-weight: 600; }
.ft-links { margin-top: 6px; color: rgba(255,255,255,.75); }
.ft-links a { color: #9be3ff; text-decoration: none; }
.ft-links .dot { margin: 0 8px; opacity: .6; }
.ft-address {
  margin: 0 0 14px;
  font-style: normal;
  line-height: 1.7;
}
.ft-address a { color: rgba(255,255,255,.75); text-decoration: none; }
.store-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-badges img { height: 44px; width: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center;
  font-size: .95rem;
  color: rgba(255,255,255,.75);
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > .ft-col:nth-child(3) {
    border-left: none;
    padding-left: 0;
    grid-column: 1 / -1;
  }
  .ft-center { text-align: left; }
}
@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-grid > .ft-col {
    border-left: none;
    padding-left: 0;
  }
  .ft-center { text-align: center; }
  .store-badges { align-items: center; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1090;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 18, 23, 0.82);
  width: 100vw; height: 100vh;
}
.login-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #183964;
  border-radius: 20px;
  box-shadow: 0 6px 40px #0005;
  padding: 36px 36px 22px 36px;
  width: 360px;
  min-width: 320px;
  color: #fff;
  font-family: 'Prompt', sans-serif;
  animation: modalIn 0.15s;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -60%);}
  to { opacity: 1; transform: translate(-50%, -50%);}
}
.close-btn {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none;
  font-size: 2rem; color: #fff; cursor: pointer;
  z-index: 1200; padding: 0;
}
.login-modal-title { font-size: 2rem; font-weight: bold; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; align-items: center;}
.login-input {
  width: 100%; padding: 14px 12px; border-radius: 9px;
  border: 2px solid #5c7893; background: #284d73;
  color: #fff; font-size: 1.15rem; font-family: inherit;
  outline: none; transition: border 0.15s;
}
.login-input:focus { border-color: #5ee7df; }
.login-submit-btn {
  margin-top: 8px; width: 100%; padding: 13px 0; border-radius: 9px;
  background: #112947; font-size: 1.15rem; font-weight: bold;
  color: #fff; border: none; cursor: pointer; transition: background 0.18s;
  font-family: 'Prompt', sans-serif;
}
.login-submit-btn:hover { background: #1b335a; }
.login-modal-links {
  display: flex; justify-content: space-between; gap: 22px; margin: 10px 0 0 0;
}
.login-link {
  color: #fff; font-weight: bold; font-size: 1.04rem; text-decoration: none;
  transition: color 0.15s;
}
.login-link:hover { color: #5ee7df; text-decoration: underline; }
.login-modal-note {
  margin-top: 18px; font-size: 0.97rem; color: #ffffff;
  border-radius: 7px; padding: 0;
}
#loginModal.active, #loginModalBackdrop.active { display: block; }
@media (max-width: 440px) {
  .login-modal { width: 98vw; min-width: 0; padding: 18px 6vw 20px 6vw; }
}
.no-scroll { overflow: hidden; height: 100vh; }

/* อ่านรายละเอียดเพิ่มเติม */
/* ---------- Base (Desktop) ---------- */
.header { background:#fff; position:sticky; top:0; z-index:1000; }
.header-container { display:flex; align-items:center; justify-content:space-between; gap:16px; position:relative; }
.logo { height:80px; }

.nav { display:flex; gap:1rem; }
.nav a { text-decoration:none; color:#1b1b1b; padding:.5rem .75rem; }

/* ปุ่ม Hamburger: ซ่อนใน Desktop */
.nav-toggle { display:none; background:none; border:0; padding:6px; cursor:pointer; }
.nav-toggle span { display:block; width:24px; height:3px; background:#1b1b1b; border-radius:2px; }
.nav-toggle span + span { margin-top:5px; }

  /* ซ่อนเมนูเป็นค่าเริ่มต้น */
  .nav {
    display:none;
    position:absolute;
    top:64px;         /* ระยะจากขอบบน (ความสูง header) */
    right:12px;
    left:auto;
    width:min(86vw, 320px);
    flex-direction:column;
    background:#fff;
    border:1px solid #eaeaea;
    border-radius:12px;
    padding:.5rem;
    box-shadow:0 12px 24px rgba(0,0,0,.12);
    animation: menuDrop .18s ease-out;
  }
  .nav a {
    padding:.75rem 1rem;
    border-radius:8px;
  }
  .nav a:hover { background:#f6f7f8; }

  /* แสดงเมนูเมื่อเปิด */
  .nav.is-open { display:flex; }

  /* กันซ้อนกับปุ่ม Login: ให้ปุ่มอยู่ด้านขวาได้พอดี */
  .login-btn { margin-left:auto; }


/* เอฟเฟกต์เปิดเมนู */
@keyframes menuDrop {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* สถานะแปลงไอคอนเป็นกากบาท (ถ้าอยากทำอนิเมชันเพิ่ม) */
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity:0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle span { transition: transform .18s ease, opacity .12s ease; }
/* 900px */
/* ========== Mobile-first NAV ========== */
/* ค่าเริ่มต้น = มือถือ */
.nav-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:0; background:transparent; cursor:pointer;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background:#0f223d; margin:4px 0;
  transition:transform .18s ease, opacity .12s ease;
}


.nav a{
  font-size:1.06rem; font-weight:700; color:#162032;
  padding:14px 12px; border-radius:12px; background:#f6f8fb; margin-bottom:10px; text-decoration:none;
}
.nav a:hover{ background:#eaf0ff; }

/* ฉากหลังเมื่อเปิดเมนู */
.nav-backdrop{ position:fixed; inset:0; background:rgba(15,18,23,.45); z-index:1190; backdrop-filter:blur(1px); }
.nav-backdrop[hidden]{ display:none; }

@media (min-width: 901px){
  .nav-toggle{ display:none; }
  .nav{
    position:static; display:flex; width:auto; height:auto; padding:0;
    box-shadow:none; border:0; background:transparent; overflow:visible;
    flex-direction:row; gap:8px;
  }
  .nav a{ background:transparent; margin:0; padding:8px 12px; font-weight:600; }
  .nav-backdrop{ display:none !important; }
}

.nav{ position: fixed; z-index: 10001; }     /* เมนู */

.nav-backdrop{
  background: rgba(15,18,23,.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: fixed; 
  z-index: 10000;
}
.nav{
  transform: translate3d(100%,0,0);
  transition: transform .22s ease, opacity .22s ease;
  opacity: .01;
}
.nav.is-open{
  transform: translate3d(0,0,0);  /* คมชัดขึ้น */
  opacity: 1;
  will-change: transform;
  backface-visibility: hidden;
}

/* Backdrop */
.nav-backdrop{
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(15,18,23,.45);
  backdrop-filter: none;            /* ปิด blur ให้ชัด */
  -webkit-backdrop-filter: none;
}
.nav-backdrop[hidden]{ display:none; }

/* Hamburger (mobile-first) */
.nav-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:0; background:transparent; cursor:pointer;
}
.nav-toggle span{ width:22px; height:2px; background:#0f223d; margin:4px 0; display:block; transition:transform .18s, opacity .12s; }
.nav-toggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Drawer (overlay) */
.nav{
  position: fixed; top:0; right:0; bottom:0; width: min(86vw, 340px);
  z-index: 9001;                    /* สูงกว่า backdrop เสมอ */
  display: flex; flex-direction: column;
  padding: 14px; background:#fff; border-left:1px solid #eaeaea;
  box-shadow:-18px 0 40px rgba(0,0,0,.18); overflow-y:auto;

  /* ซ่อนแบบคมชัด: ไม่ใช้ opacity ต่ำค้าง */
  transform: translate3d(100%,0,0);
  visibility: hidden; pointer-events: none; opacity: 0;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
.nav.is-open{
  transform: translate3d(0,0,0);
  visibility: visible; pointer-events: auto; opacity: 1;
  transition: transform .22s ease, opacity .22s ease, visibility 0s;
  will-change: transform; backface-visibility: hidden;
}
.nav a{
  font-size:1.06rem; font-weight:700; color:#162032;
  padding:14px 12px; margin-bottom:10px; border-radius:12px; background:#f6f8fb; text-decoration:none;
}
.nav a:hover{ background:#eaf0ff; }

/* Desktop: ซ่อนปุ่ม + เมนูแผ่แนวนอน */
@media (min-width: 901px){
  .nav-toggle{ display:none; }
  .nav{
    position: static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
    display:flex; flex-direction:row; gap:8px; padding:0; box-shadow:none; border:0; background:transparent; overflow:visible;
  }
  .nav a{ background:transparent; margin:0; padding:8px 12px; font-weight:600; }
  .nav-backdrop{ display:none !important; }
}

:root{
  --abtc-nav-width: min(86vw, 340px);
}

/* Backdrop */
#navBackdrop{
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15,18,23,.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#navBackdrop[hidden]{ display: none; }

/* Hamburger (mobile-first) */
#navToggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; margin: 0;
}
#navToggle span{
  display:block; width:22px; height:2px; background:#0f223d; margin:4px 0;
  transition: transform .18s ease, opacity .12s ease;
}
#navToggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navToggle.active span:nth-child(2){ opacity:0; }
#navToggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Drawer (overlay) */
#siteNav{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--abtc-nav-width);
  z-index: 9001; /* above backdrop */
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: #fff;
  border-left: 1px solid #eaeaea;
  box-shadow: -18px 0 40px rgba(0,0,0,.18);
  overflow-y: auto;

  /* hidden state */
  transform: translate3d(100%,0,0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
#siteNav.is-open{
  transform: translate3d(0,0,0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .22s ease, opacity .22s ease, visibility 0s;
  will-change: transform;
  backface-visibility: hidden;
}
#siteNav a{
  font-size: 1.06rem;
  font-weight: 700;
  color: #162032;
  padding: 14px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #f6f8fb;
  text-decoration: none;
}
#siteNav a:hover{ background:#eaf0ff; }

/* Scroll lock when menu is open */
.no-scroll{ overflow: hidden; height: 100vh; }

/* Desktop overrides */
@media (min-width:901px){
  .header-container{
    display: grid;
    grid-template-columns: auto 1fr auto;  /* โลโก้ | กลางยืด | ปุ่ม */
    align-items: center;
    column-gap: 24px;
  }

  .logo-link{ grid-column: 1; }

  .nav{
    grid-column: 2;
    justify-self: center;    /* จัดเมนูให้อยู่กึ่งกลาง */
    width: max-content;      /* ให้กว้างเท่าที่เมนูใช้ ไม่ยืดเต็มแถว */
  }

  .login-btn{
    grid-column: 3;
    justify-self: end;
    margin-left: 0;          /* ยกเลิก auto-margin เดิม */
  }
}
@media (min-width: 901px){
  #navToggle{ display: none; }
  #navBackdrop{ display: none !important; }
  #siteNav{
    position: static;
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    width: auto; height: auto;
    display: flex; flex-direction: row; gap: 8px; padding: 0;
    border: 0; box-shadow: none; background: transparent; overflow: visible;
  }
  #siteNav a{ background: transparent; margin: 0; padding: 8px 12px; font-weight: 600; }
}

/* Active link highlight (optional) */
#siteNav a[aria-current="page"]{ background:#eaf0ff; outline:2px solid #c9dbff; }

/* Crisp Hamburger (span) */
#navToggle{
  display:inline-grid; place-items:center;
  width:40px; height:40px; padding:0; border:0; background:transparent; cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
#navToggle span{
  display:block;
  width:24px;               /* กว้างเท่ากัน */
  height:3px;               /* หนาขึ้น (3px) -> คมบนจอส่วนใหญ่ */
  margin:5px 0;             /* ระยะห่างคู่กับ 3px จะลงล็อกพิกเซล */
  background:#0f223d;
  border-radius:2px;
  transform: translateZ(0);  /* กันฟุ้งตอนแอนิเมชัน */
  transition: transform .18s ease, opacity .12s ease;
}
/* X animation */
#navToggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navToggle.active span:nth-child(2){ opacity:0; }
#navToggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Crisp Hamburger (SVG) */
.nav-toggle{ display:inline-grid; place-items:center; width:40px; height:40px; background:transparent; border:0; cursor:pointer; }
.burger{ width:24px; height:24px; stroke:#0f223d; stroke-width:2.5; stroke-linecap:round; fill:none; }
.burger .line{ transition: transform .18s ease, opacity .12s ease; transform-origin:12px 12px; }
.nav-toggle.active .line2{ opacity:0; }
.nav-toggle.active .line1{ transform: translateY(5px) rotate(45deg); }
.nav-toggle.active .line3{ transform: translateY(-5px) rotate(-45deg); }

/* ซ่อน hamburger บนเดสก์ท็อปแบบบังคับ */
@media (min-width: 901px){
  #navToggle{ display: none !important; }
}
@media (min-width: 1024px){
  #navToggle{ display: none !important; }
}

/* Backdrop โปร่งใส ไม่มีหม่น ไม่มีเบลอ */
#navBackdrop{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* เมนูต้องคมชัด ไม่โปร่ง ไม่ฟิลเตอร์ */
#siteNav{
  background: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}
/* ===== Header layout: Grid ซ้าย-กลาง-ขวา ===== */
.header { background:#fff; border-bottom:1px solid #e3e8ef; position:sticky; top:0; z-index:1000; }
.header-container{
  max-width: 1200px;            /* ปรับได้ตามดีไซน์ */
  margin: 0 auto;
  padding: 10px 24px 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;  /* โลโก้ | เมนู(กึ่งกลาง) | ปุ่มขวา */
  align-items: center;
  gap: 16px;
}

/* โลโก้คงเดิม */
.logo{ height:80px; }

/* ===== Mobile-first: เมนูเป็น drawer ===== */
#siteNav{
  position: fixed; inset: 0 0 0 auto; width: min(86vw,340px);
  display: none; flex-direction: column; padding:14px;
  background:#fff; border-left:1px solid #eaeaea; box-shadow:-18px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%); opacity:0; visibility:hidden; pointer-events:none;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}
#siteNav.is-open{ display:flex; transform:none; opacity:1; visibility:visible; pointer-events:auto; transition: transform .22s, opacity .22s; }
#siteNav a{ font-size:1.06rem; font-weight:700; color:#162032; padding:14px 12px; margin-bottom:10px; border-radius:12px; background:#f6f8fb; text-decoration:none; }
#siteNav a:hover{ background:#eaf0ff; }

#navToggle{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:0; background:transparent; cursor:pointer; }
#navToggle span{ width:22px; height:2px; background:#0f223d; display:block; margin:4px 0; transition:transform .18s, opacity .12s; }
#navToggle.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
#navToggle.active span:nth-child(2){ opacity:0; }
#navToggle.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

#navBackdrop{ position:fixed; inset:0; background:rgba(15,18,23,.45); z-index:9000; }
#navBackdrop[hidden]{ display:none; }

/* ===== Desktop overrides (>=901px): เมนูอยู่ "กลางจริง" ===== */
@media (min-width:901px){
  #navToggle{ display:none; }
  #navBackdrop{ display:none !important; }

  /* ล้างโหมด drawer */
  #siteNav{
    position: static; transform:none; opacity:1; visibility:visible; pointer-events:auto;
    display:flex; flex-direction:row; gap:12px; width:auto; height:auto;
    padding:0; border:0; box-shadow:none; background:transparent; overflow:visible;
    justify-self: center;                 /* << กึ่งกลางคอลัมน์กลาง */
  }
  #siteNav a{ background:transparent; margin:0; padding:8px 12px; font-weight:600; color:#162032; }

  .login-wrapper{ justify-self: end; }    /* ปุ่มกลุ่มขวา */
}

/* ไฮไลต์ลิงก์หน้าเดียวกัน */
#siteNav a[aria-current="page"]{ background:#eaf0ff; outline:2px solid #c9dbff; border-radius:8px; }




