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

/*
  Font CI ของ AIBC:
  - ภาษาไทย : Aktiv Grotesk Thai (custom) → Sarabun (fallback)
  - ภาษาอังกฤษ: Poppins → Aktiv Grotesk Thai → Sarabun

  Aktiv Grotesk Thai ต้องอัปโหลดไฟล์ font ไว้ที่ WordPress theme หรือ plugin
  แล้วแก้ path ใน @font-face ด้านล่างให้ถูกต้อง
*/
@font-face {
  font-family: 'Aktiv Grotesk Thai';
  src: url('../fonts/AktivGroteskThai-Regular.woff2') format('woff2'),
       url('../fonts/AktivGroteskThai-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aktiv Grotesk Thai';
  src: url('../fonts/AktivGroteskThai-Medium.woff2')  format('woff2'),
       url('../fonts/AktivGroteskThai-Medium.woff')   format('woff');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aktiv Grotesk Thai';
  src: url('../fonts/AktivGroteskThai-Bold.woff2')    format('woff2'),
       url('../fonts/AktivGroteskThai-Bold.woff')     format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Font stacks ─────────────────────────────────────────────── */
:root {
  --font-title:       'Prompt', 'Aktiv Grotesk Thai', sans-serif;       /* title h2 */
  --font-label:       'Prompt', 'Aktiv Grotesk Thai', sans-serif;       /* label บนฟิลด์ */
  --font-btn:         'Prompt', 'Aktiv Grotesk Thai', sans-serif;       /* ปุ่ม */
  --font-body:        'Sarabun', 'Aktiv Grotesk Thai', sans-serif;      /* description, hint */
  --font-input:       'Sarabun', 'Aktiv Grotesk Thai', sans-serif;      /* ข้อความในฟิลด์ */
  --font-placeholder: 'Sarabun', 'Aktiv Grotesk Thai', sans-serif;      /* placeholder */
  --font-base:        'Sarabun', 'Aktiv Grotesk Thai', 'Prompt', sans-serif;
  --font-en:          'Prompt', 'Aktiv Grotesk Thai', 'Sarabun', sans-serif;
}

/* ── AIBC Brand Tokens ─────────────────────────────────────────── */
:root {
  --green-light: #8dc63f;
  --green-dark:  #5a853c;
  --purple-light:#b34b99;
  --purple-dark: #803b7b;
  --white:       #ffffff;
  --off-white:   #f8faf6;
  --gray-100:    #f2f4f0;
  --gray-200:    #e0e5db;
  --gray-400:    #b0b8a8;
  --gray-500:    #8a9485;
  --gray-700:    #4a5245;
  --gray-800:    #2d3529;

  /* Shadow แบบ Neowolf: subtle + soft colored */
  --shadow-xs:   0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 12px rgba(45,53,41,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md:   0 8px 32px rgba(45,53,41,.10), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg:   0 20px 60px rgba(45,53,41,.14), 0 4px 16px rgba(0,0,0,.06);
  --shadow-btn:  0 4px 14px rgba(90,133,60,.35);
  --shadow-btn-hover: 0 8px 24px rgba(90,133,60,.45), 0 2px 6px rgba(0,0,0,.1);

  --radius:      0px;
  --radius-sm:   0px;
  --transition:  .28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ──────────────────────────────────────────────── */
#aibc-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
#aibc-wrap {
  font-family: var(--font-base);
  color: var(--gray-800);
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 20px 80px;
  -webkit-font-smoothing: antialiased;
}

/* ── Progress Bar ──────────────────────────────────────────────── */
.aibc-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px 0 48px;
  position: relative;
}
.aibc-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 120px);
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.progress-line {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: linear-gradient(90deg, var(--green-light), var(--green-dark));
  z-index: 1;
  width: 0;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.aibc-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  flex: 1;
  cursor: default;
}
.dot-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .95em;
  color: var(--gray-500);
  transition: var(--transition);
  position: relative;
}
.dot-label {
  font-size: .72em;
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
  white-space: nowrap;
  transition: color var(--transition);
}
.aibc-step-dot.active .dot-circle {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(93,133,60,.35);
  transform: scale(1.1);
}
.aibc-step-dot.active .dot-label { color: var(--green-dark); font-weight: 600; }
.aibc-step-dot.done .dot-circle {
  background: var(--green-dark);
  border-color: transparent;
  color: white;
}
.aibc-step-dot.done .dot-circle::after {
  content: '✓';
  position: absolute;
  font-size: 1em;
  font-family: var(--font-base);
}
.aibc-step-dot.done .dot-number { display: none; }
.aibc-step-dot.done .dot-label { color: var(--green-dark); }

