:root{
  --adecco-red:#DA291C;
  --ink:#0B1220;
  --muted:#5B6475;
  --card:#FFFFFF;
  --border:rgba(17,24,39,.12);

  --pad:26px;
  --gap:16px;

  --brand:28px;
  --meta:15px;

  --h1:clamp(66px, 5.8vw, 96px);
  --desc:20px;

  --chipValue:34px;

  --qrSize:360px;
  --qrPrevSize:118px;

  --sideTitle:18px;
  --sideMeta:12px;

  --ticker:14px;
}

html, body{
  height:100%;
  width:100%;
  margin:0;
  overflow:hidden;
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(218,41,28,.10), transparent 55%),
    radial-gradient(900px 520px at 85% 10%, rgba(218,41,28,.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 60%, #ffffff 100%);
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
}

#screen{ position:fixed; inset:0; overflow:hidden; background:transparent; }
#stage{
  position:absolute; left:50%; top:50%;
  width:1920px; height:1080px;
  transform-origin:center center;
  transform: translate(-50%, -50%) scale(1);
}

.tv{
  height: 100%;
  padding: var(--pad);
  display:flex;
  flex-direction: column;
  gap: var(--gap);
  box-sizing: border-box;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
}
.logo{
  height: 30px;
  padding: 15px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 35px;
text-align: left;
color: black
}

.meta{
  text-align:right;
  color:black;
font-size: 18px ; padding-right: 16px;font-weight: 700;
}
.meta b{  color:var(--adecco-red);   font-size: 22px;
  line-height: 1.2; font-weight: 800;
 }

.frame{
  flex: 1;
  min-height: 0;
  display:grid;
  grid-template-columns: 2.22fr .78fr;
  grid-template-columns: 80% 20%;
  gap: var(--gap);
}

.hero{
  height: 100%;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(17,24,39,.08);
  overflow:hidden;
  position:relative;
}
/* .hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(218,41,28,.10), transparent 42%),
    radial-gradient(900px 380px at 0% 0%, rgba(218,41,28,.14), transparent 60%);
  pointer-events:none;
} */

.hero-inner{
  position:relative;
  height:100%;
  padding: 24px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-columns: 65% 35%;
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  box-sizing: border-box;
}
.rail-head > * {
    flex: 1;
}
.contentCol{
  min-width: 0;
  min-height: 0;
  height: 100%;
  display:flex;
  flex-direction:column;
}

.kicker{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  flex: 0 0 auto;
}
.badge-tv{
  background: #009cd0;
  color: white;
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 800;
  font-size: 32px;
   background: #28b4e2;
  letter-spacing: .2px;
  white-space: nowrap;
}

.title{
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 0.98;
  font-size: var(--h1);
  margin-top: 10px;
color: #DA291C;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;

  word-break: break-word;
  text-wrap: balance;
  min-width: 0;
  flex: 0 0 auto;
  margin-bottom: 15px;
}

.stats{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  flex: 0 0 auto;
}
.chip{
  border: 1px solid rgba(17,24,39,1);
  background: rgba(255,255,255,.94);
  padding: 12px 16px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(17,24,39,.05);
  font-weight: 950;
  font-size: var(--chipValue);
  color: var(--ink);
}
.chip.type{
  /* background: rgba(218,41,28,.10); */
  border: 2px solid rgba(218,41,28,.45);
  color: var(--adecco-red);
}
.chip.salary{
  /* background: rgba(218,41,28,.12); */
   border: 2px solid rgba(218,41,28,.45);
  color: var(--adecco-red);
  /* box-shadow: 0 14px 26px rgba(218,41,28,.14); */
}

.descBox{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.86);
  padding: 14px 16px;

  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-gutter: stable both-edges;
}

