/* ===== Wayfinders, refined tropical theme ===== */
:root {
  --sand: #F7F4EE;          /* warm linen */
  --card: #FFFFFF;
  --ocean: #0E7C86;         /* the green she likes */
  --ocean-deep: #0A5C64;
  --ocean-soft: #EAF2F1;
  --coral: #0A5C64;         /* primary action is now the brand green */
  --coral-soft: #EAF2F1;
  --sun: #B8934A;           /* muted brass instead of bright yellow */
  --leaf: #4F8A5B;
  --ink: #1F2A2E;
  --ink-soft: #66727A;
  --line: #E6E0D4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 35, 0.04);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

/* ===== Top bar ===== */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.tb-row1 { display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; }
.tb-nav {
  display: flex; gap: 6px; justify-content: center; align-items: center;
  border-top: 1px solid var(--line); margin: 0 -20px; padding: 8px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tb-nav::-webkit-scrollbar { display: none; }
.tb-nav .nav-btn { white-space: nowrap; flex-shrink: 0; }
.nav-emoji { margin-right: 6px; }
.tb-logout {
  background: none; border: none; color: var(--ink-soft); font-size: 13px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; flex-shrink: 0;
}
.tb-logout:hover { background: var(--sand); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-icon { font-size: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--ocean-deep); letter-spacing: 0.2px; }
.brand-sub { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .tb-nav { justify-content: flex-start; }
}
.nav-btn {
  border: none; background: transparent; padding: 6px 11px;
  border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  line-height: 1.3;
}
.nav-emoji { margin-right: 5px; }
.nav-btn:hover { background: var(--ocean-soft); color: var(--ocean-deep); }
.nav-btn.active { background: var(--ocean); color: #fff; }

.user-chip {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--sand); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.user-chip:hover { border-color: var(--ocean); }

.demo-banner {
  background: var(--ocean-soft); color: var(--ocean-deep);
  text-align: center; font-size: 13px; padding: 7px 16px;
}

/* ===== Layout ===== */
.container { max-width: 1080px; margin: 24px auto 60px; padding: 0 20px; }

.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 800; color: var(--ocean-deep); }
.page-head p { color: var(--ink-soft); font-size: 15px; }

/* ===== Level tabs ===== */
.level-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.level-tab {
  border: 1.5px solid var(--line); background: var(--card);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-soft);
}
.level-tab:hover { border-color: var(--ocean); color: var(--ocean-deep); }
.level-tab.active { background: var(--ocean); border-color: var(--ocean); color: #fff; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--ocean-soft); color: var(--ocean-deep);
}
.badge.coral { background: var(--coral-soft); color: var(--coral); }

/* ===== Cards ===== */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 14px;
}

/* ===== Community ===== */
.community-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 800px) { .community-grid { grid-template-columns: 1fr; } }

.composer textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; resize: vertical; min-height: 64px; background: var(--sand);
}
.composer textarea:focus { outline: none; border-color: var(--ocean); background: #fff; }
.composer-row { display: flex; justify-content: flex-end; margin-top: 10px; }

.btn {
  background: var(--ocean); color: #fff; border: none;
  padding: 9px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
}
.btn:hover { background: var(--ocean-deep); }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: #D95335; }
.btn.ghost { background: transparent; color: var(--ocean-deep); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ocean); background: var(--ocean-soft); }
.btn.small { padding: 6px 14px; font-size: 13px; }

.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ocean-soft); display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.post-author { font-weight: 700; font-size: 15px; }
.post-meta { font-size: 12.5px; color: var(--ink-soft); }
.post-body { font-size: 15px; white-space: pre-wrap; margin: 6px 0 12px; }
.post-pinned { font-size: 12px; color: var(--sun); font-weight: 700; }

