/* Trang chủ — tông dịu, không chói */

body.pkl-home-mode {
  background: #d4ddd8;
  color: #3a4f48;
  min-height: 100vh;
}

body.pkl-home-mode .pkl-site-header {
  background: rgba(220, 228, 223, 0.95);
  border-bottom: 1px solid rgba(58, 79, 72, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

body.pkl-home-mode .pkl-brand,
body.pkl-home-mode .pkl-nav a,
body.pkl-home-mode .pkl-nav-user {
  color: #4a5f58;
}

body.pkl-home-mode .pkl-nav a:hover {
  color: #3d6b5c;
}

body.pkl-home-mode .pkl-site-footer {
  border-top-color: rgba(58, 79, 72, 0.1);
  color: #6b7f76;
}

.pkl-home-app {
  position: relative;
  padding-bottom: 64px;
  overflow-x: hidden;
}

/* Nền trang trí — rất nhẹ */
.pkl-home-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pkl-home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.pkl-home-orb-1 {
  width: 360px;
  height: 360px;
  background: #9bb8a8;
  top: -100px;
  right: -60px;
}

.pkl-home-orb-2 {
  width: 300px;
  height: 300px;
  background: #b8a898;
  bottom: 8%;
  left: -80px;
}

.pkl-home-orb-3 {
  width: 260px;
  height: 260px;
  background: #98a8b8;
  top: 50%;
  right: 8%;
}

/* Thanh tiến trình */
.pkl-home-steps {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 24px 8px;
  max-width: 280px;
  margin: 0 auto;
}

.pkl-home-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b0c0b8;
  border: none;
  box-shadow: none;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.pkl-home-step-dot.active {
  width: 11px;
  height: 11px;
  background: #5a7d6e;
  box-shadow: none;
}

.pkl-home-step-dot.done {
  background: #8aa396;
}

.pkl-home-step-line {
  flex: 1;
  height: 2px;
  background: #b8c8c0;
  border-radius: 1px;
  max-width: 48px;
}

/* Các bước */
.pkl-home-step {
  position: relative;
  z-index: 1;
  padding: 16px 24px 48px;
  max-width: 920px;
  margin: 0 auto;
  animation: pkl-step-in 0.35s ease;
}

@keyframes pkl-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pkl-home-hero {
  text-align: center;
  margin-bottom: 28px;
}

.pkl-home-badge {
  display: inline-block;
  background: #c8d8d0;
  color: #3d5c50;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: none;
}

.pkl-home-badge--login {
  background: #c5d0dc;
  color: #3d5068;
}

.pkl-home-badge--parent {
  background: #d8cfc0;
  color: #5c5040;
}

.pkl-home-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4.5vw, 2.2rem);
  font-weight: 700;
  color: #354840;
  line-height: 1.2;
}

.pkl-home-sub {
  color: #5c6f66;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 420px;
}

.pkl-home-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c8d4cc;
  border: 1px solid rgba(58, 79, 72, 0.12);
  color: #4a5f58;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  transition: background 0.2s ease;
}

.pkl-home-back:hover {
  color: #354840;
  background: #bccbc2;
  transform: none;
  box-shadow: none;
}

.pkl-home-back-light {
  background: #c8d4cc;
  color: #4a5f58;
}

/* Panel chính */
.pkl-home-panel {
  background: #e4ebe6;
  border: 1px solid rgba(58, 79, 72, 0.1);
  border-radius: 20px;
  padding: 28px 24px 32px;
  box-shadow: none;
}

.pkl-home-panel-subjects {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* Lưới lớp */
.pkl-grade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .pkl-grade-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}

.pkl-grade-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1;
  border: 1px solid rgba(58, 79, 72, 0.12);
  border-radius: 16px;
  background: #dce4df;
  color: #354840;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
}

.pkl-grade-num {
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
  color: #3d5c50;
  -webkit-text-fill-color: #3d5c50;
  background: none;
}

.pkl-grade-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7f76;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pkl-grade-btn:hover {
  background: #cfd9d3;
  border-color: rgba(58, 79, 72, 0.2);
  transform: none;
  box-shadow: none;
}

.pkl-grade-btn:active {
  background: #c5d0ca;
}

.pkl-grade-btn:nth-child(3n+1),
.pkl-grade-btn:nth-child(3n+2),
.pkl-grade-btn:nth-child(3n+3) {
  background: #dce4df;
}

/* Môn học — pastel chữ tối, không gradient chói */
.pkl-subject-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .pkl-subject-grid { grid-template-columns: 1fr; }
}

.pkl-subject-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 18px 24px;
  border: 1px solid rgba(58, 79, 72, 0.12);
  border-radius: 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: none;
  text-align: center;
}

