/* Thầy Hay — one stylesheet for public pages, teacher shops, the teacher dashboard and admin. */

:root {
  --ink: #13231f;
  --ink-2: #33433f;
  --muted: #5e6b67;
  --line: #e6e2da;
  --line-2: #d6d0c4;
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --card: #ffffff;
  --brand: #0b6b5e;
  --brand-ink: #08574c;
  --brand-soft: #e3f2ee;
  --accent: #f5a524;
  --accent-ink: #8a5600;
  --accent-soft: #fff3dc;
  --zalo: #0068ff;
  --zalo-ink: #0052cc;
  --red: #c8321f;
  --red-soft: #fdece9;
  --warn: #9a5b00;
  --warn-soft: #fff4dd;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(19 35 31 / 6%);
  --shadow: 0 12px 30px -16px rgb(19 35 31 / 28%), 0 2px 6px rgb(19 35 31 / 5%);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --focus: 0 0 0 4px rgb(11 107 94 / 22%);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.icon {
  flex: none;
  vertical-align: -0.15em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 620px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.muted {
  color: var(--muted);
}

.ok {
  color: var(--brand);
}

.err {
  color: var(--red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stack {
  display: grid;
  gap: 16px;
}

.grid2,
.grid3 {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid3 {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.plain {
  padding-left: 20px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* ---------- logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo > span {
  white-space: nowrap;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-ink);
}

.btn--accent {
  background: var(--accent);
  color: #3a2500;
}

.btn--accent:hover {
  background: #e8961a;
}

.btn--soft {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.btn--soft:hover {
  background: #d3ebe4;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--paper-2);
}

.btn--danger {
  background: var(--red-soft);
  color: var(--red);
}

.btn--zalo {
  background: var(--zalo);
  color: #fff;
}

.btn--zalo:hover {
  background: var(--zalo-ink);
}

.btn--call {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--call:hover {
  background: var(--paper-2);
}

.btn--sm {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--lg {
  min-height: 52px;
  padding: 13px 22px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--paper-2);
}

.icon-btn--danger {
  color: var(--red);
}

/* Keep Delete away from Edit so a thumb cannot hit it by mistake. */
.row__acts .icon-btn--danger {
  margin-left: 8px;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.copy.is-copied {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-ink);
}

/* ---------- forms ---------- */

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  min-width: 0;
}

fieldset.field {
  border: 0;
  padding: 0;
}

.field__label {
  font-weight: 700;
  font-size: 14.5px;
  padding: 0;
}

.field__opt {
  color: var(--muted);
  font-weight: 500;
}

.field__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.field--error .input {
  border-color: var(--red);
}

textarea.input {
  resize: vertical;
  line-height: 1.5;
}

select.input {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.input--sm {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 9px;
}

.input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.input-group:focus-within {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.input-group .input {
  border: 0;
  box-shadow: none;
  padding-left: 2px;
  min-width: 0;
}

.input-group__prefix {
  display: flex;
  align-items: center;
  padding: 0 0 0 13px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: none;
}

.check--error {
  color: var(--red);
}

.chips-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick input {
  position: absolute;
  opacity: 0;
}

.pick span {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pick input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pick input:focus-visible + span {
  box-shadow: var(--focus);
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.upload {
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.upload__input {
  position: absolute;
  opacity: 0;
  width: 1px;
}

.upload small {
  color: var(--muted);
  font-size: 13px;
}

.form-card .card__title {
  margin-top: 22px;
}

.form-card .card__title:first-of-type {
  margin-top: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.inline-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ---------- flash, alerts, badges ---------- */

.flash {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  margin-bottom: 14px;
}

.flash--ok {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.flash--err {
  background: var(--red-soft);
  color: var(--red);
}

.alert-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 14.5px;
}

.alert-bar > span {
  flex: 1 1 260px;
}

.alert-bar--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.alert-bar--err {
  background: var(--red-soft);
  color: var(--red);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.badge--ok {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.welcome {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--brand-soft), var(--accent-soft));
  color: var(--brand-ink);
}

.welcome p {
  margin: 2px 0 0;
  color: var(--ink-2);
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}

.verified--sm {
  padding: 2px 8px 2px 5px;
  font-size: 12px;
}

/* ---------- avatar & stars ---------- */

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
  font-weight: 800;
  color: #fff;
}

.avatar--xs {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar--md {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.avatar--xl {
  width: 104px;
  height: 104px;
  font-size: 36px;
  box-shadow: 0 0 0 4px #fff, var(--shadow);
}

.avatar--t0 { background: #0b6b5e; }
.avatar--t1 { background: #c2562b; }
.avatar--t2 { background: #2f5ea8; }
.avatar--t3 { background: #7a4bb0; }
.avatar--t4 { background: #b23a63; }
.avatar--t5 { background: #8a6a00; }

.stars {
  display: inline-flex;
  gap: 1px;
  vertical-align: -2px;
}

.stars__s {
  color: var(--line-2);
  display: inline-flex;
}

.stars__s.is-on {
  color: var(--accent);
}

.stars__s.is-on .icon {
  fill: currentColor;
}

.rate {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rate input {
  position: absolute;
  opacity: 0;
}

.rate label {
  color: var(--line-2);
  cursor: pointer;
  display: inline-flex;
}

.rate input:checked ~ label,
.rate label:hover,
.rate label:hover ~ label {
  color: var(--accent);
}

.rate input:checked ~ label .icon,
.rate label:hover .icon,
.rate label:hover ~ label .icon {
  fill: currentColor;
}

.rate input:focus-visible + label {
  box-shadow: var(--focus);
  border-radius: 8px;
}

.rating-big {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

/* ---------- site chrome ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(247 245 240 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15px;
}

.topbar__nav > a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
}

.topbar__nav > a:first-child {
  display: none;
}

@media (min-width: 720px) {
  .topbar__nav > a:first-child {
    display: inline;
  }
}

/* Login stays visible on phones: returning teachers need it. */
.topbar__login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

/* Very narrow phones: the footer carries the login link instead. */
@media (max-width: 389px) {
  .topbar__login {
    display: none;
  }
}

/* Phone header: logo and CTA stay on one line; the short label shows under 420px. */
.topbar__cta {
  min-height: 44px;
  white-space: nowrap;
  flex: none;
}

.cta-short {
  display: none;
}

@media (max-width: 419px) {
  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .topbar__nav {
    gap: 8px;
  }
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.owner-bar {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  padding: 8px 0;
}

.owner-bar .icon {
  margin-right: 6px;
}

.footer {
  margin-top: 48px;
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer__in {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .footer__in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer__tag {
  max-width: 420px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
}

.footer__links a {
  color: var(--ink-2);
}

/* ---------- home ---------- */

.hero {
  padding: 40px 0 36px;
  background:
    radial-gradient(900px 340px at 85% -10%, rgb(245 165 36 / 18%), transparent 60%),
    radial-gradient(700px 300px at 0% 0%, rgb(11 107 94 / 14%), transparent 60%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.hero__title {
  margin: 0;
  font-size: clamp(30px, 6.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__title span {
  color: var(--brand);
}

.hero__sub {
  max-width: 640px;
  margin: 14px 0 24px;
  color: var(--ink-2);
  font-size: 17px;
}

.search {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

@media (min-width: 820px) {
  .search {
    grid-template-columns: 1fr 1fr 1.2fr auto;
    align-items: end;
  }
}

.search--compact {
  margin: 16px 0 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.search__cell {
  display: grid;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--paper);
}

.search__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search__input {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  outline: none;
}

.search__btn {
  min-height: 54px;
}

.section {
  padding: 36px 0;
}

.section--tint {
  background: #fff;
  border-block: 1px solid var(--line);
}

.section__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.catgroup + .catgroup {
  margin-top: 18px;
}

.catgroup__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.cat {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.cat:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.cat__name {
  font-weight: 700;
}

.cat__n {
  color: var(--muted);
  font-size: 13px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.step h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--ink-2);
}

.step__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.cta {
  display: grid;
  gap: 18px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
}

@media (min-width: 820px) {
  .cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 36px 40px;
  }
}

.cta__title {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 30px);
}

.cta__sub {
  margin: 8px 0 0;
  max-width: 620px;
  color: rgb(255 255 255 / 86%);
}

/* ---------- teacher card & listing ---------- */

.tgrid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .tgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .tgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tcard {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.tcard:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.tcard__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tcard__who {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
}

.tcard__name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.tcard__headline {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcard__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tcard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tcard__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.tcard__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tcard__rating small {
  color: var(--muted);
}

.tcard__price b {
  color: var(--brand-ink);
}

.tcard__video {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}

.listing {
  padding-top: 24px;
  padding-bottom: 24px;
}

.listing__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
}

.listing__count {
  min-height: 1.5em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 40px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-2);
}

.empty h2 {
  margin: 8px 0 0;
  font-size: 20px;
}

.empty p {
  margin: 4px 0 0;
}

.empty--small {
  padding: 24px 16px;
  background: #fff;
}

.empty__cta {
  font-size: 14px;
  color: var(--muted);
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.pager > :last-child {
  justify-self: end;
}

.pager__info {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- teacher page ---------- */

.tpage-body {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

@media (min-width: 860px) {
  .tpage-body {
    padding-bottom: 0;
  }
}

.topbar--slim .topbar__in {
  min-height: 56px;
}

.tpage {
  padding-top: 24px;
  padding-bottom: 32px;
}

.tpage__hero {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .tpage__hero {
    grid-template-columns: auto 1fr;
    gap: 26px;
    padding: 30px;
  }
}

.tpage__who {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.tpage__name {
  margin: 0;
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tpage__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tpage__headline {
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
}

.tpage__facts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 15px;
}

.tpage__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpage__facts > li > .icon {
  color: var(--brand);
}

.tpage__socials {
  display: flex;
  gap: 8px;
}

.tpage__socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.contact .btn {
  flex: 1 1 180px;
}

.tpage__who .contact {
  display: none;
}

@media (min-width: 860px) {
  .tpage__who .contact {
    display: flex;
  }

  .contact .btn {
    flex: 0 0 auto;
  }
}

.contact-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 96%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgb(19 35 31 / 40%);
}

.contact-dock .contact {
  margin: 0;
  flex-wrap: nowrap;
}

.contact-dock .contact__num {
  display: none;
}

@media (min-width: 860px) {
  .contact-dock {
    display: none;
  }
}

.tsec {
  margin-top: 26px;
}

.tsec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tsec__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 800;
}

.tsec__head .tsec__title {
  margin: 0;
}

.tsec__title .icon {
  color: var(--brand);
}

.tsec__title small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.tsec__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.tsec--cols {
  display: grid;
  gap: 22px;
}

@media (min-width: 820px) {
  .tsec--cols {
    grid-template-columns: 1.5fr 1fr;
  }
}

.prose {
  color: var(--ink-2);
}

.prose p,
.prose ul {
  margin: 0 0 10px;
}

.vids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  align-items: start;
}

.vid {
  margin: 0;
}

.vid__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e1a17;
}

.vid--tall .vid__frame {
  aspect-ratio: 9 / 16;
  max-height: 560px;
}

.vid iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vid figcaption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
}

.pkgs {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .pkgs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pkg {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pkg__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pkg__title {
  margin: 0;
  font-size: 16.5px;
}

.pkg__price {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}

.pkg__detail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pkg__desc {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.pkg__desc p,
.pkg__desc ul {
  margin: 0 0 6px;
}

.reviews {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.review {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.review.is-hidden {
  opacity: 0.6;
  background: var(--paper-2);
}

.review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.review__body {
  margin: 8px 0 0;
  color: var(--ink-2);
  white-space: pre-line;
}

.review form {
  margin-top: 10px;
}

.tpage__unverified {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 26px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14px;
}

.tfoot {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.tfoot .logo {
  font-size: 14px;
  vertical-align: middle;
}

.tfoot .logo-mark {
  width: 20px;
  height: 20px;
}

/* ---------- cards, review form ---------- */

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.card__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.card__title small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  text-decoration: none;
}

.review-form__who {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.review-form__who h1 {
  margin: 0;
  font-size: 22px;
}

.review-form__who p {
  margin: 4px 0 0;
  font-size: 14px;
}

.thanks {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: var(--ink-2);
}

.thanks .icon {
  color: var(--brand);
}

.thanks h1 {
  margin: 6px 0 0;
  color: var(--ink);
}

/* ---------- auth, article, error ---------- */

.auth {
  min-height: 100vh;
  display: grid;
}

@media (min-width: 980px) {
  .auth {
    grid-template-columns: 1fr 1fr;
  }
}

.auth__main {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 22px;
  padding: 28px 16px 48px;
}

@media (min-width: 980px) {
  .auth__main {
    align-content: center;
  }
}

.auth__card {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.auth__title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.auth__sub {
  margin: 6px 0 18px;
  color: var(--muted);
}

.auth__fine,
.auth__switch {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.auth__aside {
  display: none;
}

@media (min-width: 980px) {
  .auth__aside {
    display: grid;
    place-items: center;
    padding: 48px;
    background:
      radial-gradient(600px 300px at 80% 0%, rgb(245 165 36 / 26%), transparent 60%),
      var(--brand);
    color: #fff;
  }
}

.auth__points {
  display: grid;
  gap: 18px;
  max-width: 420px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

.auth__points li {
  display: flex;
  gap: 12px;
}

.auth__points .icon {
  margin-top: 3px;
  color: var(--accent);
}

.article {
  max-width: 760px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.article h1 {
  font-size: 32px;
}

.article li + li {
  margin-top: 6px;
}

.error-page {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 16px;
  text-align: center;
}

.error-page__code {
  margin: 20px 0 0;
  color: var(--brand);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.error-page h1 {
  margin: 0;
}

.error-page p {
  margin: 0 0 10px;
  color: var(--ink-2);
}

/* ---------- dashboard ---------- */

.dash-body {
  background: #f4f2ec;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
  .dash-body {
    padding-bottom: 0;
  }
}

.dash-nav {
  display: none;
}

@media (min-width: 1024px) {
  .dash {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
  }

  .dash-nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100vh;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: #fff;
  }

  .dash-nav > .logo {
    padding: 4px 10px;
  }
}

.dash-nav nav {
  display: grid;
  gap: 2px;
}

.dash-nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.dash-nav__item:hover {
  background: var(--paper);
}

.dash-nav__item.is-active {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.dash-nav__foot {
  margin-top: auto;
  display: grid;
  gap: 2px;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .dash-top {
    display: none;
  }
}

.dash-content {
  width: 100%;
  max-width: 1040px;
  padding: 20px 16px 32px;
}

@media (min-width: 1024px) {
  .dash-content {
    padding: 32px 36px 48px;
  }
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
}

.dash-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

.dash-tabs a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

.dash-tabs a.is-active {
  color: var(--brand);
}

@media (min-width: 1024px) {
  .dash-tabs {
    display: none;
  }
}

.share {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.share__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.share__label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.share__url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  color: var(--ink);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 820px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.kpi__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.kpi__v {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.kpi__v small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.kpi-note {
  margin: 8px 0 16px;
  font-size: 13px;
}

.dash-cols {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 900px) {
  .dash-cols {
    grid-template-columns: 1fr 1fr;
  }

  .dash-cols--wide {
    grid-template-columns: 1.1fr 1fr;
  }
}

.todo {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
}

.todo li .icon {
  color: var(--warn);
}

.todo li.is-done .icon {
  color: var(--brand);
}

.todo li.is-done a {
  color: var(--muted);
  text-decoration: line-through;
}

.rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.row__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.row__main > .icon {
  color: var(--muted);
}

.row__acts {
  display: flex;
  gap: 8px;
  flex: none;
}

.row--admin {
  flex-wrap: wrap;
  align-items: flex-start;
}

.row__acts--forms {
  flex-wrap: wrap;
}

.row--admin small {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 12px;
}

.tabs__item {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.tabs__item.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}


/* Keyboard users see where the hidden file input is. */
.upload__input:focus-visible + .btn {
  box-shadow: var(--focus);
}

.dash-top__acts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-top__me {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.dash-top__me .avatar--xs {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

/* ---------- visual refresh: tones, hero art, rhythm ---------- */

/* A tone is a colour family set by class: soft background, mid and strong fills, readable ink. */
.tone {
  --tone: #e3f2ee;
  --tone-2: #c3e5dc;
  --tone-3: #8fcec0;
  --tone-ink: #08574c;
}

.tone--hoc-tap {
  --tone: #e5edfb;
  --tone-2: #c8d9f6;
  --tone-3: #98b6ea;
  --tone-ink: #1f4380;
}

.tone--nghe-thuat {
  --tone: #f8e7f0;
  --tone-2: #f1c9de;
  --tone-3: #e69cc2;
  --tone-ink: #86285a;
}

.section--white {
  background: #fff;
  border-block: 1px solid var(--line);
}

.section--mint {
  background: #eaf5f1;
  border-block: 1px solid #d3e8e1;
}

.section--cta {
  padding-top: 8px;
  padding-bottom: 48px;
}

/* hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 32px;
  background:
    radial-gradient(900px 340px at 90% -10%, rgb(245 165 36 / 22%), transparent 60%),
    radial-gradient(700px 320px at 0% 0%, rgb(11 107 94 / 16%), transparent 60%),
    linear-gradient(180deg, #eef6f2 0%, var(--paper) 100%);
}

.hero__grid {
  display: grid;
  gap: 0;
  margin-bottom: 4px;
}

.hero__text {
  min-width: 0;
}

.hero__sub {
  margin-bottom: 22px;
}

.hero-art {
  display: none;
}

@media (min-width: 980px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: center;
    gap: 24px;
    margin-bottom: 14px;
  }

  .hero-art {
    position: relative;
    display: block;
    height: 330px;
  }
}

.hero-art__blob {
  position: absolute;
  inset: 20px 10px 10px 20px;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: linear-gradient(135deg, rgb(11 107 94 / 18%), rgb(245 165 36 / 26%));
}

.hcard {
  position: absolute;
  display: grid;
  gap: 8px;
  width: 270px;
  padding: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.hcard--b2 {
  top: 6px;
  right: 8px;
  transform: rotate(7deg);
  opacity: 0.9;
}

.hcard--b1 {
  top: 34px;
  left: 6px;
  transform: rotate(-6deg);
  opacity: 0.95;
}

.hcard--front {
  top: 78px;
  left: 62px;
  width: 290px;
  gap: 10px;
  transform: rotate(1.5deg);
}

.hcard__band {
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0 -16px 6px;
  padding: 0 14px;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: linear-gradient(110deg, var(--tone-3), var(--tone-2) 60%, var(--tone));
  color: var(--tone-ink);
}

.hcard__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -24px;
}

.hcard__ava {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 3px #fff;
}

.hcard__lines {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-top: 24px;
  flex: 1;
}

.skel {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--paper-2);
}

.skel--w60 {
  width: 60%;
  height: 11px;
  background: #d9e2de;
}

.skel--w75 {
  width: 75%;
}

.skel--w90 {
  width: 90%;
}

.hcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.hcard__zalo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--zalo);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hfloat {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--tone);
  color: var(--tone-ink);
  box-shadow: var(--shadow);
}

.hfloat--a {
  left: 0;
  bottom: 40px;
  transform: rotate(-8deg);
}

.hfloat--b {
  right: 0;
  bottom: 60px;
  transform: rotate(8deg);
}

.hfloat--c {
  right: 40px;
  top: -6px;
  width: 44px;
  height: 44px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust .icon {
  color: var(--brand);
}

/* field tiles */

.cat {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 68px;
}

.catgrid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.cat:hover {
  border-color: var(--tone-3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cat__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tone);
  color: var(--tone-ink);
}

.cat__txt {
  display: grid;
  min-width: 0;
}

.cat--soon {
  background: #fbfaf7;
  border-style: dashed;
}

.cat--soon .cat__ico {
  opacity: 0.55;
}

.cat--soon .cat__name {
  color: var(--ink-2);
  font-weight: 600;
}

.catgroup__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catgroup__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* steps */

.steps {
  gap: 14px;
  counter-reset: none;
}

@media (min-width: 820px) {
  .steps {
    gap: 36px;
  }
}

.step {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step__ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
}

.step:nth-child(2) .step__ico {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.step:nth-child(3) .step__ico {
  background: #e5edfb;
  color: #1f4380;
}

.step .step__n {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 12px;
}

.step h3 {
  margin-top: 14px;
}

@media (min-width: 820px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 46px;
    left: 98px;
    right: -48px;
    border-top: 2px dashed var(--line-2);
  }
}

/* CTA */

.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(rgb(255 255 255 / 16%) 1.5px, transparent 1.8px) 0 0 / 22px 22px,
    radial-gradient(circle at 92% 8%, rgb(245 165 36 / 38%) 0 90px, transparent 91px),
    radial-gradient(circle at 4% 120%, rgb(255 255 255 / 12%) 0 120px, transparent 121px),
    linear-gradient(120deg, var(--brand-ink), var(--brand) 60%, #12806f);
}

.cta__text,
.cta .btn {
  position: relative;
  z-index: 1;
}

/* teacher cards */

.tcard {
  gap: 10px;
  padding-top: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.tcard:hover {
  transform: translateY(-3px);
  border-color: var(--tone-3);
}

.tcard__band {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 46px;
  margin: 0 -18px;
  padding: 0 16px;
  background:
    radial-gradient(rgb(255 255 255 / 55%) 1.2px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(110deg, var(--tone-3), var(--tone-2) 55%, var(--tone));
  color: var(--tone-ink);
}

.tcard__top {
  margin-top: -32px;
}

.tcard__who {
  padding-top: 36px;
}

.tcard .avatar--lg {
  box-shadow: 0 0 0 3px #fff, 0 4px 10px -4px rgb(19 35 31 / 35%);
}

.tcard__video {
  position: static;
  background: #fff;
}

.tcard__price {
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.tcard__price b {
  font-size: 16px;
  font-weight: 800;
}

/* --muted on --brand-soft is 4.8:1; --ink-2 is 9:1 so the small "Giá: liên hệ" stays readable. */
.tcard__price .muted {
  color: var(--ink-2);
}

/* listing */

.listing {
  padding: 0 0 28px;
}

.listing__band {
  padding: 24px 0 8px;
  background:
    radial-gradient(600px 220px at 100% 0%, rgb(245 165 36 / 18%), transparent 60%),
    linear-gradient(180deg, #eaf5f1, var(--paper));
  border-bottom: 1px solid var(--line);
}

.listing__body {
  padding-top: 22px;
}

/* teacher page */

.tpage {
  padding-top: 16px;
}

.tpage__hero {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tpage__cover {
  position: relative;
  grid-column: 1 / -1;
  height: 108px;
  margin: -22px -22px 0;
  overflow: hidden;
  background:
    radial-gradient(rgb(255 255 255 / 50%) 1.4px, transparent 1.8px) 0 0 / 18px 18px,
    radial-gradient(circle at 85% 20%, var(--tone-3) 0 70px, transparent 71px),
    linear-gradient(115deg, var(--tone-3), var(--tone-2) 50%, var(--tone));
  color: var(--tone-ink);
}

.tpage__cover-ico {
  position: absolute;
  right: 5%;
  top: 50%;
  translate: 0 -50%;
  opacity: 0.35;
}

@media (min-width: 720px) {
  .tpage__cover {
    height: 150px;
    margin: -30px -30px 0;
  }
}

.tpage__hero > .avatar {
  margin-top: -64px;
  position: relative;
}

@media (min-width: 720px) {
  .tpage__hero > .avatar {
    margin-top: -80px;
  }
}

.tsec__ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.tsec__ico--accent {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.tsec__ico--blue {
  background: #e5edfb;
  color: #1f4380;
}

.tsec__title {
  gap: 10px;
}

.pkg {
  position: relative;
}

.pkg--low {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.pkg__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
}

/* auth: same paper rhythm as the public pages (markup unchanged) */

.auth__main {
  background:
    radial-gradient(520px 260px at 0% 0%, rgb(11 107 94 / 12%), transparent 60%),
    radial-gradient(420px 240px at 100% 100%, rgb(245 165 36 / 14%), transparent 60%),
    var(--paper);
}

.auth__card {
  box-shadow: var(--shadow);
}

@media (min-width: 980px) {
  .auth__aside {
    background:
      radial-gradient(rgb(255 255 255 / 12%) 1.5px, transparent 1.8px) 0 0 / 24px 24px,
      radial-gradient(500px 300px at 85% 0%, rgb(245 165 36 / 30%), transparent 60%),
      linear-gradient(150deg, var(--brand-ink), var(--brand));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .tcard:hover,
  .cat:hover {
    transform: none;
  }
}

/* ---------- listing SEO blocks ---------- */

.seo-intro {
  max-width: 70ch;
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.listing__h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
}

.seolinks {
  margin-top: 28px;
}

.seolinks__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.seolinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pill-link small {
  color: var(--muted);
}

.pill-link:hover {
  background: var(--paper-2);
}

/* Tap targets: phones only, desktop layout unchanged. */
@media (max-width: 719px) {
  .footer__links a,
  .topbar__back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer__links {
    gap: 0 18px;
  }
}