/* ── Step Panels ──────────────────────────────────────────────── */
.aibc-panel {
  display: none;
  animation: panelIn .45s cubic-bezier(.4,0,.2,1) both;
}
.aibc-panel.active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-header { margin-bottom: 40px; text-align: center; }
.panel-header h2 {
  font-family: var(--font-title);
  font-size: 2.1em;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.panel-header p {
  font-family: var(--font-body);
  color: var(--gray-500);
  font-size: .95em;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Step 1: Family Info Form ──────────────────────────────────── */
.aibc-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0 !important;
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
}
.aibc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.aibc-field-full { grid-column: 1 / -1; }
.aibc-field { display: flex; flex-direction: column; gap: 9px; }
.aibc-field label {
  font-family: var(--font-label);
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-700);
}
#aibc-wrap .aibc-field input,
#aibc-wrap .aibc-field select {
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  font-family: var(--font-input);
  font-size: 1em;
  color: var(--gray-800);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: .015em;
  line-height: 1.6;
  box-shadow: var(--shadow-xs) !important;
}
#aibc-wrap .aibc-field input::placeholder,
#aibc-wrap .aibc-field textarea::placeholder {
  font-family: var(--font-placeholder) !important;
  color: var(--gray-400) !important;
  font-size: .93em;
  letter-spacing: .01em;
  opacity: 1 !important;
}
#aibc-wrap .aibc-field input::-moz-placeholder  { color: var(--gray-400) !important; opacity: 1 !important; }
#aibc-wrap .aibc-field input:-ms-input-placeholder { color: var(--gray-400) !important; }
#aibc-wrap .aibc-field input:focus,
#aibc-wrap .aibc-field select:focus {
  outline: none;
  border-color: var(--green-dark);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(141,198,63,.18), var(--shadow-xs) !important;
}
.aibc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9485' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.req { color: var(--purple-light); }

/* ── Step 2: School Grid ──────────────────────────────────────── */
.school-search-wrap {
  position: relative;
  margin-bottom: 24px;
}
.school-search {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-family: var(--font-base);
  font-size: .95em;
  background: var(--white);
  transition: var(--transition);
}
.school-search:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(141,198,63,.15);
}
.search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1.1em;
  pointer-events: none;
}
.school-counter {
  text-align: right;
  font-size: .82em;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.school-counter span { color: var(--purple-light); font-weight: 600; }

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.school-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 22px 16px 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  user-select: none;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.school-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(141,198,63,.07), rgba(90,133,60,.03));
  opacity: 0;
  transition: opacity var(--transition);
}
.school-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.school-card:hover::before { opacity: 1; }
.school-card.selected {
  border-color: var(--green-dark);
  background: #f2f8ea;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(90,133,60,.18), 0 2px 6px rgba(0,0,0,.06);
}
.school-card.selected::before { opacity: 1; }
.school-card.hidden { display: none; }

.school-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: .7em;
  color: transparent;
  transition: var(--transition);
}
.school-card.selected .school-check {
  background: var(--green-dark);
  color: white;
}
.school-logo {
  width: 64px; height: 64px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
}
.school-logo-placeholder {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.4em;
  color: var(--green-dark);
}
.school-card-name {
  font-family: var(--font-body);
  font-size: .8em;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

/* Selected schools chips */
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  min-height: 36px;
}
.chip {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: white;
  padding: 5px 12px 5px 10px;
  border-radius: 50px;
  font-size: .8em;
  font-weight: 500;
  animation: chipIn .2s ease both;
}
@keyframes chipIn {
  from { opacity:0; transform: scale(.8); }
  to   { opacity:1; transform: scale(1); }
}
.chip-remove {
  cursor: pointer; font-size: .85em; opacity: .8;
  background: none; border: none; color: white; padding: 0; line-height: 1;
}
.chip-remove:hover { opacity: 1; }