.pkl-subject-btn--toan {
  background: #c5ddd2;
  color: #2d4a40;
}

.pkl-subject-btn--tieng-anh {
  background: #c8d0e0;
  color: #2d3850;
}

.pkl-subject-icon {
  font-size: 2.25rem;
  line-height: 1;
  filter: none;
  opacity: 0.85;
}

.pkl-subject-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.pkl-subject-hint {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.75;
}

.pkl-subject-btn:hover {
  transform: none;
  box-shadow: none;
}

.pkl-subject-btn--toan:hover { background: #b8d0c4; }
.pkl-subject-btn--tieng-anh:hover { background: #bcc4d4; }

.pkl-subject-btn:active {
  opacity: 0.92;
}

/* Thẻ form */
.pkl-home-card {
  background: #e4ebe6;
  border: 1px solid rgba(58, 79, 72, 0.1);
  border-radius: 20px;
  padding: 26px 26px 30px;
  box-shadow: none;
  max-width: 440px;
  margin: 0 auto 24px;
}

.pkl-home-card-wide {
  max-width: 640px;
}

.pkl-home-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5c6f66;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pkl-home-field .pkl-input,
.pkl-home-field select.pkl-input {
  margin-top: 0;
  background: #d8e0db;
  border: 1px solid rgba(58, 79, 72, 0.15);
  color: #354840;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.98rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.2s, background 0.2s;
}

.pkl-home-field .pkl-input:focus,
.pkl-home-field select.pkl-input:focus {
  outline: none;
  border-color: #6b8f7e;
  box-shadow: none;
  background: #dce4df;
}

.pkl-home-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5c6f66;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.pkl-home-remember input {
  width: 16px;
  height: 16px;
  accent-color: #5a7d6e;
}

/* Nút */
.pkl-btn-home {
  background: #5a7d6e;
  color: #eef2ef;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: none;
  transition: background 0.2s;
}

.pkl-btn-home:hover {
  background: #4d6d60;
  transform: none;
  box-shadow: none;
}

.pkl-btn-home-outline {
  background: #dce4df;
  color: #3d5c50;
  border: 1px solid rgba(58, 79, 72, 0.2);
  box-shadow: none;
}

.pkl-btn-home-outline:hover {
  background: #cfd9d3;
}

.pkl-btn-block { width: 100%; }

/* Alert */
.pkl-home-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.pkl-home-alert.error {
  background: #e8dcd8;
  color: #7a4540;
  border: 1px solid rgba(122, 69, 64, 0.2);
}

.pkl-home-alert.success {
  background: #d4e4dc;
  color: #2d5040;
  border: 1px solid rgba(45, 80, 64, 0.15);
}

.pkl-home-foot-group {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.pkl-home-foot {
  color: #6b7f76;
  font-size: 0.9rem;
  margin: 0 0 8px;
  line-height: 1.5;
}

.pkl-home-link {
  color: #4d6d60;
  font-weight: 600;
  text-decoration: none;
}

.pkl-home-link:hover {
  color: #3d5c50;
  text-decoration: underline;
}

.pkl-home-empty {
  text-align: center;
  color: #6b7f76;
  margin: 16px 0;
  padding: 18px;
  background: #d8e0db;
  border-radius: 12px;
  border: 1px dashed rgba(58, 79, 72, 0.15);
}

/* Panel Bố */
.pkl-parent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(58, 79, 72, 0.1);
}

.pkl-parent-head h2 {
  margin: 0;
  font-size: 1.08rem;
  color: #354840;
}

.pkl-parent-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4d6d60;
  background: #d0dcd4;
  padding: 5px 11px;
  border-radius: 999px;
}

.pkl-children-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.pkl-child-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #d8e0db;
  border-radius: 14px;
  border: 1px solid rgba(58, 79, 72, 0.1);
}

.pkl-child-row:hover {
  box-shadow: none;
  background: #cfd9d3;
}

.pkl-child-row-info strong {
  display: block;
  color: #354840;
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.pkl-child-row-info span {
  font-size: 0.84rem;
  color: #6b7f76;
}

.pkl-create-child-form {
  border-top: 1px solid rgba(58, 79, 72, 0.1);
  padding-top: 22px;
  margin-top: 8px;
}

.pkl-create-child-form h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #354840;
}

.pkl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .pkl-form-row { grid-template-columns: 1fr; }
  .pkl-grade-grid { grid-template-columns: repeat(3, 1fr); }
  .pkl-home-panel { padding: 20px 16px 24px; }
}

.pkl-home-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.pkl-home-form-note {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: #6b7f76;
  line-height: 1.5;
}

.pkl-home-form-note strong {
  color: #4d6d60;
  font-weight: 600;
}
