/* EDU community profile — COURSUE dashboard style */

.edu-page-profile-public {
  --cp-bg: #f3f2ef;
  --cp-surface: #ffffff;
  --cp-brand: #0b1426;
  --cp-brand-dark: #060d18;
  --cp-brand-soft: #eef1f6;
  --cp-brand-muted: #5c6478;
  --cp-orange: #f97316;
  --cp-orange-dark: #ea580c;
  --cp-orange-hover: #c2410c;
  --cp-ink: #0b1426;
  --cp-muted: #666666;
  --cp-line: #e8e8e8;
  --cp-line-strong: #d8dee8;
  --cp-radius: 20px;
  --cp-radius-sm: 14px;
  --cp-shadow: 0 8px 30px rgba(11, 20, 38, 0.12);
  --cp-shadow-soft: 0 2px 12px rgba(11, 20, 38, 0.06);
  --ep-navy: #0b1426;
  --ep-navy-soft: #eef1f6;
  --ep-ink: #0b1426;
  --ep-muted: #666666;
  --ep-line: rgba(0, 0, 0, 0.08);
  --ep-line-strong: #e0e0e0;
  --ep-accent: #0b1426;
  --ep-accent-soft: #eef1f6;
  --ep-radius: 14px;
  --ep-card-radius: 20px;
  --ep-shadow-soft: var(--cp-shadow-soft);
  padding-bottom: 2rem;
  background: var(--cp-bg);
}

.edu-profile.coursue-profile {
  max-width: 1320px;
  margin-inline: auto;
}

.coursue-profile__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.coursue-profile__nav,
.coursue-profile__widget .coursue-widget-card,
.coursue-profile__center .coursue-profile__hero,
.coursue-profile__center .coursue-profile__completion,
.edu-profile-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-soft);
}

.coursue-profile__nav {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.coursue-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cp-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.coursue-profile__brand {
  display: grid;
  gap: 0.15rem;
}

.coursue-profile__brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
}

.coursue-profile__brand strong {
  font-size: 1.05rem;
  color: var(--cp-ink);
}

.coursue-profile__brand small {
  font-size: 0.72rem;
  color: var(--cp-muted);
}

.coursue-profile__menu {
  display: grid;
  gap: 0.35rem;
}

.coursue-profile__menu-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cp-muted);
}

.coursue-profile__menu-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--cp-muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.coursue-profile__menu-link.is-active,
.coursue-profile__menu-link:hover {
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
}

.coursue-profile__mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.coursue-profile__mini-stats article {
  padding: 0.65rem;
  border-radius: 12px;
  background: var(--cp-brand-soft);
  text-align: center;
}

.coursue-profile__mini-stats strong {
  display: block;
  font-size: 1rem;
  color: var(--cp-brand);
}

.coursue-profile__mini-stats span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  color: var(--cp-muted);
}

.coursue-profile__center {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.coursue-profile__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.5rem 1.65rem;
  background: linear-gradient(135deg, #0b1426 0%, #152238 55%, #060d18 100%) !important;
  border: none;
  color: #fff;
  box-shadow: var(--cp-shadow);
  overflow: hidden;
}

.coursue-profile__hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.coursue-profile__hero--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.45) 0%, rgba(11, 20, 38, 0.88) 100%);
  pointer-events: none;
}

.coursue-profile__hero-copy,
.coursue-profile__hero-cards {
  position: relative;
  z-index: 2;
}

.coursue-profile__hero--cover {
  background: #0b1426 !important;
}

.coursue-profile__hero-tag {
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  font-weight: 800;
}

.coursue-profile__hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.15;
}

.coursue-profile__hero p {
  margin: 0;
  max-width: 38rem;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.92;
}

