.inst-profile-page .pc-page-body,
.inst-results-page .pc-page-body {
  background: var(--surface);
}

.inst-profile-wrap,
.inst-results-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.inst-results-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inst-profile-empty {
  text-align: center;
  padding: 72px 16px;
}

.inst-profile-empty h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.inst-profile-empty p {
  margin: 0 0 22px;
  color: var(--g600);
}

.inst-profile-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--sh2);
}

.inst-profile-photo-wrap {
  width: 280px;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inst-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inst-profile-initial {
  font-size: 72px;
  font-weight: 800;
  color: var(--brand);
}

.inst-profile-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.inst-profile-name {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.inst-profile-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--g700);
}

.inst-profile-bio {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--g600);
}

.inst-profile-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.inst-profile-stat {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--g50);
  border: 1px solid var(--border);
}

.inst-profile-stat-n {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.inst-profile-stat-l {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--g600);
}

.inst-profile-actions,
.inst-pick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inst-pick-actions .inst-btn {
  min-width: 168px;
}

.inst-profile-fc {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--g600);
}

.inst-profile-fc:hover {
  color: var(--brand);
}

.inst-results-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.inst-results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inst-results-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  color: var(--g700);
  display: inline-flex;
  align-items: center;
}

.inst-results-tab.on,
.inst-results-tab:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.inst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.inst-btn-primary {
  background: var(--brand);
  color: #fff;
}

.inst-btn-primary:hover {
  background: var(--brand-dark);
}

.inst-btn-ghost {
  background: #fff;
  color: var(--g800, var(--g700));
  border: 1px solid var(--border);
}

.inst-btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.inst-results-head {
  margin-bottom: 28px;
}

.inst-results-back {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.inst-results-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.inst-results-sub {
  margin: 0 0 16px;
  color: var(--g600);
  font-size: 15px;
}

.inst-results-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inst-results-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.inst-results-empty {
  padding: 40px 0;
  color: var(--g600);
}

.inst-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.inst-result-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh);
  cursor: pointer;
}

.inst-result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 79, 232, 0.28);
  box-shadow: var(--sh2);
}

.inst-result-thumb {
  height: 320px;
  background: #f3f4f6;
}

.inst-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inst-result-meta {
  padding: 14px 16px 16px;
}

.inst-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inst-result-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.inst-result-kind {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.inst-result-amt {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.inst-result-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--g600);
}

.inst-result-lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 28px;
}

.inst-result-lb[hidden] {
  display: none;
}

.inst-result-lb img {
  max-width: min(920px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.inst-result-lb p {
  display: none;
}

.inst-result-lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
}

.inst-story-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.inst-story-kicker {
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}

.inst-story-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.inst-story-lead {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--g600);
}

.inst-story-step {
  margin: 0 0 42px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.inst-story-step-kicker {
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}

.inst-story-step-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.inst-story-step-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--g700);
}

.inst-story-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.inst-story-photo {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
}

.inst-story-photo img {
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  background: #fff;
  display: block;
}

.inst-story-cta {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .inst-profile-card {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 20px;
  }
  .inst-profile-photo-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-width: 320px;
    margin: 0 auto;
  }
  .inst-profile-actions {
    display: grid;
  }
  .inst-btn {
    width: 100%;
  }
}

.inst-results-return {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 26px;
  z-index: 80;
  padding: 13px 24px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.35);
  transition: background 0.15s;
}

.inst-results-return:hover {
  background: #e8192c;
  color: #fff;
}