.desc{
  margin:0;
  color: rgba(11,18,32,.92);
  font-size: var(--desc);
  line-height: 1.65;
  white-space: normal;
}
.desc .p{ margin: 0 0 10px 0; }
.desc .h{
  font-weight: 950;
  margin: 14px 0 8px 0;
  color: var(--ink);
  letter-spacing: .1px;
}
.desc ul{ margin: 6px 0 12px 0; padding-left: 22px; }
.desc li{ margin: 6px 0; }
.desc b{ font-weight: 950; color: var(--ink); }

.scanPanel{
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(218,41,28,.98), rgba(150,10,25,.98));
  border: 1px solid rgba(255,255,255,.22);
  /* box-shadow: 0 18px 50px rgba(218,41,28,.22); */
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  min-height: 0;
  box-sizing: border-box;
}

.scanTitle{
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  flex: 0 0 auto;
}
.qrJobTitle{
  display:block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  letter-spacing: .2px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  word-break: break-word;
  line-height: 1.2;
}

.qrWrap{
  background: rgb(238, 238, 238);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

#qrImg{
  width: 100%;
  height: 100%;
  max-width: var(--qrSize);
  max-height: var(--qrSize);
  object-fit: contain;
  background:#fff;
  border-radius: 16px;
  border: 10px solid #fff;
  box-shadow: 0 16px 40px rgba(17,24,39,.12);
  transition: opacity .15s ease, transform .12s ease;
  cursor: zoom-in;
}
#qrImg:active{ transform: scale(.995); }

.qrFallback{
  position:absolute;
  inset: 12px;
  border-radius: 16px;
  display:none;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 14px;
  color: rgba(11,18,32,.78);
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.25;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.08);
}
.qrFallback small{
  display:block;
  margin-top: 8px;
  color: rgba(11,18,32,.62);
  font-weight: 800;
}

.scanFoot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  padding-top: 9px;
  flex: 0 0 auto;
}
.scanHint{
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.25;
  min-width: 0;
}
.scanHint .mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 950;
  letter-spacing: .2px;
  display:block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.countBox{
  text-align:right;
  min-width: 120px;
  flex: 0 0 auto;
}
.countBox .lbl{ color: rgba(255,255,255,.88); font-size: 11px; font-weight: 800; }
.countBox .num{ color:#fff; font-size: 26px; font-weight: 950; line-height: 1; }

.prevCard{
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 24px rgba(17,24,39,.12);
  overflow:hidden;
  margin-top: 2px;
  flex: 0 0 auto;
}
.prevHead{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(17,24,39,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(218,41,28,.08), transparent 55%);
}
.prevTitle{ font-weight: 950; font-size: 12px; color: var(--ink); }
.prevSub{ color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }

.prevBody{
  padding: 9px 10px;
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
}
.prevQrWrap{ display:flex; gap: 10px; align-items:center; min-width: 0; }

#qrPrevImg{
  width: var(--qrPrevSize);
  height: var(--qrPrevSize);
  background:#fff;
  border-radius: 14px;
  border: 6px solid #fff;
  box-shadow: 0 10px 22px rgba(17,24,39,.10);
  object-fit: contain;
  transition: opacity .15s ease, transform .12s ease;
  flex: 0 0 auto;
  cursor: zoom-in;
}
#qrPrevImg:active{ transform: scale(.995); }

.prevText{ min-width: 0; max-width: 260px; }
.prevJobTitle{
  font-weight: 950;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.prevJobMeta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prevHint{
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align:right;
  max-width: 110px;
  flex: 0 0 auto;
}
.prevHint b{ color: var(--adecco-red); font-weight: 950; }

.rail{
  height: 100%;
  min-height: 0;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(17,24,39,.08);
  overflow:hidden;
  display:flex;
  flex-direction: column;
}
.rail-head{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17,24,39,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(218,41,28,.08), transparent 55%);
  flex: 0 0 auto;
}
.rail-title{ font-weight: 950; font-size: 19px; color: var(--ink); }