.coursue-profile__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.coursue-profile__hero-cards {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.coursue-profile__hero-cards article {
  min-width: 120px;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.coursue-profile__hero-cards span {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.coursue-profile__hero-cards small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  opacity: 0.85;
}

.coursue-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.coursue-btn--dark,
.coursue-profile__hero-actions .social-follow-btn,
.coursue-profile__hero-actions .social-connect-btn,
.coursue-profile__hero-actions .social-message-btn,
.coursue-profile__hero-actions .social-page-btn,
.edu-profile-card .social-profile-edit .edu-btn.primary,
.social-profile-endorse-form .edu-btn.primary,
.edu-profile-card .edu-btn.primary {
  background: linear-gradient(135deg, var(--cp-orange) 0%, #fb923c 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.32);
}

.coursue-btn--dark:hover,
.coursue-profile__hero-actions .social-follow-btn:hover,
.coursue-profile__hero-actions .social-connect-btn:hover,
.coursue-profile__hero-actions .social-message-btn:hover,
.coursue-profile__hero-actions .social-page-btn:hover,
.edu-profile-card .social-profile-edit .edu-btn.primary:hover,
.social-profile-endorse-form .edu-btn.primary:hover,
.edu-profile-card .edu-btn.primary:hover {
  background: linear-gradient(135deg, var(--cp-orange-dark) 0%, var(--cp-orange) 100%);
  border-color: rgba(234, 88, 12, 0.45);
  color: #fff;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.38);
}

.coursue-btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.coursue-profile__hero .coursue-btn--ghost-light {
  background: linear-gradient(135deg, var(--cp-orange) 0%, #fb923c 100%);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
}

.coursue-profile__hero .coursue-btn--ghost-light:hover {
  background: linear-gradient(135deg, var(--cp-orange-dark) 0%, var(--cp-orange) 100%);
  border-color: rgba(234, 88, 12, 0.45);
  color: #fff;
}

.coursue-btn--ghost {
  background: #fff;
  border-color: var(--cp-line);
  color: var(--cp-muted);
}

.coursue-profile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.coursue-chip {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.coursue-chip--green {
  background: #dcfce7;
  color: #15803d;
}

.coursue-chip--link:hover {
  background: var(--cp-brand);
  color: #fff;
}

.coursue-profile__completion {
  padding: 1rem 1.15rem;
}

.coursue-profile__completion-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
}

.coursue-profile__completion-head span {
  color: var(--cp-brand);
  font-weight: 800;
}

.coursue-profile__completion-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--cp-brand-soft);
  overflow: hidden;
}

.coursue-profile__completion-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b1426, #1e293b);
}

.coursue-profile__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.coursue-profile__content {
  display: grid;
  gap: 1rem;
}

.coursue-profile__widget {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.coursue-widget-card {
  padding: 1rem;
}

.coursue-widget-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.coursue-widget-card__head h2 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cp-ink);
}

.coursue-avatar-ring {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 1rem;
}

.coursue-avatar-ring__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.coursue-avatar-ring__track,
.coursue-avatar-ring__fill {
  fill: none;
  stroke-width: 6;
}

.coursue-avatar-ring__track {
  stroke: var(--cp-brand-soft);
}

.coursue-avatar-ring__fill {
  stroke: var(--cp-brand);
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: var(--ring-offset, 70);
  transition: stroke-dashoffset 0.4s ease;
}

.coursue-avatar-ring__inner {
  position: absolute;
  inset: 14px;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--cp-brand-soft);
}

.coursue-avatar-ring__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coursue-avatar-ring__inner span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cp-brand);
}

.coursue-avatar-ring__pct {
  position: absolute;
  inset-inline-end: -4px;
  bottom: 8px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--cp-brand);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.coursue-widget-card__identity {
  text-align: center;
}

.coursue-widget-card__identity h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--cp-ink);
}

.coursue-widget-card__identity p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--cp-muted);
}

.coursue-widget-card__bio {
  margin-top: 0.65rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--cp-brand-soft);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--cp-ink);
  text-align: start;
}

.coursue-widget-card__icons {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.coursue-widget-card__icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.coursue-widget-card__icons a:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 4px 12px rgba(11, 20, 38, 0.12);
}

.coursue-widget-card__icons .social-brand-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}

.coursue-widget-card__icons .social-brand-icon__svg {
  display: block;
  width: 20px;
  height: 20px;
}

.edu-profile-card .social-brand-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  line-height: 0;
}

.edu-profile-card .social-brand-icon__svg {
  display: block;
  width: 22px;
  height: 22px;
}

.coursue-activity-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-height: 120px;
  padding-top: 0.35rem;
}

.coursue-activity-chart__col {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  height: 100%;
  align-content: end;
}

.coursue-activity-chart__col span {
  display: block;
  width: 100%;
  max-width: 28px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #334155 0%, #0b1426 100%);
  min-height: 12px;
}

.coursue-activity-chart__col small {
  font-size: 0.58rem;
  color: var(--cp-muted);
  text-align: center;
  line-height: 1.2;
}

