/*
 * Giáo dục Linhna — nút đăng ký, form đăng ký, khung Chat Zalo, bảng lịch khai giảng.
 * Dựng theo Astryx Design System, phong cách A của Linhna CRM (docs/quy-chuan-giao-dien.md): phông chữ của máy, chữ 14–16px, ô nhập viền mảnh
 * bo góc 10px, nhãn nằm trên ô, báo lỗi gắn liền dưới ô, khung trắng bo góc 12px, khoảng cách theo bội số của 4px.
 * MÀU NHẤN là màu thương hiệu của website (--gdl-red, chỉnh ở Cài đặt → Form đăng ký; --gdl-zalo cho khung Chat Zalo): các sắc nhạt / đậm
 * được pha từ chính màu đó. Mọi luật nằm dưới tiền tố .gdl- để không ảnh hưởng giao diện của website và ngược lại.
 */
.gdl-trigger-wrap, .gdl-shell, .gdl-dialog, .gdl-zalo-widget, .gdl-lkg {
	--gdl-red: #d71920; --gdl-zalo: #0068ff; --gdl-accent: var(--gdl-red);
	--gdl-accent-hover: color-mix(in srgb, var(--gdl-accent) 86%, #000); --gdl-accent-soft: color-mix(in srgb, var(--gdl-accent) 8%, #fff); --gdl-accent-ring: color-mix(in srgb, var(--gdl-accent) 20%, transparent);
	--gdl-red-dark: color-mix(in srgb, var(--gdl-red) 86%, #000); --gdl-red-soft: color-mix(in srgb, var(--gdl-red) 8%, #fff);
	--gdl-ink: #1c2536; --gdl-muted: #596579; --gdl-icon: #667085; --gdl-placeholder: #8a94a6; --gdl-line: #e1e6ee; --gdl-line-strong: #cbd3df; --gdl-body: #f4f6fa;
	--gdl-danger: #b42318; --gdl-danger-soft: #fdecea; --gdl-success: #067647; --gdl-success-soft: #e7f6ee;
	--gdl-radius: 12px; --gdl-radius-control: 10px; --gdl-control: 44px;
	box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.5; color: var(--gdl-ink); -webkit-font-smoothing: antialiased;
}
.gdl-dialog--zalo, .gdl-dialog--zalo .gdl-shell, .gdl-zalo-widget { --gdl-accent: var(--gdl-zalo); }
.gdl-trigger-wrap *, .gdl-shell *, .gdl-dialog *, .gdl-zalo-widget * { box-sizing: border-box; }
.gdl-dialog[hidden], .gdl-shell [hidden], .gdl-zalo-widget[hidden], .gdl-zalo-widget [hidden] { display: none !important; }
html.gdl-lock { overflow: hidden; }
.gdl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Nút đăng ký (nút chính, cỡ lớn) */
.gdl-trigger-wrap { display: flex; justify-content: center; align-items: center; min-height: 64px; margin: 20px 0; }
.gdl-trigger { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: min(100%, 300px); padding: 12px 28px; border: 0; border-radius: var(--gdl-radius); cursor: pointer; color: #fff; text-align: center;
	background: var(--gdl-accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--gdl-accent) 28%, transparent); transition: background-color .15s ease; font: inherit; }
.gdl-trigger:hover { background: var(--gdl-accent-hover); }
.gdl-trigger:focus-visible, .gdl-submit:focus-visible, .gdl-cta:focus-visible, .gdl-zalo-link:focus-visible, .gdl-lkg__retry:focus-visible { outline: 2px solid var(--gdl-accent); outline-offset: 2px; }
.gdl-zalo-float:focus-visible { outline: 2px solid var(--gdl-zalo); outline-offset: 3px; }
.gdl-trigger__title { font-size: 16px; line-height: 24px; font-weight: 700; color: #fff; }
.gdl-trigger__subtext { font-size: 13px; line-height: 18px; color: rgb(255 255 255 / 88%); transition: opacity .25s ease; } .gdl-trigger__subtext.is-out { opacity: 0; }
@media (max-width: 782px) {
	.gdl-trigger--sticky { position: fixed; z-index: 9990; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-width: 0; padding: 10px 20px; }
}

/* Khung bật lên */
.gdl-dialog { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 24px; }
.gdl-dialog__backdrop { position: absolute; inset: 0; background: rgb(16 24 40 / 55%); }
.gdl-dialog__panel { position: relative; width: min(100%, 440px); max-height: calc(100dvh - 48px); overflow-y: auto; border-radius: var(--gdl-radius); outline: 0; }
.gdl-dialog__close { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0 0 2px; border: 0; border-radius: 8px; background: transparent; color: var(--gdl-icon); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.gdl-dialog__close:hover { background: var(--gdl-body); color: var(--gdl-ink); }
.gdl-dialog__close:focus-visible { outline: 2px solid var(--gdl-accent); outline-offset: 1px; }
.gdl-inline { width: min(100%, 480px); margin: 20px auto; }

/* Khung form */
.gdl-shell { background: #fff; border: 1px solid var(--gdl-line); border-radius: var(--gdl-radius); box-shadow: 0 1px 2px rgb(16 24 40 / 5%); overflow: hidden; }
.gdl-dialog .gdl-shell { border: 0; box-shadow: 0 20px 48px rgb(16 24 40 / 24%); }
.gdl-form { margin: 0; }
.gdl-head { padding: 24px 24px 0; }
.gdl-dialog .gdl-head { padding-right: 56px; }
.gdl-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--gdl-muted); }
.gdl-brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--gdl-accent-soft); color: var(--gdl-accent); }
.gdl-heading { margin: 16px 0 0; padding: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: 0; color: var(--gdl-ink); }
.gdl-intro { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--gdl-muted); }
.gdl-fields { padding: 20px 24px 24px; display: grid; gap: 16px; }

