/* ===== PROFILE PAGE – unique layout & sections ===== */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
    

}

/* ---- Flash / completion banner ---- */
.form-message {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.complete-banner {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);

}
.complete-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-dark);
}
.complete-banner .progress {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ---- Grid ---- */
.profile-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}
.main-col {
  display: flex;
  flex-direction: column;
}
/* ---- Header ---- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

.photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px hsla(0, 0%, 0%, .1);
  pointer-events: none;
}
.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--primary);
  overflow: hidden;
    
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.photo-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.photo-edit-btn svg {
  width: 16px;
  height: 16px;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
  line-height: 1.1;
}
.profile-username {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

.quick-info p {
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
  line-height: 1.4;
}
.profile-bio {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 1.5rem;
}

/* ---- Tabs ---- */

.tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.tab-switch {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.tab-label {
  padding: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
#tab-profile:checked ~ .tab-switch label[for="tab-profile"],
#tab-activities:checked ~ .tab-switch label[for="tab-activities"],
#tab-courses:checked ~ .tab-switch label[for="tab-courses"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.panel { display: none; }
#tab-profile:checked ~ .tab-content .profile-panel { display: block; }
#tab-activities:checked ~ .tab-content .activities-panel { display: block; }
#tab-courses:checked ~ .tab-content .courses-panel { display: block; }

/* ---- Detail sections ---- */
.detail-section {
  background: var(--card);               /* white */
  border: 1px solid var(--line);         /* very subtle border */
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); /* soft shadow */
}

/* Override the first-child rule that used to remove top border */
.detail-section:first-child {
  border-top: 1px solid var(--line);     /* keep the border */
  padding-top: 1.5rem;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.detail-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.detail-text {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.section-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-size: 0 !important;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.section-edit::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 013 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 013 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ---- Tags ---- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}
.tag-level {
  font-weight: 600;
  font-size: 0.78rem;
  opacity: 0.85;
}
.tag.interest {
  background: var(--bg);
  color: var(--ink-soft);
}
.tag.certificate {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
}

/* ---- Activity feed (old style) ---- */
.activity-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.activity-item:first-child {
  border-top: none;
  padding-top: 0;
}
.activity-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.activity-icon svg {
  width: 18px;
  height: 18px;
}
.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}
.activity-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.activity-text {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 0.3rem;
}
.activity-time {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---- Courses ---- */
.course-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
}
.course-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.course-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}
.course-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  white-space: nowrap;
}

/* ---- Side cards ---- */
.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.side-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.side-card-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}



.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.lang-row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.lang-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.lang-level {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---- Inline edit forms ---- */
.edit-panel { display: none; }
.edit-panel.open { display: block; }
.view-panel.hidden { display: none; }

.input, .select, textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.form-row .form-field { flex: 1; }
.form-field { margin-bottom: 0.75rem; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.35rem;
}

.lang-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.lang-input-row .input { flex: 2; }
.lang-input-row .select { flex: 1; }

.edit-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.btn-save, .btn-cancel {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
}
.btn-save {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
}
.btn-cancel {
  background: #fff;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}

/* ---- Teacher‑specific ---- */
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #E6F4EA;
  color: #1E7A34;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin: 0.4rem 0 0.7rem;
}
.teacher-headline {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.45;
  max-width: 34rem;
}
.teacher-headline-empty { margin: 0 0 1rem; }
.teacher-stat-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.teacher-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.teacher-stat svg {
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.teacher-stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.teacher-stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---- More options menu ---- */
.more-options-wrap { position: relative; display: inline-block; }
.btn-more {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.more-options-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 150px;
  z-index: 10;
  overflow: hidden;
}
.more-options-menu.open { display: block; }
.more-options-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.9rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}
.more-options-menu button:hover { background: var(--bg); }
.more-options-menu button.danger { color: #B3261E; }

.menu-separator {
  border-top: 1px solid var(--line);
  margin: 0.25rem 0.9rem;
}

/* ---- Community Impact, Achievements, Reviews ---- */
.community-impact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
}
.community-impact-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.15rem;
}
.reputation-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem;
}
.impact-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.impact-stat-row:last-child { border-bottom: none; }
.impact-stat-label { font-size: 0.87rem; color: var(--ink-soft); }
.impact-stat-value { font-size: 0.95rem; font-weight: 700; color: var(--ink); }