/* ── Step 3: Time Slots per School ─────────────────────────────── */
.school-time-block { margin-bottom: 32px; }
.school-time-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.school-time-logo {
  width: 44px; height: 44px;
  object-fit: contain; border-radius: 8px;
  background: var(--gray-100); padding: 4px;
}
.school-time-logo-placeholder {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 700; font-size: 1.1em; color: var(--green-dark);
}
.school-time-name {
  font-family: var(--font-en);
  font-size: 1.1em; font-weight: 700; color: var(--gray-800);
}
.school-time-sub { font-size: .78em; color: var(--gray-500); }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
}
.slot-btn {
  position: relative;
  padding: 11px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-family: var(--font-base);
  box-shadow: var(--shadow-xs);
}
.slot-btn:hover:not(.booked):not(.conflict) {
  border-color: var(--green-dark);
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.slot-btn.selected {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
  box-shadow: 0 4px 14px rgba(90,133,60,.35);
}
.slot-btn.booked {
  background: var(--gray-100); border-color: var(--gray-200);
  cursor: not-allowed; opacity: .5; box-shadow: none;
}
.slot-btn.conflict {
  background: #fff0f0; border-color: #ffcccc;
  cursor: not-allowed; opacity: .6; box-shadow: none;
}
.slot-time-text { font-weight: 700; font-size: .88em; display: block; }
.slot-end-text  { font-size: .72em; opacity: .7; display: block; margin-top: 1px; }
.slot-tag {
  display: block; font-size: .65em; margin-top: 3px;
  font-weight: 600; letter-spacing: .03em;
}
.slot-btn.selected .slot-tag { color: rgba(255,255,255,.8); }
.slot-btn.booked   .slot-tag { color: #c0392b; }
.slot-btn.conflict .slot-tag { color: #c0392b; }

/* ── Step 4: Summary ───────────────────────────────────────────── */
.summary-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.summary-family {
  padding: 28px 32px;
  background: linear-gradient(135deg, #f0f8e8, #e8f5d8);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 20px;
}
.summary-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 1.4em; font-weight: 700; color: white;
  flex-shrink: 0;
}
.summary-family-name { font-family: var(--font-en); font-size: 1.15em; font-weight: 700; }
.summary-family-sub  { font-size: .82em; color: var(--gray-500); margin-top: 2px; }
.summary-bookings { padding: 0; }
.summary-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--gray-100);
  animation: rowIn .3s ease both;
}
.summary-row:last-child { border-bottom: none; }
@keyframes rowIn {
  from { opacity:0; transform: translateX(-12px); }
  to   { opacity:1; transform: translateX(0); }
}
.summary-school-logo {
  width: 40px; height: 40px;
  object-fit: contain; border-radius: 6px;
  background: var(--gray-100); padding: 3px;
}
.summary-school-logo-placeholder {
  width: 40px; height: 40px; border-radius: 6px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 700; font-size: .95em; color: var(--green-dark);
}
.summary-school-name { font-weight: 600; font-size: .9em; }
.summary-school-time {
  font-size: .8em; color: var(--gray-500); margin-top: 2px;
}
.summary-time-badge {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85em;
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────*/
.aibc-btn-row {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px; margin-top: 40px;
}
.aibc-btn-row.right { justify-content: flex-end; }
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 14px 28px;
  font-family: var(--font-btn);
  font-size: .9em; font-weight: 500;
  color: var(--gray-500); cursor: pointer;
  transition: var(--transition);
  letter-spacing: .02em;
  box-shadow: var(--shadow-xs);
}
.btn-back:hover {
  border-color: var(--gray-500);
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
}
.btn-next, .btn-confirm {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green-dark);
  color: white; border: none; border-radius: 0;
  padding: 16px 44px;
  font-family: var(--font-btn);
  font-size: 1em; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-btn);
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
/* shimmer effect on hover */
.btn-next::after, .btn-confirm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-next:hover, .btn-confirm:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}
.btn-next:hover::after, .btn-confirm:hover::after { opacity: 1; }
.btn-next:active, .btn-confirm:active { transform: translateY(0); }
.btn-next:disabled, .btn-confirm:disabled {
  opacity: .45; cursor: not-allowed; transform: none;
  box-shadow: none;
}
.btn-confirm {
  background: var(--purple-dark);
  box-shadow: 0 4px 14px rgba(128,59,123,.35);
}
.btn-confirm:hover {
  background: var(--purple-light);
  box-shadow: 0 8px 24px rgba(128,59,123,.45), 0 2px 6px rgba(0,0,0,.1);
}