.coursue-profile__hero-actions .social-follow-btn,
.coursue-profile__hero-actions .social-connect-btn,
.coursue-profile__hero-actions .social-message-btn,
.coursue-profile__hero-actions .social-page-btn,
.coursue-profile__hero-actions .edu-btn {
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.coursue-profile__widget .social-profile-viewers__link img,
.coursue-profile__widget .social-profile-viewers__initial {
  border-radius: 50%;
}

.coursue-profile__widget .edu-profile-card {
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.coursue-profile__widget .edu-profile-card__head {
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--cp-line);
  background: transparent;
}

.coursue-profile__widget .edu-profile-card__body {
  padding: 0.85rem 0 0;
}

.coursue-profile__widget .edu-profile-analytics,
.coursue-profile__widget .edu-profile-viewers {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  padding: 1rem;
  box-shadow: var(--cp-shadow-soft);
}

.coursue-profile__center .social-profile-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.coursue-profile__center .social-profile-projects__item {
  grid-template-columns: 1fr;
}

.coursue-profile__center .social-profile-projects__img {
  width: 100%;
  height: 140px;
  border-radius: 14px;
}

.coursue-profile__center .social-profile-skill-levels li {
  background: var(--cp-brand-soft);
  border-radius: 12px;
}

.coursue-profile__center .social-profile-skill-levels span {
  color: var(--cp-brand);
}

@media (max-width: 1100px) {
  .coursue-profile__grid {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .coursue-profile__widget {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  .coursue-profile__grid {
    grid-template-columns: 1fr;
  }

  .coursue-profile__nav,
  .coursue-profile__widget {
    position: static;
  }

  .coursue-profile__hero {
    grid-template-columns: 1fr;
  }

  .coursue-profile__hero-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.edu-profile {
  display: grid;
  gap: 12px;
}

/* Profile hero — extends community_web .social-public-hero */
.social-public-hero--profile {
  margin-bottom: 0;
}

.social-public-hero--profile .social-public-hero__shade {
  background:
    linear-gradient(180deg, rgba(11, 20, 38, 0.2) 0%, rgba(11, 20, 38, 0.72) 100%),
    var(--profile-cover, none) center/cover no-repeat;
}

.social-public-hero--profile .social-public-hero__identity {
  align-items: flex-start;
}

.social-public-hero--profile .social-public-hero__title h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
}

.social-public-hero--profile .social-public-hero__headline {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.95;
}

.social-public-hero--profile .social-public-hero__role {
  display: inline-flex;
  margin-bottom: 0.45rem;
}

/* Bio — light brand panel */
.social-profile-bio-box {
  margin: 0 0 0.75rem;
  padding: 1rem 1.1rem;
  max-width: 100%;
  border-radius: var(--cp-radius-sm);
  background: var(--cp-brand-soft);
  border: 1px solid var(--cp-line);
  box-shadow: none;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--cp-ink);
  text-align: start;
}

.social-profile-bio-box--card {
  margin: 0;
}

.social-profile-bio-box p {
  margin: 0 0 0.75em;
}

.social-profile-bio-box p:last-child {
  margin-bottom: 0;
}

.social-public-hero--profile .social-public-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.social-public-hero--profile .social-public-hero__link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.social-public-hero--profile .social-public-hero__link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.social-public-hero--profile .social-public-hero__link--text {
  width: auto;
  padding-inline: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.social-public-hero--profile .social-public-hero__mutual {
  margin-bottom: 0.45rem;
}

.social-public-hero--profile .social-mutual-connections__text {
  color: rgba(255, 255, 255, 0.78);
}

.social-public-hero--profile .social-public-hero__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.social-public-hero--profile .social-public-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0;
}

.social-public-hero--profile .social-public-hero__actions .edu-btn {
  min-height: 36px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.social-public-hero--profile .social-profile-edit-btn {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

.social-public-hero--profile .social-profile-edit-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  border-color: rgba(234, 88, 12, 0.45);
  color: #fff;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.42);
}

.social-public-hero--profile .social-public-hero__actions .social-follow-btn,
.social-public-hero--profile .social-public-hero__actions .social-connect-btn,
.social-public-hero--profile .social-public-hero__actions .social-message-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--ep-navy);
}

.social-public-hero--profile .social-share-menu__btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.social-public-hero--profile .social-share-menu__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Stats strip under hero */
.social-profile-head-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--ep-line-strong);
  border-radius: var(--ep-card-radius);
  box-shadow: var(--ep-shadow-soft);
  overflow: hidden;
}

.social-profile-head-stats article {
  padding: 0.85rem 0.5rem;
  text-align: center;
  border-inline-end: 1px solid var(--ep-line);
}

.social-profile-head-stats article:last-child {
  border-inline-end: 0;
}

.social-profile-head-stats strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ep-navy);
}

.social-profile-head-stats span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ep-muted);
}

.social-profile-head-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.15rem 0.25rem;
}