.post-actions { display: flex; gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.action-btn {
  background: none; border: none; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px;
}
.action-btn:hover { background: var(--sand); color: var(--ocean-deep); }
.action-btn.liked { color: var(--coral); }

.comments { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.comment { display: flex; gap: 8px; margin-bottom: 8px; }
.comment .avatar { width: 30px; height: 30px; font-size: 15px; }
.comment-bubble { background: var(--sand); border-radius: 10px; padding: 8px 12px; font-size: 14px; flex: 1; }
.comment-bubble b { font-size: 13.5px; }
.comment-input-row { display: flex; gap: 8px; margin-top: 8px; }
.comment-input-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.comment-input-row input:focus { outline: none; border-color: var(--ocean); }

/* Sidebar */
.side-card h3 { font-size: 16px; color: var(--ocean-deep); margin-bottom: 8px; }
.side-card p { font-size: 14px; color: var(--ink-soft); }
.side-stat { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.side-stat:last-child { border-bottom: none; }
.side-stat b { color: var(--ocean-deep); }

/* ===== Classroom ===== */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.course-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .15s ease;
}
.course-card:hover { transform: translateY(-3px); }
.course-cover {
  height: 110px; display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: linear-gradient(135deg, var(--ocean-soft), #FDF3D8);
}
.course-body { padding: 14px 16px 16px; }
.course-body h3 { font-size: 16px; margin: 6px 0 4px; }
.course-body p { font-size: 13.5px; color: var(--ink-soft); }
.progress-track { height: 7px; background: var(--sand); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--leaf); border-radius: 999px; }
.progress-label { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }

/* Course player */
.player-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .player-grid { grid-template-columns: 1fr; } }

.video-frame {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.video-area { aspect-ratio: 16/9; background: linear-gradient(160deg, #0A5C64, #0E7C86 55%, #14A0AC); position: relative; }
.video-area iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center; padding: 20px;
}
.video-placeholder .play-circle {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  border: 2px solid rgba(255,255,255,.5);
}
.video-placeholder p { font-size: 14px; opacity: .9; max-width: 400px; }
.video-info { padding: 16px 20px; }
.video-info h2 { font-size: 20px; color: var(--ocean-deep); }
.video-info .lesson-desc { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0 14px; }
.video-info-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.bunny-row { display: flex; gap: 8px; margin-top: 12px; }
.bunny-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px;
}
.bunny-row input:focus { outline: none; border-color: var(--ocean); }

.module-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.module-title { padding: 12px 16px; font-weight: 800; font-size: 14px; color: var(--ocean-deep); background: var(--ocean-soft); }
.lesson-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  border-top: 1px solid var(--line); cursor: pointer; font-size: 14px;
}
.lesson-row:hover { background: var(--sand); }
.lesson-row.active { background: var(--coral-soft); font-weight: 700; }
.lesson-check { font-size: 15px; width: 20px; text-align: center; }
.lesson-dur { margin-left: auto; font-size: 12px; color: var(--ink-soft); }

.back-link {
  background: none; border: none; color: var(--ocean-deep); font-weight: 700; font-size: 14px;
  padding: 0; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.back-link:hover { text-decoration: underline; }

/* ===== Live classes ===== */
.live-card { display: flex; align-items: center; gap: 16px; }
.live-date {
  flex-shrink: 0; width: 64px; text-align: center; background: var(--ocean-soft);
  border-radius: 12px; padding: 10px 6px;
}
.live-date .d { font-size: 22px; font-weight: 800; color: var(--ocean-deep); line-height: 1.1; }
.live-date .m { font-size: 12px; font-weight: 700; color: var(--ocean); text-transform: uppercase; }
.live-info { flex: 1; }
.live-info h3 { font-size: 16px; }
.live-info p { font-size: 13.5px; color: var(--ink-soft); }

/* ===== Members ===== */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.member-card { display: flex; gap: 12px; align-items: center; }
.member-card .avatar { width: 46px; height: 46px; font-size: 24px; }
.member-name { font-weight: 700; font-size: 15px; }
.member-sub { font-size: 12.5px; color: var(--ink-soft); }
.member-points { margin-left: auto; text-align: right; font-size: 13px; font-weight: 800; color: var(--sun); white-space: nowrap; }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 60, 66, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); border-radius: 18px; padding: 28px; width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h2 { color: var(--ocean-deep); font-size: 22px; margin-bottom: 6px; }
.modal p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.modal label { font-size: 13px; font-weight: 700; color: var(--ink-soft); display: block; margin: 14px 0 6px; }
.modal input[type=text] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.modal input[type=text]:focus { outline: none; border-color: var(--ocean); }
.level-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.level-pick button {
  border: 1.5px solid var(--line); background: var(--sand); border-radius: 12px;
  padding: 12px 10px; font-size: 14px; font-weight: 700; text-align: left;
}
.level-pick button .lp-emoji { font-size: 20px; display: block; margin-bottom: 4px; }
.level-pick button.picked { border-color: var(--ocean); background: var(--ocean-soft); color: var(--ocean-deep); }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }

.empty-note { text-align: center; color: var(--ink-soft); padding: 30px 20px; font-size: 14.5px; }

.footer {
  text-align: center; padding: 30px 20px 40px; color: var(--ink-soft); font-size: 13px;
  border-top: 1px solid var(--line); background: var(--card);
}

/* ===== Landing (logged out) ===== */
.hero { text-align: center; padding: 40px 20px 30px; max-width: 640px; margin: 0 auto; }
.hero-icon { font-size: 56px; margin-bottom: 10px; }
.hero h1 { font-size: 34px; font-weight: 800; color: var(--ocean-deep); line-height: 1.2; margin-bottom: 12px; }
.hero-accent { color: var(--coral); }
.hero p { color: var(--ink-soft); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.landing-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 20px; }
@media (max-width: 820px) { .landing-grid { grid-template-columns: 1fr; } }
.section-title { font-size: 18px; color: var(--ocean-deep); margin-bottom: 12px; }
.school-card { display: flex; align-items: center; gap: 14px; }
.demo-cred p { line-height: 1.9; }