.achievements-card,
.reviews-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-top: 1rem;
}
.achievements-header,
.reviews-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.achievements-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.achievement-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.achievement-badge-icon { font-size: 1rem; }
.achievement-badge-label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.achievements-empty,
.reviews-empty { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.coming-soon-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--line);
  color: var(--ink-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

/* ---- Education timeline ---- */
.edu-timeline { display: flex; flex-direction: column; gap: 0.25rem; }
.edu-item {
  position: relative;
  padding-left: 1.25rem;
  padding-bottom: 1rem;
}
.edu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
}
.edu-item:not(:last-child) {
  border-left: 2px solid var(--line);
  margin-left: 3px;
}
.edu-degree {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.edu-school { color: var(--ink-soft); margin: 0.15rem 0 0; font-size: 0.88rem; }
.edu-years { color: var(--ink-soft); margin: 0.15rem 0 0; font-size: 0.82rem; }

/* Certificates (profile) */
.certificates-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }
.cert-item {
  flex: 0 0 calc(25% - 0.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cert-color, var(--primary));
}
.cert-icon-mask {
  width: 56px;
  height: 56px;
  background-color: var(--cert-color, var(--primary));
  -webkit-mask-image: url('/images/cert-icon.png');
  mask-image: url('/images/cert-icon.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  margin-bottom: 0.75rem;
}
.cert-icon-mask-custom {
  width: 56px;
  height: 56px;
  background-color: var(--cert-color, var(--primary));
  -webkit-mask-image: url('/images/cert-icon-custom.png');
  mask-image: url('/images/cert-icon-custom.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  margin-bottom: 0.75rem;
}
.cert-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.cert-body { width: 100%; }
.cert-name { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.cert-year { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin-left: 0.3rem; }
.cert-desc { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 768px) { .cert-item { flex: 0 0 calc(50% - 0.5rem); } }
@media (max-width: 480px) { .cert-item { flex: 0 0 100%; } }

/* Activity filter bar */
.activity-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.activity-filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.activity-filter-btn:hover { background: var(--primary-light); color: var(--primary); }
.activity-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.activity-item.hidden-by-filter { display: none !important; }

.show-all-wrap {
  margin-top: 1rem;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.show-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.show-all-link:hover { text-decoration: underline; }
/* ---- Activities tab (LinkedIn-style feed) ---- */
.li-activity-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.li-activity-item:first-child {
  border-top: none;
  padding-top: 0;
}

.li-activity-avatar-col {
  flex-shrink: 0;
}
.li-activity-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
   box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.08);
}
.li-activity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.li-activity-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;   /* was 50% — now a rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.li-activity-badge svg {
  width: 12px;   /* slightly bigger since there's more room now */
  height: 12px;
}

.li-activity-body {
  flex: 1;
  min-width: 0;
}
.li-activity-headline {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.li-activity-headline a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.li-activity-headline a:hover {
  color: var(--primary);
}
.li-activity-dot {
  margin: 0 0.3rem;
}
.li-activity-time {
  color: var(--ink-soft);
}

.li-activity-content-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.li-activity-original-snippet {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
}
.li-activity-comment-quote {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.5rem 0 0;
  line-height: 1.45;
}
.li-activity-media {
  margin-top: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  max-height: 320px;
}
.li-activity-media img,
.li-activity-media video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  background: #000;
}
.li-activity-source-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.li-activity-source-link:hover {
  text-decoration: underline;
}
/* ---- Activity badge colours (profile) ---- */
.li-activity-badge.badge-post {
  background: var(--primary);          /* purple */
}
.li-activity-badge.badge-comment {
  background: #2E7D32;                /* green */
}
.li-activity-badge.badge-reaction {
  background: #F5A623;                /* amber/orange */
}

/* Responsive */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page { padding: 2rem 1.1rem 3rem; }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
  }
  .profile-header > div:not(.photo-wrap) {
    width: 100%;
  }
  .photo-wrap, .profile-photo { width: 110px; height: 110px; }
  .profile-name { font-size: 1.7rem; }
  .tab-switch { gap: 1.1rem; overflow-x: auto; }

