:root {
  --admin-blue: #134bc4;
  --admin-red: #c8221b;
}
.about-center-image {display:block;width:100%;height:auto;max-height:480px;object-fit:cover;border-radius:14px}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.upload-control {
  padding: 12px;
  background: #eef4ff;
  border: 1px dashed #9ab3e6;
  border-radius: 10px;
}
.upload-preview {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin-top: 12px;
}
.upload-notice {
  color: #254a7f;
}
.lesson-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  background: #101b2e;
  border-radius: 14px;
  margin: 24px 0;
}
.managed-about {
  padding-top: 36px;
  padding-bottom: 36px;
}
.private-record {
  padding: 12px;
  background: #fff3f0;
  border: 1px solid #f0c2ba;
  border-radius: 8px;
  margin: 10px 0;
}
.private-record button {
  display: block;
  margin-top: 12px;
}
body[data-admin-section] {
  background: #f2f5fb;
}
body[data-admin-section] header {
  background: white;
  color: #163a71;
  border-bottom: 1px solid #dce4f2;
}
.admin-nav {
  background: white;
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dce4f2;
}
.admin-nav a {
  border-radius: 7px;
  padding: 9px 12px;
  text-decoration: none;
  color: #17385e;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: #134bc4;
  color: white;
}
.admin-stats > div,
.admin-stats > article {
  border: 1px solid #dce4f2;
  border-top: 4px solid #134bc4;
  background: white;
}
.admin-card {
  border: 1px solid #dce4f2;
  border-radius: 12px;
  box-shadow: 0 5px 20px #132f5b08;
}
.admin-card:hover {
  transform: translateY(-2px);
}
.admin-stats > div:first-child {
  border-top-color: #c8221b;
}
.account-grid .box {
  border-top: 4px solid #134bc4;
}
.auth-box {
  border-radius: 18px;
  box-shadow: 0 10px 30px #1b396910;
}
dialog#confirm {
  width: min(540px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  padding: 28px;
  box-sizing: border-box;
  box-shadow: 0 20px 80px #001e5540;
}
dialog#confirm::backdrop {
  background: #07182b80;
}
.review-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid #dce4f2;
}
.review-row strong {
  font-size: 14px;
  color: #59708a;
}
.review-row span {
  overflow-wrap: anywhere;
}
#confirm button {
  margin-top: 16px;
  margin-right: 10px;
}
#order-detail,
#detail {
  white-space: pre-line;
  line-height: 1.8;
}
.bank-actions {
  display: grid;
  gap: 8px;
}
.bank-actions button:last-child {
  background: #c8221b;
}
.course-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}
.card .course-cover {
  height: 200px;
  border-radius: 0;
}
.course-description-section {
  background: #f5f8ff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  border-left: 4px solid #134bc4;
}
.calendar-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.calendar-controls label {
  display: grid;
  gap: 6px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid #d8e2f1;
  border-top: 1px solid #d8e2f1;
}
.calendar-day,
.calendar-weekday {
  min-width: 0;
  padding: 8px;
  border-right: 1px solid #d8e2f1;
  border-bottom: 1px solid #d8e2f1;
}
.calendar-day {
  min-height: 108px;
  background: white;
}
.calendar-weekday {
  background: #edf3ff;
  text-align: center;
  font-weight: bold;
}
.calendar-day.empty {
  background: #f7f9fc;
}
.calendar-event {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 6px;
  font-size: 12px;
  border: 0;
  border-radius: 5px;
  padding: 6px;
  background: #e8efff;
  color: #134bc4;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.calendar-event.exam {
  background: #ffeae7;
  color: #ad241b;
}
.schedule-detail {
  max-width: 680px;
}
.schedule-detail dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}
.schedule-detail dd {
  margin: 0;
}
.schedule-detail .seat-state {
  padding: 12px;
  border-radius: 8px;
  background: #e9f6ee;
  color: #21643b;
}
.schedule-detail .seat-state.full {
  background: #ffeae7;
  color: #ad241b;
}
.calendar-legend {
  display: flex;
  gap: 20px;
  margin: 16px 0;
}
.calendar-legend span:first-child {
  color: #134bc4;
}
.calendar-legend span:last-child {
  color: #ad241b;
}
@media (max-width: 600px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    position: static;
  }
  .calendar-grid {
    display: block;
    border: 0;
  }
  .calendar-weekday,
  .calendar-day.empty {
    display: none;
  }
  .calendar-day {
    border: 1px solid #d8e2f1;
    border-radius: 10px;
    min-height: auto;
    margin-bottom: 10px;
  }
  .calendar-day:not(:has(.calendar-event)) {
    display: none;
  }
  .calendar-event {
    font-size: 15px;
  }
  .schedule-detail dl {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .schedule-detail dt {
    font-weight: bold;
  }
  .course-cover {
    height: 200px;
  }
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-stats article {
  padding: 20px;
  border-radius: 12px;
}
.admin-stats strong {
  display: block;
  font-size: 26px;
  margin-top: 12px;
}
.admin-stats small {
  line-height: 1.5;
  display: block;
}
.admin-nav a[aria-current="page"] {
  background: #134bc4;
  color: white;
}
dialog.schedule-detail {
  border: 0;
  border-radius: 18px;
  padding: 24px;
  width: min(680px, calc(100vw - 32px));
  box-sizing: border-box;
  max-height: 90vh;
  overflow: auto;
}
dialog.schedule-detail::backdrop {
  background: #07182b80;
}
@media (max-width: 700px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#account-panel > .box:first-child {
  border: 0;
  background: linear-gradient(120deg, #0c3280, #1755c3);
  color: white;
  border-radius: 18px;
  padding: 28px;
}
#account-panel > .box:first-child h1 {
  color: white;
}
#account-panel > .box:first-child .btn {
  background: white;
  color: #134bc4;
}
#account-panel > .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
#account-panel > .row > .box {
  margin: 0;
  border-radius: 16px;
  border-top: 4px solid #134bc4;
}
#account-panel > section {
  margin-top: 24px;
}
@media (max-width: 700px) {
  #account-panel > .row {
    grid-template-columns: 1fr;
  }
  #account-panel nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
}
.calendar-controls button {
  border: 1px solid #c7d7ef;
  background: white;
  color: #134bc4;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.calendar-controls button:hover {
  background: #e9f0ff;
}
.calendar-controls input {
  border: 1px solid #c7d7ef;
  border-radius: 9px;
  min-height: 44px;
  padding: 8px 12px;
  background: white;
  font: inherit;
  box-sizing: border-box;
  color: #17385e;
}
.calendar-controls label {
  font-size: 14px;
  font-weight: 600;
  color: #385b85;
}
.calendar-day strong {
  font-size: 14px;
  color: #385b85;
}
.monthly-calendar {
  margin-bottom: 40px;
}
.calendar-event:hover {
  box-shadow: 0 0 0 1px #134bc4;
}
.calendar-event.exam:hover {
  box-shadow: 0 0 0 1px #ad241b;
}
@media (max-width: 600px) {
  .calendar-controls {
    align-items: end;
  }
  .calendar-controls label {
    max-width: 100%;
  }
  .calendar-controls input {
    max-width: 100%;
  }
  .monthly-calendar {
    padding: 16px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e0e8f5;
  }
  .calendar-event {
    padding: 10px;
  }
}

/* Giới thiệu: ảnh và nội dung có khoảng cách rõ ràng, dễ đọc trên điện thoại. */
#gioi-thieu .two {align-items:start;gap:32px}
#gioi-thieu .article-body {white-space:normal;line-height:1.85;overflow-wrap:anywhere}
#gioi-thieu .article-body p {margin:0 0 16px}
#gioi-thieu .article-body ol {padding-left:24px;margin:16px 0}
#gioi-thieu .article-body li {padding-left:6px;margin-bottom:14px}
#gioi-thieu .article-body li::marker {color:#164fa6;font-weight:700}
@media(max-width:760px){#gioi-thieu .two {grid-template-columns:1fr;gap:24px}}