.filterWrap{ display:flex; align-items:center; gap: 8px; min-width: 0; }
.filterLabel{ color: var(--muted); font-size: 12px; font-weight: 900; white-space: nowrap; }
.filterSelect{
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  padding: 8px 34px 8px 12px;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(17,24,39,.05);
  cursor: pointer;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.filterCaret{
  position: relative;
  margin-left: -28px;
  pointer-events:none;
  color: rgba(91,100,117,.95);
  font-weight: 950;
}

.list{
  padding: 10px 12px 12px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-gutter: stable both-edges;
}

.rowjob{
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.10);
  background: #fff;
  padding: 9px 12px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
  box-shadow: 0 10px 26px rgba(17,24,39,.06);

  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.rowjob:active{ transform: scale(.995); }
.rowjob:hover{
  border-color: rgba(218,41,28,.22);
  box-shadow: 0 12px 30px rgba(17,24,39,.08);
}
.rowjob.active{
  border-color: rgba(218,41,28,.62);
  background: rgba(218,41,28,.06);
  box-shadow: 0 8px 5px rgba(135, 87, 83, 0.12);
}

.rowjob .t{
  font-weight: 950;
  font-size: var(--sideTitle);
  line-height: 1.15;
  max-width: 100%;
  color: var(--ink);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}
.rowMetaLine{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 5px;
}
.rowjob .m{
  color: var(--muted);
  font-size: var(--sideMeta);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.pill-type{
  border: 1px solid #b9b9b9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #404040;


  white-space: nowrap;
  font-weight: 600;
  flex: 0 0 auto;
}
.pill-salary{
  border: 1px solid rgba(218,41,28,.28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--adecco-red);
  background: rgba(218,41,28,.10);
  white-space: nowrap;
  font-weight: 600;
  flex: 0 0 auto;
}

.bottom{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(17,24,39,.06);
  overflow:hidden;
}
.ticker-track{
  display:flex;
  gap: 12px;
  padding: 10px 14px;
  width: max-content;
  animation: ticker 65s linear infinite;
  will-change: transform;
}
@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.ticker-pill{
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.10);
  background: #fff;
  padding: 8px 11px;
  white-space: nowrap;
  font-size: var(--ticker);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(17,24,39,.06);
}
.ticker-pill b{ color: var(--adecco-red); font-weight: 950; }

.paused-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 10;
  backdrop-filter: blur(3px);
}
.paused-overlay .box{
  background: #fff;
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 18px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: .2px;
  font-size: 18px;
  box-shadow: 0 16px 40px rgba(17,24,39,.10);
}

.hint{
  position: fixed;
  right: 14px; bottom: 14px;
  color: rgba(91,100,117,.85);
  font-size: 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 999px;
  padding: 8px 10px;
  z-index: 11;
  box-shadow: 0 10px 26px rgba(17,24,39,.10);
}

/* ✅ QR EXPAND MODAL */
.qrModal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(6px);
  padding: 22px;
}
.qrModal.show{ display:flex; }
.qrModalCard{
  width: min(1100px, 94vw);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(17,24,39,.14);
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  overflow: hidden;
  position: relative;
}
.qrModalTop{
  padding: 16px 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(17,24,39,.10);
  background: linear-gradient(90deg, rgba(218,41,28,.08), transparent 60%);
}
.qrModalTitle{
  font-weight: 950;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  margin:0;
  max-width: 85%;
}
.qrModalSub{
  margin-top: 6px;
  color: rgba(91,100,117,.9);
  font-weight: 800;
  font-size: 12px;
}
.qrClose{
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.96);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(17,24,39,.08);
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.qrModalBody{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(700px 420px at 25% 15%, rgba(218,41,28,.10), transparent 55%),
    linear-gradient(180deg, #fff 0%, #fbfbfd 60%, #fff 100%);
}
#qrBig{
  width: min(760px, 80vw);
  height: auto;
  background:#fff;
  border-radius: 22px;
  border: 12px solid #fff;
  box-shadow: 0 24px 70px rgba(17,24,39,.18);
  image-rendering: crisp-edges;
}
.qrModalFoot{
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(17,24,39,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.qrFootLeft{
  color: rgba(11,18,32,.88);
  font-weight: 900;
  font-size: 12px;
}
.qrFootMono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 950;
  margin-left: 6px;
}
.qrFootHint{
  color: rgba(91,100,117,.9);
  font-weight: 800;
  font-size: 12px;
}


/* =========================
   FRAME2 (Coach) - upgrade UI
   Works with your existing HTML (even with repeated IDs)
   ========================= */
/* ===== Frame2 Layout (Left shared + Right sessions) ===== */
#coachCanvas{

}