/* ===== Locks & access ===== */
.level-tab.locked { color: #A8B0B8; background: #F4F1E9; }
.level-tab.locked:hover { border-color: var(--line); color: #8A929A; }
.level-tab.locked.active { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }

.locked-card { text-align: center; padding: 40px 30px; }
.locked-card .locked-icon { font-size: 44px; margin-bottom: 8px; }
.locked-card h3 { color: var(--ocean-deep); font-size: 19px; margin-bottom: 8px; }
.locked-card p { color: var(--ink-soft); font-size: 14.5px; max-width: 480px; margin: 0 auto 16px; }

.course-card.locked { opacity: .75; }
.locked-cover { background: linear-gradient(135deg, #ECEAE2, #F4F1E9) !important; font-size: 36px !important; }

.live-card.dimmed { opacity: .6; }

/* ===== Auth forms ===== */
.auth-error {
  display: none; background: var(--coral-soft); color: #C2401F;
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 4px;
}
.modal input[type=password], .modal select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff;
}
.modal input[type=password]:focus, .modal select:focus { outline: none; border-color: var(--ocean); }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== Manage ===== */
.manage-row { display: flex; align-items: center; gap: 12px; }
.manage-info { flex: 1; min-width: 0; }
.manage-actions { display: flex; gap: 6px; }
.manage-actions .btn[disabled] { opacity: .4; cursor: default; }
.invite-box {
  background: var(--sand); border: 1.5px dashed var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; margin-top: 8px; line-height: 1.6;
}

/* ===== Curriculum editing (admin) ===== */
a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }

.add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 230px; border: 2px dashed var(--line); background: transparent;
  box-shadow: none; color: var(--ink-soft); font-weight: 700; gap: 4px;
}
.add-card:hover { border-color: var(--ocean); color: var(--ocean-deep); transform: none; }
.add-card .add-plus { font-size: 36px; line-height: 1; }

.module-title { display: flex; align-items: center; gap: 6px; }
.module-title .mt-text { flex: 1; }

.icon-btn {
  background: none; border: none; color: var(--ink-soft); font-size: 13px;
  padding: 2px 7px; border-radius: 7px; line-height: 1.4; flex-shrink: 0;
}
.icon-btn:hover { background: rgba(41, 50, 58, 0.08); color: var(--ink); }

.add-module-btn {
  width: 100%; border: 2px dashed var(--line); background: transparent;
  border-radius: var(--radius); padding: 12px; font-size: 14px; font-weight: 700;
  color: var(--ink-soft);
}
.add-module-btn:hover { border-color: var(--ocean); color: var(--ocean-deep); }

.bunny-row { align-items: center; }
.saved-hint {
  flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--leaf);
  opacity: 0; transition: opacity .2s ease; white-space: nowrap; width: 52px;
}
.saved-hint.show { opacity: 1; }