.edu-profile .social-follow-connect-hint {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--ep-card-radius);
  background: #fff;
  border: 1px solid var(--ep-line-strong);
  font-size: 0.8rem;
  box-shadow: var(--ep-shadow-soft);
}

@media (max-width: 640px) {
  .social-profile-head-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-profile-head-stats article:nth-child(2) {
    border-inline-end: 0;
  }

  .social-profile-head-stats article:nth-child(1),
  .social-profile-head-stats article:nth-child(2) {
    border-bottom: 1px solid var(--ep-line);
  }

  .social-public-hero--profile .social-public-hero__identity {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-public-hero--profile .social-public-hero__toolbar {
    justify-content: center;
  }

  .social-public-hero--profile .social-public-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .social-public-hero--profile .social-public-hero__actions .social-follow-btn,
  .social-public-hero--profile .social-public-hero__actions .social-connect-btn,
  .social-public-hero--profile .social-public-hero__actions .social-message-btn {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
  }
}

/* —— Two-column body —— */
.edu-profile-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.edu-profile-layout__main {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.edu-profile-layout__aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* —— Section cards —— */
.edu-profile-card {
  background: #fff;
  border: 1px solid var(--ep-line-strong);
  border-radius: var(--ep-card-radius);
  overflow: hidden;
  box-shadow: var(--ep-shadow-soft);
}

.edu-profile-card--about .edu-profile-card__head {
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.03), rgba(249, 115, 22, 0.05));
}

.edu-profile-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--ep-line);
}

.edu-profile-card__head h2,
.edu-profile-card__head h3 {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ep-ink);
  letter-spacing: -0.01em;
}

.edu-profile-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
  flex-shrink: 0;
}

.edu-profile-card__body {
  padding: 1rem 1.15rem 1.15rem;
}

.edu-profile-card__body > p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ep-muted);
}

.edu-profile-card__empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ep-muted);
  font-style: italic;
}

/* Edit form */
.edu-profile-card .social-profile-edit {
  display: grid;
  gap: 0.85rem;
}

.social-profile-edit__role-note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--ep-radius);
  background: linear-gradient(135deg, var(--ep-navy-soft), #fff);
  border: 1px solid var(--ep-line);
  font-size: 0.8rem;
  color: var(--ep-ink);
  line-height: 1.5;
}

.social-profile-edit__role-note strong {
  color: var(--ep-navy);
}

.social-profile-edit__role-note small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ep-muted);
  font-size: 0.72rem;
}

.edu-profile-card .social-profile-edit label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ep-muted);
}

.edu-profile-card .social-profile-edit input,
.edu-profile-card .social-profile-edit textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--ep-radius);
  border: 1px solid var(--ep-line-strong);
  font: inherit;
  background: #fafbfc;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.edu-profile-card .social-profile-edit input:focus,
.edu-profile-card .social-profile-edit textarea:focus {
  outline: none;
  border-color: var(--cp-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 20, 38, 0.12);
}

.edu-profile-card .social-profile-edit__check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  text-transform: none;
  font-weight: 700;
}

.edu-profile-card .social-profile-edit__links {
  display: grid;
  gap: 0.65rem;
  margin: 0.25rem 0 0;
  padding: 1rem;
  border-radius: var(--ep-radius);
  background: var(--ep-navy-soft);
  border: 1px solid var(--ep-line);
}

.edu-profile-card .social-profile-edit .edu-btn.primary,
.social-profile-endorse-form .edu-btn.primary,
.edu-profile-card .edu-btn.primary {
  justify-self: start;
  min-height: 42px;
  padding-inline: 1.35rem;
  border-radius: 999px;
  font-weight: 800;
}

.edu-profile-card .social-profile-edit__links strong {
  font-size: 0.82rem;
  color: var(--ep-navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Links */
.edu-profile-card .social-profile-links--public {
  margin: 0;
}

.edu-profile-card .social-profile-links__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.edu-profile-card .social-profile-links__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ep-line-strong);
  background: var(--ep-navy-soft);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.edu-profile-card .social-profile-links__icon:hover {
  transform: translateY(-2px);
  border-color: var(--ep-navy);
  background: #fff;
}

.edu-profile-card .social-profile-links__portfolio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ep-line-strong);
  background: #fff;
  color: var(--ep-navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.edu-profile-card .social-profile-links__portfolio:hover {
  border-color: var(--ep-navy);
}

/* Skills chips */
.edu-profile-card .social-profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.edu-profile-card .social-profile-skills span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--ep-navy-soft);
  border: 1px solid var(--ep-line-strong);
  color: var(--ep-navy);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Certificates & endorsements */
