/* ── Layout ── */
.mp-app { display: flex; flex-direction: column; min-height: 100vh; }
.mp-main { flex: 1; max-width: 1000px; width: 100%; margin: 0 auto; padding: 0 1.5rem 3rem; }

/* ── Nav ── */
.mp-nav {
  border-bottom: 1px solid rgba(43,41,39,0.15);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}
.mp-nav-brand {
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.02em;
}
.mp-nav-links { display: flex; gap: 1.5rem; }
.mp-nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.35;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  letter-spacing: 0.02em;
}
.mp-nav-link:hover { opacity: 0.7; }
.mp-nav-link--active { opacity: 1; }

/* ── Hero ── */
.mp-hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}
.mp-hero-title {
  font-family: var(--font-header);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.mp-hero-subtitle {
  font-size: 0.9rem;
  opacity: 0.35;
  max-width: 420px;
  margin: 0 auto;
}
.mp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.mp-hero-stat-value {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
}
.mp-hero-stat-label {
  font-size: 0.7rem;
  opacity: 0.3;
}

/* ── Search & Filters ── */
.mp-search {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.mp-search-input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: transparent;
  border: 1px solid rgba(43,41,39,0.15);
  border-radius: 8px;
  color: inherit;
  font-size: 0.85rem;
  font-family: var(--font);
}
.mp-search-input:focus { outline: none; border-color: rgba(43,41,39,0.4); }
.mp-search-input::placeholder { opacity: 0.25; }
.mp-filters { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; }
.mp-filter {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(43,41,39,0.15);
  border-radius: 20px;
  background: none;
  color: inherit;
  opacity: 0.35;
  cursor: pointer;
  font-family: var(--font);
}
.mp-filter:hover { opacity: 0.6; }
.mp-filter--active { opacity: 1; background: var(--color-fg); color: var(--color-bg); }

/* ── Agent Grid ── */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* ── Agent Card ── */
.mp-card {
  border: 1px solid rgba(43,41,39,0.12);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(43,41,39,0.08);
}
.mp-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.mp-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mp-card-info { flex: 1; min-width: 0; }
.mp-card-name {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mp-card-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mp-card-status--running { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.mp-card-status--sleeping { background: rgba(43,41,39,0.2); }
.mp-card-subtitle {
  font-size: 0.75rem;
  opacity: 0.3;
  margin-top: 0.1rem;
}
.mp-card-desc {
  font-size: 0.8rem;
  opacity: 0.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.mp-card-footer { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.mp-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(43,41,39,0.12);
  border-radius: 4px;
  opacity: 0.35;
}
.mp-tag--storefront {
  opacity: 0.7;
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}

/* ── Section Headers ── */
.mp-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.3;
  margin-bottom: 0.75rem;
}
.mp-page-title {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.25rem;
}
.mp-page-subtitle { font-size: 0.85rem; opacity: 0.3; margin-bottom: 1.5rem; }

/* ── Agent Profile ── */
.mp-profile-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(43,41,39,0.1);
}
.mp-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mp-profile-name {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mp-profile-personality {
  font-size: 0.85rem;
  opacity: 0.4;
  margin-top: 0.3rem;
  line-height: 1.5;
}
.mp-profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.8rem;
}
.mp-profile-stat { text-align: left; }
.mp-profile-stat-value {
  font-weight: 700;
  font-family: var(--font-header);
  font-size: 1.1rem;
}
.mp-profile-stat-label { font-size: 0.65rem; opacity: 0.3; text-transform: uppercase; letter-spacing: 0.05em; }

.mp-profile-section { margin-bottom: 2rem; }
.mp-profile-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.3;
  margin-bottom: 0.6rem;
}

.mp-wallet-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(43,41,39,0.06);
}
.mp-wallet-row:last-child { border-bottom: none; }
.mp-wallet-label {
  font-weight: 700;
  font-size: 0.7rem;
  opacity: 0.3;
  width: 36px;
  flex-shrink: 0;
}
.mp-wallet-addr {
  font-size: 0.75rem;
  opacity: 0.4;
  word-break: break-all;
  flex: 1;
}
.mp-wallet-link {
  font-size: 0.7rem;
  opacity: 0.25;
  flex-shrink: 0;
}
.mp-wallet-link:hover { opacity: 0.6; }

/* ── Service Card ── */
.mp-svc-card {
  border: 1px solid rgba(43,41,39,0.12);
  border-radius: 10px;
  padding: 1.2rem;
  transition: transform 0.1s;
}
.mp-svc-card:hover { transform: translateY(-1px); }
.mp-svc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.mp-svc-name { font-weight: 700; font-size: 0.9rem; }
.mp-svc-price {
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-header);
  color: #22c55e;
}
.mp-svc-desc { font-size: 0.8rem; opacity: 0.35; line-height: 1.4; }
.mp-svc-agent { font-size: 0.7rem; opacity: 0.25; margin-top: 0.4rem; }

/* ── Register Form ── */
.mp-form { max-width: 480px; display: flex; flex-direction: column; gap: 0.75rem; }
.mp-form label { font-size: 0.75rem; font-weight: 700; opacity: 0.5; }
.mp-form input, .mp-form textarea, .mp-form select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(43,41,39,0.15);
  border-radius: 8px;
  color: inherit;
  font-size: 0.85rem;
  font-family: var(--font);
}
.mp-form input:focus, .mp-form textarea:focus { outline: none; border-color: rgba(43,41,39,0.4); }
.mp-form textarea { resize: vertical; min-height: 80px; }
.mp-btn {
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--color-fg);
  border-radius: 8px;
  background: var(--color-fg);
  color: var(--color-bg);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font);
  transition: opacity 0.1s;
}
.mp-btn:hover { opacity: 0.8; }
.mp-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.mp-btn--outline { background: transparent; color: inherit; }
.mp-status { font-size: 0.8rem; opacity: 0.4; }
.mp-back {
  font-size: 0.8rem;
  opacity: 0.3;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  margin-bottom: 1rem;
  font-family: var(--font);
}
.mp-back:hover { opacity: 0.6; }

/* ── Empty State ── */
.mp-empty {
  text-align: center;
  padding: 3rem 1rem;
  opacity: 0.2;
  font-size: 0.9rem;
}

/* ── Footer ── */
.mp-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.7rem;
  opacity: 0.15;
  border-top: 1px solid rgba(43,41,39,0.08);
}

/* ── Reputation ── */
.mp-card-reputation {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #eab308;
}
.mp-profile-rep {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mp-profile-rep-score {
  font-family: var(--font-header);
  font-weight: 700;
  color: #eab308;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-profile-hero { flex-direction: column; align-items: center; text-align: center; }
  .mp-profile-stats { justify-content: center; }
  .mp-hero-title { font-size: 1.6rem; }
  .mp-hero-stats { gap: 1.5rem; }
}
