:root { --accent: #143a6f; --link: #1d5fb8; --ink: #12203a; --soft: #eef3fa; --line: #d8dfec; --muted: #56627a; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--ink); background: #fff; overflow-wrap: anywhere; }
header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
header nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Menu items look like pill buttons; the current page is tinted, "Kết nối" is solid. */
header nav a, header nav button { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
header nav a:hover, header nav button:hover { border-color: var(--accent); background: var(--soft); box-shadow: 0 4px 12px #143a6f1f; }
header nav a[aria-current="page"] { border-color: var(--accent); background: var(--soft); }
header nav a.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
header nav a.primary:hover { background: #0f2c55; }
header nav button.logout { color: var(--muted); }
header nav a:focus-visible, header nav button:focus-visible { outline: 3px solid #8fb7f5; outline-offset: 2px; }
/* On a phone the buttons share the full width. */
#menu-toggle { display: none; }
@media (max-width: 600px) {
  header nav { width: 100%; gap: 8px; }
  header nav > * { flex: 1 1 auto; }
  .has-menu header { position: relative; flex-wrap: nowrap; }
  .has-menu #menu-toggle { display: flex; flex: 0 0 auto; position: relative; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  #menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .2s, opacity .2s; }
  #menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  #menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #menu-toggle.alert::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #c9332c; border: 2px solid #fff; }
  .has-menu header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(18, 32, 58, .16); }
  .has-menu header nav.open { display: flex; }
  .has-menu header nav > * { flex: 0 0 auto; }
  .has-menu header nav a, .has-menu header nav button { justify-content: flex-start; width: 100%; border-color: transparent; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
  .has-menu header nav a.primary { justify-content: center; }
}
.auth { max-width: 380px; width: 100%; margin: 24px auto; padding: 20px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px #12203a14; text-align: center; }
.auth h2 { margin-top: 0; line-height: 1.25; }
.auth button:not(.link) { width: 100%; }
.auth label { text-align: left; }
.or { color: var(--muted); }
button.link { display: block; margin: 8px auto 0; padding: 4px; background: none; color: var(--link); text-decoration: underline; font-weight: 400; }
.teach { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: start; }
a { color: var(--link); }
.logo { white-space: nowrap; display: flex; gap: 8px; align-items: center; font-size: 22px; font-weight: 800; color: var(--accent); text-decoration: none; }
main { max-width: 1040px; margin: 0 auto; padding: 16px; }
.hero { background: linear-gradient(#fff, #cfe0fb); border-radius: 0 0 28px 28px; padding: 32px 16px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 52px); line-height: 1.15; letter-spacing: -.01em; }
.search { display: flex; gap: 8px; max-width: 520px; margin: 20px auto; background: #fff; border-radius: 99px; padding: 8px; box-shadow: 0 8px 28px #143a6f22; }
.search input { flex: 1; min-width: 0; margin: 0; border: 0; border-radius: 99px; }
.search button { border-radius: 99px; }
.subjects { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.subjects a { display: grid; justify-items: center; gap: 2px; padding: 10px 14px; border-radius: 16px; background: #ffffffcc; color: var(--ink); text-decoration: none; font-size: 14px; }
.subjects b { font-size: 20px; color: var(--accent); }
.filters { padding: 8px 0; }
.filters form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filters label { flex: 1 1 150px; margin: 0; font-size: 13px; }
.filters select, .filters input { border-radius: 99px; }
.filters button { border-radius: 99px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.steps div { background: var(--soft); border-radius: 18px; padding: 18px; }
.steps b { font-size: 32px; color: var(--accent); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.quotes blockquote { margin: 0; border: 0; border-radius: 22px; padding: 18px; background: #fff1c9; }
.quotes blockquote:nth-child(even) { background: #dff3e6; }
.banner { background: var(--soft); border-radius: 24px; padding: 24px; text-align: center; margin: 32px 0; }
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.explore div { background: #f6f7f9; border-radius: 16px; padding: 14px; font-size: 14px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
footer.site { background: #0b1427; color: #fff; margin-top: 56px; padding: 40px max(16px, calc((100% - 1120px) / 2)) 24px; font-size: 14px; line-height: 1.6; }
footer.site a { display: block; color: #c5d0e6; text-decoration: none; padding: 4px 0; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
footer.site p { color: #98a6c2; margin: 0 0 10px; }
.foot-pay { background: #13213d; border: 1px solid #24365c; border-radius: 16px; padding: 20px 24px; margin-bottom: 36px; }
.foot-pay ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: pay; }
.foot-pay li { counter-increment: pay; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.foot-pay li::before { content: counter(pay); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: #2a63b8; display: grid; place-items: center; font-weight: 700; }
.foot-pay span { color: #98a6c2; }
.foot-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand p { max-width: 320px; }
footer.site .foot-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.foot-logo img { background: #fff; border-radius: 9px; }
footer.site .foot-tag { display: inline-block; border: 1px solid #2c3f68; border-radius: 99px; padding: 3px 12px; color: #c5d0e6; }
footer.site .dmca { display: inline-block; margin-top: 10px; }
.trap { position: absolute; left: -9999px; }
.post-item { border-bottom: 1px solid #e3e8f2; padding: 4px 0 8px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.post-grid .post-item { border: 1px solid #e3e8f2; border-radius: 12px; padding: 4px 16px; background: #fff; }
.forgot { text-align: right; margin: 4px 0 8px; }
.pay-qr { display: block; width: 100%; max-width: 280px; height: auto; margin: 8px 0; border: 1px solid #d9e0ee; border-radius: 10px; }
.video-frame { max-width: 640px; aspect-ratio: 16 / 9; margin: 8px 0; background: #000; border-radius: 12px; overflow: hidden; }
.video-frame.tall { max-width: 325px; aspect-ratio: 9 / 16; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.dash { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid #d9e0ee; border-radius: 14px; background: #fff; }
.dash-side button { text-align: left; background: transparent; color: inherit; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.dash-side button:hover, .dash-side button[aria-current] { background: #eaf1fc; color: #143a6f; }
.part { scroll-margin-top: 70px; }
section.part { border: 1px solid #d9e0ee; border-radius: 14px; padding: 4px 16px 12px; margin-bottom: 16px; background: #fff; }
.save-profile { width: 100%; }
.media { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.media > div:not(.photo) { flex: 1 1 220px; min-width: 0; }
.media > .photo, .group-head > .photo, .todo .photo { width: 96px; flex: none; margin: 0; }
.photo img { max-width: 100%; }
.media > .photo img, .group-head > .photo img, .todo .photo img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 14px; }
.lang-art { width: 150px; height: auto; border-radius: 12px; flex: none; }
.group-head { display: flex; gap: 12px; align-items: center; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 90px)); gap: 6px; margin-top: 10px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.hero-art { display: block; width: 100%; max-width: 320px; height: auto; margin: 6px 0; }
@media (max-width: 600px) { .media > .lang-art { width: 100%; max-width: 220px; } }
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.todo .box { margin: 0; border: 2px solid #8fb7f5; background: #f3f7ff; }
.todo small { text-transform: uppercase; font-weight: 700; color: #143a6f; }
@media (max-width: 800px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dash-side { top: 0; z-index: 5; flex-direction: row; overflow-x: auto; }
  .dash-side button { white-space: nowrap; flex: none; }
}
.post-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin: 10px 0 0; }
.post-item .post-cover { max-width: 420px; }
.post-hero { display: block; width: 100%; max-width: 640px; height: auto; max-height: 420px; object-fit: cover; border-radius: 14px; margin: 8px 0 12px; }
.post-previews, .post-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.post-preview { width: 100%; height: auto; border-radius: 10px; }
.post-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.post-warn { background: #fff8e1; border: 1px solid #f0c75e; border-radius: 8px; padding: 10px 12px; }
.post .bio { overflow-wrap: anywhere; }
.post-inline { display: block; max-width: 640px; margin: 8px 0 14px; }
.post-inline img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.post-previews canvas { display: block; max-width: 100%; height: auto; }
.foot-languages { border-top: 1px solid #1f2d4a; margin-top: 28px; padding-top: 22px; }
.foot-languages > div { display: flex; flex-wrap: wrap; gap: 8px; }
footer.site .foot-languages a { border: 1px solid #263759; border-radius: 99px; padding: 5px 14px; font-size: 13px; }
footer.site .foot-languages a:hover, footer.site .foot-languages a:focus-visible { border-color: #5b7fc7; background: #13213d; text-decoration: none; }

.coffee { max-width: 1120px; margin: 48px auto 0; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: linear-gradient(120deg, #fff6e5, #ffe9ef); border: 1px solid #f3d6b0; border-radius: 18px; width: calc(100% - 32px); box-sizing: border-box; }
.coffee > div:nth-child(2) { flex: 1 1 320px; }
.coffee h2 { margin: 0 0 4px; font-size: 20px; }
.coffee p { margin: 0; color: #5b4636; }
.coffee-cup { font-size: 44px; line-height: 1; }
.coffee > button { background: #a50064; color: #fff; border-radius: 99px; padding: 13px 24px; font-weight: 700; }
.coffee + .coffee-box + footer.site { margin-top: 32px; }
.coffee-box { width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-sizing: border-box; border: 0; border-radius: 18px; padding: 22px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.coffee-box::backdrop { background: rgba(11, 20, 39, .65); }
.coffee-box h2 { margin: 6px 0 8px; font-size: 21px; }
.coffee-box img { display: block; width: 100%; max-width: 300px; height: auto; margin: 12px auto; border-radius: 12px; }
.coffee-box .coffee-note { font-size: 13px; color: var(--muted); }
.coffee-box .coffee-close { position: absolute; top: 8px; right: 8px; background: var(--soft); color: var(--ink); width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 20px; }
@media (max-width: 600px) { .coffee { text-align: center; justify-content: center; } .coffee > button { width: 100%; } }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #1f2d4a; margin-top: 32px; padding-top: 18px; color: #7f8dab; font-size: 13px; }
@media (max-width: 900px) { .foot-main { grid-template-columns: 1fr 1fr; gap: 24px 16px; } .foot-brand { grid-column: 1 / -1; } }
label { display: block; margin-bottom: 12px; font-weight: 600; }
input, select, textarea { display: block; width: 100%; padding: 10px; font: inherit; border: 1px solid #c5cee0; border-radius: 8px; margin-top: 4px; background: #fff; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
fieldset .check { margin: 0; }
legend { font-weight: 600; }
button { padding: 11px 18px; font: inherit; font-weight: 600; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
button.secondary { background: var(--soft); color: var(--ink); }
button:disabled { opacity: .55; cursor: not-allowed; }
.languages { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.languages a { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.languages b { font-size: 26px; color: var(--accent); }
.languages small, .tag { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; font-size: 14px; }
.card a { display: block; color: inherit; text-decoration: none; }
.card p { margin: 6px 0; }
.card .photo { position: relative; aspect-ratio: 1; border-radius: 22px; }
.overlay { position: absolute; inset: auto 0 0; padding: 28px 14px 10px; background: linear-gradient(transparent, #000000b3); color: #fff; }
.overlay h3 { margin: 0; font-size: 19px; }
.card .overlay p { margin: 0; font-size: 13px; }
.rating { font-weight: 600; }
.desc { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.heart { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: #00000055; color: #fff; }
.heart[aria-pressed="true"] { background: #fff; color: #d92d20; }
.save { margin-top: 12px; background: var(--soft); color: var(--ink); }
.save[aria-pressed="true"] { color: #d92d20; }
.photo { aspect-ratio: 4 / 3; max-width: 100%; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { font-size: 56px; font-weight: 700; color: var(--accent); }
.small-photo { width: 160px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.trial { color: #0b6b45; font-weight: 600; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.profile aside { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.profile aside .photo { border-radius: 12px; }
/* On a phone the contact box comes first, with a smaller picture, so nobody has to scroll far. */
@media (max-width: 800px) { .profile { grid-template-columns: minmax(0, 1fr); } .profile aside { order: -1; } .profile aside .photo { max-width: 200px; margin: 0 auto; } }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ways > * { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { background: var(--soft); border-radius: 99px; padding: 4px 12px; }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.bio { white-space: pre-wrap; }
blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.messages { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 16px 0 12px; }
.messages.mini { max-height: 260px; margin-top: 0; }
.message { align-self: flex-start; max-width: 80%; background: var(--soft); border-radius: 12px; padding: 8px 12px; }
.message p { margin: 0; }
.message small { color: var(--muted); }
.message.mine { align-self: flex-end; background: #dbe8fb; }
.unread { color: #b42318; font-weight: 600; }
summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.lesson details { margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.stat { background: var(--soft); border-radius: 12px; padding: 10px; display: grid; }
.stat b { font-size: 24px; color: var(--accent); }
.history { border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 8px; }
h4 { margin: 8px 0 0; }
.report { margin-top: 20px; color: var(--muted); }
.proposal { background: #fff7e6; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.contact { border-top: 1px solid var(--line); margin-top: 16px; }
.button { display: inline-block; padding: 11px 18px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.button.zalo { background: #0068ff; }
.button.messenger { background: #7b2ff7; }
.contact .button { margin-bottom: 6px; }
.button.secondary { background: var(--soft); color: var(--ink); }
.error { background: #fef2f2; color: #991b1b; padding: 12px; border-radius: 8px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-art { width: min(100%, 360px); height: auto; margin: 0 auto 8px; display: block; }
.art { display: block; width: 100%; max-width: 400px; height: auto; margin: 12px auto; border-radius: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0; }
.badges li { font-size: 12px; font-weight: 600; background: #fff1c9; color: #6b4a00; border-radius: 99px; padding: 2px 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.facts div { background: var(--soft); border-radius: 12px; padding: 8px 12px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gallery figure { margin: 0; }
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.course { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 8px; }
.course h3 { margin-top: 0; }
.prices { border-collapse: collapse; }
.prices th, .prices td { text-align: left; padding: 6px 18px 6px 0; border-bottom: 1px solid var(--line); }
#toast { position: fixed; bottom: 16px; left: 16px; right: 16px; margin: 0 auto; max-width: 420px; padding: 12px; border-radius: 8px; background: var(--ink); color: #fff; text-align: center; }

/* Contact popup */
.contact-open { width: 100%; }
.contact-dialog { width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 24px; border: 0; border-radius: 22px; text-align: center; color: var(--ink); box-shadow: 0 20px 60px #12203a40; }
.contact-dialog::backdrop { background: #101828a6; }
.contact-dialog h2 { margin: 4px 0 0; }
.contact-dialog label { text-align: left; }
.contact-dialog input { padding: 14px; border-radius: 14px; background: var(--soft); }
.contact-dialog button:not(.link, .close) { width: 100%; padding: 14px; border-radius: 14px; }
.contact-dialog .close { position: absolute; top: 8px; left: 8px; padding: 2px 12px; background: none; color: var(--ink); font-size: 28px; font-weight: 400; }
.round-photo { width: 84px; margin: 0 auto; border-radius: 22px; overflow: hidden; }
.round-photo .photo { aspect-ratio: 1; }

/* Temporary staff password */
.secret { font-family: monospace; font-size: 1.1rem; user-select: all; overflow-wrap: anywhere; }

/* Sign-in choices: outlined buttons, mark on the left, label centred. */
.socials { display: grid; gap: 14px; margin: 16px 0; }
button.social, .auth button.social, .contact-dialog button.social { position: relative; width: 100%; min-height: 52px; padding: 12px 46px; border: 1px solid #c5cee0; border-radius: 12px; background: #fff; color: var(--ink); }
button.social:hover:not(:disabled) { background: var(--soft); border-color: var(--accent); }
button.social svg { position: absolute; left: 14px; top: 50%; width: 24px; height: 24px; margin-top: -12px; }
details .social { margin-bottom: 8px; }
button.link.back { margin: 0 0 8px; text-align: left; }
.intro { margin-top: 0; }
.consent { font-size: 14px; color: var(--muted); text-align: left; }
.as-teacher { font-weight: 600; }
header .logo small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.3; }
header .logo span { line-height: 1.2; }
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.countries a { display: block; padding: 14px 10px; text-align: center; text-decoration: none; color: var(--muted); font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.countries b { display: block; font-size: 18px; color: var(--accent); margin-bottom: 2px; }
.countries a.write { background: #163b6d; border-color: #163b6d; color: #fff; }
.countries a.write b { color: #fff; }
.countries a:hover, .countries a:focus-visible { border-color: var(--link); box-shadow: 0 8px 20px rgba(20, 58, 111, .12); transform: translateY(-2px); }
.more { text-align: center; margin: 22px 0 8px; }
.more .button { border-radius: 99px; padding: 12px 28px; }
.course-pay { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #13213d; color: #fff; font-size: 13px; }
.course-pay > strong { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.course-pay ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: step; }
.course-pay li { counter-increment: step; position: relative; padding-left: 36px; color: #a9b6d3; line-height: 1.5; }
.course-pay li::before { content: counter(step); position: absolute; left: 0; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #2a63b8; color: #fff; display: grid; place-items: center; font-weight: 700; }
.course-pay b { display: block; color: #fff; }
/* The payment rule stands out from the dark footer. */
footer.site .foot-pay { background: #fffbeb; border: 3px solid #ffc043; color: #12203a; box-shadow: 0 10px 30px rgba(255, 192, 67, .18); padding: 22px 24px; }
.foot-pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
footer.site .foot-pay h2 { color: #12203a; font-size: 20px; margin: 0; }
footer.site .foot-pay-head p { margin: 0; padding: 6px 16px; border-radius: 99px; background: #12203a; color: #fff; font-size: 14px; }
.foot-pay-head strong { color: #ffc043; }
footer.site .foot-pay li { font-size: 15px; }
footer.site .foot-pay li::before { background: #143a6f; color: #fff; }
footer.site .foot-pay li b { font-size: 16px; }
footer.site .foot-pay li span { color: #4a5568; }
footer.site .foot-pay .foot-pay-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, #e8f7ee, #e6f0ff); border: 1px solid #a9d8bc; border-left: 6px solid #1f9d5c; color: #12203a; }
footer.site .foot-pay-warn p { flex: 1 1 260px; margin: 0; color: #12203a; font-size: 15px; }
.foot-pay-warn strong { color: #0f6b3f; }
.pay-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 6px 16px rgba(31, 157, 92, .25); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
footer.site .foot-pay .pay-badges span { background: #fff; border: 1px solid #cfe6da; border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: #12203a; white-space: nowrap; }
.pay-account { border: 2px solid #ffc043; background: #fffbeb; }
.pay-account h3 { margin-top: 0; }
.pay-account dl { margin: 0; }
.pay-account dl div { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 0; }
.pay-account dt { min-width: 130px; color: var(--muted); }
.pay-account dd { margin: 0; font-weight: 700; }
.pay-account .pay-warn { margin-bottom: 0; color: #8a1c14; font-size: 14px; }

/* Step-by-step guide */
.guide-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.guide-menu a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; text-decoration: none; }
.guide-part { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 14px; margin-bottom: 16px; scroll-margin-top: 16px; overflow-wrap: anywhere; }
.guide-part li { margin-bottom: 8px; }
.guide-part blockquote { margin: 8px 0; padding: 10px 14px; border-left: 4px solid #1f9d5c; background: #f2faf5; }
.hero h1 span { display: block; margin: 6px 0 0; font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: #1d56b0; }
.hero-goals { list-style: none; margin: 14px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-goals a { display: block; background: #fff; border: 1px solid #c5d8f7; border-radius: 999px; padding: 8px 18px; font-weight: 700; color: inherit; text-decoration: none; box-shadow: 0 2px 8px rgba(20, 58, 111, .08); }
.hero-goals a:hover, .hero-goals a:focus-visible { border-color: #1d56b0; color: #1d56b0; }
@media (max-width: 600px) { header .logo { min-width: 0; white-space: normal; } header .logo img { flex: none; } header #menu-toggle { flex: none; } }
.zone-diff { background: #eef4ff; border: 1px solid #c5d8f7; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.zone-diff p { margin: 0 0 4px; }
.zone-diff ul { margin: 0; padding-left: 18px; }
.zone-table { border-collapse: collapse; font-size: 14px; width: 100%; }
.zone-table th, .zone-table td { border: 1px solid #dbe4f3; padding: 6px 8px; text-align: left; }