/* Ô nhập: nhãn · ô (có biểu tượng đầu ô) · báo lỗi gắn liền dưới ô */
.gdl-field { min-width: 0; }
.gdl-field label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--gdl-ink); }
.gdl-control { position: relative; display: flex; align-items: center; min-height: var(--gdl-control); border: 1px solid var(--gdl-line-strong); border-radius: var(--gdl-radius-control); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.gdl-control:hover { border-color: #aab4c4; }
.gdl-control:focus-within { border-color: var(--gdl-accent); box-shadow: 0 0 0 3px var(--gdl-accent-ring); }
.gdl-control__icon { display: grid; place-items: center; width: 40px; color: var(--gdl-icon); flex: none; pointer-events: none; }
.gdl-control input, .gdl-control select { flex: 1; min-width: 0; width: 100%; height: calc(var(--gdl-control) - 2px); margin: 0; padding: 0 12px 0 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important;
	border-radius: var(--gdl-radius-control); font: inherit; font-size: 15px; line-height: 22px; color: var(--gdl-ink); }
.gdl-control input::placeholder { color: var(--gdl-placeholder); opacity: 1; }
.gdl-control select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer; text-overflow: ellipsis;
	background: transparent url(../images/chevron-down.svg) no-repeat right 12px center / 16px 16px !important; }
.gdl-control select:invalid, .gdl-control select.is-empty { color: var(--gdl-placeholder); } .gdl-control select option { color: var(--gdl-ink); }
.gdl-control.is-invalid { border-color: var(--gdl-danger); }
.gdl-control.is-invalid:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gdl-danger) 20%, transparent); }
/* Báo lỗi dạng TOOLTIP (chủ dự án yêu cầu 21/11/2026): ô lỗi có viền đỏ + biểu tượng cảnh báo ở cuối ô; câu báo nổi phía trên ô, KHÔNG chiếm chỗ nên
   form không bị dồn xuống. Câu báo hiện khi ô đang được chọn (bấm gửi thì con trỏ tự về ô lỗi đầu tiên) hoặc khi rê chuột vào ô. */
.gdl-field { position: relative; }
.gdl-control.is-invalid::after { content: ""; flex: none; width: 18px; height: 18px; margin-right: 12px; background: url(../images/alert-circle.svg) center / 18px 18px no-repeat; pointer-events: none; }
.gdl-control.is-invalid input { padding-right: 8px; }
.gdl-control.is-invalid select { background-position: right 6px center !important; padding-right: 28px; }
.gdl-error { position: absolute; z-index: 3; right: 0; bottom: calc(var(--gdl-control) + 8px); max-width: min(100%, 300px); padding: 6px 10px; border-radius: 8px; background: var(--gdl-ink); color: #fff;
	font-size: 13px; line-height: 18px; font-weight: 400; box-shadow: 0 4px 12px rgb(16 24 40 / 18%); opacity: 0; transform: translateY(2px); pointer-events: none; transition: opacity .12s ease, transform .12s ease; }