.edu-profile-card .social-profile-certs,
.edu-profile-card .social-profile-endorsements {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.edu-profile-card .social-profile-certs li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.edu-profile-card .social-profile-certs__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ep-accent-soft);
  color: var(--ep-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.edu-profile-card .social-profile-certs strong,
.edu-profile-card .social-profile-endorsements strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ep-ink);
}

.edu-profile-card .social-profile-certs small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: var(--ep-muted);
}

.edu-profile-card .social-profile-endorsements li {
  padding: 0.85rem;
  border-radius: var(--ep-radius);
  background: var(--ep-navy-soft);
  border: 1px solid var(--ep-line);
}

.edu-profile-card .social-profile-endorsements__trainer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.edu-profile-card .social-profile-endorsements__trainer img,
.edu-profile-card .social-profile-endorsements__initial {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.edu-profile-card .social-profile-endorsements__initial {
  display: grid;
  place-items: center;
  background: var(--ep-navy);
  color: #fff;
  font-weight: 800;
}

.edu-profile-card .social-profile-endorsements__trainer small {
  display: block;
  font-size: 0.72rem;
  color: var(--ep-muted);
}

.edu-profile-card .social-profile-endorsements li p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ep-muted);
}

.edu-profile-card .social-profile-endorse-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.edu-profile-card .social-profile-endorse-form h3 {
  display: none;
}

.edu-profile-card .social-profile-endorse-form label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ep-muted);
}

.edu-profile-card .social-profile-endorse-form textarea {
  width: 100%;
  margin: 0.25rem 0 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--ep-radius);
  border: 1px solid var(--ep-line-strong);
  font: inherit;
  background: #fafbfc;
}

/* Activity section */
.edu-profile-activity__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.15rem;
  background: #fff;
  border: 1px solid var(--ep-line-strong);
  border-radius: var(--ep-card-radius);
  box-shadow: var(--ep-shadow-soft);
}

.edu-profile-activity__head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ep-ink);
}

.edu-profile-activity .social-compose {
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--ep-line-strong);
  border-radius: var(--ep-card-radius);
  overflow: visible;
  box-shadow: var(--ep-shadow-soft);
}

.edu-profile-activity .community-feed--social,
.edu-profile-activity .community-empty {
  border-radius: var(--ep-card-radius);
}

.edu-page-profile-public .community-empty {
  padding: 2.25rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--ep-line-strong);
  border-radius: var(--ep-card-radius);
  box-shadow: var(--ep-shadow-soft);
}

.edu-page-profile-public .social-community-header__filters {
  display: none !important;
}

.edu-page-profile-public .social-community-header {
  margin-bottom: 0.75rem;
}

@media (min-width: 900px) {
  .edu-profile-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 1.25rem;
  }

  .edu-profile-layout__aside {
    position: sticky;
    top: 88px;
  }
}

@media (max-width: 899px) {
  .edu-profile-layout__aside {
    order: -1;
  }
}

html.edu-view-web .edu-web-content .edu-page-profile-public {
  max-width: 1140px;
  margin-inline: auto;
}

html.edu-view-web .edu-web-content .edu-page-profile-public .social-post {
  border-radius: var(--ep-card-radius);
  border-color: var(--ep-line-strong);
  box-shadow: var(--ep-shadow-soft);
}

.social-profile-viewers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.social-profile-viewers__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.social-profile-viewers__link:hover {
  background: var(--cp-brand-soft);
}

.social-profile-viewers__link img,
.social-profile-viewers__initial {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.social-profile-viewers__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
  font-weight: 800;
}

.social-profile-viewers__link strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ep-ink);
}

.social-profile-viewers__link small {
  display: block;
  font-size: 0.72rem;
  color: var(--ep-muted);
}

.social-mutual-connections {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-mutual-connections__avatars {
  display: inline-flex;
  align-items: center;
}

.social-mutual-connections__avatars img,
.social-mutual-connections__initial {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  margin-inline-start: -8px;
}

.social-mutual-connections__avatars img:first-child,
.social-mutual-connections__initial:first-child {
  margin-inline-start: 0;
}

.social-mutual-connections__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.social-mutual-connections__text {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
}

.social-profile-edit__slug-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.social-profile-edit__slug-row small {
  color: var(--ep-muted);
  font-size: 0.75rem;
}

.social-profile-edit__hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--ep-muted);
  font-size: 0.72rem;
  text-transform: none;
  font-weight: 500;
}

.social-skill-endorsements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.social-skill-endorsements__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ep-line);
}

.social-skill-endorsements__item:last-child {
  border-bottom: 0;
}

.social-skill-endorsements__meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ep-ink);
}