.coachLayout{
  height:100%;
  display:grid;
  grid-template-columns: 500px 1fr;  /* ซ้ายแยกออกมา */
  gap: 18px;
  align-items: stretch;
}

/* LEFT */
.leftCol{
  min-width:0;
}
.queueBox{
  height:100%;
  border-radius: 22px;
  background:#fff;
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 14px 40px rgba(17,24,39,.08);
  padding: 18px;
  box-sizing:border-box;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap: 12px;
}

.queueTitle{
  font-weight: 950;
  font-size: 18px;
  color:#0B1220;
}
.queueSub{
  margin-top:-6px;
  font-weight: 850;
  font-size: 13px;
  color: rgba(91,100,117,.92);
}
/* ===== Frame2 Left (Premium Copy) ===== */
.queueBox{
  align-items: center; /* เดิมเป็น center -> ทำให้ตัวหนังสือดู premium และอ่านง่ายขึ้น */
  padding: 22px;
}

.qHeadline{
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-align: left;
}



/* QR stays big but feels more premium */
.qrCard{
  margin-top: 8px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}

#qrCanvas{
  width: 88%;
  height: 88%;
}

/* reassurance */
.qReassure{
  margin-top: 6px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(91,100,117,.92);
  text-align: left;
}

/* benefits box */
.qBenefits{
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(17,24,39,.08);
}

.qBenefitsTitle{
  font-weight: 950;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: .2px;
}

.qList{
  margin: 10px 0 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(11,18,32,.92);
  font-weight: 850;
  font-size: 15px;
  line-height: 1.35;
}

.qList li{
  margin: 0;
}

/* OPTIONAL: remove old elements if still present somewhere */
.queueTitle, .queueSub, .qrHint, .queueSteps{ display:none; }

.qrCard{
  width: 360px;
  height: 360px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.12);
  background:#fff;
  box-shadow: 0 18px 48px rgba(17,24,39,.18);
  display:flex;
  align-items:center;
  justify-content:center;
}
#qrCanvas{
  width: 330px;
  height: 330px;
}

.qrHint{
  font-weight: 950;
  font-size: 16px;
  letter-spacing:.4px;
  color:#DA291C;
}

.queueSteps{
  margin-top: 6px;
  width: 100%;
  border-top: 1px solid rgba(17,24,39,.08);
  padding-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
  color:#0B1220;
}

/* RIGHT */
.rightCol{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: 22px;
}

/* Session blocks */
.session{
  border-radius: 22px;
  overflow:hidden;
  background:#fff;
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 18px 50px rgba(17,24,39,.10);
}