.gdl-error:empty { display: none; }
.gdl-error::after { content: ""; position: absolute; top: 100%; right: 15px; border: 6px solid transparent; border-top-color: var(--gdl-ink); border-bottom: 0; }
.gdl-field:focus-within > .gdl-error:not(:empty), .gdl-field:hover > .gdl-error:not(:empty) { opacity: 1; transform: none; }
.gdl-status { padding: 8px 12px; border-radius: var(--gdl-radius-control); background: var(--gdl-danger-soft); font-size: 13px; line-height: 18px; color: var(--gdl-danger); } .gdl-status:empty { display: none; }

/* Nút gửi (nút chính, rộng hết form) */
.gdl-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: var(--gdl-control); margin: 4px 0 0; padding: 0 16px; border: 0; border-radius: var(--gdl-radius-control); cursor: pointer; color: #fff;
	font: inherit; font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0; background: var(--gdl-accent); transition: background-color .15s ease; }
.gdl-submit:hover { background: var(--gdl-accent-hover); } .gdl-submit:disabled { opacity: .55; cursor: progress; }
.gdl-submit__icon { display: grid; place-items: center; }
.gdl-privacy { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 0; font-size: 13px; line-height: 18px; color: var(--gdl-muted); text-align: center; } .gdl-privacy span { display: grid; place-items: center; flex: none; color: var(--gdl-success); }