.social-skill-endorsements__count {
  display: block;
  font-size: 0.72rem;
  color: var(--ep-muted);
}

.social-skill-endorsements__btn.is-active {
  color: var(--ep-navy);
  border-color: var(--ep-navy);
}

.social-recommendation-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.social-recommendations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.social-recommendations-list--spaced {
  margin-top: 0.35rem;
}

.social-recommendations-list__item blockquote {
  margin: 0.55rem 0 0.25rem;
  padding: 0;
  border: 0;
  font-size: 0.88rem;
  color: var(--ep-ink);
  line-height: 1.6;
}

.social-recommendations-list__author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.social-recommendations-list__author img,
.social-recommendations-list__initial {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.social-recommendations-list__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ep-navy-soft);
  color: var(--ep-navy);
  font-weight: 800;
}

.social-recommendations-list__author strong {
  display: block;
  font-size: 0.86rem;
}

.social-recommendations-list__author small {
  display: block;
  font-size: 0.72rem;
  color: var(--ep-muted);
}

.social-recommendations-list__item time {
  font-size: 0.68rem;
  color: var(--ep-muted);
}

.social-recommendations-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ep-muted);
}

/* Phase 39 — profile power features */
.social-profile-tabs {
  margin-top: 0;
}

.social-profile-completion {
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--ep-line-strong);
  border-radius: var(--ep-card-radius);
  box-shadow: var(--ep-shadow-soft);
}

.social-profile-completion__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
}

.social-profile-completion__head span {
  font-weight: 800;
  color: var(--ep-accent);
}

.social-profile-completion__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--ep-navy-soft);
  overflow: hidden;
}

.social-profile-completion__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b1426, #1e293b);
}

.social-profile-completion__hint {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: var(--ep-muted);
}

.social-profile-available-badge {
  display: inline-flex;
  margin: 0.35rem 0 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-size: 0.68rem;
  font-weight: 800;
}

.social-profile-live-preview {
  padding: 0.85rem;
  border-radius: var(--ep-radius);
  background: var(--ep-navy-soft);
  border: 1px dashed var(--ep-line-strong);
}

.social-profile-live-preview small {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ep-muted);
  text-transform: uppercase;
}

.social-profile-live-preview strong {
  display: block;
  font-size: 1rem;
  color: var(--ep-navy);
}

.social-profile-live-preview span[data-preview-headline] {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--ep-muted);
}

.social-profile-bio-box--preview {
  margin-top: 0.55rem;
  font-size: 0.82rem;
}

.social-profile-cover-edit,
.social-profile-qr,
.social-profile-skills-edit,
.social-profile-project-form {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: var(--ep-radius);
  background: var(--ep-navy-soft);
  border: 1px solid var(--ep-line);
}

.social-profile-qr {
  text-align: center;
}

.social-profile-qr img {
  display: block;
  margin: 0.35rem auto;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.social-profile-qr__url {
  width: 100%;
  font-size: 0.72rem;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--ep-line-strong);
}

.social-profile-skills-edit__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}

.social-profile-skills-edit__row input,
.social-profile-skills-edit__row select {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--ep-line-strong);
  font: inherit;
}

.social-profile-skill-levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.social-profile-skill-levels li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--ep-navy-soft);
}

.social-profile-skill-levels span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ep-accent);
}

.social-profile-projects {
  display: grid;
  gap: 0.85rem;
}

.social-profile-projects__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--cp-radius-sm);
  border: 1px solid var(--cp-line);
  background: #fafbff;
}

.social-profile-projects__img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.social-profile-projects__body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.social-profile-projects__body p {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: var(--ep-muted);
  line-height: 1.5;
}

.social-profile-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.social-profile-cert-grid__item {
  padding: 0.85rem;
  border-radius: var(--cp-radius-sm);
  border: 1px solid var(--cp-line);
  background: linear-gradient(145deg, #fff, var(--cp-brand-soft));
  text-align: center;
}

.social-profile-cert-grid__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
}

.social-profile-cert-grid__item strong {
  display: block;
  font-size: 0.84rem;
}

.social-profile-cert-grid__item small,
.social-profile-cert-grid__item code {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--ep-muted);
}

.social-profile-project-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.social-profile-project-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ep-line);
  font-size: 0.82rem;
}

.social-profile-project-list form {
  margin: 0;
}

/* Phase 40 — activity badges, learning paths, explore */
.social-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.social-profile-badge {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.social-profile-badge--blue {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
}

.social-profile-badge--green {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.social-profile-badge--gold {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.35);
  color: #fde68a;
}

.social-profile-badge--orange {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.35);
  color: #fed7aa;
}