.teacher-headline,
  .teacher-headline-empty {
    text-align: left;
    max-width: none;
  }
  .verified-pill {
    margin-left: auto;
    margin-right: auto;
  }
  .teacher-stat-row {
    justify-content: center;
  }

#follower-count-line.profile-stats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 1rem;
  }
  #follower-count-line .profile-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
  }
  .profile-stat-value {
    font-size: 1.3rem;
  }
  .profile-stat-label {
    font-size: 0.78rem;
    text-transform: capitalize;
  }
  #follower-count-line .profile-stat:not(:first-child)::before {
    content: none;
  }

  .profile-actions-row {
    justify-content: center;
  }
}

/* ---- Teaching Specialties (card style) ---- */


.specialty-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.specialty-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.specialty-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.specialty-card-icon svg { width: 18px; height: 18px; }
.specialty-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-dark);
  margin: 0 0 0.15rem;
}
.specialty-card-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .specialty-cards-grid { grid-template-columns: 1fr; }
}

/* ---- Photo crop modal ---- */
.photo-crop-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.photo-crop-modal.open { display: flex; }

.photo-crop-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.photo-crop-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
  color: var(--ink);
}
.photo-crop-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.crop-viewport {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  cursor: grab;
  touch-action: none;
}
.crop-viewport:active { cursor: grabbing; }
#crop-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.crop-zoom-slider {
  width: 100%;
  margin: 1rem 0 0.25rem;
}

/* ---- Intro Video (teachers) ---- */
.intro-video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
}
.intro-video-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.intro-video-header { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0; }
.intro-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #000;
}
.intro-video-thumb img, .intro-video-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.intro-video-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.intro-video-play-icon svg { width: 22px; height: 22px; }
.intro-video-thumb:hover .intro-video-play-icon { background: rgba(0,0,0,0.75); }

.intro-video-mode-toggle { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.intro-video-mode-btn {
  flex: 1; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 0.6rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer;
}
.intro-video-mode-btn.active { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }

.intro-video-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); z-index: 1000;
  align-items: center; justify-content: center; padding: 2rem;
}
.intro-video-modal.open { display: flex; }
.intro-video-modal-dialog { position: relative; width: 100%; max-width: 860px; }
.intro-video-modal-body {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 10px; overflow: hidden;
}
.intro-video-modal-body iframe, .intro-video-modal-body video {
  width: 100%; height: 100%; border: none; display: block;
}
.intro-video-modal-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}

/* ---- Intro video upload progress ---- */
.intro-video-upload-progress { margin: 0.9rem 0; }

