.master-social {
  width: min(100%, 1700px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  padding-bottom: 32px;
}

.master-social__hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 55%, #f6f0ff 100%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.master-social__cover {
  height: 340px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.18)),
    radial-gradient(circle at 12% 24%, rgba(255,255,255,0.9), transparent 28%),
    linear-gradient(135deg, #dbeafe 0%, #eef4ff 55%, #f3e8ff 100%);
  background-size: cover;
  background-position: center;
}

.master-social__cover-overlay {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
  filter: blur(56px);
}

.master-social__hero-body {
  position: relative;
  margin-top: -86px;
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  z-index: 1;
}

.master-social__avatar {
  width: 156px;
  height: 156px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  border: 6px solid #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.master-social__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-social__identity {
  display: grid;
  gap: 18px;
  align-content: start;
}

.master-social__identity-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.master-social__eyebrow,
.master-card__eyebrow {
  color: #3b82f6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.master-social__identity h1,
.master-card h2 {
  margin: 8px 0 0;
  color: #102033;
}

.master-social__identity h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.03;
  font-weight: 900;
}

.master-social__meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #64748b;
}

.master-social__actions,
.master-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.master-social-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  transition: all 0.25s ease;
  cursor: pointer;
}

.master-social-btn:hover {
  transform: translateY(-2px);
}

.master-social-btn.is-primary,
.master-social-btn.is-accent {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 16px 38px rgba(59, 130, 246, 0.18);
}

.master-social-btn.is-ghost {
  color: #102033;
  background: rgba(255,255,255,0.86);
  border: 1px solid #dbe3f0;
}

.master-social-btn.is-accent.is-subscribed {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  box-shadow: none;
}

.master-social__status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid #e2e8f0;
}

.master-social__status-emoji {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef4ff, #f5f0ff);
  font-size: 22px;
}

.master-social__status strong,
.master-card h3,
.master-post__head strong,
.master-work__body strong,
.master-service__top strong,
.master-empty strong {
  color: #102033;
}

.master-social__status span,
.master-empty p,
.master-work__body p,
.master-service p,
.master-sidebar-meta span {
  color: #64748b;
}

.master-social__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.master-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #102033;
  font-size: 13px;
  font-weight: 700;
}

.master-chip.is-success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.master-chip.is-purple {
  background: #f3e8ff;
  border-color: #ddd6fe;
  color: #7c3aed;
}

.master-chip.is-warning {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.master-social__tabs {
  position: sticky;
  top: 94px;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.master-social__tabs a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  color: #475569;
}

.master-social__tabs a.is-active,
.master-social__tabs a:hover {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.master-social__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.master-social__main,
.master-social__sidebar {
  display: grid;
  gap: 24px;
}

.master-social__sidebar {
  position: sticky;
  top: 172px;
}

.master-card {
  border-radius: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.06);
}

.master-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.master-card h2 {
  font-size: 30px;
  font-weight: 900;
}

.master-today__grid,
.master-services,
.master-works,
.master-achievements {
  display: grid;
  gap: 16px;
}

.master-today__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.master-today__grid article,
.master-achievement {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
}

.master-today__grid strong {
  display: block;
  color: #102033;
  font-size: 24px;
  font-weight: 900;
}

.master-today__grid span,
.master-post__head span,
.master-post__meta,
.master-work__meta,
.master-service__meta,
.master-reviews-summary__score span,
.master-achievement p {
  color: #64748b;
}

.master-feed {
  display: grid;
  gap: 18px;
}

.master-post {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e7ecf5;
  box-shadow: 0 12px 32px rgba(15,23,42,0.05);
}

.master-post__head,
.master-service__top,
.master-review-bar,
.master-work__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.master-post__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #102033;
}

.master-post__media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.master-post__media img,
.master-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.master-post__media img {
  height: 220px;
}

.master-post__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 700;
}

.master-works {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.master-work,
.master-service {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e7ecf5;
}

.master-work__media {
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef4ff, #f5f0ff);
}

.master-work__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 800;
}

.master-services,
.master-achievements {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.master-service__top span,
.master-work__meta span {
  font-weight: 700;
}

.master-reviews-summary {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
}

.master-reviews-summary__score {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef4ff, #f5f0ff);
  text-align: center;
}

.master-reviews-summary__score strong {
  display: block;
  font-size: 64px;
  line-height: 1;
  color: #102033;
}

.master-reviews-summary__bars {
  display: grid;
  gap: 12px;
}

.master-review-bar div {
  position: relative;
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}

.master-review-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.master-trust-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #102033;
  font-weight: 700;
}

.master-sidebar-meta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.master-empty {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px dashed #cbd5e1;
  text-align: center;
}

@media (max-width: 1200px) {
  .master-social__layout {
    grid-template-columns: 1fr;
  }

  .master-social__sidebar {
    position: static;
  }

  .master-social__hero-body {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .master-social__cover {
    height: 260px;
  }

  .master-social__hero-body {
    grid-template-columns: 1fr;
    margin-top: -70px;
  }

  .master-social__identity-top {
    flex-direction: column;
  }

  .master-today__grid,
  .master-reviews-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .master-social__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .master-social__cover {
    height: 220px;
  }

  .master-social__hero-body {
    padding: 0 18px 20px;
  }

  .master-social__avatar {
    width: 124px;
    height: 124px;
    font-size: 42px;
  }

  .master-today__grid,
  .master-reviews-summary,
  .master-services,
  .master-works,
  .master-achievements {
    grid-template-columns: 1fr;
  }

  .master-social__actions,
  .master-sidebar-actions {
    display: grid;
  }
}