.social-profile-learning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.social-profile-learning__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.social-profile-learning__path {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.social-profile-learning__path small {
  opacity: 0.85;
}

.social-profile-path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.social-profile-path-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--cp-brand-soft);
  text-decoration: none;
  color: inherit;
}

.social-profile-path-list span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cp-brand);
}

.social-explore-card__badge {
  display: inline-flex;
  margin-top: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--cp-brand-soft);
  color: var(--cp-brand);
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .social-profile-projects__item {
    grid-template-columns: 1fr;
  }

  .social-profile-projects__img {
    width: 100%;
    height: 140px;
  }
}

/* Orange action buttons — white text, darker orange on hover */
.coursue-profile .edu-btn.primary,
.coursue-profile .coursue-btn--dark,
.coursue-profile .coursue-profile__hero .coursue-btn--ghost-light,
.coursue-profile .coursue-profile__hero-actions .edu-btn,
.coursue-profile .coursue-profile__hero-actions .social-follow-btn,
.coursue-profile .coursue-profile__hero-actions .social-connect-btn,
.coursue-profile .coursue-profile__hero-actions .social-message-btn,
.coursue-profile .coursue-profile__hero-actions .social-page-btn {
  background: linear-gradient(135deg, var(--cp-orange) 0%, #fb923c 100%) !important;
  border-color: rgba(249, 115, 22, 0.35) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.32);
}

.coursue-profile .edu-btn.primary:hover,
.coursue-profile .coursue-btn--dark:hover,
.coursue-profile .coursue-profile__hero .coursue-btn--ghost-light:hover,
.coursue-profile .coursue-profile__hero-actions .edu-btn:hover,
.coursue-profile .coursue-profile__hero-actions .social-follow-btn:hover,
.coursue-profile .coursue-profile__hero-actions .social-connect-btn:hover,
.coursue-profile .coursue-profile__hero-actions .social-message-btn:hover,
.coursue-profile .coursue-profile__hero-actions .social-page-btn:hover {
  background: linear-gradient(135deg, var(--cp-orange-dark) 0%, var(--cp-orange) 100%) !important;
  border-color: rgba(234, 88, 12, 0.45) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.38);
}

/* Profile edit studio */
.profile-edit-studio {
  overflow: hidden;
}

.profile-edit-studio__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--cp-line);
}

.profile-edit-studio__eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-orange);
}

.profile-edit-studio__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.profile-edit-studio__head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cp-muted);
  line-height: 1.5;
}

.profile-edit-studio__completion {
  text-align: center;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: var(--cp-brand-soft);
  min-width: 88px;
}

.profile-edit-studio__completion strong {
  display: block;
  font-size: 1.2rem;
  color: var(--cp-brand);
}

.profile-edit-studio__completion span {
  display: block;
  font-size: 0.65rem;
  color: var(--cp-muted);
}

.profile-edit-studio__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--cp-line);
  background: #fafbfc;
}

.profile-edit-studio__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cp-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.profile-edit-studio__nav-btn.is-active {
  background: var(--cp-brand);
  border-color: var(--cp-brand);
  color: #fff;
}

.profile-edit-studio__layout {
  padding: 1.15rem 1.35rem 1.35rem;
}

.profile-edit-studio__form {
  display: grid;
  gap: 0;
}

.profile-edit-studio__panel {
  display: grid;
  gap: 1rem;
}

.profile-edit-studio__panel[hidden] {
  display: none !important;
}

.profile-edit-studio__grid {
  display: grid;
  gap: 0.85rem;
}

.profile-edit-studio__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-edit-studio__field {
  display: grid;
  gap: 0.35rem;
}

.profile-edit-studio__field--full {
  grid-column: 1 / -1;
}