/* Lời cảm ơn, nút "sau đăng ký", form đang khóa */
.gdl-thank, .gdl-locked { padding: 32px 24px; text-align: center; outline: 0; }
.gdl-thank__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gdl-success-soft); color: var(--gdl-success); } .gdl-thank__icon svg { width: 32px; height: 32px; }
.gdl-thank__image { display: block; width: 128px; height: 128px; margin: 0 auto; object-fit: contain; }
.gdl-thank__heading { margin: 16px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--gdl-ink); } .gdl-thank p { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: var(--gdl-muted); } .gdl-thank p.gdl-thank__heading { margin-top: 16px; font-size: 20px; line-height: 28px; color: var(--gdl-ink); }
.gdl-locked p { margin: 16px 0 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--gdl-ink); }
.gdl-cta, .gdl-zalo-link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--gdl-control); margin-top: 20px; padding: 0 20px; border-radius: var(--gdl-radius-control); background: var(--gdl-zalo); color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.gdl-cta:hover, .gdl-zalo-link:hover { background: color-mix(in srgb, var(--gdl-zalo) 86%, #000); }
.gdl-cta[hidden] { display: none !important; } .gdl-zalo-link[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Mã QR trong khung Chat Zalo */
.gdl-or { display: flex; align-items: center; gap: 12px; color: var(--gdl-muted); font-size: 13px; } .gdl-or::before, .gdl-or::after { content: ""; flex: 1; height: 1px; background: var(--gdl-line); }
.gdl-qr { text-align: center; } .gdl-qr__title { margin: 0 0 12px; font-size: 14px; font-weight: 600; } .gdl-qr__caption { margin: 8px 0 0; font-size: 13px; color: var(--gdl-muted); }
.gdl-qr__code { display: inline-grid; place-items: center; width: 174px; height: 174px; padding: 12px; border: 1px solid var(--gdl-line); border-radius: var(--gdl-radius); background: #fff; } .gdl-qr__code img { display: block; width: 150px; height: 150px; image-rendering: pixelated; }
@media (max-width: 480px) { .gdl-or, .gdl-qr { display: none; } }   /* trên điện thoại khách bấm thẳng nút mở Zalo, không cần quét QR */

/* Nút Chat Zalo nổi */
.gdl-zalo-widget { position: fixed; z-index: 9980; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.gdl-zalo-float { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 16px; background: #fff; cursor: pointer; box-shadow: 0 8px 20px rgb(0 104 255 / 28%); animation: gdl-pulse 2.4s ease-in-out infinite; }
.gdl-zalo-float svg { width: 44px; height: 44px; }
.gdl-zalo-tooltip { position: relative; max-width: 240px; padding: 10px 32px 10px 12px; border: 1px solid var(--gdl-line); border-radius: var(--gdl-radius); background: #fff; box-shadow: 0 8px 20px rgb(16 24 40 / 12%); font-size: 13px; line-height: 18px; font-weight: 600; } .gdl-zalo-tooltip p { margin: 0; }
.gdl-zalo-tooltip__close { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; font-size: 18px; line-height: 1; color: var(--gdl-icon); cursor: pointer; padding: 0; } .gdl-zalo-tooltip__close:hover { background: var(--gdl-body); }
.gdl-recent { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 !important; font-size: 12px; font-weight: 400; color: var(--gdl-muted); font-variant-numeric: tabular-nums; }
.gdl-recent__dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgb(18 183 106 / 20%); margin-right: 3px; flex: none; }
@keyframes gdl-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .gdl-zalo-float { animation: none; } .gdl-trigger, .gdl-submit, .gdl-control, .gdl-error { transition: none; } }
@media (max-width: 480px) {
	.gdl-dialog { padding: 12px; } .gdl-dialog__panel { max-height: calc(100dvh - 24px); } .gdl-head { padding: 20px 16px 0; } .gdl-fields { padding: 16px 16px 20px; } .gdl-thank, .gdl-locked { padding: 28px 16px; }
	.gdl-control input, .gdl-control select { font-size: 16px; }   /* từ 16px trở lên thì iPhone không tự phóng to trang khi bấm vào ô */
}

/* Lịch khai giảng [lichkhaigiang] */
.gdl-lkg { margin: 28px 0; border: 1px solid var(--gdl-line); border-radius: var(--gdl-radius); background: #fff; overflow: hidden; }
.gdl-lkg *, .gdl-lkg *::before { box-sizing: border-box; }
.gdl-lkg__header { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 20px; color: #fff; background: var(--gdl-red); }
.gdl-lkg__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; flex: 1 1 260px; }
.gdl-lkg__filters { display: flex; flex-wrap: wrap; gap: 8px; } .gdl-lkg__filter { margin: 0; } .gdl-lkg__filter[hidden] { display: none; }
.gdl-lkg__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gdl-lkg__filter select { min-height: 36px; max-width: 240px; padding: 6px 30px 6px 12px; border: 0; border-radius: var(--gdl-radius-control); background-color: #fff; color: var(--gdl-ink); font: inherit; font-weight: 600; }
.gdl-lkg__filter select:disabled { opacity: .85; }
.gdl-lkg__notice { margin: 0; padding: 9px 20px; background: #fff8e6; color: #6b4e00; font-size: 13px; } .gdl-lkg__notice[hidden] { display: none; }
.gdl-lkg__status { margin: 0; padding: 26px 20px; text-align: center; color: var(--gdl-muted); } .gdl-lkg__status[hidden], .gdl-lkg__table[hidden], .gdl-lkg__retry[hidden] { display: none; }
.gdl-lkg__retry { display: block; margin: 0 auto 22px; min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--gdl-radius-control); background: var(--gdl-red); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.gdl-lkg__scroll { overflow-x: auto; } .gdl-lkg__table { width: 100%; margin: 0; border-collapse: collapse; border: 0; }
.gdl-lkg__table th { padding: 10px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--gdl-muted); background: #f4f6fa; border: 0; border-bottom: 1px solid var(--gdl-line); white-space: nowrap; }
.gdl-lkg__table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--gdl-line); vertical-align: top; } .gdl-lkg__table tr:last-child td { border-bottom: 0; }
.gdl-lkg__name { font-weight: 600; min-width: 240px; } .gdl-lkg__name a { color: var(--gdl-ink); text-decoration: none; } .gdl-lkg__name a:hover { color: var(--gdl-red); text-decoration: underline; }
.gdl-lkg__cohort { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--gdl-muted); }
/* Ca học: mỗi khung giờ một dòng; Onl / Off là nhãn nhỏ đứng đầu dòng (màu cố định, không theo màu thương hiệu, để hai hình thức luôn phân biệt được) */
.gdl-lkg__slot { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; } .gdl-lkg__slot + .gdl-lkg__slot { margin-top: 4px; }
.gdl-lkg__mode { flex: none; min-width: 34px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: center; }
.gdl-lkg__mode--onl { background: #e8f1ff; color: #0b4fb3; } .gdl-lkg__mode--off { background: var(--gdl-success-soft); color: var(--gdl-success); }
/* Đợt đã qua ngày khai giảng: cả dòng về một màu xám và mờ đi (như plugin cũ) — vẫn đọc được, link vẫn bấm được */
.gdl-lkg__row--past td, .gdl-lkg__row--past .gdl-lkg__name a, .gdl-lkg__row--past .gdl-lkg__cohort, .gdl-lkg__row--past .gdl-lkg__date { color: var(--gdl-muted); }
.gdl-lkg__row--past td { opacity: .6; } .gdl-lkg__row--past .gdl-lkg__mode { background: #eef1f5; color: var(--gdl-muted); }
.gdl-lkg__date, .gdl-lkg__fee { white-space: nowrap; } .gdl-lkg__date { font-weight: 600; color: var(--gdl-red); } .gdl-lkg__fee { font-weight: 600; }
@media (max-width: 640px) {
	.gdl-lkg__table thead { display: none; } .gdl-lkg__table, .gdl-lkg__table tbody, .gdl-lkg__table tr, .gdl-lkg__table td { display: block; width: 100%; }
	.gdl-lkg__table tr { padding: 12px 16px; border-bottom: 1px solid var(--gdl-line); } .gdl-lkg__table tr:last-child { border-bottom: 0; }
	.gdl-lkg__table td { padding: 2px 0; border: 0; min-width: 0; } .gdl-lkg__table td:not(.gdl-lkg__name)::before { content: attr(data-label) ": "; font-weight: 400; color: var(--gdl-muted); }
	.gdl-lkg__filter select { max-width: 100%; } .gdl-lkg__slot { white-space: normal; }
}
.gdl-lkg__header { padding: 14px 20px; background: #fff; color: var(--gdl-ink); border-bottom: 1px solid var(--gdl-line); }
.gdl-lkg__title { font-size: 16px; }
.gdl-lkg__filter select { border: 1px solid var(--gdl-line-strong); font-weight: 400; }

/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   Beta29 — NÚT ĐĂNG KÝ, NÚT CHAT ZALO và BẢNG LỊCH KHAI GIẢNG theo mẫu của plugin Giáo dục Linhna cũ
   (chủ dự án 30/11/2026: "viết lại… nút đăng ký, nút zalo và mẫu hiển thị lịch khai giảng giống như cũ, kể cả nền";
   form đăng ký KHÔNG đổi — vẫn theo phong cách A ở trên). Đặt cuối tệp để thay các giá trị ở trên. Viết lại theo mẫu, không chép tệp của bản cũ.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Nút đăng ký: nền đỏ thương hiệu, viền trên cam, chữ in hoa, dòng phụ vàng nhạt, hình bấm ở góc phải ── */
.gdl-trigger-wrap { display: flex; align-items: center; justify-content: center; min-height: 66px; margin: 18px 0; }
.gdl-trigger-wrap > .gdl-trigger {
	position: relative; z-index: 20; display: inline-flex; flex-direction: column; align-items: center; gap: 0;
	width: max-content; min-width: max-content; max-width: min(100%, calc(100vw - 24px)); padding: 9px 50px 6px 30px;
	border: 0; border-top: 3px solid #ffa500; border-radius: 10px; background: var(--gdl-red); color: #fff;
	box-shadow: 0 4px 6px rgb(50 50 93 / 24%), 0 1px 3px rgb(0 0 0 / 8%); cursor: pointer; overflow: hidden;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; text-transform: none;
	transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.gdl-trigger-wrap > .gdl-trigger:hover { background: #ffa500; color: #4b2900; box-shadow: 0 6px 10px rgb(154 94 0 / 20%), 0 2px 4px rgb(0 0 0 / 8%); }
.gdl-trigger-wrap .gdl-trigger__title { color: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.4; text-transform: uppercase; }
.gdl-trigger__subtext-stack { display: grid; max-width: 100%; min-height: 17px; color: #ffffb5; font-size: 12px; font-weight: 400; line-height: 1.4; }
.gdl-trigger-wrap .gdl-trigger__subtext, .gdl-trigger__sizer { grid-area: 1 / 1; }
.gdl-trigger-wrap .gdl-trigger__subtext { display: block; color: #ffffb5; font-size: 12px; line-height: 1.4; white-space: nowrap; opacity: 1; transition: none; }
.gdl-trigger__sizer { display: grid; visibility: hidden; pointer-events: none; }
.gdl-trigger__sizer > span { grid-area: 1 / 1; display: block; white-space: nowrap; }
.gdl-trigger-wrap > .gdl-trigger:hover .gdl-trigger__subtext-stack, .gdl-trigger-wrap > .gdl-trigger:hover .gdl-trigger__subtext { color: #613900; }
.gdl-trigger__icon { position: absolute; z-index: 2; top: 3px; right: 4px; display: block; width: 42px; height: 42px; transform-origin: center; animation: gdl-click-zoom 2.4s ease-in-out infinite; }
.gdl-trigger__icon svg { display: block; width: 100%; height: 100%; }
@keyframes gdl-click-zoom { 0%, 72%, 100% { transform: scale(1); } 82% { transform: scale(1.055); } 90% { transform: scale(.985); } }
/* Nút "chạy theo trang": bình thường nằm tại chỗ trong bài; khi chỗ đó trôi khỏi màn hình thì dính ở đáy màn hình (frontend.js đặt lớp is-fixed), kéo tới thì về lại chỗ. */
.gdl-trigger-wrap > .gdl-trigger--sticky { position: relative; right: auto; bottom: auto; left: auto; }
.gdl-trigger-wrap > .gdl-trigger.is-fixed { position: fixed; z-index: 99990; right: auto; bottom: max(2px, env(safe-area-inset-bottom, 0px)); left: 50%; margin: 0; transform: translateX(-50%); }
@media (max-width: 380px) {
	.gdl-trigger-wrap > .gdl-trigger { width: calc(100vw - 24px); min-width: 0; }
	.gdl-trigger__subtext-stack { width: 100%; }
	.gdl-trigger-wrap .gdl-trigger__subtext, .gdl-trigger__sizer > span { white-space: normal; }
}

/* ── Nút Chat Zalo nổi: hình Zalo tròn có chấm xanh "đang trực"; ô nhắc màu trắng viền trên cam nằm bên trái nút ── */
.gdl-zalo-widget { position: fixed; z-index: 99980; right: 20px; bottom: max(50px, calc(env(safe-area-inset-bottom, 0px) + 18px)); display: block; gap: 0; }
.gdl-zalo-widget > .gdl-zalo-float { position: relative; display: block; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; cursor: pointer; animation: none; transition: none; }
.gdl-zalo-widget > .gdl-zalo-float:hover { box-shadow: none; transform: none; }
.gdl-zalo-float::after { content: ""; position: absolute; right: -2px; bottom: -1px; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: #25c26e; }
.gdl-zalo-float img, .gdl-zalo-float svg { display: block; width: 100%; height: 100%; border-radius: inherit; }
.gdl-zalo-widget > .gdl-zalo-tooltip {
	position: fixed; right: 85px; bottom: 71px; width: 300px; max-width: none; min-height: 85px; padding: 10px 20px;
	border: 0; border-top: 3px solid #ffa500; border-radius: 8px; background: #fff; color: #000; box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
	font-size: 14px; font-weight: 400; line-height: 1.4;
}
.gdl-zalo-widget .gdl-zalo-tooltip__close { position: absolute; top: -12px; right: -10px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0 0 1px; border: 0; border-radius: 50%; background: #5e5e5e; color: #fff; font-size: 12px; font-weight: 400; line-height: 1; cursor: pointer; }
.gdl-zalo-widget .gdl-zalo-tooltip__close:hover { background: #444; }
.gdl-zalo-tooltip .gdl-zalo-tooltip__title { margin: 0 0 7px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.gdl-zalo-tooltip .gdl-recent { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; min-width: 0; margin: 0 !important; padding: 6px 0 0; border-top: 1px dashed #e7e7e7; color: #898989; font-size: 12px; font-style: italic; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.gdl-recent__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gdl-recent__live { flex: 0 0 auto; padding: 2px 4px 1px; border-radius: 3px; background: #e5343d; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.gdl-zalo-tooltip [data-gdl-recent-own], .gdl-zalo-tooltip [data-gdl-recent-random] { color: #ec6171; }
@media (max-width: 600px) {
	.gdl-zalo-widget { right: 14px; bottom: max(82px, calc(env(safe-area-inset-bottom, 0px) + 50px)); }
	.gdl-zalo-widget > .gdl-zalo-tooltip { right: 14px; bottom: 148px; width: min(300px, calc(100vw - 28px)); }
}

/* ── Bảng lịch khai giảng: không khung bao; tiêu đề một dòng, hình tờ lịch mờ ở góc phải; hàng tiêu đề nền hồng nhạt bo góc; ngày khai giảng là nhãn xanh; lớp đã qua màu xám ── */
.gdl-lkg { --gdl-lkg-red: #b32025; --gdl-lkg-ink: #27272a; --gdl-lkg-muted: #68686f; --gdl-lkg-past: #bfbfbf; --gdl-lkg-line: #ece7e7;
	margin: 1.5em 0; border: 0; border-radius: 0; background: transparent; overflow: visible; color: inherit; font-size: inherit; }
.gdl-lkg .gdl-lkg__header { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; background: none; color: inherit; }
.gdl-lkg .gdl-lkg__header::before { content: ""; position: absolute; z-index: -1; top: 50%; right: 12px; width: 210px; height: 118px; max-width: 60%; transform: translateY(-50%); background: url("../images/schedule-calendar.svg") center / contain no-repeat; opacity: .09; pointer-events: none; }
.gdl-lkg .gdl-lkg__title { flex: none; width: 100%; margin: 0; padding: 0; color: inherit; font-size: 22px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.gdl-lkg .gdl-lkg__filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; width: 100%; min-width: 0; }
.gdl-lkg .gdl-lkg__filter { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; margin: 0; font-size: 15px; }
.gdl-lkg .gdl-lkg__filter--month { margin-left: auto; }
.gdl-lkg__label { display: inline-flex; align-items: center; gap: 7px; color: var(--gdl-lkg-muted); font-size: 15px; line-height: 1.4; white-space: nowrap; }
.gdl-lkg__icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: var(--gdl-lkg-red); }
.gdl-lkg .gdl-lkg__filter select { min-height: 42px; max-width: 100%; padding: 8px 32px 8px 12px; border: 1px solid #d8d2d2; border-radius: 7px; background-color: #fff; color: var(--gdl-lkg-ink); font: inherit; font-size: 15px; font-weight: 400; line-height: 1.4; box-shadow: none; cursor: pointer; }
.gdl-lkg .gdl-lkg__filter select:disabled { opacity: .65; cursor: wait; }
.gdl-lkg .gdl-lkg__filter select:focus-visible, .gdl-lkg .gdl-lkg__retry:focus-visible, .gdl-lkg .gdl-lkg__name a:focus-visible { outline: 2px solid var(--gdl-lkg-red); outline-offset: 3px; }
.gdl-lkg .gdl-lkg__notice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #ecd8af; border-radius: 7px; background: #fff9ed; color: #775623; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.gdl-lkg .gdl-lkg__status { margin: 0; padding: 24px 20px; border: 1px solid var(--gdl-lkg-line); border-radius: 8px; background: #faf9f9; color: var(--gdl-lkg-muted); font-size: 15px; line-height: 1.6; text-align: left; }
.gdl-lkg[data-state="error"] .gdl-lkg__status { border-color: #ead7d8; background: #fff8f8; color: #882127; }
.gdl-lkg .gdl-lkg__retry { display: inline-block; min-height: 42px; margin: 12px 0 0; padding: 8px 18px; border: 1px solid var(--gdl-lkg-red); border-radius: 7px; background: var(--gdl-lkg-red); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.gdl-lkg .gdl-lkg__retry:hover { border-color: #8f1d23; background: #8f1d23; }
.gdl-lkg .gdl-lkg__table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; background: transparent; font-size: 15px; line-height: 1.55; }
.gdl-lkg .gdl-lkg__table th { padding: 13px 16px; border: 0; background: #fcf3f3; color: #8f1d23; font-size: 15px; font-weight: 600; text-align: left; white-space: nowrap; }
.gdl-lkg .gdl-lkg__table th:first-child { border-radius: 10px 0 0 10px; }
.gdl-lkg .gdl-lkg__table th:last-child { border-radius: 0 10px 10px 0; text-align: right; }
.gdl-lkg .gdl-lkg__table td { padding: 18px 16px; border: 0; border-bottom: 1px solid var(--gdl-lkg-line); background: #fff; color: inherit; font-size: 15px; font-weight: 400; line-height: 1.55; vertical-align: middle; }
.gdl-lkg .gdl-lkg__table tr:last-child td { border-bottom: 0; }
@media (hover: hover) { .gdl-lkg .gdl-lkg__table tbody tr:hover td { background: #fdfcfc; } }
.gdl-lkg .gdl-lkg__name { min-width: 220px; font-weight: 400; }
.gdl-lkg .gdl-lkg__name a, .gdl-lkg .gdl-lkg__name a:visited { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.gdl-lkg .gdl-lkg__name a:hover { color: inherit; text-decoration: underline; }
.gdl-lkg .gdl-lkg__cohort { display: block; margin-top: 2px; color: var(--gdl-lkg-muted); font-size: 13px; font-weight: 400; line-height: 1.45; white-space: nowrap; }
.gdl-lkg .gdl-lkg__date, .gdl-lkg .gdl-lkg__fee { white-space: nowrap; }
.gdl-lkg .gdl-lkg__date { color: inherit; font-weight: 600; }
.gdl-lkg__day { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid #d6eddd; border-radius: 8px; background: #eef8f1; color: #15803d; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.gdl-lkg .gdl-lkg__fee { font-weight: 400; text-align: right; }
.gdl-lkg .gdl-lkg__row--past td, .gdl-lkg .gdl-lkg__row--past td *, .gdl-lkg .gdl-lkg__row--past .gdl-lkg__name a, .gdl-lkg .gdl-lkg__row--past .gdl-lkg__cohort, .gdl-lkg .gdl-lkg__row--past .gdl-lkg__date { color: var(--gdl-lkg-past); }
.gdl-lkg .gdl-lkg__row--past td { opacity: 1; }
.gdl-lkg .gdl-lkg__row--past .gdl-lkg__day { border-color: #e5e5e5; background: #f5f5f5; color: var(--gdl-lkg-past); }
.gdl-lkg .gdl-lkg__row--past .gdl-lkg__mode { background: #f5f5f5; color: var(--gdl-lkg-past); }
@media (max-width: 640px) {
	.gdl-lkg .gdl-lkg__title { font-size: 19px; }
	.gdl-lkg .gdl-lkg__filter, .gdl-lkg .gdl-lkg__filter--month { width: 100%; margin-left: 0; justify-content: space-between; }
	.gdl-lkg .gdl-lkg__filter select { max-width: 62%; }
	.gdl-lkg .gdl-lkg__table tr { padding: 14px 0; border-bottom: 1px solid var(--gdl-lkg-line); }
	.gdl-lkg .gdl-lkg__table tr:last-child { border-bottom: 0; }
	.gdl-lkg .gdl-lkg__table td { padding: 3px 0; border: 0; background: transparent; }
	.gdl-lkg .gdl-lkg__table tbody tr:hover td { background: transparent; }
	.gdl-lkg .gdl-lkg__name { min-width: 0; margin-bottom: 4px; font-weight: 600; }
	.gdl-lkg .gdl-lkg__fee { text-align: left; }
	.gdl-lkg .gdl-lkg__table td:not(.gdl-lkg__name)::before { color: var(--gdl-lkg-muted); }
}
@media (prefers-reduced-motion: reduce) { .gdl-trigger__icon { animation: none; } .gdl-trigger-wrap > .gdl-trigger { transition: none; } }
/* Phần tử đang ẩn (ô lọc trường khi chỉ có một trường, bảng khi chưa tải xong…) luôn ẩn, dù quy tắc bố cục ở trên có đặt display. */
.gdl-lkg [hidden] { display: none !important; }

/* ── Beta30 — lịch khai giảng KHÔNG có nền (chủ dự án 30/11/2026, đối chiếu trang đang chạy bản cũ chungchiketoantruong.vn):
   các dòng trong suốt — bảng nằm thẳng trên nền của trang, không thành mảng trắng khi trang có màu nền; chỉ hàng tiêu đề giữ nền hồng nhạt.
   Tiêu đề lịch cùng cỡ chữ với bài viết (bản cũ không đặt cỡ riêng); cột tên rộng, cột ngày và học phí vừa khít nội dung như bản cũ. ── */
.gdl-lkg .gdl-lkg__table td,
.gdl-lkg .gdl-lkg__table tbody tr,
.gdl-lkg .gdl-lkg__table tbody tr:hover td { background: transparent; }
.gdl-lkg .gdl-lkg__title { font-size: inherit; font-weight: inherit; line-height: inherit; }
.gdl-lkg .gdl-lkg__table th:nth-child(2), .gdl-lkg .gdl-lkg__table td.gdl-lkg__date { width: 1%; }
.gdl-lkg .gdl-lkg__table th:nth-child(4), .gdl-lkg .gdl-lkg__table td.gdl-lkg__fee { width: 1%; }
.gdl-lkg .gdl-lkg__table th:first-child, .gdl-lkg .gdl-lkg__table td.gdl-lkg__name { width: 52%; }
@media (max-width: 640px) {
	.gdl-lkg .gdl-lkg__title { font-size: inherit; }
	.gdl-lkg .gdl-lkg__table th, .gdl-lkg .gdl-lkg__table td.gdl-lkg__date, .gdl-lkg .gdl-lkg__table td.gdl-lkg__fee, .gdl-lkg .gdl-lkg__table td.gdl-lkg__name { width: 100%; }
}
