/* /phu-huynh – phụ huynh tự dạy ở nhà (dùng chung khung đầu/cuối trang với blog.css) */
[hidden] { display: none !important; }
.bl-top nav a.on { color: var(--acc); }
.hb { padding-top: 22px; padding-bottom: 60px; }
.hb h1 { font-family: 'Baloo 2', sans-serif; line-height: 1.15; }
.hb h2 { font-size: 21px; margin: 0 0 10px; }
.muted { color: var(--mut); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sp { flex: 1; }
.hb-err { color: #b42318; font-weight: 600; min-height: 1em; margin: 6px 0; }
.hb-btn { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; white-space: nowrap; }
.hb-btn:hover { border-color: #fdba9c; }
.hb-btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.hb-btn.small { padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.hb-btn.ghost { background: transparent; border-color: transparent; color: var(--mut); }
.hb-btn.danger { color: #b42318; }
.hb-btn:disabled { opacity: 0.6; cursor: wait; }
.hb-user { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.hb-user img { width: 28px; height: 28px; border-radius: 50%; }

/* khách */
.hb-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 28px; align-items: start; margin-bottom: 36px; }
.hb-hero h1 { font-size: 40px; margin: 6px 0 12px; }
.hb-lead { font-size: 18px; color: #374151; }
.hb-feat { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.hb-feat li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.hb-auth { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 10px 30px rgba(29, 39, 66, 0.07); display: grid; gap: 10px; }
.hb-auth form { display: grid; gap: 8px; }
.hb-auth input, .hb-form input, .hb-form select, .hb-form textarea, .hb-search { width: 100%; border: 1px solid #e3dacb; border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.hb-auth .hb-btn.primary { justify-content: center; padding: 11px; font-size: 16px; }
.hb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hb-seg { display: flex; gap: 4px; background: #f1ebe0; border-radius: 12px; padding: 4px; }
.hb-seg button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--mut); cursor: pointer; white-space: nowrap; }
.hb-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.hb-seg.small button { padding: 5px 10px; font-size: 14px; }
.hb-google { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dadce0; border-radius: 12px; padding: 10px; text-decoration: none; color: #1f1f1f; font-weight: 600; }
.hb-google b { color: #4285f4; font-size: 18px; }
.hb-or { text-align: center; color: var(--mut); font-size: 13px; }
.hb-consent { display: grid; gap: 8px; font-size: 14px; line-height: 1.5; background: #fffaf3; border: 1px solid #f6e3c8; border-radius: 12px; padding: 10px 12px; }
.hb-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.hb-agree input { width: 18px !important; height: 18px; margin-top: 2px; flex: none; accent-color: var(--acc); }
.req { color: #b42318; font-weight: 600; }
.opt { color: var(--mut); }
.hb-gate { max-width: 620px; margin: 20px auto; }

/* đã đăng nhập */
.hb-hello h1 { font-size: 32px; margin: 0; }
.hb-hello p { margin: 2px 0 14px; }
.hb-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.hb-tabs button { border: 0; background: transparent; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--mut); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.hb-tabs button.on { color: var(--ink); border-bottom-color: var(--acc); }
.hb-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.hb-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 16px; }
.hb-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hb-card-head h2 { margin: 0; }
.hb-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.hb-row:last-child { border-bottom: 0; }
.hb-row-main { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.hb-av { width: 42px; height: 42px; border-radius: 50%; background: #ffe6d5; color: #c2410c; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.hb-av.alt { background: #e0f2fe; }
.hb-chip { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 1px 10px; background: #f1ebe0; color: #4a5470; }
.hb-chip.ok { background: #dcfce7; color: #166534; }
.hb-chip.wait { background: #fef3c7; color: #92400e; }
.hb-req { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.hb-req:last-child { border-bottom: 0; }
.hb-req.cancelled, .hb-req.declined { opacity: 0.75; }
.hb-reply { background: #f0fdf4; border-left: 4px solid #22c55e; border-radius: 8px; padding: 4px 10px; font-size: 14.5px; }

/* trò chơi */
.hb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hb-games.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.hb-game { --gc: #ff8a5b; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px; cursor: pointer; display: grid; gap: 4px; font: inherit; color: var(--ink); transition: transform 0.12s, box-shadow 0.12s; border-top: 5px solid var(--gc); }
.hb-game:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 39, 66, 0.1); }
.hb-g-ic { font-size: 34px; line-height: 1; }
.hb-game b { font-size: 16.5px; }
.hb-game small { color: var(--mut); font-size: 13px; line-height: 1.45; }
.hb-tip { margin-top: 14px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 14px; font-size: 15px; }
.hb-search { max-width: 360px; }
.hb-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hb-topic { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 4px; align-content: start; }
.hb-topic p { margin: 0; font-size: 14px; color: #374151; }
.hb-pics { display: flex; gap: 4px; height: 46px; }
.hb-pics > span { width: 46px; height: 46px; display: grid; place-items: center; font-size: 34px; overflow: hidden; border-radius: 10px; background: #faf6ef; }
.hb-pics img { width: 46px; height: 46px; object-fit: cover; }
.hb-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-pick h4 { flex-basis: 100%; margin: 10px 0 0; }
.hb-pick-btn { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.hb-pick-btn:hover { border-color: var(--acc); }
.hb-pick-btn.alt { background: #fff7ed; }

/* cô giáo */
.hb-teachers { margin-top: 10px; }
.hb-tlist { display: grid; gap: 14px; }
.hb-teacher { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.hb-teacher h3 { margin: 0 0 4px; font-size: 20px; }
.hb-teacher h4 { margin: 12px 0 6px; font-size: 15px; }
.hb-teacher p { margin: 6px 0; }
.hb-intro { white-space: pre-line; color: #374151; }
.hb-t-head { display: flex; gap: 12px; align-items: center; }
.hb-t-av { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #ede7ff; color: #5b34c7; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.hb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hb-contact { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; margin: 6px 0; }
.hb-slots { display: grid; gap: 6px; }
.hb-day { display: grid; grid-template-columns: 160px 1fr; gap: 8px; align-items: center; }
.hb-day > b { font-size: 14px; text-transform: capitalize; }
.hb-day > div { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-slot { border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; border-radius: 10px; padding: 4px 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.hb-slot:hover { background: #22c55e; color: #fff; border-color: #22c55e; }
.hb-when { font-weight: 700; font-size: 17px; background: #f0fdf4; border-radius: 12px; padding: 8px 12px; margin: 0; }

/* hộp thoại */
.hb-modal { position: fixed; inset: 0; z-index: 60; background: rgba(29, 39, 66, 0.45); display: grid; place-items: center; padding: 16px; }
.hb-modal-card { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.hb-modal-card.wide { width: min(820px, 100%); }
.hb-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 6px; }
.hb-modal-head h3 { margin: 0; font-size: 19px; }
.hb-x { border: 0; background: #f4efe6; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.hb-modal-body { padding: 8px 18px; overflow: auto; }
.hb-modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 18px 16px; flex-wrap: wrap; }
.hb-form { display: grid; gap: 10px; }
.hb-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14.5px; }
.hb-form .hb-agree { display: flex; font-weight: 400; }

/* màn chơi */
body.hb-playing { overflow: hidden; }
.hb-play { position: fixed; inset: 0; z-index: 70; background: linear-gradient(180deg, #bfe6ff 0%, #dff3ff 60%, #e8f8e2 100%); display: flex; flex-direction: column; }
.hb-play-bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: rgba(255, 255, 255, 0.75); }
.hb-play-bar b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-frame { position: relative; flex: 1; margin: 6px; }
.hb-play .ov { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; color: #23314f; background: rgba(233, 246, 255, 0.92); font-family: 'Baloo 2', system-ui, sans-serif; }
.hb-play .ov .big-emoji { font-size: 120px; line-height: 1; }
.hb-play .ov h1 { margin: 0; font-size: 56px; }
.hb-play .ov p { margin: 0; font-size: 30px; color: #4a5a7a; }
.hb-play .ov .go { margin-top: 16px; border: 0; border-radius: 999px; padding: 14px 44px; font: 800 36px 'Baloo 2', system-ui, sans-serif; color: #fff; background: #2fbf71; box-shadow: 0 8px 0 #1f9255; cursor: pointer; }
.hb-play .ov .go.alt { background: #4d96ff; box-shadow: 0 8px 0 #2f6fd0; }

.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 9px 16px; font-size: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); max-width: 92vw; }

@media (max-width: 820px) {
  .hb-hero { grid-template-columns: 1fr; }
  .hb-hero h1 { font-size: 30px; }
  .hb-day { grid-template-columns: 1fr; gap: 4px; }
  .bl-top nav { gap: 10px; }
  .bl-top nav a { font-size: 14px; }
}
@media (max-width: 600px) {
  .hb-hero h1 { font-size: 26px; }
  .hb-lead { font-size: 16px; }
  .hb-hello h1 { font-size: 25px; }
  .hb-feat li { padding: 8px 12px; font-size: 15px; }
}
@media (max-width: 600px) {
  .bl-top nav { width: 100%; justify-content: space-between; }
  .bl-top nav a[href="/ve-chung-toi.html"] { display: none; }
  .hb-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hb-game { padding: 10px; }
  .hb-game small { display: none; }
  .hb-tabs button { padding: 8px 10px; font-size: 14.5px; }
  .hb-seg.small { overflow-x: auto; }
}
.hb-user-n { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ☁ video bé tập ở nhà (Google Drive của phụ huynh) */
.hb-drive.ok { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #ecfdf5; border: 1px solid #bbf7d0; border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; font-size: 14px; flex-wrap: wrap; }
.hb-child { border-bottom: 1px dashed var(--line); }
.hb-child:last-child { border-bottom: 0; }
.hb-child > .hb-row { border-bottom: 0; }
.hb-vids { display: grid; gap: 6px; margin: 0 0 10px 54px; }
.hb-vid { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #faf7f1; border-radius: 12px; padding: 6px 10px; }
.hb-player { width: 100%; border-radius: 10px; background: #000; margin-top: 4px; }
@media (max-width: 600px) { .hb-vids { margin-left: 0; } }
.hb-player.drive { display: block; border: 0; aspect-ratio: 16 / 9; height: auto; }
.proc-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #fff7d6; border: 1px solid #fcd34d; color: #7c5a00; font-size: 13px; line-height: 1.45; }
/* v25.4: gói Thường / ⭐ Pro của phụ huynh */
.hb-plan { vertical-align: middle; border: 0; border-radius: 999px; padding: 4px 12px; font: 700 13px/1.2 inherit; cursor: pointer; margin-left: 4px; }
.hb-plan.std { background: #eef0f4; color: #4a5470; }
.hb-plan.pro { background: #fff3c4; color: #8a5a00; }
.hb-game.locked { opacity: 0.62; filter: grayscale(0.5); }
.hb-game.locked:hover { opacity: 0.85; }
.hb-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hb-cmp > div { border: 1px solid #e5e7eb; border-radius: 14px; padding: 10px 14px; }
.hb-cmp > div.pro { border-color: #f59e0b; background: #fffbeb; }
.hb-cmp h4 { margin: 0 0 6px; }
.hb-cmp ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.hb-note { margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; background: #fff7d6; border: 1px solid #fcd34d; }
.hb-note.ok { background: #e3f7ec; border-color: #86efac; }
@media (max-width: 600px) { .hb-cmp { grid-template-columns: 1fr; } }