.profile-edit-studio__field span {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cp-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-edit-studio__field small {
  font-size: 0.72rem;
  color: var(--cp-muted);
  line-height: 1.45;
}

.profile-edit-studio__field input,
.profile-edit-studio__field textarea,
.profile-edit-studio__field select,
.profile-edit-studio__form .social-profile-edit input,
.profile-edit-studio__form .social-profile-edit textarea,
.profile-edit-studio__form .social-profile-edit select,
.profile-edit-studio__subform input,
.profile-edit-studio__subform textarea,
.profile-edit-studio__subform select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--cp-line-strong);
  background: #fff;
  color: var(--cp-ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(11, 20, 38, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-edit-studio__field input:focus,
.profile-edit-studio__field textarea:focus,
.profile-edit-studio__field select:focus,
.profile-edit-studio__form .social-profile-edit input:focus,
.profile-edit-studio__form .social-profile-edit textarea:focus,
.profile-edit-studio__form .social-profile-edit select:focus,
.profile-edit-studio__subform input:focus,
.profile-edit-studio__subform textarea:focus,
.profile-edit-studio__subform select:focus {
  outline: none;
  border-color: var(--cp-brand);
  box-shadow: 0 0 0 3px rgba(11, 20, 38, 0.08);
}

.profile-edit-studio__field input::placeholder,
.profile-edit-studio__field textarea::placeholder,
.profile-edit-studio__subform input::placeholder,
.profile-edit-studio__subform textarea::placeholder {
  color: #9aa3b2;
}

.profile-edit-studio__field textarea,
.profile-edit-studio__form textarea,
.profile-edit-studio__subform textarea {
  min-height: 120px;
  resize: vertical;
}

.profile-edit-studio__toggles {
  display: grid;
  gap: 0.55rem;
}

.profile-edit-studio__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--cp-line);
  background: var(--cp-brand-soft);
  cursor: pointer;
}

.profile-edit-studio__toggle strong {
  display: block;
  font-size: 0.82rem;
  color: var(--cp-ink);
}

.profile-edit-studio__preview {
  padding: 1rem;
  border-radius: 14px;
  background: var(--cp-brand-soft);
  border: 1px dashed var(--cp-line-strong);
}

.profile-edit-studio__cover {
  display: grid;
  gap: 1rem;
}

.profile-edit-studio__cover-preview {
  min-height: 180px;
  border-radius: 16px;
  background: var(--cp-brand-soft) center/cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--cp-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-edit-studio__cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.profile-edit-studio__file-btn {
  cursor: pointer;
}

.profile-edit-studio__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--cp-muted);
}

.profile-edit-studio__share-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.profile-edit-studio__qr {
  text-align: center;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--cp-brand-soft);
}

.profile-edit-studio__qr img {
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.profile-edit-studio__url-copy {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.profile-edit-studio__url-copy [data-copy-profile-url].is-copied {
  background: linear-gradient(135deg, #15803d, #22c55e) !important;
}

.profile-edit-studio__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cp-line);
}

.profile-edit-studio__footer-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--cp-muted);
}

.profile-edit-studio__save {
  min-width: 180px;
  justify-content: center;
}

.profile-edit-studio .social-profile-skills-edit__row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.profile-edit-studio__row-remove {
  width: 32px;
  height: 32px;
  border: 1px solid var(--cp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--cp-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.profile-edit-studio__project-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.profile-edit-studio__project-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--cp-line);
  background: #fff;
}

.profile-edit-studio__project-list strong {
  display: block;
  font-size: 0.86rem;
}

.profile-edit-studio__project-list small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--cp-muted);
}

.profile-edit-studio__subform {
  display: grid;
  gap: 0.85rem;
}

.profile-edit-studio__subform h3 {
  margin: 0;
  font-size: 0.95rem;
}

.profile-edit-studio__inline-form {
  margin: 0;
}

.profile-edit-studio__cover-remove-form {
  display: none;
}

.profile-edit-studio__avatar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.profile-edit-studio__avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cp-line);
  background: var(--cp-brand-soft);
}

.profile-edit-studio__avatar-preview--initial {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cp-brand);
}

.social-profile-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.social-profile-timeline__item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 0.85rem;
  position: relative;
}

.social-profile-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 18px;
  inset-inline-start: 7px;
  width: 2px;
  height: calc(100% + 0.5rem);
  background: var(--cp-line);
}

.social-profile-timeline__dot {
  width: 14px;
  height: 14px;
  margin-top: 0.25rem;
  border-radius: 50%;
  border: 3px solid var(--cp-brand);
  background: #fff;
  position: relative;
  z-index: 1;
}

.social-profile-timeline__body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--cp-ink);
}

.social-profile-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--cp-muted);
}

.social-profile-timeline__meta strong {
  color: var(--cp-brand);
}

.social-profile-timeline__sub {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cp-muted);
}

.social-profile-timeline__desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--cp-ink);
}

.social-profile-cert-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cp-line);
}

.social-profile-cert-section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--cp-brand);
}

.profile-edit-studio__form[hidden] {
  display: none !important;
}

.profile-edit-studio__footer[hidden] {
  display: none !important;
}

.coursue-profile__center .profile-edit-studio {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .profile-edit-studio__grid--2,
  .profile-edit-studio__share-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-studio__head {
    flex-direction: column;
  }

  .profile-edit-studio__nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.65rem;
  }

  .profile-edit-studio__nav-btn {
    flex: 0 0 auto;
  }
}