/* ===== Books / materials ===== */
.books-admin { margin-top: 10px; }
.book-row {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  background: var(--sand); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px;
}
.book-url { color: var(--ink-soft); font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Gamification ===== */
.voyage-card h3 { margin-bottom: 6px; }
.progress-track.big { height: 10px; margin-top: 10px; }
.pending-note {
  background: var(--coral-soft); color: var(--coral); font-size: 13px; font-weight: 700;
  border-radius: 10px; padding: 10px 12px; text-align: center;
}
.pending-note.dim { background: var(--sand); color: var(--ink-soft); }

/* ===== Announcements ===== */
.announce-card { border-left: 4px solid var(--sun); background: #FFFBEE; }
.announce-head {
  font-size: 12.5px; font-weight: 700; color: #A07B00; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.announce-head .icon-btn { margin-left: auto; }

/* ===== Live actions ===== */
.live-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ===== Manage forms ===== */
.form-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.form-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
  background: #fff; font-size: 14.5px;
}
.form-input:focus { outline: none; border-color: var(--ocean); }

/* ===== Payment links ===== */
.pay-link-line {
  font-size: 12px; color: var(--ocean-deep); background: var(--ocean-soft);
  border-radius: 8px; padding: 4px 10px; margin-top: 6px; display: inline-block;
  overflow-wrap: anywhere;
}
.invite-row { flex-wrap: wrap; }

/* ===== Checkout ===== */
.checkout-plan {
  background: var(--ocean-soft); border-radius: 14px; padding: 18px 20px;
  text-align: center; margin: 14px 0;
}
.checkout-name { font-weight: 800; color: var(--ocean-deep); font-size: 16px; }
.checkout-price { font-size: 26px; font-weight: 800; color: var(--ocean-deep); margin-top: 4px; }
.checkout-price span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* ===== Reports ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat-tile { text-align: center; padding: 18px 12px; }
.stat-emoji { font-size: 26px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--ocean-deep); margin-top: 4px; }
.stat-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* ===== Post photos ===== */
.photo-previews { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.photo-thumb {
  position: relative; width: 72px; height: 72px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-x {
  position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; line-height: 1;
}
.composer-row { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.post-photos { margin: 6px 0 12px; display: grid; gap: 6px; }
.post-photos img {
  width: 100%; border-radius: 12px; display: block; cursor: pointer;
  max-height: 420px; object-fit: cover; border: 1px solid var(--line);
}
.post-photos.multi { grid-template-columns: 1fr 1fr; }

/* ===== Shop & free lessons ===== */
.shop-price { font-size: 22px; font-weight: 800; color: var(--ocean-deep); margin-top: 8px; }
.shop-price span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.shop-card .badge { margin-right: 4px; }
.free-lesson-card h3 { color: var(--ocean-deep); font-size: 17px; }
.fl-img-wrap { position: relative; }
.fl-img-wrap .photo-x { z-index: 2; }
.fl-link { display: inline-flex; align-items: center; gap: 2px; }
.free-lesson-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.free-video { border-radius: 12px; overflow: hidden; }

/* ===== Badges & streaks ===== */
.badge-row { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0 8px; }
.badge-row.small { margin: 4px 0 0; }
.badge-row.small .badge { padding: 2px 7px; }

/* ===== Quizzes ===== */
.quiz-block {
  background: var(--ocean-soft); border-radius: 12px; padding: 14px 16px; margin-top: 12px;
}
.quiz-title { font-weight: 800; font-size: 14px; color: var(--ocean-deep); margin-bottom: 10px; }
.quiz-q { margin-bottom: 12px; }
.quiz-q:last-child { margin-bottom: 0; }
.quiz-question { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.quiz-options { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-opt {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 600;
}
.quiz-opt:hover { border-color: var(--ocean); color: var(--ocean-deep); }
.quiz-done { font-size: 13.5px; font-weight: 700; color: #4A7A24; }
.quiz-msg { font-size: 13px; margin-top: 6px; }

/* ===== Drip lock ===== */
.lesson-row.drip-locked { opacity: .55; }

/* ===== Challenges ===== */
.challenge-card { border-left-color: var(--coral); background: #FFF4EE; }
.challenge-card .announce-head { color: var(--coral); flex-wrap: wrap; }

/* ===== Upsells ===== */
.bump-box {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: #FFFBEE; border: 2px dashed var(--sun); border-radius: 12px;
  padding: 12px 14px; margin-top: 14px; font-size: 13.5px; line-height: 1.5;
}
.bump-box input { margin-top: 3px; accent-color: var(--coral); width: 16px; height: 16px; flex-shrink: 0; }
.price-was { font-size: 15px; color: var(--ink-soft); margin-right: 6px; }
.upsell-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #FFFBEE, var(--ocean-soft));
  border: 1px solid var(--sun);
}
.upsell-banner .upsell-text { flex: 1; min-width: 240px; font-size: 14.5px; }

/* ===== Platform subscription ===== */
.hero-price { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.plan-badge {
  background: #FFFBEE; border: 2px dashed var(--sun); border-radius: 12px;
  padding: 10px 14px; font-size: 13.5px; line-height: 1.5; margin-top: 12px;
}
.plan-includes { font-size: 13.5px; line-height: 2; color: var(--ink); margin-top: 4px; }

/* ===== Public school page ===== */
.sp-hero {
  text-align: center; padding: 32px 20px 26px; border-radius: 20px;
  background: linear-gradient(160deg, var(--ocean-soft), #FFF7E6 70%, var(--coral-soft));
  border: 1px solid var(--line); margin-bottom: 20px;
}
.sp-hero-emoji { font-size: 58px; line-height: 1; }
.sp-hero h1 { font-size: 34px; font-weight: 800; color: var(--ocean-deep); margin: 8px 0 6px; }
.sp-tagline { font-size: 16.5px; color: var(--ink); max-width: 560px; margin: 0 auto 18px; }
.sp-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sp-stat {
  background: rgba(255,255,255,.75); border-radius: 12px; padding: 10px 18px; min-width: 92px;
}
.sp-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--ocean-deep); }
.sp-stat span { font-size: 12px; color: var(--ink-soft); }

.sp-about p { font-size: 15.5px; line-height: 1.7; }
.sp-h2 { font-size: 22px; font-weight: 800; color: var(--ocean-deep); margin: 30px 0 6px; }
.sp-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }

.sp-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.sp-feature { text-align: center; }
.sp-feature-emoji { font-size: 30px; }
.sp-feature h3 { font-size: 16px; color: var(--ocean-deep); margin: 6px 0 4px; }
.sp-feature p { font-size: 13.5px; color: var(--ink-soft); }

.sp-course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sp-course { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sp-course-cover {
  height: 96px; display: flex; align-items: center; justify-content: center; font-size: 42px;
  background: linear-gradient(135deg, var(--ocean-soft), #FDF3D8);
}
.sp-course-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.sp-course-body h3 { font-size: 16.5px; margin: 6px 0 4px; }
.sp-course-body p { font-size: 13.5px; color: var(--ink-soft); }
.sp-course-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.sp-course-price { font-size: 20px; font-weight: 800; color: var(--ocean-deep); margin: 8px 0 10px; }
.sp-course-price span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.sp-course .btn { margin-top: auto; }

.sp-free-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sp-free h3 { font-size: 15.5px; color: var(--ocean-deep); margin: 8px 0 4px; }
.sp-free p { font-size: 13.5px; color: var(--ink-soft); }

.sp-teacher { display: flex; align-items: center; gap: 12px; }

.sp-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.sp-price { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sp-price-emoji { font-size: 30px; }
.sp-price h3 { font-size: 15.5px; margin-top: 4px; }
.sp-price-amount { font-size: 26px; font-weight: 800; color: var(--ocean-deep); }
.sp-price-amount span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.sp-price-lv { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.sp-price .btn { width: 100%; margin-top: auto; }

.sp-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.sp-faq h3 { font-size: 15px; color: var(--ocean-deep); margin-bottom: 6px; }
.sp-faq p { font-size: 13.5px; color: var(--ink-soft); }

.sp-cta {
  text-align: center; margin-top: 30px; padding: 30px 20px;
  background: linear-gradient(135deg, #FFF7E6, var(--ocean-soft));
  border: 1px solid var(--sun);
}
.sp-cta h2 { font-size: 24px; color: var(--ocean-deep); }
.sp-cta p { color: var(--ink-soft); margin-bottom: 4px; }

@media (max-width: 640px) {
  .sp-hero { padding: 24px 14px 20px; }
  .sp-hero h1 { font-size: 26px; }
  .sp-tagline { font-size: 15px; }
  .sp-stat { padding: 8px 14px; min-width: 76px; }
  .sp-stat b { font-size: 18px; }
  .sp-h2 { font-size: 19px; }
}

/* ===== Group share links ===== */
.group-link-row { padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; gap: 8px; }
.group-link-row:last-child { border-bottom: none; }

/* ===== Order summary ===== */
.order-summary {
  background: var(--sand); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-top: 12px;
}
.os-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 3px 0; }
.os-line span { color: var(--ink-soft); }
.os-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-size: 15px; }
.os-total span { color: var(--ink); font-weight: 700; }
.os-total b { color: var(--ocean-deep); font-size: 17px; }

.cert-emailed {
  text-align: center; font-size: 12.5px; color: var(--ink-soft);
  margin-top: 10px; background: var(--ocean-soft); border-radius: 8px; padding: 8px 12px;
}

/* ===== Pay buttons (Mayar / PayPal) ===== */
.pay-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pay-buttons .btn { width: 100%; padding: 12px 20px; }
.btn.paypal { background: #FFC439; color: #003087; }
.btn.paypal:hover { background: #F2B705; }

/* ===== Certificate ===== */
.certificate {
  border: 3px double var(--sun); border-radius: 14px; padding: 30px 24px;
  text-align: center; background: #FFFDF6;
}
.cert-emoji { font-size: 38px; }
.cert-school { font-weight: 800; color: var(--ocean-deep); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.cert-title { font-size: 24px; font-weight: 800; color: #A07B00; margin: 10px 0 14px; }
.cert-line { font-size: 13px; color: var(--ink-soft); }
.cert-name { font-size: 26px; font-weight: 800; color: var(--ink); margin: 6px 0; font-style: italic; }
.cert-course { font-size: 17px; font-weight: 700; color: var(--ocean-deep); margin: 6px 0 14px; }
.cert-date { font-size: 12.5px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }

/* ===== Mobile (phone) ===== */
@media (max-width: 640px) {
  .container { padding: 0 12px; margin: 14px auto 40px; }
  .topbar-inner { padding: 8px 12px; gap: 10px; }
  .brand-name { font-size: 17px; }
  .brand-icon { font-size: 24px; }
  .user-chip { padding: 5px 10px; font-size: 13px; }
  .page-head h1 { font-size: 22px; }
  .hero { padding: 24px 8px 20px; }
  .hero h1 { font-size: 26px; }
  .hero-icon { font-size: 44px; }

  .level-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .level-tab { white-space: nowrap; flex-shrink: 0; }

  .card { padding: 14px; }
  .manage-row, .live-card { flex-wrap: wrap; }
  .live-actions { width: 100%; justify-content: flex-start; }
  .manage-actions { width: 100%; justify-content: flex-start; }
  .video-info-row { flex-wrap: wrap; }
  .video-info { padding: 12px 14px; }
  .video-info h2 { font-size: 17px; }
  .bunny-row { flex-wrap: wrap; }
  .bunny-row input { min-width: 0; }
  .name-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid, .course-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { gap: 10px; }
  .modal { padding: 20px 16px; }
  .footer { padding: 20px 12px 28px; }
}
@media (max-width: 420px) {
  .member-grid, .course-grid { grid-template-columns: 1fr; }
  .nav-btn { padding: 7px 10px; font-size: 13.5px; }
}

/* ===== Community: one feed, tagged by level ===== */
.tab-count {
  background: rgba(255,255,255,.35); border-radius: 999px; padding: 1px 7px;
  font-size: 11.5px; margin-left: 4px;
}
.level-tab:not(.active) .tab-count { background: var(--sand); color: var(--ink-soft); }
.tag-chip {
  background: var(--ocean-soft); color: var(--ocean-deep); border-radius: 999px;
  padding: 1px 9px; font-size: 12px; font-weight: 700;
}
.tag-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-right: auto; }
.tag-pick select {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 10px;
  font-size: 13px; font-weight: 700; background: #fff; color: var(--ink);
}
.tag-pick select:focus { outline: none; border-color: var(--ocean); }

/* ===== Profile photos & bios ===== */
.avatar.has-photo { padding: 0; overflow: hidden; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar { width: 84px; height: 84px; font-size: 40px; margin: 0 auto; }
.profile-photo-row { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.chip-photo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; max-width: 260px; }
.emoji-opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  width: 34px; height: 34px; font-size: 17px; line-height: 1;
}
.emoji-opt.picked { border-color: var(--ocean); background: var(--ocean-soft); }
.member-card { cursor: pointer; }
.member-bio {
  font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Refined look (luxury pass) ===== */
h1, h2, h3, .brand-name, .page-head h1, .modal h2, .sp-h2, .section-title, .sp-course-body h3, .sp-price h3, .sp-feature h3, .sp-free h3, .sp-faq h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: 0; }
.brand-sub { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.page-head h1 { font-size: 30px; line-height: 1.15; }
.page-head p { font-size: 15px; margin-top: 4px; }

/* Top bar and navigation */
.topbar { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tb-nav { border-top: 1px solid var(--line); gap: 2px; padding: 4px 16px; }
.nav-btn {
  border-radius: 0; padding: 10px 12px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1.5px solid transparent;
}
.nav-btn:hover { background: transparent; color: var(--ocean-deep); }
.nav-btn.active { background: transparent; color: var(--ocean-deep); border-bottom-color: var(--ocean); }
.user-chip { background: #fff; font-weight: 500; }
.demo-banner { background: #F1EEE6; color: var(--ink-soft); font-size: 12.5px; }

/* Buttons and badges */
.btn {
  border-radius: 8px; padding: 11px 22px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.coral { background: var(--ocean-deep); }
.btn.coral:hover { background: #084850; }
.btn.ghost { border: 1px solid #CFC8BA; color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ocean-deep); background: transparent; color: var(--ocean-deep); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.badge.coral { background: #F5EFE2; color: #8A6A2B; }
.level-tab { border-width: 1px; font-weight: 600; font-size: 13.5px; }

/* Cards */
.card { border-radius: var(--radius); padding: 22px 24px; }
.section-title { font-size: 22px; margin-bottom: 14px; }
.side-card h3 { font-size: 18px; margin-bottom: 6px; }
.how-it-works p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 14px; }
.how-it-works p:last-child { margin-bottom: 0; }
.how-it-works b { color: var(--ink); font-weight: 600; }

/* Landing hero */
.hero { padding: 64px 20px 44px; max-width: 700px; }
.hero-icon { font-size: 44px; margin-bottom: 18px; }
.hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 14px;
}
.hero h1 { font-size: 46px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; }
.hero-accent { color: var(--ocean); font-style: italic; font-weight: 400; }
.hero p { font-size: 17px; line-height: 1.65; max-width: 520px; margin: 0 auto; }
.hero-actions { margin-top: 30px; }
.hero-price { font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); margin-top: 18px; }
.landing-grid { margin-top: 36px; gap: 32px; }
.school-card { padding: 20px 24px; }

/* Public school page */
.sp-hero {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 48px 24px 40px;
}
.sp-hero-emoji { font-size: 48px; }
.sp-hero h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 14px 0 8px; }
.sp-tagline { font-size: 17px; color: var(--ink-soft); }
.sp-stat { background: transparent; border-right: 1px solid var(--line); border-radius: 0; padding: 4px 26px; }
.sp-stat:last-child { border-right: none; }
.sp-stat b { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.sp-stat span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-h2 { font-size: 26px; margin: 40px 0 6px; color: var(--ink); }
.sp-sub { font-size: 14.5px; margin-bottom: 18px; }
.sp-feature-emoji, .sp-price-emoji { font-size: 26px; }
.sp-feature h3, .sp-free h3 { font-size: 18px; }
.sp-course-body h3 { font-size: 19px; }
.sp-course-price, .sp-price-amount { font-family: var(--serif); font-weight: 500; }
.sp-price-amount { font-size: 30px; }
.sp-cta { background: var(--ocean-deep); border: none; border-radius: 16px; padding: 44px 24px; }
.sp-cta h2 { color: #fff; font-size: 30px; }
.sp-cta p { color: rgba(255,255,255,0.75); }
.sp-cta .btn.coral { background: #fff; color: var(--ocean-deep); }
.sp-cta .btn.coral:hover { background: #F1EEE6; }
.sp-cta .btn.ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.sp-cta .btn.ghost:hover { border-color: #fff; color: #fff; }

/* Small refinements */
.plan-badge { background: #FAF7F0; border: 1px solid #E5DCC6; }
.stat-value { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.stat-label { font-weight: 500; letter-spacing: 0.04em; }
.modal { border-radius: 16px; }
.modal h2 { font-size: 26px; color: var(--ink); }
.modal label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11.5px; }
.modal input[type=text], .modal input[type=password], .modal select, .composer textarea { border-radius: 8px; border-width: 1px; }
.footer { background: transparent; font-size: 12.5px; letter-spacing: 0.02em; }
.post-author { font-weight: 600; }
.post-pinned { color: var(--sun); }

@media (max-width: 640px) {
  .hero { padding: 40px 16px 30px; }
  .hero h1 { font-size: 34px; }
  .sp-hero h1 { font-size: 30px; }
  .sp-stat { border-right: none; padding: 4px 14px; }
}

/* ===== Slick pass ===== */
:root { --sand: #FAF8F4; --line: #E9E4DA; --sun: #A8894A; }
.nav-emoji { display: none; }
.card { box-shadow: none; }
.btn { border-radius: 4px; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 13px 26px; }
.btn.small { padding: 9px 16px; font-size: 11.5px; }
.btn.ghost { border-color: #D6D0C4; }
.lx-link {
  background: none; border: none; padding: 12px 8px; color: var(--ink); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid transparent; border-radius: 0;
}
.lx-link:hover { border-bottom-color: var(--ink); }
.brand-mark { display: inline-flex; width: 30px; height: 30px; color: var(--ocean); }
.brand-mark svg { width: 100%; height: 100%; }
.lx-bar { padding: 16px 0; gap: 18px; }
.lx-bar .brand { gap: 12px; }
.lx-bar .brand-name { font-size: 21px; letter-spacing: 0.01em; }
.demo-banner { background: transparent; border-bottom: 1px solid var(--line); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 16px; }

/* Landing */
.lx-hero { text-align: center; padding: 84px 20px 56px; max-width: 760px; margin: 0 auto; }
.lx-mark { display: inline-flex; width: 52px; height: 52px; color: var(--ocean); margin-bottom: 26px; }
.lx-mark svg { width: 100%; height: 100%; }
.lx-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sun); margin-bottom: 22px; }
.lx-hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1.04; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 22px; font-variation-settings: "opsz" 144;
}
.lx-hero h1 em { font-style: italic; color: var(--ocean); }
.lx-hero p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 540px; margin: 0 auto; font-weight: 400; }
.lx-hero .hero-actions { margin-top: 34px; gap: 18px; align-items: center; }
.lx-note { margin-top: 26px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }

.lx-two {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start;
  border-top: 1px solid var(--line); padding-top: 44px; margin-top: 12px;
}
.lx-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.lx-list { border-top: 1px solid var(--line); }
.lx-row {
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.lx-row:hover .lx-row-name { color: var(--ocean); }
.lx-row-emoji { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #fff; }
.lx-row-name { font-family: var(--serif); font-size: 21px; color: var(--ink); transition: color .15s; }
.lx-row-meta { font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.02em; }
.lx-row-go { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean); }
.lx-invite { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.lx-invite a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.lx-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lx-steps li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lx-num { font-family: var(--serif); font-size: 24px; color: var(--sun); line-height: 1; padding-top: 2px; min-width: 34px; }
.lx-steps b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.lx-steps span:not(.lx-num) { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

.footer { padding: 36px 20px 48px; display: flex; justify-content: center; align-items: center; gap: 14px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.footer-brand { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); }
.footer-sep { width: 1px; height: 14px; background: var(--line); display: inline-block; }

@media (max-width: 820px) {
  .lx-two { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .lx-hero { padding: 52px 8px 36px; }
  .lx-hero h1 { font-size: 40px; }
  .lx-row { grid-template-columns: 40px 1fr auto; }
  .lx-row-meta { display: none; }
  .btn { padding: 12px 20px; }
}

/* ===== Product cards (school page), store look ===== */
.sp-course-grid { gap: 20px; }
.sp-course { border-radius: 8px; }
.sp-course-cover {
  height: 120px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: var(--ocean-soft); font-size: inherit; border-bottom: 1px solid var(--line);
}
.sp-course-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ocean-deep); opacity: .85; }
.sp-course-lvl { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ocean-deep); }
.sp-course-body { padding: 20px 20px 22px; }
.sp-course-body h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.sp-course-body p { font-size: 14px; line-height: 1.6; }
.sp-course-meta { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 12px; }
.sp-course-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.sp-course-price { font-size: 22px; margin: 0 0 14px; white-space: nowrap; color: var(--ink); }
.sp-course-price span { font-size: 12px; margin-left: 6px; font-family: var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.sp-course .btn { width: 100%; }

.sp-price-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sp-price { text-align: left; align-items: stretch; justify-content: space-between; gap: 0; padding: 22px 22px 24px; border-radius: 8px; }
.sp-price-head { margin-bottom: 20px; }
.sp-price-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sun); margin-bottom: 10px; }
.sp-price h3 { font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
.sp-price-lv { font-size: 13px; margin: 0; }
.sp-price-amount { font-size: 26px; color: var(--ink); white-space: nowrap; margin-bottom: 14px; }
.sp-price-amount span { font-size: 12px; margin-left: 6px; font-family: var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.sp-price.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; background: var(--ocean-soft); }
.sp-price.wide .sp-price-head { margin-bottom: 0; }
.sp-price.wide .sp-price-buy { display: flex; align-items: center; gap: 24px; }
.sp-price.wide .sp-price-amount { margin-bottom: 0; }
.sp-price.wide .btn { width: auto; }

@media (max-width: 900px) { .sp-price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .sp-price-grid { grid-template-columns: 1fr; }
  .sp-price.wide { flex-direction: column; align-items: stretch; }
  .sp-price.wide .sp-price-buy { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* Teacher grants video lessons per level (Manage → Members) */
.video-grant { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.video-grant > span { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; }
.vg-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
}
.vg-chip:hover { border-color: var(--ocean); color: var(--ocean-deep); }
.vg-chip.on { background: var(--ocean-deep); border-color: var(--ocean-deep); color: #fff; }
.vg-chip.on::before { content: "✓ "; }

/* Rename levels (school page editor) */
.level-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.level-name-grid > div { display: flex; align-items: center; gap: 8px; }
.level-name-grid span { font-family: var(--serif); color: var(--sun); font-size: 18px; min-width: 24px; }
.level-name-grid input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
@media (max-width: 480px) { .level-name-grid { grid-template-columns: 1fr; } }
.sp-teacher { align-items: flex-start; }
.sp-teacher-avatar { width: 56px; height: 56px; font-size: 28px; flex-shrink: 0; }
.sp-teacher-bio { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }

/* School logos */
.school-mark { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.brand-icon .school-mark { width: 34px; height: 34px; }
.lx-row-emoji .school-mark { width: 32px; height: 32px; }
.avatar .school-mark { width: 70%; height: 70%; }
.school-mark.big { width: 64px; height: 64px; margin: 0 auto; }
.brand-logo { height: 40px; width: auto; display: block; }
.sp-hero-logo { display: block; margin: 0 auto 6px; width: 180px; height: auto; mix-blend-mode: multiply; }
.sp-hero-logo.wide { width: min(420px, 100%); margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .brand-logo { height: 30px; }
  .brand-icon .school-mark { width: 28px; height: 28px; }
}

/* Course cover art */
.course-cover.has-img, .sp-course-cover.has-img {
  height: auto; aspect-ratio: 16 / 9; padding: 0; position: relative; overflow: hidden;
  background: var(--ocean-soft); display: block; border-bottom: 1px solid var(--line);
}
.course-cover.has-img img, .sp-course-cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.course-card:hover .has-img img, .sp-course:hover .has-img img { transform: scale(1.03); }
.locked-cover.has-img img { filter: saturate(.55) brightness(.92); }
.cover-lock {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.course-card.locked:has(.has-img) { opacity: 1; }
.card.sp-course { padding: 0; }

/* Video Lessons = owned courses, Shop = everything for sale */
.empty-owned { text-align: center; padding: 36px 24px; margin-bottom: 16px; }
.empty-owned h3 { font-size: 20px; margin-bottom: 6px; }
.empty-owned p { color: var(--ink-soft); max-width: 420px; margin: 0 auto 16px; }
.more-in-shop { margin-top: 18px; color: var(--ink-soft); font-size: 14px; }
.more-in-shop .lx-link { font-size: 14px; }
.shop-includes { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.shop-owned { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--leaf, #2f8f5b); }
.shop-card { cursor: default; display: flex; flex-direction: column; }
.shop-card .course-body { display: flex; flex-direction: column; flex: 1; }
.shop-card .course-body > .btn, .shop-card .shop-price { margin-top: auto; }
.shop-card .shop-price { padding-top: 10px; }