/* ── Messages ────────────────────────────────────────────────────*/
.aibc-msg {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-weight: 500; font-size: .9em;
  display: none;
}
.aibc-msg.error   { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.aibc-msg.success { background: #e8f8ee; color: #1e7a40; border: 1px solid #b2dfcc; }

/* ── Success Screen ──────────────────────────────────────────────*/
#aibc-done {
  display: none;
  text-align: center;
  padding: 64px 32px;
  animation: panelIn .5s ease both;
}
.done-icon {
  font-size: 4em; margin-bottom: 20px;
  animation: popIn .5s cubic-bezier(.4,0,.2,1) .2s both;
}
@keyframes popIn {
  from { transform: scale(0) rotate(-20deg); }
  to   { transform: scale(1) rotate(0); }
}
#aibc-done h2 {
  font-family: var(--font-en);
  font-size: 2em; color: var(--green-dark); margin-bottom: 12px;
}
#aibc-done p { color: var(--gray-500); font-size: .95em; margin-bottom: 24px; }
.done-list { list-style: none; max-width: 420px; margin: 0 auto; text-align: left; }
.done-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--gray-200);
  font-size: .9em;
  animation: rowIn .3s ease both;
}

/* ── Hint ────────────────────────────────────────────────────────*/
.aibc-hint { font-family: var(--font-body); font-size: .78em; color: var(--gray-500); margin-top: 5px; }

/* ── Responsive ──────────────────────────────────────────────────*/
@media (max-width: 600px) {
  .aibc-form-card { padding: 24px 20px; }
  .aibc-grid-2    { grid-template-columns: 1fr; }
  .schools-grid   { grid-template-columns: repeat(2, 1fr); }
  .slots-grid     { grid-template-columns: repeat(3, 1fr); }
  .summary-row    { grid-template-columns: auto 1fr; }
  .summary-time-badge { grid-column: 2; }
  .dot-label      { display: none; }
  .aibc-progress::before { width: calc(100% - 60px); }
}

/* ── Neowolf-style overrides ─────────────────────────────────── */
/* Messages */
.aibc-msg {
  padding: 14px 20px !important;
  border-radius: 0 !important;
  margin-bottom: 24px !important;
  font-family: var(--font-body) !important;
  border: none !important;
  border-left: 4px solid !important;
  box-shadow: var(--shadow-xs) !important;
}
.aibc-msg.error   { background: #fff5f5 !important; color: #c0392b !important; border-color: #c0392b !important; }
.aibc-msg.success { background: #f4fbf0 !important; color: #2d6a1f !important; border-color: var(--green-dark) !important; }

/* Success screen */
#aibc-done { padding: 72px 32px !important; }
#aibc-done h2 { font-family: var(--font-title) !important; }
#aibc-done p  { font-family: var(--font-body) !important; margin-bottom: 28px !important; }
.done-list li { font-family: var(--font-body) !important; padding: 12px 0 !important; gap: 12px !important; }

/* Summary family section spacing */
.summary-family { padding: 28px 36px !important; }
.summary-row    { padding: 18px 36px !important; }

/* School time block header */
.school-time-name { font-family: var(--font-title) !important; }
.school-time-sub  { font-family: var(--font-body) !important; }

/* Chip (selected school tag) */
.chip {
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  box-shadow: var(--shadow-xs) !important;
}

/* ── Real-time slot update ────────────────────────────────────── */
.slot-btn.just-booked {
  animation: slotFlash .5s ease 3;
}
@keyframes slotFlash {
  0%,100% { background: var(--gray-100); border-color: var(--gray-200); }
  50%     { background: #ffe0e0; border-color: #ffaaaa; }
}
/* Badge เมื่อ slots เหลือน้อย */
.school-status-badge.almost-full {
  background: #fff3e0;
  color: #e65100 !important;
}
.school-status-badge.full {
  background: #fde8e8;
  color: #c0392b !important;
}
/* Live indicator dot (แสดงว่ากำลัง poll อยู่) */
.aibc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72em;
  color: var(--gray-500);
  font-family: var(--font-body);
  margin-left: 8px;
}
.aibc-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  animation: livePulse 2s ease infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(.7); }
}