.intro-video-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.intro-video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.intro-video-progress-fill.failed { background: #B3261E; }

.intro-video-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.5rem;
}
.intro-video-progress-status {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.intro-video-progress-percent {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.intro-video-progress-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.intro-video-result-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}
.intro-video-result-icon.success { background: #2E7D32; }
.intro-video-result-icon.failed { background: #B3261E; }

.intro-video-retry-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
  border: 1.5px solid #B3261E;
  background: #fff;
  color: #B3261E;
  cursor: pointer;
  margin-left: auto;
}
.intro-video-retry-btn:hover { background: #FDECEA; }

/* Currently Learning – view */
.learning-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.learning-lang-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.learning-lang-card-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); margin: 0 0 0.2rem; }
.learning-lang-card-meta { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }

/* Currently Learning – edit */
.learn-lang-card-edit {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}
.learn-lang-card-edit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.learn-lang-card-edit-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.learn-lang-remove-btn { background: none; border: none; color: #B3261E; font-size: 0.78rem; font-weight: 600; cursor: pointer; padding: 0; }
.learn-lang-search-wrap { position: relative; margin-bottom: 0.75rem; }
.learn-lang-suggestions {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-height: 220px;
  overflow-y: auto;
  z-index: 5;
  margin-top: 0.25rem;
}
.learn-lang-suggestions.open { display: block; }
.learn-lang-suggestions > div { padding: 0.55rem 0.85rem; font-size: 0.88rem; cursor: pointer; }
.learn-lang-suggestions > div:hover { background: var(--bg); }


/* ===== VOICE-FIRST COMMENT CTA ===== */
.comment-voice-cta{
  display:flex; flex-direction:column; align-items:center; gap:0.5rem;
  padding:0.85rem 0;
}
.record-reply-btn{
  width:auto; height:auto; border-radius:var(--radius-full);
  background:var(--primary); color:#fff; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:0.5rem;
  padding:0.85rem 1.75rem; font-size:0.95rem; font-weight:700;
  box-shadow:0 8px 20px -8px rgba(0,0,0,0.25);
  touch-action:none; user-select:none;
}
.record-reply-btn svg{width:20px; height:20px; flex-shrink:0;}
.record-reply-btn.recording{background:#B3261E;}
.type-instead-link{
  background:none; border:none; cursor:pointer; padding:0.2rem 0.4rem;
  font-size:0.8rem; font-weight:600; color:var(--ink-soft); text-decoration:underline;
}
.type-instead-link:hover{color:var(--primary);}

.comment-input-wrap.mode-type .comment-voice-cta{display:none;}
.comment-input-wrap.mode-voice .comment-input-row{display:none;}

.mini-stars{ display:inline-flex; gap:1px; vertical-align:middle; }
.mini-star{ color:var(--line); font-size:0.85rem; }
.mini-star.filled{ color:#F5A623; }

/* ---- Profile action buttons (follow, message, book) ---- */
.profile-actions-row {
  display: flex;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-save,
.btn-outline,
.btn-disabled {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  border: 1.5px solid var(--line);
  white-space: nowrap;
}
.btn-save {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-save:hover {
  filter: brightness(1.05);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--bg);
}
.btn-disabled {
  background: var(--bg);
  color: var(--ink-soft);
  border-color: var(--line);
  cursor: default;
  opacity: 0.7;
}

.verified-badge {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
   color: var(--primary);
}

.verified-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* REPLACE these four existing blocks…
   .specialties-head-title
   .specialties-head-icon
   .specialties-head-icon svg
   .specialties-subtitle
   …with the combined rules below: */

/* ---- Compact section header icon (About, Experience, Education, etc.) ---- */
.section-head-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-head-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-head-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25; /* a touch heavier so it still reads clearly at this size */
}

/* ---- Teaching Specialties card icon (keeps its own larger badge) ---- */
.specialties-head-title {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.specialties-head-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.specialties-head-icon svg {
  width: 22px;
  height: 22px;
}

.section-subtitle,
.specialties-subtitle {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.15rem 0 0;
}


.profile-header .edit-panel {
  margin-top: 0.35rem;
  max-width: 460px;
}
.profile-header .edit-panel .form-field {
  margin-bottom: 0.55rem;
}
.profile-header .edit-actions {
  margin-top: 0.6rem;
}


/* ---- Profile top card (LinkedIn-style header wrapper) ---- */
.profile-top-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

/* remove the old bottom margin so the card padding controls spacing */
.profile-top-card .profile-header {
  margin-bottom: 0;
}

.profile-top-card .profile-actions-row {
  margin: 0.75rem 0 0;
}

.profile-top-card .follower-count {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .profile-top-card {
    padding: 1.25rem 1.1rem;
  }
}

textarea.textarea-compact {
  min-height: 3.4rem;
}


/* ---- Stat row (followers / following) ---- */
.profile-stats-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.profile-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
}
.profile-stat-value {
  font-weight: 700;
  color: var(--ink);
}
.profile-stat-label {
  color: inherit;
}
.profile-stat:not(:first-child)::before {
  content: "·";
  margin-right: 0.4rem;
  color: var(--ink-soft);
}

.lang-autocomplete { position: relative; flex: 1; }
.lang-suggestions {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.lang-suggestions.open { display: block; }
.lang-suggestion-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.lang-suggestion-item:hover { background: var(--bg); }


  .onboarding-tour-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9998;
  }
  .onboarding-tour-highlight {
    position: relative; z-index: 9999;
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px #0079d3, 0 0 30px rgba(0,0,0,0.3);
    border-radius: 12px;
  }
  .onboarding-tour-tooltip {
    position: fixed; z-index: 10000; max-width: 320px;
    background: #fff; border-radius: 12px; padding: 1rem 1.1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  }
  .onboarding-tour-step-label {
    font-size: 0.75rem; font-weight: 700; color: #0079d3;
    text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.35rem;
  }
  .onboarding-tour-text { font-size: 0.92rem; line-height: 1.4; color: #1a1a1b; margin: 0 0 0.9rem; }
  .onboarding-tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
  .onboarding-tour-actions-right { display: flex; gap: 0.5rem; }
  .onboarding-tour-skip { background: none; border: none; color: #878a8c; font-size: 0.82rem; cursor: pointer; padding: 0.4rem 0.2rem; }
  .onboarding-tour-cta, .onboarding-tour-next {
    background: #0079d3; color: #fff; border: none; border-radius: 999px;
    padding: 0.45rem 1rem; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  }
  .onboarding-tour-cta { background: #fff; color: #0079d3; border: 1.5px solid #0079d3; }
  
/* Append to assets/css/profile.css
   Free Assessment Availability card (sidebar, teacher's own profile) */

.availability-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.availability-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.availability-header {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
}

.availability-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.availability-summary-row:last-child {
  border-bottom: none;
}

.availability-summary-day {
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.availability-summary-times {
  color: var(--ink-soft);
  text-align: right;
}

.availability-hint {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.availability-day-row {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.availability-day-row:last-child {
  border-bottom: none;
}

.availability-day-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.availability-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.availability-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.availability-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

.availability-chip-remove:hover {
  color: #B3261E;
}

.availability-add-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.availability-time-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  flex: 1;
}

.availability-add-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
}

.availability-add-btn:hover {
  background: var(--bg);
}

/* Append to assets/css/profile.css
   Free Assessment booking modal (student-facing) */

.assessment-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.assessment-modal.open {
  display: flex;
}

.assessment-modal-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 420px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.assessment-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}

.assessment-modal-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.assessment-modal-sub {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.assessment-booked-time {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.assessment-day-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.assessment-day-tab {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.assessment-day-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.assessment-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.assessment-time-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

.assessment-time-chip:hover {
  background: var(--bg);
}

.assessment-time-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}


/* Append to assets/css/profile.css */

.upcoming-assessments-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.upcoming-assessment-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.upcoming-assessment-row:last-child {
  border-bottom: none;
}

.upcoming-assessment-student {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.upcoming-assessment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.upcoming-assessment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upcoming-assessment-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.upcoming-assessment-time {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.upcoming-assessment-link-set {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.upcoming-assessment-link-form {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.assessment-join-link {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0.75rem 0;
}

.assessment-join-link:hover {
  opacity: 0.92;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.score-label {
  font-size: 0.85rem;
  color: var(--ink);
}
.star-picker {
  display: flex;
  gap: 0.15rem;
}
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--line);
  padding: 0;
  line-height: 1;
}
.star-btn.filled {
  color: #F5A623;
}
 
.assessment-outcome-prompt,
.assessment-result-form {
  padding-top: 0.5rem;
}
 
/* "Language Level" card — visible to anyone viewing a student's profile */
.assessment-level-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.assessment-level-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin: 0.3rem 0 0;
}
 
/* Join-link is now a <button>, not an <a> -- reset native button
   chrome so it keeps looking identical to before. Appended after the
   original .assessment-join-link rule, so this wins on the shared
   properties. */
.assessment-join-link {
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}