.sessionBar1{
  background:#DA291C;
  color:#fff;
  padding: 14px 18px;
  font-weight: 950;
  font-size: 20px;
  letter-spacing:.2px;
}
.sessionBar2{
  background:#bf0d3e;
  color:#fff;
  padding: 14px 18px;
  font-weight: 950;
  font-size: 20px;
  letter-spacing:.2px;
}
/* Coach cards row */
.coachRow{
  padding: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.coachCard{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background:#fff;

  box-shadow: 0 12px 28px rgba(17,24,39,.06);
padding: 30px 0 ;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}

.coachChip{
min-width: 50%;
  font-weight: 950;
  font-size: 16px;
  color:#DA291C;


   background: linear-gradient(180deg,  rgba(218, 41, 28, 0.148), #FFF);

  border: 1px solid rgba(218,41,28,.22);
  padding: 10px 20px;
  border-radius:99px;
  text-align:center;
}

.coachChip2{
 
min-width: 50%;
  font-size: 16px;
   background: linear-gradient(180deg, #bf0d3f23, #FFF);

  color: #bf0d3e;
  border: 1px solid #bf0d3f4e;
    padding: 10px 20px;
 border-radius:99px;
  text-align:center;
  font-weight: 800;
}
.coachPhoto img{

  height: 270px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid rgba(17,24,39,.12);
  box-shadow: 0 18px 48px rgba(17,24,39,.16);
  background:#fff;
}

.coachName{
  font-weight: 950;
  font-size: 22px;
  color:#0B1220;
  margin-top: 2px;
  text-align:center;
}
/* ===== Frame2 Left Panel: TV Readability Boost ===== */
/* ใช้กับ <div class="queueBox premiumLeft"> ... */

.premiumLeft{
  padding: 45px;
}

/* 1) Headline: คงเด่น แต่ไม่ต้องใหญ่เกิน */
.qHeadline{
  font-size: 45px;        /* เดิม ~34 */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.35px;
  color: #DA291C;
}

/* 2) Sub-headline: “ฟรี + 30 นาที” ต้องอ่านได้จากไกล */
.qSub{
  font-size: 22px;        /* เดิม ~16 */
  font-weight: 600;       /* เพิ่มน้ำหนัก */
  line-height: 1.2;
  margin-top: 5px;
  color: rgba(91,100,117,.96);
}

/* 3) Scan cue: ให้เป็น “คำชวนสแกน” ชัดขึ้น */
.qCue{
  font-size: 24px;        /* เดิม ~14 */
  font-weight: 900;
  margin-top: 14px;
  letter-spacing: .1px;
  color: #bf0d3e;
}




.qBenefitsTitle{
  font-size: 23px;        /* เดิม ~14 */
  font-weight: 850;
  letter-spacing: .2px;
}

.qList{
  font-size: 23px;        /* เดิม ~15 */
  font-weight: 600;
  line-height: 1.1;
  gap: 10px;
  margin-top: 12px;
}

/* ===== QR zone: ปรับให้บาลานซ์กับตัวหนังสือ ===== */
.qrCard{
  margin-top: 16px;
  border-radius: 22px;
}

#qrCanvas{
  width: 90%;
  height: 90%;
  text-align: center;
}


.coachRow.withTime{
  display:grid;
  grid-template-columns: 210px repeat(3, 1fr);
  gap: 16px;
  align-items: center;
  text-align: center;
}

.timeCol{
  height: 100%;
  border-radius: 18px;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
  letter-spacing: .5px;
}

.timeCol.morning{
  background: linear-gradient(180deg, #da291c, #da291cbe);
  color: #DA291C;
   color: white;
  border: 1px solid rgba(218,41,28,.25);
}

.timeCol.afternoon{
  background: linear-gradient(180deg, #bf0d3f, #bf0d3fb9);
    color: #bf0d3e;
    color: white;
  border: 1px solid #bf0d3f4e;
}

.coachCard{
  position: relative; /* สำคัญสำหรับ badge overlay */
}

.status-badge{
  position: absolute;
  top: 14px;
  right: -5px;
  padding: 6px 12px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0,0,0,.30);
}

.status-badge.full{
  background: #111827e9;   /* ดำเข้ม ดู premium */
  color: #fff;
   opacity: .85;
}


.is-full .full
{
  display:inline-block;
}


.full
{
  display:none;
}


.off{
  display: none;
}

.on{
  display: inline-block;
}

.logo,.meta{
  cursor: pointer;
}